How to modify CJLibrary608 running in a VC.NET environment

zhaozj2021-02-08  200

CJLibrary 6.08 is a very beautiful user interface class. Welcombled for the vast VC users. But when you compile it under VC.NET, you need to modify the pass. I have recorded me and compiled the process of translation, for your reference. Each error is listed below and its modifications:

1. Report CJLiRary.h file #include <../ src / afximpl.h> file can't find

Modify: change to #include <../ src / mfc / afximpl.h>

2. Report ColorRef CLR = AFXDATA.BWIN4? AFXDATA.CLRBTNSHADOW: AFXDATA.clrwindowframe BWIN4 is not defined

Modify: Find and replace all project files in FXDATA.BWIN4 is FXDATA.BWIN95

3. Report (ccjmonthcalctrl *) CWnd :: fromHandle (PDX-> m_hwndlastControl); M_HWndlastControl is not a cdataExchang member

Modify: Find and replace the project pdx-> m_hwndlastControl as PDX-> m_pdlgWnd-> m_hwnd

4. Report CJColorPopup.cpp file CWnd :: OnActivateApp (Bactive, Htask); You cannot convert HTASK parameters to DWORD

Modify: Modify the onactivateApp function in cjcolorpopup.h and colorpopup.cpp file, convert HTASK HTASK to DWORD HTASK

5. Report CJCAPTION.CPP cannot be converted from void (__thiscall ccjcaption :: *) (uint, long) to LRESULT (_THISCALL CWND :: *) (WPARAM, LPARAM)

Modification: CJCAPTION.H file AFX_MSG Void OnpushpinButton (uint lparam, long wparam) is AFX_MSG LRESULT ONPUSHPINBUTTON (UINT LPARAM, Long WPARAM);

6. Report Switch (PNMPGCALCSIZE) -> DWFLAG) Type Error

Modify: First modify the function to BOOL CCJPAGERCTRL :: ONPAGERCALCSIZE (/ * nmpgcalcsize ** / nmHDR * PNMPGCALCSIZE, LRESULT * PRESULT) to modify Switch ((NMPGCALCSIZE *) PNMPGCALCSIZE) -> dwflag)

转载请注明原文地址:https://www.9cbs.com/read-1860.html

New Post(0)