Forum - Info Center - Eltima Software

Eltima Help Center => Virtual Serial Port Driver & Virtual Serial Port ActiveX => Topic started by: ityoo on March 25, 2019, 04:39:56 AM

Title: Virtual serial ports created will disappear after rebooting.
Post by: ityoo on March 25, 2019, 04:39:56 AM
Hi,

I have a question.
I Purchased Virtual Serial Port Driver OEM license.

Please look at attached image.

The virtual serial ports generated from your GUI will be displayed in Device Manager after PC rebooting.
However, The virtual serial ports created with the OEM sample program will disappear after rebooting.


Here is my code...

void CMyEditPortDlg::AddPortPair()
{
   CStringA   strUser;
   UpdateData(true);

   InitDll();
   if (!m_libInst)
      return;

   if (m_chkUser.GetCheck())
   {
      GetUserSessionFn GetUserSession = (GetUserSessionFn)GetProcAddress(m_libInst, "GetUserSession");
      if (GetUserSession)
      {
         int   iSize = 1024;
         GetUserSession(strUser.GetBufferSetLength(1024), iSize);
         strUser.ReleaseBuffer();
      }
   }

   CreatePairExFn CreatePair = (CreatePairExFn)GetProcAddress(m_libInst, "CreatePairEx");

   if (CreatePair == 0)
      return; /* Couldn't find function */

   CString strComPortNo;
   m_eComPortNo.GetWindowText(strComPortNo);
   m_strComPort = "COM" + strComPortNo;
   m_strComPort_P = m_strComPort + "_P";

   CreatePair((LPSTR)((LPCSTR)CStringA(m_strComPort)), (LPSTR)((LPCSTR)CStringA(m_strComPort_P)), (LPSTR)((LPCSTR)strUser));
}


The code I use is the same as the sample code.
Why does the generated virtual serial port disappear after rebooting?

Please let me know if there is a way to keep it from disappearing.


Thank you.
Title: Re: Virtual serial ports created will disappear after rebooting.
Post by: ityoo on March 26, 2019, 03:06:05 AM
HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM  is not Exist. Disappeared after PC rebooting.
Title: Re: Virtual serial ports created will disappear after rebooting.
Post by: ityoo on March 26, 2019, 04:39:59 AM
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\VSBC9\Ports


The virtual serial ports generated from your GUI will be displayed in above registry.

But, the virtual serial ports generated with the OEM sample program will not displayed above registry.
Title: Re: Virtual serial ports created will disappear after rebooting.
Post by: Boris Hohlenko on March 27, 2019, 11:36:28 AM
Hello,

Thank you for your question. As I can see we are already working on your ticket with the same issue. I'm sorry for the delay in replying your ticket.

We'll update your ticket in the shortest possible time.

Thank you for your understanding.

---
Best regards,
 
Borys Khokhlenko | Eltima Customer Support | http://www.eltima.com