Solved

dllregisterserver entrypoint was not found

Posted on 1999-01-28
11
940 Views
Last Modified: 2008-02-20
I have made a dll's which runs perfectly under windows95 however under windows nt I got the message dll not found.

Tried regsvr32 dllname.dll with as result the following message :

Dllregisterserver entry point was not found. DllRegisterServer may not be exported, or a corrupt version of dllname.dll may be in memory

I am not understanding this why because of the fact that the dll is not an OLE server neither of these things the only wicked thing is that it works under windows95.

Help me out dudes.

regards,

Cono
0
Comment
Question by:Ronald Buster
  • 4
  • 3
  • 2
  • +1
11 Comments
 
LVL 20

Expert Comment

by:Madshi
ID: 1363672
Hi Cono,

I can't explain why it works with win95 and NOT with NT. Perhaps you should just try to add this to your dll (if you don't have done this already):

uses comServ;

exports DllGetClassObject, DllCanUnloadNow, DllRegisterServer, DllUnregisterServer;

Regards, Madshi.
0
 
LVL 20

Expert Comment

by:Madshi
ID: 1363673
I think you need D3 or D4 to compile it...
0
 
LVL 3

Expert Comment

by:philipleighs
ID: 1363674
If it is not a ole server, then there is no point calling regsvr32. All it does is load the dll, locate and find that function, call it, then close the library.

Cono, I know you're not a bozo so forgive me if I offend you with such obvious comments like these:
Is the dll in \system or \system32?
Is it on the path?
Try putting it in the exe dir.

Also, when you declare the function in your exe, type external 'dllname.dll' at the end, not just external 'dllname';
I was bitten by this once, but it was a D1 program on NT.

Cheers,
Phil.

0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 1363675
I think Madshi has it...

Raymond.
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 1363676
Umm.. On reflection I think the answer is none of the above.

Do you declare youre functions like this (in an interface unit)?:

procedure MyFunc; external 'MyDLL';

if so change them so they look like this:

procedure MyFunc; external 'MyDLL.DLL';

NT is touchy about missing extensions on DLL filenames...

Let me know how you go.

Cheers,

Raymond.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 3

Expert Comment

by:philipleighs
ID: 1363677
Raymond, Dude!

Read my comment!

Cheers,
Phil.

0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 1363678
Botherations! My brain has turned to mush - I'm outta here!

Raymond.
0
 
LVL 3

Author Comment

by:Ronald Buster
ID: 1363679
He Madshi,

Answer the question and you receive the points. Fair is fair ok.

regards,

Cono
0
 
LVL 20

Accepted Solution

by:
Madshi earned 100 total points
ID: 1363680
So I guess, my comment helped you?
If not: please reject my answer...   :-)

Thank you, Madshi.
0
 
LVL 3

Author Comment

by:Ronald Buster
ID: 1363681
Madshi,

Yes your comment solved my problem

However it is kind of strange that the same dll works on windows 95 but not on windows NT without registering the dll with regsvr32. Don't you agree with me

Anyhow thanks,

regards,

Cono
0
 
LVL 20

Expert Comment

by:Madshi
ID: 1363682
Yes I do. But I'm used to this kind of problems...   :-(
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now