Click here to Skip to main content
16,007,885 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
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 
GeneralRe: caught between managed and unmanaged C++ Pin
Jeff J1-Jan-03 18:22
Jeff J1-Jan-03 18:22 
It is unclear exactly how you need to pass the vector data, whether anything needs to be modified in C#, and so forth. One question is whether you could re-implement all this in MC++ (or C#) from scratch to begin with. That is, populate ArrayLists from the get-go.

If you have no choice but to pass unmanaged stuff to managed code, you will likely need to copy everything into managed (GC-collected) memory. If everything is largely primitive types (except the vectors, of course), then that shouldn't be too bad. If you need to pass values/changes back to unmanaged code, you will have to copy again. Obviously, it is best to minimise how much data must be marshaled back and forth between unmanaged and managed memory.

If the "vectors" need to be dynamic within C#, then ArrayList seems like a reasonable choice, though performance will not be as good (if nothing else but because everything will have to be handled by pointers to the base Object class). If performance is not a major consideration, then go that way. If nothing needs to be modified (i.e., not dynamic) in C#, then __gc[] arrays are more efficient, and more flexible in MC++ than in C#.

If you can be more specific about how the vectors need to be used, perhaps I could be more specific with any suggestions. I have been swimming in the regions between C++ and MC++ for quite a while now.

Cheers


Generallinking error Pin
EyesOfTruth24-Dec-02 6:57
EyesOfTruth24-Dec-02 6:57 
GeneralDirectX 9.0 Released Pin
Heath Stewart20-Dec-02 9:29
protectorHeath Stewart20-Dec-02 9:29 
GeneralUsing DLL's in Managed C++ Pin
zaza_nata19-Dec-02 20:02
susszaza_nata19-Dec-02 20:02 
GeneralRe: Using DLL's in Managed C++ Pin
Anders Molin20-Dec-02 12:02
professionalAnders Molin20-Dec-02 12:02 
GeneralManaged & Unmanaged type problem; Pin
Ahmet Orkun GEDiK19-Dec-02 10:06
sussAhmet Orkun GEDiK19-Dec-02 10:06 
GeneralRe: Managed & Unmanaged type problem; Pin
Jeff J19-Dec-02 14:42
Jeff J19-Dec-02 14:42 
GeneralRe: Managed & Unmanaged type problem; Pin
Ahmet Orkun GEDiK19-Dec-02 19:10
sussAhmet Orkun GEDiK19-Dec-02 19:10 
GeneralRe: Managed & Unmanaged type problem; Pin
Jeff J19-Dec-02 21:03
Jeff J19-Dec-02 21:03 
GeneralRe: Managed & Unmanaged type problem; Pin
Ahmet Orkun GEDiK19-Dec-02 23:13
sussAhmet Orkun GEDiK19-Dec-02 23:13 
GeneralRe: Managed & Unmanaged type problem; Pin
Jeff J20-Dec-02 10:06
Jeff J20-Dec-02 10:06 
GeneralRe: Managed & Unmanaged type problem; Pin
Ahmet Orkun GEDiK20-Dec-02 11:21
sussAhmet Orkun GEDiK20-Dec-02 11:21 
GeneralRe: Managed & Unmanaged type problem; Pin
Jeff J20-Dec-02 16:53
Jeff J20-Dec-02 16:53 
GeneralRe: Managed & Unmanaged type problem; Pin
Ahmet Orkun GEDiK21-Dec-02 4:54
sussAhmet Orkun GEDiK21-Dec-02 4:54 
Generalu can help me!! i have a Simple Quiestion. Pin
Alex H 198319-Dec-02 9:17
Alex H 198319-Dec-02 9:17 
GeneralVery Hard Problem (help Me) Pin
duvaft19-Dec-02 3:21
duvaft19-Dec-02 3:21 
GeneralRe: Very Hard Problem (help Me) Pin
Ahmet Orkun GEDiK19-Dec-02 10:13
sussAhmet Orkun GEDiK19-Dec-02 10:13 
GeneralOpen File -- Very Hard Problem Pin
duvaft19-Dec-02 3:20
duvaft19-Dec-02 3:20 

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.