Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi,
I am new for C++.In my Project,I used a DLL for my Project.In that DLL created in C++ for accessing COM Port.But i need to Change the Multiple COM Port access at same time.I don't know how to achieve this ?Please help me.
Thanks
Regards,
Lakshmi Narayanan.S
Posted

1 solution

You need to know some basic file operation using Windows APIs.
Go through this apis first
http://msdn.microsoft.com/en-us/library/aa363858%28v=vs.85%29.aspx[^]
http://msdn.microsoft.com/en-us/library/aa365467%28VS.85%29.aspx[^]
http://msdn.microsoft.com/en-us/library/ms724211%28v=VS.85%29.aspx[^]

You can get a handle to several com ports by using CreateFile with file name like COM1,COM2,COM3 and so on.
 
Share this answer
 
Comments
naraayanan 27-Jul-11 6:47am    
Thanks friend

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900