Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compact Framework PInvoke and structure

Status
Not open for further replies.

guttaboys

Programmer
Oct 28, 2003
17
NO
Hello

I have some problems with calling unmanaged function from a c++ dll. My problem is how to handle the stucture wich I sent in to the function by a pointer. The struct i "emty" when i put it in the parameter, but I need to read the structure after the function call is finnished.

Anyone who have any sample code that can help me.

The struct look like this in c++

struct TNavVersionInfoV01
{
char iVersion[16];
INT iBuildNumber;
};

thomas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top