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

Managed C++/CLI

 
GeneralRe: Rotating Polygons in fixed Angle Pin
Christian Graus9-Nov-04 10:28
protectorChristian Graus9-Nov-04 10:28 
GeneralBMP Header Pin
alex5kov2-Nov-04 21:44
alex5kov2-Nov-04 21:44 
GeneralRe: BMP Header Pin
Kamyar Souri6-Nov-04 3:21
Kamyar Souri6-Nov-04 3:21 
Generala question: managed - unmanaged Pin
yoaz2-Nov-04 19:24
yoaz2-Nov-04 19:24 
GeneralWrapping C++ class w/MC++ Pin
BambooMoon2-Nov-04 11:41
BambooMoon2-Nov-04 11:41 
GeneralRe: Wrapping C++ class w/MC++ Pin
ursus zeta4-Nov-04 13:09
ursus zeta4-Nov-04 13:09 
Generalallocate string with specify length Pin
nina8021-Nov-04 12:44
nina8021-Nov-04 12:44 
GeneralManaged wrapper for a dll, with no source code Pin
Malendra1-Nov-04 0:03
Malendra1-Nov-04 0:03 
I created a c++ object and exported the funtion I wanted to use with dllexport. Then created a managed wrapper that linked with my unmanaged
code. I used c# Windows application that made use of the managed wrapper.
All this works fine. Yipee
Now i am trying to export the entire c++ object. SO i have
//------------------------------------------------------
class __declspec(dllexport) Sum
{
public:
Sum();
~Sum();
public:
double Add( double num1, double num2 );
};

//------------------------------------------------------

Is it possible to export the entire class.

Now the MC++ was

//------------------------------------------------------

extern "C"
{
double Add( double num1, double num2 );
}

//--namespace stuff and other declaration

__gc class Class1

public: double DoAdd( double n1, double n2 )
{
return Add( n1, n2 );
}

//------------------------------------------------------


My question is what do I replace the extern "C" part with now and assuming that I dont have the source code for the c++ code, just the dll
and lib files.

GeneralTree Pin
Raikou4930-Oct-04 12:50
Raikou4930-Oct-04 12:50 
GeneralRe: Tree Pin
Christian Graus31-Oct-04 9:02
protectorChristian Graus31-Oct-04 9:02 
GeneralCompilation Error: System::Xml::XmlDocument': placement arguments not allowed Pin
raed30-Oct-04 4:35
raed30-Oct-04 4:35 
GeneralRe: Compilation Error: System::Xml::XmlDocument': placement arguments not allowed Pin
raed30-Oct-04 4:37
raed30-Oct-04 4:37 
Generalgetting names and parameters of functions in compiled dlls Pin
fire.fox29-Oct-04 8:23
fire.fox29-Oct-04 8:23 
GeneralRe: getting names and parameters of functions in compiled dlls Pin
ursus zeta30-Oct-04 10:24
ursus zeta30-Oct-04 10:24 
Generalcalling a windows form from a regular mfc dialog Pin
BlackDice29-Oct-04 2:58
BlackDice29-Oct-04 2:58 
QuestionC slower than mex ??? Pin
colorbeads28-Oct-04 9:16
colorbeads28-Oct-04 9:16 
AnswerRe: C slower than mex ??? Pin
Anonymous31-Oct-04 21:43
Anonymous31-Oct-04 21:43 
GeneralAmbiguous Error Pin
Anonymous26-Oct-04 8:46
Anonymous26-Oct-04 8:46 
GeneralRe: Ambiguous Error Pin
Christian Graus26-Oct-04 8:53
protectorChristian Graus26-Oct-04 8:53 
GeneralRe: Ambiguous Error Pin
Anonymous26-Oct-04 8:59
Anonymous26-Oct-04 8:59 
GeneralRe: Ambiguous Error Pin
Christian Graus27-Oct-04 9:09
protectorChristian Graus27-Oct-04 9:09 
GeneralRe: Ambiguous Error Pin
George L. Jackson27-Oct-04 9:16
George L. Jackson27-Oct-04 9:16 
Generalunmanaged to managed code conversion Pin
Member 138330524-Oct-04 23:56
Member 138330524-Oct-04 23:56 
GeneralRe: unmanaged to managed code conversion Pin
BlackDice27-Oct-04 7:51
BlackDice27-Oct-04 7:51 
Generaldependancies problem Pin
Mostafa Mohamed23-Oct-04 9:17
Mostafa Mohamed23-Oct-04 9:17 

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.