Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Short and Sweet.
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00161466
Message ID:
00161828
Views:
26
>>>>>>What is a "HINSTANCE hinst" and how do I get a value for it?
>>>>>
>>>>>An HINSTANCE is a handle instance - it's a 4 byte DWORD.
>>>>>
>>>>>What are you trying to provide a handle to? IOW, what API call are you rying to invoke?)
>>>>
>>>>
>>>>I am tring to call the createwindow api but I can't seem to get it to work.
>>>
>>>Hiya Chuck,
>>>
>>>Far be it for me (of all people) to suggest a VFP solution over the API, but what's wrong with oMyForm = CREATEOBJECT('Form'). You don't have to deal with it then, and you'll have much more control over it.
>>
>>I want a window that is not tied to my application so when it closes it will still be up on the window. But so far my createwindow only returns 0.
>
>Hi Chuck,
>
>Well, I don't think you'll be able to do it in VFP using API calls. You'll be creating a window that's owned by your application, and will close when it does (like the debugged or the help file does) In order for this to be done I think you'd need to write either a separate app in VFP or another language. That way, they'd be independent.

Since CreateWindow() works in the context of a module of a process, he'd have to attach it to -some- process that didn't terminate when VFP did. I agree that CreateWindow() here is the wrong choice of call to create a window with persistence beyond that of the application itself, especially since the API spec defines it as wither an overlapped, pop-up or child window, always in the context of a process and module.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform