Click here to Skip to main content
15,899,026 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
Generalbarcode on C lang Pin
france_philippines8-Mar-05 14:26
france_philippines8-Mar-05 14:26 
GeneralRe: barcode on C lang Pin
Christian Graus8-Mar-05 14:40
protectorChristian Graus8-Mar-05 14:40 
GeneralNewBie+FirstPost Pin
llordanich7-Mar-05 7:41
llordanich7-Mar-05 7:41 
GeneralRe: NewBie+FirstPost Pin
Christian Graus8-Mar-05 14:45
protectorChristian Graus8-Mar-05 14:45 
GeneralRe: NewBie+FirstPost Pin
covansys20008-Mar-05 21:00
covansys20008-Mar-05 21:00 
GeneralWrappers for Win32 classes Pin
AshishM6-Mar-05 23:42
AshishM6-Mar-05 23:42 
GeneralRe: Wrappers for Win32 classes Pin
Christian Graus8-Mar-05 14:46
protectorChristian Graus8-Mar-05 14:46 
GeneralCLR interpretation (type conversion between managed c++ and c#) Pin
sympthom 96-Mar-05 4:02
sympthom 96-Mar-05 4:02 
Im trying to call a function in a class written in managed c++, from c#. The compiler interpret the types WCHAR*, BSTR and wchar_t* in managed c++ to a ushort* in c#.

This is the C# code calling the method _logonUserWithSSPI in the managed c++ code:

pExistingTokenHandle = oSSPIHelper._logonUserWithSSPI(NTLM", TOKEN_QUERY, "DOMAIN", "test", "smurf");

This is the managed c++ code (.h):

HANDLE _logonUserWithSSPI(WCHAR* pszSSP, DWORD grfDesiredAccessToToken, BSTR pszAuthority, wchar_t* szPrincipal, wchar_t* pszPassword);


How could I call this _logonUserWithSSPI method and pass the strings to it (convert a string to ushort*)?

WTF | :WTF:
GeneralRe: CLR interpretation (type conversion between managed c++ and c#) Pin
ursus zeta6-Mar-05 12:38
ursus zeta6-Mar-05 12:38 
GeneralRe: CLR interpretation (type conversion between managed c++ and c#) Pin
sympthom 96-Mar-05 20:27
sympthom 96-Mar-05 20:27 
GeneralRe: CLR interpretation (type conversion between managed c++ and c#) Pin
sympthom 96-Mar-05 20:41
sympthom 96-Mar-05 20:41 
GeneralRe: CLR interpretation (type conversion between managed c++ and c#) Pin
ursus zeta12-Mar-05 9:03
ursus zeta12-Mar-05 9:03 
GeneralPertaining to ReadDirectoryChangesW -windows file system function Pin
lms0073-Mar-05 18:35
lms0073-Mar-05 18:35 
QuestionQuickest Way to Wrap Standard Win32 DLL? Pin
RichB3-Mar-05 5:25
RichB3-Mar-05 5:25 
AnswerWhy didn't Microsoft think of this? Pin
ursus zeta5-Mar-05 12:05
ursus zeta5-Mar-05 12:05 
GeneralUnzip the file in vb.net Pin
Thirumalaraj3-Mar-05 4:28
Thirumalaraj3-Mar-05 4:28 
GeneralRe: Unzip the file in vb.net Pin
Christian Graus6-Mar-05 13:00
protectorChristian Graus6-Mar-05 13:00 
Generaladd a button on Save As dialogue tool bar Pin
MihaiChioariu2-Mar-05 0:44
MihaiChioariu2-Mar-05 0:44 
GeneralRe: add a button on Save As dialogue tool bar Pin
Christian Graus2-Mar-05 11:10
protectorChristian Graus2-Mar-05 11:10 
Generallibc usage in managed code Pin
Eric Schaefer1-Mar-05 21:20
Eric Schaefer1-Mar-05 21:20 
Generalconfused Pin
ursus zeta5-Mar-05 12:28
ursus zeta5-Mar-05 12:28 
GeneralRe: confused Pin
Eric Schaefer6-Mar-05 18:50
Eric Schaefer6-Mar-05 18:50 
GeneralC# and Custom C++ interfaces Pin
vad_kr27-Feb-05 21:06
vad_kr27-Feb-05 21:06 
GeneralRe: C# and Custom C++ interfaces Pin
ursus zeta28-Feb-05 14:20
ursus zeta28-Feb-05 14:20 
GeneralSyntax for storing an adress to a function pointer from outside a class in GNU g++ Pin
Armini25-Feb-05 7:29
Armini25-Feb-05 7:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.