-
January 15th, 2014, 04:23 PM
#1
Instantiating and using Opaque struct in C Sharp
Hello....
I have the below limited info provided from some 3rd party. Due to security reasons no more info will be available.
I am trying to use this info in C# and I am not sure how to use it. I have tried allocating memory but that did not help.
Can someone provide inputs on this?
I am new to C# and have only few hours worth of experience with it.
********************************************************
/* Opaque function */
typedef struct _Opaque_Func *Opaque_Func;
// main function
int
main(int argc, char* argv[])
{
Opaque_Func abc = NULL;
/* Function 1 */
err = Function1 (&abc, &xyz);
if (err) {
fprintf(print error here);
}
/* Function2 */
err = Function2(abc, 0);
if (err) {
fprintf(print error here);
}
}
********************************************************
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|