CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 15
  1. #1
    Join Date
    Jun 2002
    Location
    Holland
    Posts
    54

    DllRegisterServer entry point was not found

    Hi there

    I made a program that installs .dll files, it works fine until I try installing / registering psapi.dll.
    It gives the following error:


    ==============================================


    C:\WINDOWS\system32\psapi.dll was loaded, but the DllRegisterServer entry point was not found.

    This file can not be registered.


    ==============================================


    But the users of my program do need the dll so how am I supposed to get it to work on their computers?

    (I use Regsvr32 to register the dlls)
    «(?¿|ßµrÑ3R|¿?)»

    Operating System: Windows XP Pro
    Programming Lang: Visual Basic 6.0

  2. #2
    Join Date
    Jun 2002
    Location
    Holland
    Posts
    54
    Anyone?
    «(?¿|ßµrÑ3R|¿?)»

    Operating System: Windows XP Pro
    Programming Lang: Visual Basic 6.0

  3. #3
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    entrypoint not found

    You usually get this error when the dll exists, but is not of correct type (ie: non com dll, but one like the Api dll) or it is for a different Os version (ie: a dll wich is developed for win9x and you're trying to register it on Win Xp...)
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  4. #4
    Join Date
    Dec 2002
    Location
    India
    Posts
    76
    To add to previous reply possiblities u will get this error when ur dll is corrupted bu some means....try compiling again and register

  5. #5
    Join Date
    May 2008
    Posts
    1

    Re: DllRegisterServer entry point was not found

    hi,

    I had the problem with psapi.dll generating GetProcessImageNameW missing error. When I tried to register , it said

    PSAPI.DLL loaded but DLLRegisterServer Entry point was not found.!


    I also had IE7 beta that was causing the error.

    This worked for me.!!!!

    1) Download the latest psapi.dll
    http://www.dlldump.com/dllfiles/P/psapi.dll

    2) rename all instances of psapi.dll in your system to psapibackup.dll

    3.) Make sure there is only ONE PSAPI.DLL file and that is in the system32 folder of windows directory.

    reboot the system and it worked like a charm for me!!! :-)


    By the way! , I also removed IE7 beta just to avoid any errors.

  6. #6
    Join Date
    Apr 2008
    Posts
    8

    Question Re: DllRegisterServer entry point was not found

    Quote Originally Posted by Burn3r View Post
    Hi there

    I made a program that installs .dll files, it works fine until I try installing / registering psapi.dll.
    It gives the following error:


    ==============================================


    C:\WINDOWS\system32\psapi.dll was loaded, but the DllRegisterServer entry point was not found.

    This file can not be registered.


    ==============================================


    But the users of my program do need the dll so how am I supposed to get it to work on their computers?

    (I use Regsvr32 to register the dlls)
    =================================================================

    Hello All,

    I have created a DLL in Visual C++ 6, for use in Visual Basic 6. It's working fine I can call it from VB, but still i can't register the DLL, I get the same error. When i tried to registering the DLL ,I got the error "example1.dll was loaded, but the DLLregisterserver entry point was not found etc...". Is this a serious error? Any help appreciated.

    I followed this procedure for registering the dll
    Step1:Copy the dll to the folder [c:\WINDOWS\system32]
    Step2:Afterwards in the run type the command
    Regsvr32 "C:\WINDOWS\system32\example1.dll"
    or
    regsvr32 example1.dll

    after running that command i am getting the above error.


    Thanks in advance.
    please reply for this post if any body know.

  7. #7
    Join Date
    Sep 2007
    Posts
    65

    Angry Re: DllRegisterServer entry point was not found

    HI Radhika & Burnr3

    The Dll which u are trying to register is written in vc++ or c++ hence these dll's does'nt need to be registered ..It just need to be in the directory/path as needed.

  8. #8
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: DllRegisterServer entry point was not found

    Old thread, long dead. You have to register ALL dll's.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  9. #9
    Join Date
    Apr 2009
    Posts
    394

    Re: DllRegisterServer entry point was not found

    There must be a new graduating class of wizards because I have not seen this many necromancers in a long time and just because they graduated they think they can go around raising the dead... Proper manners these youngsters need, me thinks we should teach...

  10. #10
    Join Date
    Apr 2008
    Posts
    8

    Re: DllRegisterServer entry point was not found

    Hello All,

    I have created a win32 DLL in Visual C++ 6, for use in Visual Basic 6. It's working fine I can call it from VB, but still i can't register the DLL, I got the error. When i tried to registering the DLL ,I got the error "example1.dll was loaded, but the DLLregisterserver entry point was not found etc...". Is this a serious error? Any help appreciated.

    I followed this procedure for registering the dll
    Step1:Copy the dll to the folder [c:\WINDOWS\system32]
    Step2:Afterwards in the run type the command
    Regsvr32 "C:\WINDOWS\system32\example1.dll"
    or
    regsvr32 example1.dll

    after running that command i am getting the above error.


    Thanks in advance.
    please reply for this post if any body know.

  11. #11
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: DllRegisterServer entry point was not found

    @vb5prgrmr: Nobody willing seems your teaching to take, thinks I.

    @radhika: Look up, your question has been already answered. A dll like that does not have to be registered.

  12. #12
    Join Date
    Apr 2008
    Posts
    8

    Question Re: DllRegisterServer entry point was not found

    Quote Originally Posted by WoF View Post
    @vb5prgrmr: Nobody willing seems your teaching to take, thinks I.

    @radhika: Look up, your question has been already answered. A dll like that does not have to be registered.
    Hello,


    I have created a win32 DLL in Microsoft Visual C++ 6.0.I registered the DLL in windows by the following method

    Step1:Copied the dll to the folder [c:\WINDOWS\system32]
    Step2:Went to start\\run prompt and gave the command regsvr32 "C:\WINDOWS\system32\example1.dll" or regsvr32 example1.dll

    The Dll didnt get registered and a popup said the error below:
    "example1.dll was loaded, but the DLLregisterserver entry point was not found etc..."

    win32 DLL name : example1.dll

    I would like to use the functionality of the DLL only by registering it as Windows DLL but not through including its function definition(or calling DLL by its name) in the code anywhere.

    If there is anyone who has come across with the same problem and resolved it,
    kindly let us know more information on this issue.

    Thanks.

  13. #13
    Join Date
    Apr 2008
    Posts
    8

    Re: DllRegisterServer entry point was not found

    Hello All,


    I have created a win32 DLL in Microsoft Visual C++ 6.0.I registered the DLL in windows by the following method

    Step1:Copied the dll to the folder [c:\WINDOWS\system32]
    Step2:Went to start\\run prompt and gave the command regsvr32 "C:\WINDOWS\system32\example1.dll" (or) regsvr32 example1.dll

    The Dll did not get registered and a popup said the error below:
    "example1.dll was loaded, but the DLLregisterserver entry point was not found etc..."

    win32 DLL name : example1.dll

    I would like to use the functionality of the DLL only by registering it as Windows DLL but not through including its function definition(or calling DLL by its name) in the code anywhere.

    If there is anyone who has come across with the same problem and resolved it,
    kindly let us know more information on this issue.

    Thanks.

  14. #14
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: DllRegisterServer entry point was not found

    Seems to be a bot which is attaching the same question over and over again...

    This IS how a dll is to be used: You HAVE to declare its functions somewhere in your code to make them useable.

    Another way of making functions of a dll known to your program without declaring is, you wrie a type-library file. In a way you have to write all the declarations in an external textfile, using the MIDL (microsoft interface description language) and use an apropriate tool to convert this into a .tlb (type library) which you can register with REGTLB. When you set a reference to this tlb then, you don't need to declare the functions in VB anymore.

    But making a tlb requires you to learn MIDL syntax and usage of the compiler, and maybe it is easier to write the declarations in standard VB style with Declare Function lib "mylib.dll" (...

    Here is more detail: http://msdn.microsoft.com/en-us/library/ms221567.aspx

  15. #15
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: DllRegisterServer entry point was not found

    I'm closing this thread now.

    Start a new thread radhika.s

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