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

Managed C++/CLI

 
GeneralUsi Pin
Anonymous11-Jul-05 0:04
Anonymous11-Jul-05 0:04 
QuestionHow to make installer Pin
saifi_hazarvi10-Jul-05 20:30
saifi_hazarvi10-Jul-05 20:30 
Generalhelp needed adding com components with idl Pin
arusmemon8-Jul-05 20:41
arusmemon8-Jul-05 20:41 
GeneralRe: help needed adding com components with idl Pin
ursus zeta9-Jul-05 10:25
ursus zeta9-Jul-05 10:25 
Generalcannot pass a __delegate ptr to a C++ function Pin
glutz8-Jul-05 11:32
glutz8-Jul-05 11:32 
GeneralRe: cannot pass a __delegate ptr to a C++ function Pin
glutz8-Jul-05 13:54
glutz8-Jul-05 13:54 
GeneralRe: cannot pass a __delegate ptr to a C++ function Pin
Sheng Jiang 蒋晟10-Jul-05 13:59
Sheng Jiang 蒋晟10-Jul-05 13:59 
GeneralPassing callback params to an unmanaged DLL (written in C++) Pin
Glutz78bb7-Jul-05 7:06
Glutz78bb7-Jul-05 7:06 
I have no trouble using __delegate classes to pass callbacks to native exported C functions, however if I am make the call to an exported function written in C++ and NOT in C, then I get unresolved symbol errors. It’s quite frustrating b/c it seems like it’s just a syntactical thing that shouldn’t be so difficult.

If anyone could point me to a sample where this works, it would be much appreciated! (I don't mind aving to use dllimport to accomplish this).

Thanks in advance, George

//////////Example/////////////

#include "stdafx.h"
#using <mscorlib.dll>
using namespace System;

using namespace System::Runtime::InteropServices;
typedef long (_stdcall *CallbackProc) (int lfunctionVal, int lVal, const char *msg);
__delegate long testCB(int, int, const char *);

[DllImport("unmdll.dll")]
extern void __stdcall fnunmdll2(testCB *UpdateProgMeter, int x);

__gc class C1
{
public:
static long handleCB(int x, int y, const char * z)
{
return 0;
}
};

int _tmain()
{
testCB *tmp1 = new testCB(0, &C1::handleCB);

fnunmdll2(tmp1, 0); //if written i C, i am ok. If in C++ it is unresolved! Why?

return 0;
}
QuestionHow to Convert VC# code to MC++ Pin
meetsukant7-Jul-05 0:21
meetsukant7-Jul-05 0:21 
AnswerRe: How to Convert VC# code to MC++ Pin
Christian Graus7-Jul-05 2:01
protectorChristian Graus7-Jul-05 2:01 
General.NET and c++ Pin
lemccain7-Jul-05 0:17
lemccain7-Jul-05 0:17 
GeneralRe: .NET and c++ Pin
Christian Graus7-Jul-05 2:04
protectorChristian Graus7-Jul-05 2:04 
GeneralRe: .NET and c++ Pin
Anonymous7-Jul-05 9:06
Anonymous7-Jul-05 9:06 
QuestionHow do you create a folder? Pin
Lagwagon566-Jul-05 7:37
Lagwagon566-Jul-05 7:37 
AnswerRe: How do you create a folder? Pin
Christian Graus6-Jul-05 11:18
protectorChristian Graus6-Jul-05 11:18 
GeneralRe: How do you create a folder? Pin
Lagwagon566-Jul-05 13:24
Lagwagon566-Jul-05 13:24 
GeneralRe: How do you create a folder? Pin
Christian Graus6-Jul-05 13:28
protectorChristian Graus6-Jul-05 13:28 
QuestionUsing images with managed c++?? Pin
richiemac6-Jul-05 0:49
richiemac6-Jul-05 0:49 
AnswerRe: Using images with managed c++?? Pin
Christian Graus6-Jul-05 11:19
protectorChristian Graus6-Jul-05 11:19 
GeneralMDI - help w/image background Pin
Qwick Miller5-Jul-05 16:45
Qwick Miller5-Jul-05 16:45 
GeneralRe: MDI - help w/image background Pin
Saksida Bojan7-Jul-05 20:41
Saksida Bojan7-Jul-05 20:41 
GeneralMDI - Accessing MDI parents public variables. Pin
Qwick Miller5-Jul-05 16:44
Qwick Miller5-Jul-05 16:44 
GeneralRe: MDI - Accessing MDI parents public variables. Pin
Saksida Bojan5-Jul-05 23:22
Saksida Bojan5-Jul-05 23:22 
GeneralRe: MDI - Accessing MDI parents public variables. Pin
Qwick Miller7-Jul-05 18:39
Qwick Miller7-Jul-05 18:39 
QuestionImage Column in a DataGrid? Pin
Anonymous5-Jul-05 9:53
Anonymous5-Jul-05 9:53 

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.