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

Managed C++/CLI

 
AnswerRe: nesting, looping, triangle Pin
Saksida Bojan3-May-06 19:54
Saksida Bojan3-May-06 19:54 
Questionnesting, looping, triangle Pin
Charles Reese3-May-06 8:03
Charles Reese3-May-06 8:03 
Question[urgent newbie] input streams problem with .NET Pin
kkyeung3-May-06 6:46
kkyeung3-May-06 6:46 
AnswerRe: [urgent newbie] input streams problem with .NET Pin
Saksida Bojan3-May-06 20:26
Saksida Bojan3-May-06 20:26 
GeneralRe: [urgent newbie] input streams problem with .NET Pin
kkyeung4-May-06 8:38
kkyeung4-May-06 8:38 
GeneralRe: [urgent newbie] input streams problem with .NET Pin
Saksida Bojan4-May-06 9:31
Saksida Bojan4-May-06 9:31 
QuestionExpose VC++ .Net function to VB .Net Pin
ppanke3-May-06 4:50
ppanke3-May-06 4:50 
AnswerRe: Expose VC++ .Net function to VB .Net Pin
Milton Karimbekallil3-May-06 8:46
Milton Karimbekallil3-May-06 8:46 
Your assumption is very correct that you are missing something very fundamental here Smile | :) .

The class you declared is not a managed class. it is an unmanaged. To make it a managed type change the class declaration by adding the modifer ref (for .Net 2.0) or __gc (for .Net 1.1) .

so the new class declaration will be:

.net 1.1<br />
namespace TK_DLL_Header {<br />
<br />
public __gc class TK_DLL<br />
{<br />
public: <br />
// constructor<br />
TK_DLL();<br />
// destructor<br />
~TK_DLL();<br />
<br />
unsigned short ProcessResults (DataSet dsStudyParm, DataRow drFinParms);<br />
};<br />
}<br />
<br />
.net 2.0:<br />
<br />
namespace TK_DLL_Header {<br />
<br />
public ref class TK_DLL<br />
{<br />
public: <br />
// constructor<br />
TK_DLL();<br />
// destructor<br />
~TK_DLL();<br />
<br />
unsigned short ProcessResults (DataSet dsStudyParm, DataRow drFinParms);<br />
};<br />
}



cheers..mil10
GeneralRe: Expose VC++ .Net function to VB .Net Pin
ppanke10-May-06 4:15
ppanke10-May-06 4:15 
GeneralRe: Expose VC++ .Net function to VB .Net Pin
Milton Karimbekallil10-May-06 16:23
Milton Karimbekallil10-May-06 16:23 
QuestionHow to use timeSetEvent in C++/CLI Pin
attias gabi30-Apr-06 20:55
attias gabi30-Apr-06 20:55 
AnswerRe: How to use timeSetEvent in C++/CLI Pin
guestcat2-May-06 2:03
guestcat2-May-06 2:03 
GeneralRe: How to use timeSetEvent in C++/CLI Pin
attias gabi4-May-06 1:26
attias gabi4-May-06 1:26 
GeneralRe: How to use timeSetEvent in C++/CLI Pin
oshah13-May-06 11:31
oshah13-May-06 11:31 
QuestionGetCurrentDirectory() Pin
rahultaing30-Apr-06 14:11
rahultaing30-Apr-06 14:11 
AnswerRe: GetCurrentDirectory() Pin
Milton Karimbekallil30-Apr-06 18:52
Milton Karimbekallil30-Apr-06 18:52 
GeneralRe: GetCurrentDirectory() Pin
Milton Karimbekallil5-May-06 13:28
Milton Karimbekallil5-May-06 13:28 
QuestionGame Programming Pin
Akidomero29-Apr-06 20:07
Akidomero29-Apr-06 20:07 
QuestionHTTP: Pin
Anthony Moss28-Apr-06 5:45
Anthony Moss28-Apr-06 5:45 
AnswerRe: HTTP: Pin
led mike4-May-06 12:26
led mike4-May-06 12:26 
QuestionHow to call unmanaged C++ DLL method with a CString reference Pin
Bo Skjoett27-Apr-06 23:02
Bo Skjoett27-Apr-06 23:02 
AnswerRe: How to call unmanaged C++ DLL method with a CString reference Pin
Milton Karimbekallil28-Apr-06 2:01
Milton Karimbekallil28-Apr-06 2:01 
Questionadding dll Pin
rahultaing25-Apr-06 13:41
rahultaing25-Apr-06 13:41 
AnswerRe: adding dll Pin
2bee 25-Apr-06 23:50
2bee 25-Apr-06 23:50 
GeneralRe: adding dll Pin
George L. Jackson26-Apr-06 9:00
George L. Jackson26-Apr-06 9:00 

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.