Search:
Namespaces
Discussions
.NET v1.1
Feedback
How to port char to C#?
Messages
Related Types
This message was discovered on
microsoft.public.dotnet.framework.interop
.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...
Thomas Fisher
Hello All,
I'm researching how to port this to C#:
const char * viddecDebugNames[NVVIDDEC_DEBUG_LAST] =
{
"TIMING",
"TRACE",
"MEMORY",
"LOCKING",
"ERROR",
"CUSTOM1",
"CUSTOM2",
"CUSTOM3",
"VIDDEC",
"SPDEC",
"MPGVDEC",
"DVDSPDEC",
"L21DEC",
"DXVA"
};
But I'm not finding much, any ideas?
TIA for any help.
- T
Reply to this message...
Thomas Scheidegger [MVP] (VIP)
[Original message clipped]
in pure C#, try:
string[] viddecDebugNames = new string[] { "TIMING", "TRACE", ... };
but do you need this for PInvoke / Interop?
If so, you should check
http://msdn.microsoft.com/library/en-us/cpguide/html/cpcondefaultmarshalingforarrays.asp
and maybe apply attributes like:
[MarshalAs(
UnmanagedType
.LPArray, ArraySubType=
UnmanagedType
.LPStr]
--
Thomas Scheidegger - MVP .NET - 'NETMaster'
http://www.cetus-links.org/oo_dotnet.html
- http://dnetmaster.net/
Reply to this message...
Thomas Fisher
[Original message clipped]
Thanks for the reply. Yeah, it's for interop, I'll check out that link.
- T
Reply to this message...
System.Runtime.InteropServices.UnmanagedType
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com