Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Hi everyone, can someone help me with the following code
typedef unsigned short WCHAR;
typedef WCHAR *LPWSTR, *PWSTR;
typedef LPWSTR LPTSTR; //typedef lines are from winnt.h
int trial = 0;
HWND hctl_data, hctl_type;
s2 = s1;
s1 = *(LPTSTR)(something);
if(trail > 2)
trial = 0;
if( s1 == s2)
The Edit_SetText(HWND hWnd, LPTSTR lpString) is similar to the SetWindowText function (actually it was #define). The Edit_SetText function works. Edit_SetText(hctl_type, TEXT("working")) will print out "working".
My questions and problems are in regards to s1 and s2.
Is s1 = *(LPTSTR)(something); correct?
How do I get the unsigned short value out of (LPTSTR)(something)?
My goal is to compare two (LPTSTR)(something). Is there a function in does this, comparing two LPTSTR values? I would also like to know what is LPTSTR? My guess is a pointer to a array or string.
Thx in advance
0 · ·