PInvoke Question

M

Michael

Hi all,

Does anybody know that if trying to PInvoke into an unmanaged DLL which only
exports functions per specific O/S will show the "Unable to find entry point
.... in DLL ..." exception message if running/debugging on an unexported O/S
flavor?

Thanks,
-MH
 
D

dotnetchic

I've used PInvoke with a mixed assembly (unmanaged C++, C++/CLI and C#
on windows), but I'm not sure what you mean by "unexported O/S flavor."
What, exactly, is it you're trying to do? i.e., what
platforms/functions?

Sharon
 
T

Tasos Vogiatzoglou

Michael,

I assume that by unexported you mean unsupported. In general, if the
function entry points
can not be found, you will have an exception.

Regards,
Tasos
 
B

Barry Kelly

Michael said:
Does anybody know that if trying to PInvoke into an unmanaged DLL which only
exports functions per specific O/S will show the "Unable to find entry point
... in DLL ..." exception message if running/debugging on an unexported O/S
flavor?

If I understand you right, you'll have to use a delegate and LoadLibrary
/ GetProcAddress approach.

-- Barry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top