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

Managed C++/CLI

 
AnswerRe: Parallel Port input/output Pin
Gordon Brandly11-Apr-06 7:40
Gordon Brandly11-Apr-06 7:40 
Questionmanaged c++ in mobile development Pin
GDavy5-Apr-06 0:25
GDavy5-Apr-06 0:25 
Questionproject help Pin
reyou4-Apr-06 5:42
reyou4-Apr-06 5:42 
AnswerRe: project help Pin
George L. Jackson4-Apr-06 12:44
George L. Jackson4-Apr-06 12:44 
AnswerRe: project help Pin
toxcct4-Apr-06 22:02
toxcct4-Apr-06 22:02 
AnswerRe: project help Pin
Cedric Moonen4-Apr-06 23:02
Cedric Moonen4-Apr-06 23:02 
GeneralRe: project help Pin
reyou5-Apr-06 4:43
reyou5-Apr-06 4:43 
QuestionI got some parameter problems Pin
GDavy4-Apr-06 2:26
GDavy4-Apr-06 2:26 
I`m writing a dll in C++ that uses managed extensions. Its purpose is to wrap a .NET library I wrote so that I can use it in an existing C++ project I have here.

All goes smooth, but I got some problems now calling a C# function of the dll that has an out parameter.

function definition in C#:
public enumMsgType DoYourThing(string sMethod, ref Single Cnt, out string outParam, string inParam)

my wrapper function is:
CMyWrapperObj::wrMessageType CMyWrapperObj::InvokeMethod( LPCTSTR sMethod, float& nNum1, CString& sOutParam, LPCTSTR sInParam)<br />
{<br />
	return static_cast<CMyWrapperObj::wrMessageType>((*this)->InvokeMethod(sMethod, &nNum1, sOutParam,sInParam));<br />
}<br />


I get a build error on the sOutParam parameter:
MyWrapper.cpp(60) : error C2664: 'COMCaller::ManagedObj::DoYourThing' : cannot convert parameter 3 from 'CString' to 'System::String __gc *__gc * '
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called


So I guess I need to call this function not with a CString parameter.. .I also tried a std::string variable to pass in the parameter list, but also that doesn^t work... It`s probably something obveous that I`m overlooking, but if you could point me to it I would be gratefull

Greetings,
Davy
AnswerRe: I got some parameter problems Pin
toxcct4-Apr-06 2:31
toxcct4-Apr-06 2:31 
GeneralRe: I got some parameter problems Pin
GDavy4-Apr-06 3:22
GDavy4-Apr-06 3:22 
Questionis there any function similar to sprintf in C++.Net? Pin
Kranti12519844-Apr-06 1:08
Kranti12519844-Apr-06 1:08 
AnswerRe: is there any function similar to sprintf in C++.Net? Pin
2bee 4-Apr-06 1:22
2bee 4-Apr-06 1:22 
GeneralRe: is there any function similar to sprintf in C++.Net? Pin
George L. Jackson4-Apr-06 12:35
George L. Jackson4-Apr-06 12:35 
QuestionIncluding .dll in /clr:pure project [VC++ '05] Pin
jantimmerman2-Apr-06 21:40
jantimmerman2-Apr-06 21:40 
AnswerRe: Including .dll in /clr:pure project [VC++ '05] Pin
Milton Karimbekallil3-Apr-06 1:35
Milton Karimbekallil3-Apr-06 1:35 
GeneralRe: Including .dll in /clr:pure project [VC++ '05] Pin
jantimmerman3-Apr-06 3:04
jantimmerman3-Apr-06 3:04 
GeneralRe: Including .dll in /clr:pure project [VC++ '05] Pin
Milton Karimbekallil3-Apr-06 13:53
Milton Karimbekallil3-Apr-06 13:53 
GeneralRe: Including .dll in /clr:pure project [VC++ '05] Pin
jantimmerman3-Apr-06 21:27
jantimmerman3-Apr-06 21:27 
Questionmad libs Pin
jwacho52-Apr-06 11:59
jwacho52-Apr-06 11:59 
QuestionCFileDialog doesn't update when I change the file type. Pin
IlanTal1-Apr-06 19:46
IlanTal1-Apr-06 19:46 
Questionconvert System::String to char Pin
leonelsr1-Apr-06 9:21
leonelsr1-Apr-06 9:21 
AnswerRe: convert System::String to char Pin
2bee 1-Apr-06 12:00
2bee 1-Apr-06 12:00 
Questionargs in the "new" main() Pin
leonelsr31-Mar-06 11:48
leonelsr31-Mar-06 11:48 
AnswerRe: args in the &amp;quot;new&amp;quot; main() Pin
2bee 31-Mar-06 23:00
2bee 31-Mar-06 23:00 
Questionlooping through strings C++ .NET Pin
richiebaby31-Mar-06 4:05
richiebaby31-Mar-06 4:05 

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.