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

Managed C++/CLI

 
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 
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 
I beg to differ, but my understanding is that a "ref" is used when the called function will modify the value. An "out" seems preferable if the called function is just returning parameters.
My sample prototype was of course simplified. My function returns several parameters, and rather than returning a struct I prefer to use out parameters.

Example of C# prototype I want:
MyClass.MyMethod(string inValue, out int Param1, out int Param2, out int Param3);

So far I got it to work using "ref" if I declare the Param1..3 above using int __gc * in MC++:

This MC++ real prototype in the class library:
MyClass::MyMethod(System::String __gc* inValue, int __gc* Param1, int __gc* Param2, int __gc* Param3);

is seen like this from the C# client:
MyClass.MyMethod(string inValue, ref int Param1, ref int Param2, ref int Param3);

Ideally I'd like out parameters. If not possible, well too bad Big Grin | :-D

R/
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 
GeneralRe: Registry Write and Read Pin
Nick Parker25-May-03 3:41
protectorNick Parker25-May-03 3:41 
Questionbrowse remote directory? Pin
chaiyan13-May-03 17:22
chaiyan13-May-03 17:22 

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.