Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Visual C++ Example for QRCode Encoder SDK/LIB

Visual C++ Example for QRCode Encoder SDK/LIB 4 years 3 months ago #3872

void CQRCodeVc6TestDlg::OnEncode()
{
_QRCODECONTEXT tQrcodeCtx;

_InitQRCodeContext(&tQrcodeCtx);

tQrcodeCtx.nVersion = m_Version.GetCurSel() + 1;
tQrcodeCtx.nCorrectionLevel = m_Level.GetCurSel();
tQrcodeCtx.nEncodeMode = m_EncodeMode.GetCurSel();
tQrcodeCtx.nFnc1Mode = m_Fnc1Mode.GetCurSel();
tQrcodeCtx.nEci = m_nEci;
tQrcodeCtx.nStructuredAppendIndex = m_nAppendIndex;
tQrcodeCtx.nStructuredAppendCounter = m_nAppendCounter;
tQrcodeCtx.bStructuredAppend = (m_StruAppend.GetCheck() == BST_CHECKED );
tQrcodeCtx.bProcessTilde = (m_ProcTilde.GetCheck()== BST_CHECKED);
tQrcodeCtx.bAutoConfigurate = (m_AutoConfig.GetCheck()== BST_CHECKED);
tQrcodeCtx.nMargin = m_nMargin;
tQrcodeCtx.nPixelSize = m_nModuleSize;
tQrcodeCtx.clBackGround = m_BackColor.GetColor();
tQrcodeCtx.clForeGround = m_ForeColor.GetColor();
if (m_strText != "") memcpy(tQrcodeCtx.cData,m_strText.GetBuffer(0),m_strText.GetLength());

_FreeQRCodeContext();
hbmp =_QRCodeEncode2Bitmap(&tQrcodeCtx);

Invalidate();
}
The administrator has disabled public write access.

  • Posts:59
  • developer's Avatar
  • developer
  • Moderator
  • OFFLINE
  • Karma: 1
  • Page:
  • 1
Time to create page: 0.956 seconds
Powered by Kunena Forum :: Wibi