Friendly greetings !
I have the very latest version of FSUIPC installed and registered.
I downloaded the SDK, this one : http://fsuipc.simflight.com/beta/FSUIPC_SDK.zip
I'm using FSInterrogate2std and it works, FSUIPC is detected and i can read data.
So far so good :mrgreen:
I'm using purebasic (just for fun, because i can), i expected to have some problem, but not this problem :
Here is the code, even if you don't know purebasic you'll probably understand it :
OpenConsole()
Prototype.l FindWindowExA(hWnd1.l, hWnd2.l, lpsz1.s, lpsz2.s)
If OpenLibrary(1,"user32.dll")
Global FindWindowEx.FindWindowExA=GetFunction(1,"FindWindowExA")
Print("user32")
EndIf
m_hWnd = FindWindowEx(0, 0, "UIPCMAIN", "")
If (m_hWnd = 0)
Print("noooo!")
Else
Print("yes!")
EndIf
Delay(5000)
Easy, huh ?
Well, the problem is that it produce the output "user32noooo!" ...
I tried in unicode and non-unicode, with FindWindowExA and FindWindowExW, with administrator privilege and without.
Ho, and i'm not using FSWide (but i tried to detect it too, same problem)
So, the problem seems to be on my side, or perhaps a problem with purebasic.
But, just to be sure : This is the correct way to detect FSUIPC, isn't ?
That may sound like a dumb question but :
the "FSUIPC SDK" is under FS2004 table and it say "FSUIPC Software Development Kit for versions 3.999/4.80" (and i have 4.9x)
So, i wanted to be sure.
Or : is there another SDK hidden somewhere for version > 4.8 ?
Thank you