Exception EntryPointNotFoundException
From: Ben (Ben_at_discussions.microsoft.com)
Date: 08/06/04
- Next message: Ying-Shen Yu[MSFT]: "Re: C# call VC COM, passing in memory block address"
- Previous message: Michael Martin: "PaperKind Enumeration and /* paper selections */ defined in winspo"
- Next in thread: Mattias Sjögren: "Re: Exception EntryPointNotFoundException"
- Reply: Mattias Sjögren: "Re: Exception EntryPointNotFoundException"
- Reply: Ben: "RE: Exception EntryPointNotFoundException"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 5 Aug 2004 18:27:02 -0700
I am trying to call into an unmanaged C++ DLL that exposes 1 function (using
__stdcall) defined as follows in a header:
BOOL BROWSE_API BrowseForData(HWND hwndOwner, LPWSTR defaultComment, LPWSTR
intialDirectory, LPWSTR path, int length);
BROWSE_API is the standard __declspec(dllexport) definition.
I can call the function from another unmanaged application without any
problems. However I get an EntryPointNotFoundException whenever I call from C#
In my C# program I have the function declared as:
[DllImport("DBBrowser.dll", CharSet=CharSet.Unicode)]
public static extern int BrowseForData(IntPtr hwndOwner, string
defaultComment, string intialDir, StringBuilder path, int length);
The first two strings are really inputs, and originally defined as LPCWSTR
in the C++ function, but that didn't work either.
Any help on this would be appreciated greatly!
Thanks in advance,
Ben
- Next message: Ying-Shen Yu[MSFT]: "Re: C# call VC COM, passing in memory block address"
- Previous message: Michael Martin: "PaperKind Enumeration and /* paper selections */ defined in winspo"
- Next in thread: Mattias Sjögren: "Re: Exception EntryPointNotFoundException"
- Reply: Mattias Sjögren: "Re: Exception EntryPointNotFoundException"
- Reply: Ben: "RE: Exception EntryPointNotFoundException"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|