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

Managed C++/CLI

 
GeneralCursors in .NET Assembly DLL Pin
Paul Selormey19-Jan-03 13:19
Paul Selormey19-Jan-03 13:19 
Generalarm animation Pin
Anonymous17-Jan-03 14:58
Anonymous17-Jan-03 14:58 
GeneralNo output from << operator in console app Pin
malmi17-Jan-03 10:51
malmi17-Jan-03 10:51 
GeneralRe: No output from << operator in console app - code correction Pin
malmi17-Jan-03 11:08
malmi17-Jan-03 11:08 
GeneralRe: No output from << operator in console app - code correction Pin
Jeff J18-Jan-03 0:17
Jeff J18-Jan-03 0:17 
GeneralRe: No output from << operator in console app - code correction Pin
malmi18-Jan-03 6:02
malmi18-Jan-03 6:02 
GeneralStupid question about VC6 to VC.Net migration reason Pin
Member 13901616-Jan-03 0:23
Member 13901616-Jan-03 0:23 
GeneralSystem::String/StringBuilder as out parameter Pin
Paul Selormey14-Jan-03 22:23
Paul Selormey14-Jan-03 22:23 
Hello All,
What is the recommended way to handle strings out parameters
of functions/methods?
Interestingly, I could not find single example in any book and just
not confidence on which way will work and across languages like
VB.NET and C#.
Any help?

The simply one I am currently considering (which works) is:
#using <mscorlib.dll>

using namespace System;
using namespace System::Text;

void GetString(StringBuilder* pOut)
{
   pOut->set_Length(0);
   pOut->Append("Out--string");
}

int _tmain()
{
   StringBuilder* pOut = new StringBuilder("In--string");

   GetString(pOut);

   Console::WriteLine(pOut->ToString());

   return 0;
}

Any better solution? Something that could be used in other languages too.

Best regards,
Paul.


Jesus Christ is LOVE! Please tell somebody.
GeneralRe: System::String/StringBuilder as out parameter Pin
Jeff J15-Jan-03 10:16
Jeff J15-Jan-03 10:16 
GeneralRe: System::String/StringBuilder as out parameter Pin
Paul Selormey15-Jan-03 15:40
Paul Selormey15-Jan-03 15:40 
GeneralRe: System::String/StringBuilder as out parameter Pin
Paul Selormey15-Jan-03 15:48
Paul Selormey15-Jan-03 15:48 
GeneralRe: System::String/StringBuilder as out parameter Pin
Jeff J16-Jan-03 13:29
Jeff J16-Jan-03 13:29 
GeneralHelp me!!! A issue of wrapping unmanaged class with Managed C++ Pin
Anonymous14-Jan-03 3:23
Anonymous14-Jan-03 3:23 
GeneralRe: Help me!!! A issue of wrapping unmanaged class with Managed C++ Pin
Anonymous14-Jan-03 21:43
Anonymous14-Jan-03 21:43 
GeneralRe: Help me!!! A issue of wrapping unmanaged class with Managed C++ Pin
Paul Selormey14-Jan-03 22:25
Paul Selormey14-Jan-03 22:25 
Generalstatic constructors - still cannot get it! Pin
Paul Selormey14-Jan-03 0:55
Paul Selormey14-Jan-03 0:55 
Generalstd::string marshalling Pin
Member 1043939-Jan-03 12:39
Member 1043939-Jan-03 12:39 
GeneralRe: std::string marshalling Pin
Jeff J9-Jan-03 20:24
Jeff J9-Jan-03 20:24 
Generalweb project with Visual C++ Pin
naradaji8-Jan-03 4:23
naradaji8-Jan-03 4:23 
GeneralRe: web project with Visual C++ Pin
AlexO8-Jan-03 5:23
AlexO8-Jan-03 5:23 
GeneralRe: web project with Visual C++ Pin
naradaji8-Jan-03 20:54
naradaji8-Jan-03 20:54 
QuestionHow can build an exe file by VS .NET to execute it on Windows_98? Pin
Behzad Ebrahimi7-Jan-03 0:13
Behzad Ebrahimi7-Jan-03 0:13 
AnswerRe: How can build an exe file by VS .NET to execute it on Windows_98? Pin
Paul Ingles7-Jan-03 1:26
Paul Ingles7-Jan-03 1:26 
AnswerRe: How can build an exe file by VS .NET to execute it on Windows_98? Pin
Brian Olej8-Jan-03 13:00
Brian Olej8-Jan-03 13:00 
Generalcaught between managed and unmanaged C++ Pin
Member 10439331-Dec-02 5:26
Member 10439331-Dec-02 5:26 

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.