468,136 Members | 1,440 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,136 developers. It's quick & easy.

"Unable to find an entry point"

I have created a very simple DLL in VC++ 6.0, then created a very simple App in VC++ 6.0 to use the DLL and this works fine
When I try to use the same DLL in C#, with DLLImport, the app finds the DLL just fine but then says
"Unable to find an entry point

When I try to use "user32.dll" everything works, but doesn't with my DLL

I am using .NET Framework 1.1 and VisualStudio .NET 2003 on Windows 2000 Pro
Nov 22 '05 #1
2 2141
The export name may be mangled. Are you using a DEF file? Try to use dumpbin
/exports to see what the name of the function actually is.

In general you'll always want to use a DEF file.

--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

"Randy Crockett" <Ra************@ectinfo.com> wrote in message
news:78**********************************@microsof t.com...
I have created a very simple DLL in VC++ 6.0, then created a very simple App in VC++ 6.0 to use the DLL and this works fine. When I try to use the same DLL in C#, with DLLImport, the app finds the DLL just fine but then says: "Unable to find an entry point"

When I try to use "user32.dll" everything works, but doesn't with my DLL.

I am using .NET Framework 1.1 and VisualStudio .NET 2003 on Windows 2000

Pro
Nov 22 '05 #2
The missing DEF file was the problem
Once I created a def file, then rebuilt my DLL, it worked fine in both VC++ 6.0 and C#.NE

Thanks
Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Stephen Ferg | last post: by
reply views Thread by Pankaj Jain | last post: by
2 posts views Thread by Randy Crockett | last post: by
10 posts views Thread by Lung.S.wu | last post: by
4 posts views Thread by Oriane | last post: by
27 posts views Thread by didacticone | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.