If you have any questions, please contact xuchao@orient-it.com
The following is my daily notes, sorted out, for you to share.
1, BCB edit shortcut keys
Move block code left/right
Check Block code
1 Ctrl + Shift+ I is the whole piece moving to the right,
2 Ctrl + Shift+ U is the whole piece of text moving to the left
2, get the execution of the program's current path
Extractfiledir (Application->exename);
3, in the loop to respond to other operations
Add Application->processmessage () to the loop.
4. Provide external DLL function standard Windows format
extern "C" __declspec (dllexport) __stdcall __int32 Fun (__int32 n32_i);
5. Input function standard Windows format from external DLL
extern "C" __declspec (dllimport) __stdcall __int32 Fun (__int32 n32_i);
6, debugging of the DLL
Run/parameters to fill in the *.exe that invokes the DLL.
7. Use *.chm Help file
ShellExecute (Null,null, the path to the Help file, Null,null,sw_shownormal);
8. Pb_c Data Type conversion table
Pb_c data type conversion table MICROSOFT PB (16Bit) PB (32Bit)
Bool Boolean Boolean
Byte, Char Char Char
char* ref string Ref string
COLORREF Uint Ulong
Double Double
Dword Uint Ulong
Float N/a N/A
Handle Uint Ulong
HDC Uint Ulong
hfile Uint Ulong
HINSTANCE Uint Ulong
Hwnd Uint Ulong
int int int
Long Long Long
Lparam Uint Ulong
LPBYTE ref INT ref Long
LPCWSTR ref BLOB ref BLOB (Unicode use Tounicode ())
Lpcvoid ref string Ref string
Lpdword ref Uint ref Ulong
Lpfiletime ref time ref
Lpint ref INT ref Long
Lpstr,lpcstr ref string Ref string
LPVOID ref structstruct_inst ref Struct Struct_inst
Lpword ref INT ref Ulong
Mcierror Long Long
Pbyte ref int[#] Ref long[#]
short int int
Structure ref Struct Struct_inst ref Struct Struct_inst
Uint Uint Uint
void** subroutine subroutine
Word Int Long
Wparam Uint Ulong