Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: modifying the system image list fails in Vista Pin
David Crow17-Oct-06 3:13
David Crow17-Oct-06 3:13 
QuestionLink error question Pin
GDavy16-Oct-06 20:53
GDavy16-Oct-06 20:53 
AnswerRe: Link error question Pin
prasad_som16-Oct-06 21:16
prasad_som16-Oct-06 21:16 
GeneralRe: Link error question Pin
GDavy16-Oct-06 21:20
GDavy16-Oct-06 21:20 
QuestionRe: Link error question Pin
prasad_som16-Oct-06 21:27
prasad_som16-Oct-06 21:27 
AnswerRe: Which certification suites for VC++ MFC programmer Pin
David Crow17-Oct-06 3:18
David Crow17-Oct-06 3:18 
QuestionImporting outlook contacts Pin
Mithin16-Oct-06 20:43
Mithin16-Oct-06 20:43 
AnswerRe: Importing outlook contacts Pin
Umesh KV Guptha16-Oct-06 20:57
Umesh KV Guptha16-Oct-06 20:57 
GeneralRe: Importing outlook contacts Pin
Mithin16-Oct-06 21:13
Mithin16-Oct-06 21:13 
GeneralRe: Importing outlook contacts Pin
ThatsAlok16-Oct-06 23:40
ThatsAlok16-Oct-06 23:40 
AnswerRe: Importing outlook contacts Pin
David Crow17-Oct-06 4:26
David Crow17-Oct-06 4:26 
Questionenable logging capability Pin
mt_samiei16-Oct-06 20:35
mt_samiei16-Oct-06 20:35 
AnswerRe: enable logging capability Pin
Parthi_Appu16-Oct-06 20:47
Parthi_Appu16-Oct-06 20:47 
GeneralRe: enable logging capability Pin
Steve S16-Oct-06 21:38
Steve S16-Oct-06 21:38 
GeneralRe: enable logging capability Pin
Parthi_Appu16-Oct-06 22:39
Parthi_Appu16-Oct-06 22:39 
QuestionProviding Auto Scroll Feature to CListCtrl Pin
vijay_aroli16-Oct-06 19:51
vijay_aroli16-Oct-06 19:51 
AnswerRe: Providing Auto Scroll Feature to CListCtrl Pin
Owner drawn16-Oct-06 20:02
Owner drawn16-Oct-06 20:02 
GeneralRe: Providing Auto Scroll Feature to CListCtrl Pin
vijay_aroli16-Oct-06 20:19
vijay_aroli16-Oct-06 20:19 
QuestionCustom title bar Pin
Waldermort16-Oct-06 18:58
Waldermort16-Oct-06 18:58 
AnswerRe: Custom title bar Pin
Owner drawn16-Oct-06 19:20
Owner drawn16-Oct-06 19:20 
GeneralRe: Custom title bar Pin
Waldermort16-Oct-06 20:04
Waldermort16-Oct-06 20:04 
GeneralRe: Custom title bar Pin
Waldermort17-Oct-06 16:53
Waldermort17-Oct-06 16:53 
Questiona simple question Pin
minihotto16-Oct-06 18:02
minihotto16-Oct-06 18:02 
I want to convert "abcd" into ASCII code
but I met a strange problem. My code is below.
<br />
        char *s="abcd";<br />
	int br[100];<br />
	for(int i=0;i<4;i++)<br />
        {<br />
		br[i]=__toascii(s[i]);<br />
		cout << br[i] << "\n";<br />
	}<br />
        string kkb=""; <br />
	kkb=kkb.insert(0,br[1].ToString());<br />
        cout << kkb;<br />

and there is an error at kkb=kkb.insert(0,br[1].ToString());
error C2664: 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::insert(__w64 unsigned int,const std::basic_string<_Elem,_Traits,_Ax> &)' : cant convert argument 2 from 'System::String ^' to 'const std::basic_string<_Elem,_Traits,_Ax> &'a

It's very strange that I change the code
kkb=kkb.insert(0,br[1].ToString());
into
kkb=kkb.insert(0,"a string");
then it works.
I dont understand that both them are string.
why as long as I put the string variable int the function, it has an error?
Can somebody help me?
Thanks a lot.
minihotto
AnswerRe: a simple question Pin
With_problem16-Oct-06 18:29
With_problem16-Oct-06 18:29 
AnswerRe: a simple question Pin
ThatsAlok16-Oct-06 18:35
ThatsAlok16-Oct-06 18:35 

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.