c++ - FindWindow is not working? -


i want know why code not working?

    hwnd hwnds = findwindow(null,(lpctstr)"calculator"); 

it returns null hwnds....

any idea how fix this? thank :)

dont cast string.

hwnd hwnds = findwindow(null,_t("calculator")); 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -