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

Managed C++/CLI

 
GeneralRe: Visual C++ Different Icons for Release and Debug Pin
Neelesh K J Jain20-Jul-05 19:31
Neelesh K J Jain20-Jul-05 19:31 
Generalgcroot constructor crash Pin
Xen3h14-Jul-05 9:51
Xen3h14-Jul-05 9:51 
General.net dialog boxes Pin
istrasci14-Jul-05 7:45
istrasci14-Jul-05 7:45 
GeneralRe: .net dialog boxes Pin
Christian Graus14-Jul-05 11:15
protectorChristian Graus14-Jul-05 11:15 
QuestionHow to prevent a delegate from relocating on the CLR heap Pin
Florian Albrechtskirchinger13-Jul-05 7:41
Florian Albrechtskirchinger13-Jul-05 7:41 
AnswerRe: How to prevent a delegate from relocating on the CLR heap Pin
Sheng Jiang 蒋晟15-Jul-05 18:17
Sheng Jiang 蒋晟15-Jul-05 18:17 
GeneralRe: How to prevent a delegate from relocating on the CLR heap Pin
Florian Albrechtskirchinger16-Jul-05 5:14
Florian Albrechtskirchinger16-Jul-05 5:14 
GeneralRe: How to prevent a delegate from relocating on the CLR heap Pin
Sheng Jiang 蒋晟16-Jul-05 5:54
Sheng Jiang 蒋晟16-Jul-05 5:54 
delegate int BrowseCallBackProcDelegate(
unsigned/*HWND*/ hwnd, unsigned int/*UINT*/ uMsg
, unsigned/*LPARAM*/ lParam, unsigned/*LPARAM*/ lpData);

[STAThreadAttribute]
int main(array<system::string ^=""> ^args)
{

Form1^ pForm1=gcnew Form1();
// Enabling Windows XP visual effects before any controls are created
Application::EnableVisualStyles();

BrowseCallBackProcDelegate^ BCBD =
gcnew BrowseCallBackProcDelegate(Form1::BrowseForFileCallBackProc);

pin_ptr<browsecallbackprocdelegate^> pBCBD= &BCBD;

IntPtr delegatePointer =
Marshal::GetFunctionPointerForDelegate(BCBD);

pForm1->m_pbi->lpfn=static_cast<bffcallback>(delegatePointer.ToPointer());

// Create the main window and run it
Application::Run();
return 0;
}


http://blog.joycode.com/jiangsheng
http://blog.csdn.net/jiangsheng
Command what is yours
Conquer what is not
---Kane
GeneralRe: How to prevent a delegate from relocating on the CLR heap Pin
Florian Albrechtskirchinger16-Jul-05 8:01
Florian Albrechtskirchinger16-Jul-05 8:01 
GeneralRe: How to prevent a delegate from relocating on the CLR heap Pin
Florian Albrechtskirchinger16-Jul-05 22:51
Florian Albrechtskirchinger16-Jul-05 22:51 
GeneralMultible Instances. Pin
Saksida Bojan13-Jul-05 4:11
Saksida Bojan13-Jul-05 4:11 
GeneralRe: Multible Instances. Pin
toxcct13-Jul-05 5:57
toxcct13-Jul-05 5:57 
GeneralRe: Multible Instances. Pin
Tom Archer13-Jul-05 10:14
Tom Archer13-Jul-05 10:14 
GeneralDetect if .NET Framework is installed Pin
Saksida Bojan13-Jul-05 4:09
Saksida Bojan13-Jul-05 4:09 
GeneralRe: Detect if .NET Framework is installed Pin
Christian Graus13-Jul-05 12:37
protectorChristian Graus13-Jul-05 12:37 
GeneralRe: Detect if .NET Framework is installed Pin
Saksida Bojan14-Jul-05 0:14
Saksida Bojan14-Jul-05 0:14 
GeneralRe: Detect if .NET Framework is installed Pin
Christian Graus14-Jul-05 11:07
protectorChristian Graus14-Jul-05 11:07 
GeneralRe: Detect if .NET Framework is installed Pin
Saksida Bojan14-Jul-05 19:10
Saksida Bojan14-Jul-05 19:10 
GeneralRe: Detect if .NET Framework is installed Pin
Nish Nishant18-Jul-05 1:19
sitebuilderNish Nishant18-Jul-05 1:19 
GeneralSetting Global environment variable Pin
e_prabhu12-Jul-05 4:53
e_prabhu12-Jul-05 4:53 
GeneralFile Operation Monitoring Pin
e_prabhu12-Jul-05 3:45
e_prabhu12-Jul-05 3:45 
GeneralSwitch Error Pin
Saksida Bojan11-Jul-05 22:06
Saksida Bojan11-Jul-05 22:06 
GeneralRe: Switch Error Pin
toxcct12-Jul-05 1:55
toxcct12-Jul-05 1:55 
GeneralRe: Switch Error Pin
Saksida Bojan12-Jul-05 5:23
Saksida Bojan12-Jul-05 5:23 
GeneralRe: Switch Error Pin
gecool10-Aug-05 22:30
gecool10-Aug-05 22:30 

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.