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

Managed C++/CLI

 
GeneralRe: Operator : [modified] Pin
George L. Jackson11-Dec-06 3:27
George L. Jackson11-Dec-06 3:27 
QuestionMixed project... Pin
Shy Agam9-Dec-06 0:52
Shy Agam9-Dec-06 0:52 
AnswerRe: Mixed project... Pin
Nish Nishant10-Dec-06 3:22
sitebuilderNish Nishant10-Dec-06 3:22 
QuestionSimple Question Pin
Revant Jain8-Dec-06 5:53
Revant Jain8-Dec-06 5:53 
AnswerRe: Simple Question Pin
led mike8-Dec-06 6:36
led mike8-Dec-06 6:36 
QuestionManaged C++ to Unmanaged... Pin
Shy Agam7-Dec-06 22:09
Shy Agam7-Dec-06 22:09 
AnswerRe: Managed C++ to Unmanaged... Pin
led mike8-Dec-06 6:35
led mike8-Dec-06 6:35 
AnswerRe: Managed C++ to Unmanaged... Pin
Pierre Leclercq10-Dec-06 6:08
Pierre Leclercq10-Dec-06 6:08 
shyagam wrote:
What I intend to do is write a C++ dll, and use it to communicate with my C# dll


IMO this will cause problems, as DLL are loaded in the process
memory space. Maybe you should consider rewriting your hook in unmanaged C++.
If you cannot do this, you could try to encapsulate your C# dll in an executable
(written in C#). Then you inject your dll written in unmanaged C++, which will be in charge
of running your executable with appropriate parameters. If you need return values
then you should consider encapsulating your C# dll in a COM object (which could also
be written in C#). In this case, your C++ dll would invoke this COM object.
Many options available.


shyagam wrote:
I know there's a way to compile C++.NET code to pure unmanaged C++ code.
How can I do this?


You should go to
"Project/Properties/Configuration Properties/General/Common Language Runtime support"
and select "No common language runtime support"
You might need to review other settings depending on what you want to do.

shyagam wrote:
Is compiling managed C++ as unmanaged going to work with the hooks?


If your project has the "No common language runtime support" set, it will be a regular
dll, so that should do.
GeneralRe: Managed C++ to Unmanaged... Pin
Shy Agam10-Dec-06 6:18
Shy Agam10-Dec-06 6:18 
GeneralRe: Managed C++ to Unmanaged... Pin
Pierre Leclercq10-Dec-06 7:33
Pierre Leclercq10-Dec-06 7:33 
GeneralRe: Managed C++ to Unmanaged... Pin
Shy Agam10-Dec-06 7:42
Shy Agam10-Dec-06 7:42 
GeneralRe: Managed C++ to Unmanaged... Pin
Pierre Leclercq10-Dec-06 8:02
Pierre Leclercq10-Dec-06 8:02 
GeneralRe: Managed C++ to Unmanaged... Pin
Shy Agam10-Dec-06 8:06
Shy Agam10-Dec-06 8:06 
Question"Value Names" of registry key Pin
cshivaprasad7-Dec-06 18:34
cshivaprasad7-Dec-06 18:34 
AnswerRe: "Value Names" of registry key Pin
Christian Graus7-Dec-06 22:26
protectorChristian Graus7-Dec-06 22:26 
GeneralRe: "Value Names" of registry key Pin
cshivaprasad10-Dec-06 18:17
cshivaprasad10-Dec-06 18:17 
GeneralRe: "Value Names" of registry key Pin
Christian Graus12-Dec-06 14:30
protectorChristian Graus12-Dec-06 14:30 
QuestionProblem connecting with OleDbConnection & C++ Pin
bamagrad7-Dec-06 15:48
bamagrad7-Dec-06 15:48 
AnswerRe: Problem connecting with OleDbConnection & C++ Pin
bamagrad8-Dec-06 6:30
bamagrad8-Dec-06 6:30 
QuestionHowto Return vector from a function Pin
TurboNext7-Dec-06 6:27
TurboNext7-Dec-06 6:27 
AnswerRe: Howto Return vector from a function Pin
Christian Graus7-Dec-06 8:19
protectorChristian Graus7-Dec-06 8:19 
AnswerRe: Howto Return vector from a function Pin
led mike7-Dec-06 11:50
led mike7-Dec-06 11:50 
AnswerRe: Howto Return vector from a function Pin
lafleon8-Dec-06 12:48
lafleon8-Dec-06 12:48 
GeneralRe: Howto Return vector from a function Pin
lafleon8-Dec-06 12:51
lafleon8-Dec-06 12:51 
QuestionContext sensitive keywords and mixed mode programming Pin
User 5838526-Dec-06 12:47
User 5838526-Dec-06 12:47 

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.