Passing objects with pinvoke

  • Thread starter Thread starter Feldaspar
  • Start date Start date
F

Feldaspar

Hi 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
this Doctor object. Do I need to define a doctor object in .net?

Yes, you probably do. You need to know how the type is defined in the
original language and how to match that (if even possible) in a .NET
language.


Mattias
 
Back
Top