Home > Software engineering >  New use of opencv neural network identification characters. This LPCTSTR lpFileName=StringToWchar (f
New use of opencv neural network identification characters. This LPCTSTR lpFileName=StringToWchar (f

Time:10-01

Errors would be the value of type cannot be used for initialization LPCTSTR type of entity is how to change

CodePudding user response:

LPCTSTR into LPCTWSTR

CodePudding user response:

Would be changed to TCHAR

CodePudding user response:

Would be the type of course is not unable to convert LPCTSTR, would be * can be converted into LPCTSTR

CodePudding user response:

The Data Types
This topic lists the data types most commonly 2 in the Microsoft Foundation Class Library. Most of the data types are exactly the same as those in the Windows Software Development Kit (SDK), while others are unique to the MFC.

Commonly, informs the Windows SDK and MFC data types are as follows:

BOOL A Boolean value.


BSTR A 32 - bit character pointer.


BYTE An 8-bit integer that is not signed.


COLORREF A 32 - bit value, informs the as A color value.


DWORD A 32 - bit unsigned integer or the address of A segment and its associated offset.


LONG A 32 - bit signed integer.


LPARAM A 32 - bit value passed as A parameter to A window procedure or callback function.


LPCSTR A 32 - bit pointer to A constant character string.


LPSTR A 32 - bit pointer to A character string.


32 - bit LPCTSTR A pointer to A constant character string that is portable for Unicode and DBCS.


LPTSTR A 32 - bit pointer to A character string that is portable for Unicode and DBCS.


LPVOID A 32 - bit pointer to an unspecified type.


LRESULT A 32 - bit value returned from A window procedure or callback function.


UINT A 16 - bit unsigned integer on Windows versions 3.0 and 3.1; A 32 - bit unsigned integer on Win32.


WNDPROC A 32 - bit pointer to A window procedure.


WORD A 16 - bit unsigned integer.


WPARAM A value passed as A parameter to A window procedure or callback function: 16 bits on Windows versions 3.0 and 3.1; 32 bits on Win32.
The Data types unique to the Microsoft Foundation Class Library include the following:

The POSITION of A value, informs the to denote the POSITION of an element in A collection; 2 by MFC collection classes.


LPCRECT A 32 - bit pointer to A constant (nonmodifiable) of the RECT structure.
  • Related