Questions tagged [lptstr]

L‌ong P‌ointer to a T‌CHAR STR‌ing

L‌ong P‌ointer to a T‌CHAR STR‌ing (A long pointer is the same as a pointer now. There were two flavors of pointers under 16-bit windows.)

LPTSTR = char* or wchar_t* depending on _UNICODE

From B. Kramer on MSDN forum

34 questions
0
votes
1 answer

How can i split a wchar_t / TCHAR / WCHAR / LPTSTR into a QStringList?

While working with the Win32API, the function i must use returns its results by writing them to buffer of type LPTSTR as well as the individual number of characters that were written.enter code here As this buffer is a string, and the function can…
Andrew
  • 1,344
  • 1
  • 12
  • 20
0
votes
4 answers

Why is the exception thrown on memcpy using during copying LPBYTE to LPTSTR (clipboard)?

I have a LPBYTE array (taken from file) and I need to copy it into LPTSRT (actually into the clipboard). The trouble is copying work but unstable, sometime an exception was thrown (not always) and I don't understand why. The code is: FILE…
mimic
  • 4,897
  • 7
  • 54
  • 93
0
votes
0 answers

Convert LPTSTR to System::String^ for view

I need to convert LPTSTR to String^ for be able to view it via MessageBox; LPTSTR szResult; DWORD language = GetPrivateProfileString(L"LANGUAGE", L"LANGUAGE", L"", szResult, 255, L"\\file.ini"); System::String^ str_buffed =…
Narkon
  • 398
  • 2
  • 17
0
votes
1 answer

LPTSTR + CFile Write issue

I am trying to read items from CListBox and writing to a file using CFile. Here is my code int count = m_lstSelectedItems.GetCount(); CFile cfile_object; cfile_object.Open( L"C:\\temp.txt", CFile::modeCreate|CFile::modeReadWrite); for(int i=0;…
atulya
  • 535
  • 2
  • 8
  • 25
1 2
3