I have a program written in Visual Basic 6. It uses Win API calls for serial port communication using CreateFile, WriteFile, ReadFile, etc calls from the Win API. It works fine when in the IDE. When I make an EXE file and run it, the program crashes. The WriteFile and ReadFile calls seem to be the problem. Can anyone give me a possible reason for this? Thanks.
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.