tags:

views:

34

answers:

2

Hello,

Is it possible to do P/I if I only have the .header interface file with methods exposed?

Thanks for your guidance! Cheers!

+1  A: 

If you mean code and compile your PInvoke call, yes you can do it with the header only.

Of course if you want to run it you'll need the DLL too.

CharlesB
How difficult will this task be?I can't seem to find any information on P/Invoke other than www.pinvoke.net.What sort of information do I need? Do I need to download any external software, or learn P/Invoke syntax or something?Thanks!
It is not difficult, it just takes some time to understand the logic. You'll find good tutorials on Google. There is apparently an addin for Visual Studio that can help you: http://www.red-gate.com/products/pinvoke.net(I haven't tested it)
CharlesB
A: 

Do you need to create a different class for each structs?

Also, does anyone knows of any website that has a table linking between different unmanaged to managed?

For example, how to specify #define found in C++ in C# etc.