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

Managed C++/CLI

 
AnswerRe: Image GDI+ from a buffer Pin
led mike25-Jun-07 6:04
led mike25-Jun-07 6:04 
AnswerRe: Image GDI+ from a buffer Pin
Mark Salsbery25-Jun-07 8:56
Mark Salsbery25-Jun-07 8:56 
Questionproblem with unmanaged pointers Pin
Arris7425-Jun-07 5:46
Arris7425-Jun-07 5:46 
AnswerRe: problem with unmanaged pointers Pin
Mark Salsbery25-Jun-07 9:00
Mark Salsbery25-Jun-07 9:00 
GeneralRe: problem with unmanaged pointers Pin
Arris7425-Jun-07 10:18
Arris7425-Jun-07 10:18 
GeneralRe: problem with unmanaged pointers Pin
Mark Salsbery25-Jun-07 12:58
Mark Salsbery25-Jun-07 12:58 
GeneralRe: problem with unmanaged pointers Pin
Arris7425-Jun-07 20:24
Arris7425-Jun-07 20:24 
GeneralRe: problem with unmanaged pointers Pin
Mark Salsbery25-Jun-07 20:36
Mark Salsbery25-Jun-07 20:36 
Arris7 wrote:
While reading some articles on the subject, I understood that thanks to JIW ( just it works), there is nothing to do except changing the compiler settings.


That's correct.

Arris7 wrote:
Does that mean that those who want to mix their applications must specify #pragma unmanaged before all their functions that are implemented with native code?


No. You can, but it's not necessary. If you decide to use #pragma unmanaged/unmanaged, they
effect code from that point on, until another is encountered, or the end of file is reached.
That means they only need to be at the top of a source file (under the #includes), not around
every function. This worked well for me going from a large MFC code base to adding managed
code. That also means you can mix native/CLR compilation in the same source file.

Arris7 wrote:
And regarding MFC applications, following directives
#using
#using
using namespace System;
using namespace System::Windows::Forms;
are to be added in the stdafx.h file.


I suppose you could put those in the precompiled header. I'm not sure what most people do.
I personally include just the ones I need on a per-.cpp/.h file basis, especially with namespaces.

Did the TreeView struct stuff work out ok?

Mark


"Go that way, really fast. If something gets in your way, turn."

GeneralRe: problem with unmanaged pointers Pin
Arris7426-Jun-07 5:04
Arris7426-Jun-07 5:04 
GeneralRe: problem with unmanaged pointers Pin
Mark Salsbery26-Jun-07 5:48
Mark Salsbery26-Jun-07 5:48 
QuestionWhy this error in C++ code fragment ?? Pin
xbiju24-Jun-07 17:20
xbiju24-Jun-07 17:20 
AnswerRe: Why this error in C++ code fragment ?? Pin
Christian Graus24-Jun-07 17:41
protectorChristian Graus24-Jun-07 17:41 
QuestionGDI+ Image Pin
Ahmed_Barakat24-Jun-07 4:36
Ahmed_Barakat24-Jun-07 4:36 
AnswerRe: GDI+ Image Pin
Christian Graus24-Jun-07 11:40
protectorChristian Graus24-Jun-07 11:40 
Questionsql query Pin
mohantfor.net21-Jun-07 21:04
mohantfor.net21-Jun-07 21:04 
AnswerRe: sql query Pin
Mark Salsbery22-Jun-07 8:51
Mark Salsbery22-Jun-07 8:51 
QuestionUsing win32 API functions in CLI Pin
Programm3r21-Jun-07 19:38
Programm3r21-Jun-07 19:38 
AnswerRe: Using win32 API functions in CLI Pin
Mark Salsbery22-Jun-07 8:49
Mark Salsbery22-Jun-07 8:49 
Questionproblem with calling managed code from unmanaged code Pin
hamid12332120-Jun-07 19:11
hamid12332120-Jun-07 19:11 
AnswerRe: problem with calling managed code from unmanaged code Pin
Mark Salsbery21-Jun-07 7:06
Mark Salsbery21-Jun-07 7:06 
QuestionConsole to Form application Pin
C#Coudou20-Jun-07 16:10
C#Coudou20-Jun-07 16:10 
AnswerRe: Console to Form application Pin
Christian Graus20-Jun-07 16:36
protectorChristian Graus20-Jun-07 16:36 
AnswerRe: Console to Form application Pin
Mark Salsbery21-Jun-07 7:10
Mark Salsbery21-Jun-07 7:10 
QuestionRedistributing Visual C++ Files Pin
Programm3r20-Jun-07 2:45
Programm3r20-Jun-07 2:45 
AnswerRe: Redistributing Visual C++ Files Pin
led mike20-Jun-07 5:44
led mike20-Jun-07 5:44 

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.