Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows API Functions

Status
Not open for further replies.

webpager

Programmer
Mar 27, 2001
166
GB
Does anyone know of a site where API functions are listed, giving the syntax for Foxpro use. I have found a few sites for VB but find they are not nuch help.
 
Thanks - I hoped the info was here somewhere.
 
OK chaps - I give up.
What do I have to do to get my answer?

I get this message when I follow the link
----------------------------------------------------
Username not found


If the username and password were entered correctly, make sure your browser is configured to accept cookies.

To recover your password, you may click on Account Setup.
----------------------------------------------------
Done the account setup thing but still get the same answer
 
LOL

Go to In the left hand pane, enter your username/password and click the <Enter messages area> button. This will take you into the messages area of your default forum.

At the top left of the forum window, you'll see a url labeled <Forum main page>, click it. It'll open the forum main page in a seperate window.

In the right hand pane of the newly opened window, find <Windows API functions> and click it.

It's kinda kwirky the way they do it over there. And unfortunately, you cant view the articles unless you are a registered user and logged in. Jon Hawkins

The World Is Headed For Mutiny,
When All We Want Is Unity. - Creed
 
Still unable to get in - same error again.
Password accepted on site entry but not in the universal thread thing.
 
Sorry Jon but &quot;Quirky&quot; isn`t a term I would use to describe the access system, I have been impressed with the Forum, up to now and I am grateful for the help I have received but I am getting a bit frustrated with this confusing form clicking nonesense.

Would you be kind enough to print the details of SendMessage as a reply in this thread so I can solve the problem in hand.

The API details should prove to be a useful resource once I am able to gain access.

Apologies if I have offended anyone but why make access so complicated or is there a fault on the system?
 
Hello, Webpager

If you are able to enter on the site (that's it, the username and password are accepted and you are able to see the messages) then, after the login, click on the &quot;Forum main page&quot; link on the top of the screen. The go to the API section.

Now: if you receive &quot;username not found&quot; message, anywhere, and you use Netscape, switch to Internet Explorer. It will work. It seems that the site has a problem with Netscape (I am constantly unable to login using Netscape).

Hope this helps.

PS. If you are unable to gain access there, I can mail to you all the pages &quot;Win32API&quot; from UT. The zip file have 4,5 MB in .mht format. Just drop a note on my e-mail address: gdolghin@yahoo.com

Grigore Dolghin
Class Software
Bucharest, Romania
 
WP,

FWIW, I was in no way attempting to criticize the UT. IMO, it has the most premier VFP forum available on the Net.

What I meant by &quot;kwirky the way they do it over there&quot; was the fact that they require users to first register before being able to explore the site, unlike Tek-Tips.

Here are the details you requested(irrelevant info trimmed):

Description: Sends a message to a window using its window handle. Use FindWindow to get a handle for a window. This is a synchronous call. To send a message and return immediately, use SendNotifyMessage or PostMessage

PostMessage() simply places the message in the queue for the hWnd and returns immediately, SendNotifyMessage() differs from this in a semisubtle fashion; if the hWnd referenced by the message is owned by the current thread, SendNotifyMessage() does not return immediately, instead, it waits on the message to be removed from the queue before returning from the saendNotifyMessage() API call. PostMessage() does not wait on the message to be processed regardless of who owns the window referenced by hWnd.

Thanks to Ed Rauh for additional notes.

Host file: User32.dll

Declare in Visual FoxPro:
DECLARE INTEGER SendMessage IN WIN32API ;
INTEGER hWnd, ;
INTEGER Msg, ;
INTEGER wParameter, ;
INTEGER lParameter

Example in Visual FoxPro:
* Close the MSDN Library window

#DEFINE WM_CLOSE 0x10
DECLARE INTEGER FindWindow IN Win32API STRING, STRING
hWnd = FindWindow(0,&quot;MSDN Library - January 2000&quot;)
=SendMessage(hWnd, WM_CLOSE, 0, 0)


Additionally, read my post to your thread:
Info on SendMessage - Please
Thread184-67960 Jon Hawkins

The World Is Headed For Mutiny,
When All We Want Is Unity. - Creed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top