|
-
Apr 8th, 2013, 03:07 PM
#7
Re: forcing a window\program to close
GetShellWindow and EndTask are both Win API functions. Sorry, I don't know how to "declare" them in C++. You probably need to update your header files or something. Try downloading the Windows SDK from MSDN. Or, you could also try pasting those API's declaration from the given MSDN links to the appropriate header files. As for the "!=", I'm not sure but, try declaring the hWnds array as DWORD or UINT or even int instead of HWND. If it still doesn't work, then you could try casting the return value of GetTopWindow to int. Sorry, I'm still learning about C++...
On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|