Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: pass filenumber to activex control


Message #1 by "Robin Becker" <n3ix@c...> on Thu, 23 May 2002 19:08:10
You cannot.
VB file numbers are local to the application, they are just an index entry
of a local array and do not mean anything to the file system.
Consider using the FileSystemObject, and see if you can pass that. I never
tried, but because it is a COM object it should be safe to do it.
Please keep us posted.

Marco


-----Original Message-----
From: Robin Becker [mailto:n3ix@c...]
Sent: Thursday, May 23, 2002 12:08 PM
To: professional vb
Subject: [pro_vb] pass filenumber to activex control


Is there a trick to passing a filenumber to a control?  The app already 
has a file open for binary i/o, and the control I'm adding will manage 
just a portion of the data in the file.  When the app gets to the 
appropriate spot in the file, I wanted it to just pass the filenumber to 
the control getdata method, but this results in a invalid filenumber error 
when the control tries to do the read.  (If I pass the filename to the 
control instead instead, the control can open and read the file, but that 
approach won't work for this app.)

Thanks.
Robin
 

  Return to Index