BCB daily use small highlights

zhaozj2021-02-16  53

BCB daily use small highlights

If you have any questions, please contact Xuchao@orient-it.com

The following is my daily notes, sorted out, for everyone to share.

1, BCB editing shortcut

Left / right shift block code

Select the block code 1 Ctrl Shift i is the whole piece to right, 2 Ctrl Shift U is the whole text to the left

2, get the current path of the executive program

ExtractFileDir (Application-> Exename); 3, responding to other operations in the loop

Add Application-> ProcessMessage () in the loop. 4. Provide DLL function standard Windows format to the outside

Extern "C" __DECLSPEC (DLLEXPORT) __STDCALL __INT32 FUN (__ int32 n32_i);

5, from external DLL input function standard Windows format

Extern "C" __DECLSPEC (DLLIMPORT) __STDCALL __INT32 FUN (__ INT32 N32_i);

6, debugging for DLL

The DLL of the DLL is called in RUN / Parameters.

7. Use the * .chm help file

Shellexecute (Null, Null, path, null, null, sw_shownormal);

8, PB_C Data Type Conversion Table

PB_C Data Type Conversion Table

MICROSOFTPB (16Bit) PB (32Bit) BoolBooleanBooleanByte, CharCharCharChar * Ref stringRef StringColorrefUintUlongDoubleDoubleDoubleDwordUintUlongFloatN / AN / AHandleUintUlongHdcUintUlongHfileUintUlongHinstanceUintUlongHwndUintUlongIntIntIntLongLongLongLparamUintUlongLpbyteRef IntRef LongLpcwstrRef BlobRef Blob (Unicode use ToUnicode ()) LpcvoidRef StringRef StringLpdwordRef UintRef UlongLpfiletimeRef TimeRef TimeLpintRef IntRef LongLpstr, LpcstrRef StringRef StringLpvoidRef Structstruct_instRef Struct struct_instLpwordRef IntRef UlongMcierrorLongLongPbyteRef Int [ #] Ref long [#] shortintintstructureRef struct struct_instref struct struct_instuintuintuintvoid ** SubroutinesubroutinewordintinTlongWParamuintulong

9, use CB memory vulnerability tools

Select Progect / Option-> Codeguard Support Environment CG32.LIB / CG32.dll

10, MFC Basic Running Directory MFC42.DLL MFC42D.DLL MFCD42D.dll Mfcn42d.dll MFCO42D.dll MSVCP60.DLL MSVCP60D.dll Msvcrtd.dll NTDLL.dll

11, Database Connection Test (ADO) builds a file, testdatabase.ud, content empty. Double click, follow the prompts.

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

New Post(0)