Click here to Skip to main content
15,898,790 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSubclassing Pin
monrobot1311-Feb-04 10:11
monrobot1311-Feb-04 10:11 
GeneralRe: Subclassing Pin
John M. Drescher11-Feb-04 10:21
John M. Drescher11-Feb-04 10:21 
GeneralRe: Subclassing Pin
John M. Drescher11-Feb-04 17:18
John M. Drescher11-Feb-04 17:18 
GeneralRe: Subclassing Pin
monrobot1313-Feb-04 4:40
monrobot1313-Feb-04 4:40 
GeneralDialog Resources and Static Libraries Pin
tabish12111-Feb-04 9:55
tabish12111-Feb-04 9:55 
GeneralCString to TCHAR Pin
satcat11-Feb-04 9:50
satcat11-Feb-04 9:50 
GeneralRe: CString to TCHAR Pin
David Crow11-Feb-04 10:29
David Crow11-Feb-04 10:29 
GeneralRe: CString to TCHAR Pin
Orkun GEDiK11-Feb-04 10:33
Orkun GEDiK11-Feb-04 10:33 
TCHAR is simple "char" type. If you want to pass CString data into a function, you should use "TCHAR*" instead of "TCHAR". Example as below.

void f(TCHAR* prm)<br />
{<br />
  do something<br />
}<br />
<br />
void main(void)<br />
{<br />
  CString szPrm;<br />
  f(szPrm.GetBuffer(szPrm.GetLength()));<br />
  return(0);<br />
}


Otherwise, you can pass only one character into function.

Ahmet Orkun GEDiK
System & Software Support Specialist (SAP R/3)
ASTRON
GeneralRe: CString to TCHAR Pin
satcat11-Feb-04 11:58
satcat11-Feb-04 11:58 
GeneralRe: CString to TCHAR Pin
John M. Drescher11-Feb-04 17:06
John M. Drescher11-Feb-04 17:06 
GeneralCListCtrl Item Search Efficiency :: MFC Pin
valikac11-Feb-04 8:55
valikac11-Feb-04 8:55 
GeneralCreate own window styles Pin
BrockVnm11-Feb-04 8:17
BrockVnm11-Feb-04 8:17 
GeneralRe: Create own window styles Pin
Antti Keskinen11-Feb-04 8:52
Antti Keskinen11-Feb-04 8:52 
GeneralRe: Create own window styles Pin
BrockVnm11-Feb-04 9:08
BrockVnm11-Feb-04 9:08 
GeneralMemory leak while traversing through HTML frames Pin
Member 85966411-Feb-04 7:55
Member 85966411-Feb-04 7:55 
GeneralRe: Memory leak while traversing through HTML frames Pin
Peter Weyzen11-Feb-04 8:14
Peter Weyzen11-Feb-04 8:14 
GeneralLocallizing to Hebrew Pin
LukeV11-Feb-04 7:01
LukeV11-Feb-04 7:01 
GeneralRe: Locallizing to Hebrew Pin
Peter Weyzen11-Feb-04 7:31
Peter Weyzen11-Feb-04 7:31 
GeneralRe: Locallizing to Hebrew Pin
LukeV11-Feb-04 7:47
LukeV11-Feb-04 7:47 
GeneralRe: Locallizing to Hebrew Pin
Peter Weyzen11-Feb-04 7:52
Peter Weyzen11-Feb-04 7:52 
GeneralRe: Locallizing to Hebrew Pin
LukeV11-Feb-04 8:29
LukeV11-Feb-04 8:29 
GeneralRe: Locallizing to Hebrew Pin
Anonymous11-Feb-04 11:58
Anonymous11-Feb-04 11:58 
GeneralRe: Locallizing to Hebrew Pin
LukeV11-Feb-04 12:19
LukeV11-Feb-04 12:19 
GeneralRe: Locallizing to Hebrew Pin
Anonymous11-Feb-04 14:03
Anonymous11-Feb-04 14:03 
GeneralRe: Locallizing to Hebrew Pin
LukeV11-Feb-04 13:05
LukeV11-Feb-04 13:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.