CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2001
    Posts
    5

    Applications works fine on Windows NT/200 but not on Windows 98/95

    Hello,

    I am trying to run a Visual Basic application on Windows 98/95. It doesn't report any problem / error, but the application does not work. The same application works fine on Windows NT/2000.

    The application uses a C Dll and accesses a Control Unit through the Serial Ports ( COM 1/2/3/4). I noticed that while running the application on 98, it fails to communicate successfully with the Control Unit through the serial port. This results in the failure of the application. Can anyone help in finding out the possible reason for the application not working ?

    Some more information on the application :
    I haven't used named pipes in the Visual Basic Application. The VB application uses a C DLL which communicates with the Control Unit through a Serial Port. (Function CreateFile() is used to create handle to COM port, SetUpComm() used to initialize communication parameters, SetCommState()/GetCommState() used to write/read DCB structure, GetCommTimeouts()/SetCommTimeouts() to get/set timeout parameters,ClearCommError() to clear communication errors, ReadFile() to read data from COM port, TransmitCommChar() to transmit char through COM port and CloseHandle() to free handle). Are any of these functions incompatible with Windows 95/98 ?

    Thanks,
    Rad



  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Applications works fine on Windows NT/200 but not on Windows 98/95

    Check the API's. Some of them are different for W9x and NT

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured