
File Association/reading text file data
Seeing as how you are only asking one question, I will only answer your
first question.
1) In order to get the Shell to recognize the existance of your program and
have it execute when the user double clicks on a file, you must register
your program with Windows. I'm sure you can find the nessasary code for
doing this in the Setup1 example project that ships with Visual Basic.
Anway, the shell passes the filename of the file double clicked (in this
case, the file with the .hhd extension) as a command line parameter to your
application. To retrieve the command line parameters, use the built in VB
Command() function. Reading what is in this .hhd file is entirely up to you
from here.
Howard Henry Schlunder
Quote:
> I am currently writing a VB app and I have 2 questions.
> 1) How do I get my exe file to run with the double click of a file, for
> example, my when I click on a file with the extention of .hhd the .exe
> file runs and processes the data in the file? thanks in advance
> Sent via Deja.com http://www.deja.com/
> Before you buy.