|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Passing objects with pinvokeHi there,
I need some help with p invoke. I have some win 32 dlls that I need to call a functions in. This functions require objects. eg: FUNCTION MailMerge(oDr AS Doctor, lAddToPatient := TRUE AS LOGIC) AS LOGIC PASCAL Now I want to call this from my .net code. How do I go about creating this Doctor object. Do I need to define a doctor object in .net? Can I create the doctor object some other way? Thank you for your help. >Now I want to call this from my .net code. How do I go about creating Yes, you probably do. You need to know how the type is defined in the>this Doctor object. Do I need to define a doctor object in .net? original language and how to match that (if even possible) in a .NET language. Mattias -- Mattias Sjögren [C# MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com Please reply only to the newsgroup. |
|||||||||||||||||||||||