A Digital Age Deserves A Digital Leader

Code request Thread

Postby coreyw2000 » Sat Nov 06, 2004 9:00 am

How do I open a file in VB6? I want to click on a button and it opens an .exe or a .zip file. It would be on a cd so it would be "[cdrom target]/folder/file.exe (example) and how do I make it open in a cd. It could be E:/ or F:/ or G:/ etc
Be nice to nerds.... chances are you will end up working for one

<u><b>Current system</b></u>
ASUS M3A78-EMH HDMI
AMD Athlon X2 6000+ o/c'd at 3.2GHz
4GB (2x2GB) OCZ RAM
Integrated Radeon HD 3200 (HDMI out)
500GB SATA/360GB IDE HDD's
32" Sharp 1080p Monitor/TV
Vista RTM/Vista SP2 Beta/7 6801
PROfessional Member
Posts: 4644
Joined: Tue Oct 05, 2004 5:30 am
Location: Saskatchewan, Canada

Postby poisonbl » Wed Nov 17, 2004 9:52 pm

i haven't looked at much VB, but MSDN has tons of walkthroughs, tips, and other info.

i'm not sure how to execute a file / open a a file via shell extensions, but as for the drive problem:

the page linked below shows use of the CurDir() function, .. you could probably parse the output of that function early to get the drive letter your working with -- given that the program runs with it's working directory as the same path that it exists in. (also, .. no risk of this being used from a drive/partition mounted as an NTFS subfolder is there?)

if you store that into a variable early, you can use it for dynamically fixing to correct paths for the rest of execution. (all of my logic is actually running from use of C but the general idea should work w/ about anything)

:moreat: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcn7/html/vbconProcessingFiles.asp

i'd test the ideas here ... but umm .. i'm in linux and don't wanna fight with windows today :embarrassed:
Image
Image
PRO Level 10
User avatar
Posts: 432
Joined: Mon Nov 15, 2004 10:02 pm
Location: WVU -- Morgantown, WV. -- USA (TZ: -5 hrs GMT, -4 DST)

Postby marathonman » Sat Jan 15, 2005 5:46 pm

Does anyone know how to get hold of the BIOS ID string using plain C, or failing that C++? I'd like to compile a small .dll with just one function, called say, 'grabBiosId'.. that I could call easily from say VB, ideally without requiring too much in the way of calling parameters. Or does anyone know of an existing, native windows API call that would do this (or an existing third-party, public domain .dll)

I have a vague idea how to use LCC-Win32 if that would be any use in compiling some C code.
marathonman

Using CSS

Postby ch00k » Mon Mar 07, 2005 2:01 am

rjordan wrote way back...
You can make your background not move by using css


I was wondering if there is a way that you can make the background of a table opaque. example would be you have a page background image that is fixed. background colour is white. You have a table with a blue background. You want to be able to see the background image through the table background.

I haven't been able to find anything about this, and it doesn't look like it can be done. Wondering if anyone else has tried this and if so, have you succeeded
Why is it drug addicts and computer afficionados are both called users?
PRO Level 2
User avatar
Posts: 38
Joined: Thu Jul 22, 2004 3:40 am
Location: Sydney, Australia

Postby dotcompals » Fri Jul 08, 2005 3:30 pm

imnuts wrote:maybe you can help with this. i have seen many sites where the background is a static image and when you scroll down, the text moves and the background doesn't. how do they do that cause i want my site to be like that.


You can achieve that using simple HTML code as give below:
Code: Select all
<body background="picture.jpg" bgproperties="fixed">


as simple as that..no need of css or anythingelse.
Kerala - India
PRO Level 3
User avatar
Posts: 58
Joined: Tue Dec 21, 2004 10:35 am
Location: Kerala(m)- India / Bharat(am)

Re: Using CSS

Postby dotcompals » Fri Jul 08, 2005 3:42 pm

ch00k wrote:rjordan wrote way back...
You can make your background not move by using css


I was wondering if there is a way that you can make the background of a table opaque. example would be you have a page background image that is fixed. background colour is white. You have a table with a blue background. You want to be able to see the background image through the table background.

I haven't been able to find anything about this, and it doesn't look like it can be done. Wondering if anyone else has tried this and if so, have you succeeded

Try the below one
Code: Select all
<table style="filter:alpha(opacity=65);" border="1">
Kerala - India
PRO Level 3
User avatar
Posts: 58
Joined: Tue Dec 21, 2004 10:35 am
Location: Kerala(m)- India / Bharat(am)

Postby DEVILSAN » Mon Jul 25, 2005 12:44 pm

need code to download particular css depending on the resol;ution of the client . & that CSS will contain the height width,etc specifications.......
PRO Level 13
User avatar
Posts: 751
Joined: Sat Oct 18, 2003 6:17 pm
Location: Canada
Real Name: san luthra

Postby poisonbl » Mon Jul 25, 2005 7:29 pm

hmm, javascript is your best bet here i think, just dump values into the string used as the filename, i'll look for something ...
Image
Image
PRO Level 10
User avatar
Posts: 432
Joined: Mon Nov 15, 2004 10:02 pm
Location: WVU -- Morgantown, WV. -- USA (TZ: -5 hrs GMT, -4 DST)

Postby DEVILSAN » Tue Jul 26, 2005 8:00 am

poisonbl wrote:hmm, javascript is your best bet here i think, just dump values into the string used as the filename, i'll look for something ...


^*^
Now i have written the whole code myself :whistle
PRO Level 13
User avatar
Posts: 751
Joined: Sat Oct 18, 2003 6:17 pm
Location: Canada
Real Name: san luthra

Postby adnanmadi » Tue Jul 26, 2005 8:37 am

I can help in c++/perl/oracle/VB/c/Java

don't hesitate to ask me anything
<img src='http://img118.imageshack.us/img118/9747/adnanmadisigblurfinalix7.jpg' border='0'>
"God only created a few perfect heads ... the rest he covered with hair."
PRO Level 11
User avatar
Posts: 495
Joined: Mon Mar 14, 2005 10:01 pm
Location: Ramallah, Palestine
Real Name: Adnan Madi

PreviousNext

Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 9 guests

cron
cron