Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Can't use GetCommPorts()


I've tried to get a full list of serial interfaces available with many different techniques. Some other people told me to use "GetCommPorts()" function instead of iterating through the registry myself, but the CB IDE doesn't seem to know that function, even if i include <winbase.h> like told in the MS docs here
And also having a "#pragma comment (lib, "OneCore.lib")" does not change anything. The compiler complains about an unknown function and also the IDE does not show up this function in the context-help.

Miguel Gimenez:
General programming is OT here.

Link to the CB wiki FAQs
Maybe it will help you on your next question. This one is off topic as the prior poster stated.

Edit: Add link to rules,9996.0.html

Tim S.


[0] Message Index

Go to full version