Home > database > Will the Delphi and pb in a favor
Will the Delphi and pb in a favor
Time:09-27
Now to do a connection of pb program evaluation, but only the Delphi example,,
Pb code: (I think should write) Other events: Constant long wm_copydata=https://bbs.csdn.net/topics/74//cact evaluation device sends back the message of evaluation
If the message. The number=wm_copydata then Messagebox (', 'received') End the if
Interface documentation written news channel in the wm_copydata message number 74, why didn't I order evaluation button when the code response? And is there any way to find out the evaluation unit to the system message mechanism how? Under this back to Delphi, please friends see code:
Delphi code:
CactInterface. DLL and the communication between a host program is used Windows message mechanism, through the WM_CopyData method to send data to the host program, the specific usage is: 1, defined in a host program WMCopyData process, Delphi example: Procedure WMCopyData (var Msg: TWMCopyData); The message WM_CopyData; 2, the corresponding program of WMCopyData process, Delphi example: Procedure TFrmMain. WMCopyData (var Msg: TWMCopyData); Var SMsg: string; The begin SMsg:=StrPas (PChar (Msg. CopyDataStruct. ^ lpData));//Cact evaluation, send back the assessment information MemMessage. Lines. Insert (0, sMsg); end; //Cact evaluation string format for sending back assessment information: yyyy - mm - dd hh: mm: ss, aaa, BBB, Appri_ccc;
Question: please go back to Delphi friends look at Delphi code, tell me about the news of the specific evaluation machine mechanism is what principle,
CodePudding user response:
Delphi code is not complete, window when load should be registered to monitor the message code; Evaluation unit is connected to the PC through what way?