External Windows

BlitzPlus Forums/BlitzPlus Programming/External Windows

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Not a problem. Would you mind posting your declarations and bb function call? Does it still say "user lib function not found"?

If so, make sure that these two lines:
.lib "user32.dll"
FindWindowEx%(hwndParent%, hwndChildAfter%, lpszClass$, lpszWindow$):"FindWindowExA"

...are in a .decls file which is found in the userlibs folder. Remember, it doesn't matter what you call the .decls file as long as it is plain text, there is only one '.lib "user32.dll"' line, and it's in the userlibs folder.

Then, just put this line:
hwnd% = FindWindowEx(0, 0, "CLASSNAME", "TITLE")
Notify hwnd
into a program and run it. It should return 0, but you can try it with an actual classname and title (found from WinDowse) and it should work.

If you don't see where your problem is, we'll help you figure it out.