CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2007
    Posts
    4

    External program cannot load C# DLL

    Hi all,

    I created the dll originally in VS 2003. It used to come up fine when invoked with the same program I am using now (no change to that program).


    Then I made the project into an EXE using VS 2005 at home, and then re-create the dll using VS 2003 here at work.


    The re-created DLL works on other people's computers with .NET software on it but not mine (and also not on another laptop running Win2K which was lacking .NET framework files, but after installing the framework files, it gives an "DLLRegisterServer entrypoint was not found" message).


    When I do regsrv32 on my computer (which I know I dont have to do on Win XP, but it's interesting still) it gives me a message saying that
    LoadLibrary("myDLL") failed -- specified module could not be found.

    and if fails to register.

    (but a look into regedit shows the DLL present in the registry)


    The DLL is in C:\DEWS\Proj\Dews_\

    The program which calls the DLL is in C:\DEWS\Proj\Dews_\e-inst\

    I also ran set PATH=%PATH%;C:\DEWS\Proj\Dews_\ with no effect.

    The DLL is invoked from within the program, with a function key.


    Any ideas?

    Thanks

  2. #2
    Join Date
    Nov 2006
    Location
    North Bend, WA
    Posts
    487

    Re: External program cannot load C# DLL

    Have you examined the dll with Depends?

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