Re: [Hamlib-developer] HamLib and MSVC problems
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Outlook(SV2AGW) <sv...@ou...> - 2023-01-06 05:38:48
|
Hi Mikethe URL is ok. Just copy/paste and you will download the project.BTW the same code works fine with ver 473(SV2AGW)George RossopoulosAnakreontos14GR-54250 ThessalonikiGREECEwww.sv2agw.comwww.frinos.comwww.agwtracker.comAGWPE on Facebook----------------------------------------------------------------From: Black Michael<mdb...@ya...>Sent: Πεμ 05Ιαν2023 21:44 To: Subject: Re: [Hamlib-developer] HamLib and MSVC problems=Your weblink does not work.But it seems you are not setting the COM port path correctly as it is trying to open COM1 instead of COM9.strncpy(my_rig->state.rigport.pathname, rig_file, HAMLIB_FILPATHLEN - 1);Mike W9MDBOn Thursday, January 5, 2023 at 12:23:08 PM CST, Outlook(SV2AGW) wrote: Hi I followed your advise and created the .lib and .exp files for hamlib 4.5.3 and now works (xmmm) not exactly.Seems cannot set the serial port settingsgive it a tryhttps://sv2agw.com/beta/HamLibTest.zip thera are 3 different configurationsDebug_40 with Hamlib 4Debug_453 with hamlib 4.5.3Debug_46 with Hamlib 4.6Needs Visual studio 2022 select debug_453 and press F5 to debug.You will see in the output window what happensCMainFrame::iniRadio> 1CMainFrame::iniRadio> n_rigmodel=3073CMainFrame::iniRadio> 2CMainFrame::iniRadio> rig_init OKCMainFrame::iniRadio> _strCom=\\.\COm9CMainFrame::iniRadio> ************************** rig_open: error = 1:icom.c(623):icom_init enteredicom_init: done1:icom.c(723):icom_init returning(0) 1:rig.c(812):rig_open enteredrig_settings_get_path: path=.hamlib_settingsrig_settings_load_all: settings_file (.hamlib_settings): No such file or directoryrig_open: cwd=C:\MyProjects\HamLibTest\HamLibTestrig_open: C:\MyProjects\HamLibTest\HamLibTest/hamlib_settings does not existrig_open: async_data_enable=0, async_data_supported=1serial_open: \\.\COM1serial_open(229): open failed#1serial_open(229): open failed#2serial_open(229): open failed#3serial_open(229): open failed#4serial_open: Unable to open \\.\COM1 - Bad file descriptorport_open: serial_open(\\.\COM1) status=-6, err=Bad file descriptorrig_open: rs->comm_state==0?=01:rig.c(1018):rig_open returning(-6) IO errorIO error=-6CMainFrame::iniRadio> ************************** rig_open: error =error = 0 CMainFrame::iniRadio> *******************OK RIG READY73(SV2AGW)George RossopoulosAnakreontos14GR-54250 ThessalonikiGREECEwww.sv2agw.comwww.frinos.comwww.agwtracker.comAGWPE on Facebook_______________________________________________Hamlib-developer mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/hamlib-developer |