Click to See Complete Forum and Search --> : dll download problem


rajiv khandelwal
August 31st, 2001, 03:11 AM
Hi,
I have made an activeX control and this control internally calls a DLL (made in VC++). The control seems to download allright, but when i use a particular feature in the control where this DLL is called, it says, Run time error 48, file not found. I have used the standard Package and Deployment wizard and as of now I am 'test' signing the code.
The dll does not have any dependency and,
the INF file contains something like this,
[mydllfilename.DLL]
file-win32-x86=thiscab
RegisterServer=no
DestDir=11
FileVersion=1,0,0,1


I also have searched the hard disk for the DLL file (to see if it is downloading, but it is not found on the HDD).
Please suggest some way out of it.
Thanks in advance.
Rajiv

berta
August 31st, 2001, 03:27 AM
how U read INF file?
U use Open filename as input as ...
or U use readprivateprofilestring() api?

"file not found"->the file is DLL or INF?



<center>
<HR width=80%>
<img src='http://web.tiscali.it/bertaplanet/images/bertaplanet.gif'>
</center>

rajiv khandelwal
August 31st, 2001, 03:46 AM
well,
I am not accessing the INF file through any of my programs, it is there in the CAB file for the browser to read and process. File not found message is coming for the DLL file. and not for the INF file.
The error occurs only when I try to access the DLL from my code.
i am accessing the DLL with the following code

Declare Function DsfCompress Lib mydllfilename.dll" (ByVal filename As String) As Long

Is it correct ? or do i need to change something here,? also, the DLL does not have any dependency information.
Thanks in advance
Rajiv

rajiv khandelwal
August 31st, 2001, 03:47 AM
well,
I am not accessing the INF file through any of my programs, it is there in the CAB file for the browser to read and process. File not found message is coming for the DLL file. and not for the INF file.
The error occurs only when I try to access the DLL from my code.
i am accessing the DLL with the following code

Declare Function myfunction Lib mydllfilename.dll" (ByVal filename As String) As Long

Is it correct ? or do i need to change something here,? also, the DLL does not have any dependency information.
Thanks in advance
Rajiv

berta
August 31st, 2001, 11:12 AM
Declare Function DsfCompress Lib "mydllfilename.dll" (ByVal filename As String) As Long .. yes.. it seems correct...

but filename?? how is the path of this filename?



<center>
<HR width=80%>
<img src='http://web.tiscali.it/bertaplanet/images/bertaplanet.gif'>
</center>

rajiv khandelwal
August 31st, 2001, 11:21 PM
the path is passed to the function inside the application.