Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: save/load variables in a dialog Pin
Green Fuze12-Apr-05 2:55
Green Fuze12-Apr-05 2:55 
GeneralThread synchronization. Pin
Nick Z.11-Apr-05 13:50
Nick Z.11-Apr-05 13:50 
GeneralRe: Thread synchronization. Pin
Ryan Binns11-Apr-05 17:59
Ryan Binns11-Apr-05 17:59 
GeneralRe: Thread synchronization. Pin
Nick Z.11-Apr-05 18:09
Nick Z.11-Apr-05 18:09 
GeneralRe: Thread synchronization. Pin
markkuk12-Apr-05 0:23
markkuk12-Apr-05 0:23 
GeneralRe: Thread synchronization. Pin
Jack Puppy11-Apr-05 18:00
Jack Puppy11-Apr-05 18:00 
GeneralRe: Thread synchronization. Pin
Nick Z.11-Apr-05 18:12
Nick Z.11-Apr-05 18:12 
GeneralUNICODE COMPILATION ReplaceSel usage for char array. Pin
kristna11-Apr-05 11:19
kristna11-Apr-05 11:19 
Hi !

I am compiling for UNICODE, a RichEditView in VC++ 6.0

A private variable prchars is defined in RichEditView Class.

In wordpad.h file

private:
char prchars[6];

********************************************************
In WordPadView.cpp in the constructor method I initialised the value

char prchars[0]='\0';

Now I am using

GetRichEditCtrl().ReplaceSel(prchars);

is giving an error

'ReplaceSel' : cannot convert parameter 1 from 'char [6]' to 'const unsigned short *'


even if i use
GetRichEditCtrl().ReplaceSel(_T(prchars)); it is not working. But it is working for constants in _T() ie.,

GetRichEditCtrl().ReplaceSel(_T("D"));

How can I use a character array variable prchars in the place of "D" ?

Thanks in advance.



Jai Srimannarayana
GeneralRe: UNICODE COMPILATION ReplaceSel usage for char array. Pin
Graham Bradshaw11-Apr-05 12:05
Graham Bradshaw11-Apr-05 12:05 
GeneralRe: UNICODE COMPILATION ReplaceSel usage for char array. Pin
kristna11-Apr-05 22:55
kristna11-Apr-05 22:55 
GeneralMFC Worker Thread Problem Pin
CNewbie11-Apr-05 11:00
CNewbie11-Apr-05 11:00 
GeneralRe: MFC Worker Thread Problem Pin
Orkun GEDiK11-Apr-05 11:50
Orkun GEDiK11-Apr-05 11:50 
GeneralRe: MFC Worker Thread Problem Pin
CNewbie11-Apr-05 11:56
CNewbie11-Apr-05 11:56 
GeneralRe: MFC Worker Thread Problem Pin
Blake Miller11-Apr-05 12:33
Blake Miller11-Apr-05 12:33 
GeneralRe: MFC Worker Thread Problem Pin
toxcct11-Apr-05 20:55
toxcct11-Apr-05 20:55 
GeneralRe: MFC Worker Thread Problem Pin
CNewbie11-Apr-05 20:58
CNewbie11-Apr-05 20:58 
GeneralRe: MFC Worker Thread Problem Pin
Iain Clarke, Warrior Programmer11-Apr-05 12:37
Iain Clarke, Warrior Programmer11-Apr-05 12:37 
GeneralImage resize in GDI+ Pin
smicikli11-Apr-05 10:18
smicikli11-Apr-05 10:18 
GeneralATL configuration Pin
act_x11-Apr-05 9:47
act_x11-Apr-05 9:47 
GeneralComing out of StandBy application crashes Pin
casid11-Apr-05 9:32
casid11-Apr-05 9:32 
GeneralRe: Coming out of StandBy application crashes Pin
Blake Miller11-Apr-05 12:49
Blake Miller11-Apr-05 12:49 
Generalmemory leaks vs. the OS Pin
Maximilien11-Apr-05 9:30
Maximilien11-Apr-05 9:30 
GeneralRe: memory leaks vs. the OS Pin
Rick York11-Apr-05 10:17
mveRick York11-Apr-05 10:17 
GeneralDifferent toolbars Pin
act_x11-Apr-05 8:28
act_x11-Apr-05 8:28 
GeneralRe: Different toolbars Pin
BambooMoon11-Apr-05 9:40
BambooMoon11-Apr-05 9:40 

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.