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!

RegisterWindowMessage

Status
Not open for further replies.

bebbo

Programmer
Dec 5, 2000
621
GB
can foxpro use the windows api funtion RegisterWindowMessage
If so how?
 
bebbo

can foxpro use the windows api funtion RegisterWindowMessage
If so how?

Yes, it can, but it depends what you need to do. It is normally use in conjunction with other API, to send a message. RegisterWindowMessage is use like a variable to store the message to be sent. Here is how to decalre it in VFP.
Code:
DECLARE INTEGER RegisterWindowMessage IN User32 ;
        STRING lpString


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Yes, basically I want to recieve a message from another application using this function. If the external funtion uses the RegisterWindowMessage() how would I pick up the message/aparamters sent.
 

RegisterWindowMessage() might miss labeled here. As far as I know, it registers a signal rather then an actual message. You would use it for example to send a signal the windows itself to do something. Did you want to actually see a message, or just receive a signal?

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Basically I want to recieve information from a c++ program. I believe they want to send me information using SendMessage(wnd, uClickYes, 1, 0)

Apparently I should be able to pick up some parameters. This person controls some periperals and wants to send me information about them. At the moment I constently polling his program by using dll files. This is causing problems and we believe we might be able to communicate using the windows funtions
 
bebbo

There are couple of threads discussing the use of SendMessage() take might interest you.
thread184-722247.
thread184-796434.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
They apear to be sending messages. I need to recieve messages sent by an external program. this is all new to me.
 
bebbo

You might have a little homework to do on this one. I don't have a bit of code readely available for you, but I believe the RegisterWindowMessage() and SendMessage() are not the function you are looking for since they refer to sending a message, but you may want to look on MSDN for the GetMessage() and PeekMessage() and WaitMessage().

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top