Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API Call - SENDMESSAGE()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00228861
Message ID:
00228886
Vues:
16
>Has anyone gotten the SENDMESSAGE() aAPI call to work?
>
> I need to send a text message to a VB 6.0 app from FPW2.6. I was hoping to use the SENDMESSAGE() API call, but I cannot get the correct syntax.
>
>Basically I'm using the following code.
>
>x=SENDMESSAGE(lnwindhand, wm_command, em_settext,lcmsg)
>
>lnwindhand is the window handle of the app I'm sending the message to.
>wm_command, I need the hex value of this
>em_settext, I need the hex vcalue for this.
>lcmsg = "1234568,Houston,Tx,Elm&Main"
>
>Help please.

Hi Fred,

I don't think you're going to have any success in trying to use SendMessage() to do this, especially in view of the way VFP handles windows messaging. However, there is an alternative that will do what you want, and, BTW, uses Windows messaging services: DDE. DDESetTopic() allows you to define a UDF name that can receive the messages. If the FPW app does need to receive messages back, you'll only have to initiate the connection with the VFP using the native commands. No need for foxtools and declaring the function.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform