91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.91MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-08-10
  • 語言: C/C++
  • 標(biāo)簽: C++二維碼??

資源簡介

由于小弟是新手還是只菜鳥,并沒有做出完整完美的生成器,只是在一次看博客中前輩只是講了導(dǎo)出動(dòng)態(tài)庫,并沒有完全寫出二維碼代碼,所以小弟只是學(xué)習(xí)。利用開源庫bssQRCodeGenerator.dll創(chuàng)建最最簡單的二維碼生成器.里面使用到的是win32和純C++ 創(chuàng)建的文檔類視圖,利用點(diǎn)擊菜單在桌面生成二維碼。僅僅可供新手參考

資源截圖

代碼片段和文件信息

//?QRcode.cpp?:?Defines?the?entry?point?for?the?application.
//

#include?“stdafx.h“
#include?“QRcode.h“
#include?“gdiplusenums.h“
#define?MAX_LOADSTRING?100
#include?“bssQRCodeGenerator.h“?
#include?
#include?


using?namespace?std;

//?Global?Variables:
HINSTANCE?hInst; //?current?instance
TCHAR?sztitle[MAX_LOADSTRING]; //?The?title?bar?text
TCHAR?szWindowClass[MAX_LOADSTRING]; //?the?main?window?class?name

//?Forward?declarations?of?functions?included?in?this?code?module:
ATOM MyRegisterClass(HINSTANCE?hInstance);
BOOL InitInstance(HINSTANCE?int);
LRESULT?CALLBACK WndProc(HWND?UINT?WPARAM?LPARAM);
LRESULT?CALLBACK About(HWND?UINT?WPARAM?LPARAM);

int?APIENTRY?_tWinMain(HINSTANCE?hInstance
?????????????????????HINSTANCE?hPrevInstance
?????????????????????LPTSTR????lpCmdLine
?????????????????????int???????nCmdShow)
{
? //?TODO:?Place?code?here.
MSG?msg;
HACCEL?hAccelTable;

//?Initialize?global?strings
LoadString(hInstance?IDS_APP_title?sztitle?MAX_LOADSTRING);
LoadString(hInstance?IDC_QRCODE?szWindowClass?MAX_LOADSTRING);
MyRegisterClass(hInstance);

//?Perform?application?initialization:
if?(!InitInstance?(hInstance?nCmdShow))?
{
return?FALSE;
}

hAccelTable?=?LoadAccelerators(hInstance?(LPCTSTR)IDC_QRCODE);

//?Main?message?loop:
while?(GetMessage(&msg?NULL?0?0))?
{
if?(!TranslateAccelerator(msg.hwnd?hAccelTable?&msg))?
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}

return?(int)?msg.wParam;
}



//
//??FUNCTION:?MyRegisterClass()
//
//??PURPOSE:?Registers?the?window?class.
//
//??COMMENTS:
//
//????This?function?and?its?usage?are?only?necessary?if?you?want?this?code
//????to?be?compatible?with?Win32?systems?prior?to?the?‘RegisterClassEx‘
//????function?that?was?added?to?Windows?95.?It?is?important?to?call?this?function
//????so?that?the?application?will?get?‘well?formed‘?small?icons?associated
//????with?it.
//
ATOM?MyRegisterClass(HINSTANCE?hInstance)
{
WNDCLASSEX?wcex;

wcex.cbSize?=?sizeof(WNDCLASSEX);?

wcex.style =?CS_HREDRAW?|?CS_VREDRAW;
wcex.lpfnWndProc =?(WNDPROC)WndProc;
wcex.cbClsExtra =?0;
wcex.cbWndExtra =?0;
wcex.hInstance =?hInstance;
wcex.hIcon =?LoadIcon(hInstance?(LPCTSTR)IDI_QRCODE);
wcex.hCursor =?LoadCursor(NULL?IDC_ARROW);
wcex.hbrBackground =?(HBRUSH)(COLOR_WINDOW+1);
wcex.lpszMenuName =?(LPCTSTR)IDC_QRCODE;
wcex.lpszClassName =?szWindowClass;
wcex.hIconSm =?LoadIcon(wcex.hInstance?(LPCTSTR)IDI_SMALL);

return?RegisterClassEx(&wcex);
}

//
//???FUNCTION:?InitInstance(HANDLE?int)
//
//???PURPOSE:?Saves?instance?handle?and?creates?main?window
//
//???COMMENTS:
//
//????????In?this?function?we?save?the?instance?handle?in?a?global?variable?and
//????????create?and?display?the?main?program?window.
//


BOOL?InitInstance(HINSTANCE?hInstance?int?nCmdShow)
{
???HWND?hWnd;

???hInst?=?hInstance;

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-10-09?17:21??QRcode\
?????文件????????1158??2013-09-23?11:44??QRcode\BitMapImage.h
?????文件????????1979??2013-09-10?11:51??QRcode\bssQRCodeGenerator.h
?????文件????????2222??2012-12-13?06:30??QRcode\bssQRCodeGenerator.lib
?????目錄???????????0??2013-10-09?17:21??QRcode\Debug\
?????文件?????3309568??2012-12-13?06:30??QRcode\Debug\bssQRCodeGenerator.dll
?????文件???????13272??2013-10-09?17:21??QRcode\Debug\BuildLog.htm
?????文件??????281600??2013-09-11?09:55??QRcode\Debug\vc70.idb
?????文件??????372736??2013-09-11?09:55??QRcode\Debug\vc70.pdb
?????文件???????52096??2013-10-08?17:45??QRcode\QRcode.aps
?????文件????????8430??2013-10-09?17:17??QRcode\QRcode.cpp
?????文件??????????56??2013-10-08?17:03??QRcode\QRcode.h
?????文件???????23558??2001-06-05?05:28??QRcode\QRcode.ico
?????文件????????3227??2013-10-08?17:45??QRcode\QRcode.rc
?????文件?????????872??2013-09-11?09:57??QRcode\QRcode.sln
?????文件?????????901??2013-09-10?14:53??QRcode\QRcode.sln.old
?????文件???????50176??2013-10-09?17:15??QRcode\QRcode.suo
?????文件???????10240??2013-09-11?09:57??QRcode\QRcode.suo.old
?????文件????????5792??2013-10-08?15:19??QRcode\QRcode.vcproj
?????文件????????4209??2013-09-11?09:53??QRcode\QRcode.vcproj.7.10.old
?????文件????????1427??2013-10-09?17:15??QRcode\QRcode.vcproj.CQ-201301061759.Administrator.user
?????文件????????2155??2013-09-10?14:53??QRcode\ReadMe.txt
?????文件????????1033??2013-10-08?17:44??QRcode\resource.h
?????文件???????23558??2001-06-05?05:28??QRcode\small.ico
?????文件?????????293??2013-09-10?14:53??QRcode\stdafx.cpp
?????文件?????????721??2013-09-23?17:53??QRcode\stdafx.h
?????文件????????4827??2013-09-11?09:57??QRcode\UpgradeLog.xml
?????目錄???????????0??2013-09-11?09:57??QRcode\_UpgradeReport_Files\
?????文件????????3348??2013-09-11?09:57??QRcode\_UpgradeReport_Files\UpgradeReport.css
?????文件???????12505??2008-01-11?01:25??QRcode\_UpgradeReport_Files\UpgradeReport.xslt
?????文件??????????69??2013-09-11?09:57??QRcode\_UpgradeReport_Files\UpgradeReport_Minus.gif
............此處省略1個(gè)文件信息

評論

共有 條評論