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

Managed C++/CLI

 
GeneralRe: Need Help with Managed arrays in C++... Pin
markmalin5-Jun-03 2:40
markmalin5-Jun-03 2:40 
Generalexctract avi information Pin
cbiacca1-Jun-03 23:25
cbiacca1-Jun-03 23:25 
GeneralRe: exctract avi information Pin
leppie2-Jun-03 8:51
leppie2-Jun-03 8:51 
GeneralRe: exctract avi information Pin
cbiacca2-Jun-03 13:43
cbiacca2-Jun-03 13:43 
GeneralRe: exctract avi information Pin
leppie3-Jun-03 6:59
leppie3-Jun-03 6:59 
QuestionString to Int? Pin
Anonymous31-May-03 4:19
Anonymous31-May-03 4:19 
AnswerRe: String to Int? Pin
David Stone31-May-03 6:24
sitebuilderDavid Stone31-May-03 6:24 
QuestionHow to expose an [out] parameter in a Managed C++ class library? Pin
ralfoide29-May-03 17:51
ralfoide29-May-03 17:51 
Hi!

I'm writing a Managed C++ class library to be used by a C# client, and I have a method which prototype should look like that from C#:
MyClass.Method(string Param1, out int Param2);

Problem is, I do not clearly understand how to declare an "out" parameter in Managed C++. I tried a pointer-on-int, as I used to do in COM with the [out] attribute, but it doesn't work (IntelliSense on the C# side wants an int* too!)
I could use a reference of course, like that:

public __gc class MyClass
{
public:
void Method(System::String __gc *Param1, int &Param2) {... }
}

Not sure it works though and then the C# prototype would probably become "ref int Param2".

Is there any clever solution to this?

R/

AnswerRe: How to expose an [out] parameter in a Managed C++ class library? Pin
Nick Parker29-May-03 18:43
protectorNick Parker29-May-03 18:43 
GeneralRe: How to expose an [out] parameter in a Managed C++ class library? Pin
ralfoide29-May-03 19:22
ralfoide29-May-03 19:22 
GeneralRe: How to expose an [out] parameter in a Managed C++ class library? Pin
Nick Parker30-May-03 3:45
protectorNick Parker30-May-03 3:45 
GeneralRe: How to expose an [out] parameter in a Managed C++ class library? Pin
Paul Ingles2-Jun-03 23:26
Paul Ingles2-Jun-03 23:26 
AnswerRe: How to expose an [out] parameter in a Managed C++ class library? Pin
Nemanja Trifunovic4-Jun-03 5:32
Nemanja Trifunovic4-Jun-03 5:32 
GeneralHelp - File IO and arrays in managed C++.... Pin
markmalin29-May-03 11:55
markmalin29-May-03 11:55 
GeneralRe: Help - File IO and arrays in managed C++.... Pin
Nick Parker29-May-03 18:55
protectorNick Parker29-May-03 18:55 
GeneralRe: Help - File IO and arrays in managed C++.... Pin
markmalin30-May-03 3:38
markmalin30-May-03 3:38 
General[Message Deleted] Pin
VladTheImpaler29-May-03 10:04
VladTheImpaler29-May-03 10:04 
GeneralRe: Managed C++ and Garbage Collection Pin
Kannan Kalyanaraman3-Jun-03 23:22
Kannan Kalyanaraman3-Jun-03 23:22 
GeneralAdd Web Reference Failed Pin
MacroPan27-May-03 18:09
MacroPan27-May-03 18:09 
QuestionFinal Project ideas? Pin
syntax28uk26-May-03 9:21
syntax28uk26-May-03 9:21 
General"switch "statement and mfc Pin
shanila25-May-03 16:41
shanila25-May-03 16:41 
GeneralIs it possible to simulate friend functionality in Managed Extensions in C++ Pin
csr7223-May-03 8:20
csr7223-May-03 8:20 
GeneralSolution Pin
csr7223-May-03 9:48
csr7223-May-03 9:48 
GeneralRe: Solution Pin
leppie26-May-03 7:18
leppie26-May-03 7:18 
GeneralRegistry Write and Read Pin
Leandro H. Delamare19-May-03 4:54
Leandro H. Delamare19-May-03 4:54 

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.