type equivalency between C# and C/C++

  • Thread starter Thread starter Aaron Irizarry
  • Start date Start date
A

Aaron Irizarry

Is there a site in the web that displays what are the equivalent types
between C and C#? For example, a char in C/C++ is not the same as a char in
C#.

Thank you,
Aarons
 
Check :
Platform Invoke Data Types
in the NET Framework Developer's Guide

Willy.
 
Aaron,

You should have a look at [1] for a table describing some of the more
common types and read up on [2] for some more detailed information on
how to treat different datatypes when working with unmanaged code. You
should read about string since they usually cause problems since there are
so many types of strings.

You could also have a look at the microsoft.public.dotnet.languages.interop
newsgroup for questions regarding interaction with unmanaged code.

(be aware of linebreak)

[1] Platform Invoke Data Types
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconplatforminvokedatatypes.asp?frame=true

[2] Interoperating with Unmanaged Code
http://msdn.microsoft.com/library/e...nteroperatingwithunmanagedcode.asp?frame=true

Hope this helps,

//Andreas
 
Back
Top