BCB daily use of small collection

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.