Click here to Skip to main content
15,919,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hoping someone can point me in the right direction here. I have a c++ library which has the following struct and function exposed...

C++
typedef struct nebisconfused_T
{
char myname;
char* cvalue;
char** allgivennames;
}nebisconfused;


C++
addConfused(const int iFile, const nebisconfused* pSet);


I've been going round in circles and just can't seem to get my head around how I can define a c# struct or class that will pass the values through ok using addConfused.

it's just that allgivennames which is giving me a headache!

What I've done thus far - attempted to search for what a c++ * and c++ ** is in c# searched for C++ vectors to c# but alas, I'm still confused.

Thus - if anyone can help out with either - explaining what char** allgivennames is / any particular search terms I could google and/or pointers to some good example code I can learn from to get this sorted, I'd appreciate it.

Thanks in advance.
Posted

1 solution

Hi, have you tried:

Check this answer from SO, or just Google for csharp pinvoke char**
Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900