marshal string data from unmanaged to managed
From: zDog (zDog_at_discussions.microsoft.com)
Date: 10/19/04
- Next message: Nicholas Paldino [.NET/C# MVP]: "Re: WebRequest Upload File"
- Previous message: Shawn Mesiatowsky: "Re: WebRequest Upload File"
- Next in thread: Nicholas Paldino [.NET/C# MVP]: "Re: marshal string data from unmanaged to managed"
- Reply: Nicholas Paldino [.NET/C# MVP]: "Re: marshal string data from unmanaged to managed"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 19 Oct 2004 11:49:06 -0700
I found a lot of information on passing data from C# to a C++ dll
What I cannot find is a way to return C++ structs of TCHAR string data back
to the C# managed code!
typedef struct // C++ data that needs to be returned to the caller (C#)
{
short snOperParams;
TCHAR szNFPath[PATH_SIZE];
TCHAR szSSFile[PATH_SIZE];
TCHAR szExeFile[PATH_SIZE];
TCHAR szOpLibIFile[PATH_SIZE];
TCHAR szOpLibMFile[PATH_SIZE];
TCHAR szDefaultIFile[PATH_SIZE];
TCHAR szDefaultMFile[PATH_SIZE];
TCHAR szMiscFile[PATH_SIZE];
TCHAR szAuxFile[PATH_SIZE];
TCHAR szSuffix[PATH_SIZE];
} files;
- Next message: Nicholas Paldino [.NET/C# MVP]: "Re: WebRequest Upload File"
- Previous message: Shawn Mesiatowsky: "Re: WebRequest Upload File"
- Next in thread: Nicholas Paldino [.NET/C# MVP]: "Re: marshal string data from unmanaged to managed"
- Reply: Nicholas Paldino [.NET/C# MVP]: "Re: marshal string data from unmanaged to managed"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|