all groups > dotnet compact framework > october 2007 >
You're in the

dotnet compact framework

group:

DLLImport question


DLLImport question JC
10/29/2007 10:31:00 PM
dotnet compact framework:
HI, I am trying to use LoadIcon function offered by API on managed code.
But I can not find out which dll this function belongs to, I need to find this
out in order to make this function available by DLLImport. How do I figure
this out?

Re: DLLImport question Christian Resma Helle
10/30/2007 12:00:00 AM
I would always do a quick google search before I check MSDN. Another clue is
that if the function starts with "SH" then it would probably come from
aygshell.dll, otherwise my first guess would be coredll.dll.

You can also do a dumpbin /exports on coredll.dll and aygshell.dll then save
those values in a text file and search on those files whenver you need them
:)

And oh yeah, LoadIcon is within coredll.dll. The OpenNETCF Smart Device
Framework made some clean wrapper classes for handling LoadIcon and
DestroyIcon

--
Regards,
Christian Resma Helle
http://christian-helle.blogspot.com


[quoted text, click to view]
RE: DLLImport question dbgrick
10/30/2007 6:34:01 AM
You could also use PInvoke.net to give you the dllimport templates for
several functions. I'm pretty sure LoadIcon is in there.

Rick D.
Contractor

[quoted text, click to view]
AddThis Social Bookmark Button