CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2001
    Posts
    6

    dll download problem

    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


  2. #2

    Re: dll download problem

    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/im...ertaplanet.gif'>
    </center>

  3. #3
    Join Date
    Aug 2001
    Posts
    6

    Re: dll download problem

    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



  4. #4
    Join Date
    Aug 2001
    Posts
    6

    Re: dll download problem

    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



  5. #5

    Re: dll download problem

    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/im...ertaplanet.gif'>
    </center>

  6. #6
    Join Date
    Aug 2001
    Posts
    6

    Re: dll download problem

    the path is passed to the function inside the application.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured