-
April 17th, 2014, 10:14 AM
#1
Converting C to C# - question about typedef voids
In converting some class code from C to C#, I have come across MANY typedef void *tConnHandle (and other such variables) in the header files. My question is, how do I utilize this in my C# code? What is type void? How can I create a connection handle, for example, when I don't know the data type? If I attempt:
tConnHandle conn = new CreateConnhandle();
or for a new array, called tLocator, how can I instantiate the variable? If I attempt:
tLocator[] lLocator = new tLocator[10];
I get the error: 'the type or namespace 'tLocator' [or tConnHandle] could not be found. Are you missing a using directive or an assembly reference?'
How SHOULD I reference the 'datatype'? Is void the datatype?
Tags for this Thread
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
|