Click here to Skip to main content
16,004,944 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: How to give Focus in form using DLL inside other DLL Pin
Nish Nishant12-Dec-05 4:51
sitebuilderNish Nishant12-Dec-05 4:51 
Questionplease tell me...how can.... Pin
wilusili11-Dec-05 17:50
wilusili11-Dec-05 17:50 
AnswerRe: please tell me...how can.... Pin
Christian Graus11-Dec-05 18:13
protectorChristian Graus11-Dec-05 18:13 
Question:doh: Add reference to dll assembly Pin
devinzhang11-Dec-05 10:31
devinzhang11-Dec-05 10:31 
AnswerRe: :doh: Add reference to dll assembly Pin
Christian Graus11-Dec-05 12:35
protectorChristian Graus11-Dec-05 12:35 
GeneralRe: :doh: Add reference to dll assembly Pin
devinzhang11-Dec-05 16:28
devinzhang11-Dec-05 16:28 
GeneralRe: :doh: Add reference to dll assembly Pin
Christian Graus11-Dec-05 16:52
protectorChristian Graus11-Dec-05 16:52 
GeneralRe: :doh: Add reference to dll assembly Pin
barry12312-Dec-05 2:25
barry12312-Dec-05 2:25 
I posted a related question the other day regarding statics. My current thought is that you need to use a delegate.

I have not had a chance to try this myself and given the problems I have been having todate I may be wrong. I also want to pass a static data member around. I tried using tools->ILDasm to see if its being exported but am at the bottom of the learning curve at the moment being new to microsoft.

This is the example from msn web site.

// use_delegate.cpp
// compile with: /clr
using namespace System;

ref class SomeClass
{
public:
static void Func(String^ str)
{
Console::WriteLine("static SomeClass::Func - {0}", str);
}
};

ref class OtherClass
{
public:
OtherClass( Int32 n )
{
num = n;
}

void Method(String^ str)
{
Console::WriteLine("OtherClass::Method - {0}, num = {1}",
str, num);
}

Int32 num;
};

delegate void MyCallback(String^ str);

int main( )
{
MyCallback^ callback = gcnew MyCallback(SomeClass::Func);
callback("single");

callback += gcnew MyCallback(SomeClass::Func);

OtherClass^ f = gcnew OtherClass(99);
callback += gcnew MyCallback(f, &OtherClass::Method);

f = gcnew OtherClass(100);
callback += gcnew MyCallback(f, &OtherClass::Method);

callback("chained");

return 0;
}

GeneralMy Problem is resolved Pin
devinzhang12-Dec-05 8:09
devinzhang12-Dec-05 8:09 
QuestionLPCTSTR problem Pin
Xeronith10-Dec-05 19:10
Xeronith10-Dec-05 19:10 
AnswerRe: LPCTSTR problem Pin
Nemanja Trifunovic11-Dec-05 3:05
Nemanja Trifunovic11-Dec-05 3:05 
AnswerRe: LPCTSTR problem Pin
Jörgen Sigvardsson11-Dec-05 12:52
Jörgen Sigvardsson11-Dec-05 12:52 
Questionservices in Windows Server 2003 OS Pin
Thomas_Mathews8-Dec-05 23:30
Thomas_Mathews8-Dec-05 23:30 
AnswerRe: services in Windows Server 2003 OS Pin
Sheng Jiang 蒋晟11-Dec-05 11:03
Sheng Jiang 蒋晟11-Dec-05 11:03 
GeneralRe: services in Windows Server 2003 OS Pin
Thomas_Mathews11-Dec-05 18:44
Thomas_Mathews11-Dec-05 18:44 
GeneralRe: services in Windows Server 2003 OS Pin
Thomas_Mathews11-Dec-05 19:34
Thomas_Mathews11-Dec-05 19:34 
QuestionHalting execution until a button is clicked Pin
Simon Cornish8-Dec-05 6:33
Simon Cornish8-Dec-05 6:33 
AnswerRe: Halting execution until a button is clicked Pin
Saksida Bojan8-Dec-05 19:52
Saksida Bojan8-Dec-05 19:52 
GeneralRe: Halting execution until a button is clicked Pin
Simon Cornish8-Dec-05 21:21
Simon Cornish8-Dec-05 21:21 
Questionlinking assembly dll to project Pin
9ine7-Dec-05 3:46
9ine7-Dec-05 3:46 
AnswerRe: linking assembly dll to project Pin
Nish Nishant7-Dec-05 4:03
sitebuilderNish Nishant7-Dec-05 4:03 
GeneralRe: linking assembly dll to project Pin
9ine7-Dec-05 5:24
9ine7-Dec-05 5:24 
GeneralRe: linking assembly dll to project Pin
Nish Nishant7-Dec-05 7:12
sitebuilderNish Nishant7-Dec-05 7:12 
GeneralRe: linking assembly dll to project Pin
Saksida Bojan7-Dec-05 19:56
Saksida Bojan7-Dec-05 19:56 
GeneralRe: linking assembly dll to project Pin
9ine7-Dec-05 22:09
9ine7-Dec-05 22:09 

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.