File Association/reading text file data 
Author Message
 File Association/reading text file data

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.*-*-*.com/
Before you buy.



Mon, 24 Jun 2002 03:00:00 GMT  
 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.



Mon, 24 Jun 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Reading from a text file and writing toa text file from Vis Bas 6.0

2. File Association and passing file name of associated file to VB App

3. Max. Size when reading a text data file

4. Reading Data From Text File

5. QBasic: Reading specific data from a text file?

6. NEED TO READ DATA FROM A TEXT FILE AND PUT IT INTO AN ACCESS TABLE

7. Suggestions in reading text file data.

8. reading data from a text file??

9. HELP!!!! Question about Read Data From Text File

10. Reading Data from Text file

11. Read Data from text file?

12. how to read data from a text file?

 

 
Powered by phpBB® Forum Software