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

Managed C++/CLI

 
AnswerRe: How do you set fill to none or clear? Pin
BuckBrown14-Dec-07 9:20
BuckBrown14-Dec-07 9:20 
AnswerRe: How do you set fill to none or clear? Pin
Mark Salsbery14-Dec-07 10:14
Mark Salsbery14-Dec-07 10:14 
GeneralResizing Forms Pin
mikobi14-Dec-07 4:33
mikobi14-Dec-07 4:33 
QuestionHow to get a function pointer ? Pin
Ky Nam13-Dec-07 6:02
Ky Nam13-Dec-07 6:02 
AnswerRe: How to get a function pointer ? Pin
dkaatz13-Dec-07 7:35
dkaatz13-Dec-07 7:35 
GeneralRe: How to get a function pointer ? Pin
Ky Nam13-Dec-07 14:46
Ky Nam13-Dec-07 14:46 
GeneralRe: How to get a function pointer ? Pin
Luc Pattyn13-Dec-07 15:05
sitebuilderLuc Pattyn13-Dec-07 15:05 
AnswerRe: How to get a function pointer ? Pin
Ky Nam13-Dec-07 17:42
Ky Nam13-Dec-07 17:42 
I need to write this code in C++/CLI only , VS 2008 , /clr

After trying C++ Interop unsuccessfully , I use p/invoke and .NET delegate

delegate bool EnumWindowsProc(IntPtr hWnd, IntPtr lParam);

[DllImport("user32", CharSet=CharSet::Ansi, SetLastError=true, ExactSpelling=true)]	static int EnumChildWindows(IntPtr hWndParent, EnumWindowsProc^ lpEnumFunc, IntPtr lParam){}

bool CALLBACK EnumWindowsCallback(IntPtr hWnd, IntPtr lParam){}

void UseIt() //errors
{
	EnumWindowsProc^ fp = gcnew EnumWindowsProc(EnumWindowsCallback);
	EnumChildWindows(Handle, fp, IntPtr::Zero);
}


error C3350: 'EnumWindowsProc' : a delegate constructor expects 2 argument(s)
error C3867: 'EnumWindowsCallback': function call missing argument list; use '&EnumWindowsCallback' to create a pointer to member

I can't understand
AnswerRe: How to get a function pointer ? Pin
George L. Jackson14-Dec-07 3:59
George L. Jackson14-Dec-07 3:59 
GeneralNET controls Pin
mikobi13-Dec-07 3:55
mikobi13-Dec-07 3:55 
GeneralFlash ocx in c++ Pin
topcatalpha12-Dec-07 4:59
topcatalpha12-Dec-07 4:59 
Generalsplit forms Pin
mikobi12-Dec-07 3:55
mikobi12-Dec-07 3:55 
GeneralRe: split forms Pin
led mike12-Dec-07 4:56
led mike12-Dec-07 4:56 
GeneralRe: split forms Pin
mikobi13-Dec-07 0:17
mikobi13-Dec-07 0:17 
GeneralRe: split forms Pin
Hamid_RT20-Dec-07 2:23
Hamid_RT20-Dec-07 2:23 
GeneralVariable Change Pin
sidkraft11-Dec-07 5:59
sidkraft11-Dec-07 5:59 
GeneralRe: Variable Change Pin
led mike11-Dec-07 7:07
led mike11-Dec-07 7:07 
QuestionUser stops loop. Pin
Naturality10-Dec-07 12:31
Naturality10-Dec-07 12:31 
GeneralRe: User stops loop. Pin
George L. Jackson10-Dec-07 13:56
George L. Jackson10-Dec-07 13:56 
GeneralRe: User stops loop. Pin
Naturality10-Dec-07 21:00
Naturality10-Dec-07 21:00 
QuestionHow to pass object between MFC C++ DLL and C# program? Pin
JMisfit10-Dec-07 4:20
JMisfit10-Dec-07 4:20 
AnswerRe: How to pass object between MFC C++ DLL and C# program? [modified] Pin
led mike10-Dec-07 4:54
led mike10-Dec-07 4:54 
Questionhow can i get input from hardware(Non computer Devices ) Devices ? Pin
r.srinivas10-Dec-07 1:48
r.srinivas10-Dec-07 1:48 
GeneralRe: how can i get input from hardware(Non computer Devices ) Devices ? Pin
led mike10-Dec-07 5:01
led mike10-Dec-07 5:01 
GeneralRe: how can i get input from hardware(Non computer Devices ) Devices ? Pin
George L. Jackson10-Dec-07 5:11
George L. Jackson10-Dec-07 5:11 

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.