Home > Software engineering >  VB generated exe file, execute exe file program from a serial port receives the data is wrong, direc
VB generated exe file, execute exe file program from a serial port receives the data is wrong, direc

Time:10-27

Please write VB program from the factory directly, through a serial port to collect data, process, carry out VBP project files in VB, data is normal, but the execution of the generated exe files, the program from the serial port receiving data is wrong, please directly, what the reason, thank you very much!

CodePudding user response:

How can a wrong method? Is the code or no data?

CodePudding user response:


Note that a serial port is port at low speed, and general PC code to run fast, compiled faster, in addition, if you use the Timer, before and after the compilation of behavior also have differences,



CodePudding user response:

refer to the second floor response:
note that serial port is port at low speed, and general PC code runs quickly, the compiled faster, in addition, if you use the Timer, compile behavior also have differences, before and after the

Sense, it is recommended that the original poster stick communication part of the code

CodePudding user response:

refer to the second floor response:
note that serial port is port at low speed, and general PC code runs quickly, the compiled faster, in addition, if you use the Timer, compile behavior also have differences, before and after the

To study the

CodePudding user response:

I also encountered similar problems, I was written using API function of serial communication program, unable to send data after generated exe files, return an error handle is invalid, please answer!!!!!!

CodePudding user response:

I will VB compiled into p code, run with respect to OK

CodePudding user response:

Is likely to be the host's software delay time is not enough