Click here to Skip to main content
15,868,016 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: a simple question Pin
Steve S16-Oct-06 21:41
Steve S16-Oct-06 21:41 
Questionerror....with oledb connection string Pin
With_problem16-Oct-06 17:31
With_problem16-Oct-06 17:31 
AnswerRe: error....with oledb connection string Pin
Hamid_RT16-Oct-06 19:21
Hamid_RT16-Oct-06 19:21 
GeneralRe: error....with oledb connection string Pin
With_problem16-Oct-06 19:29
With_problem16-Oct-06 19:29 
AnswerRe: error....with oledb connection string Pin
prasad_som16-Oct-06 19:38
prasad_som16-Oct-06 19:38 
AnswerRe: error....with oledb connection string Pin
Mark Salsbery17-Oct-06 7:16
Mark Salsbery17-Oct-06 7:16 
QuestionLive Redirection Pin
rupert_durans16-Oct-06 16:54
rupert_durans16-Oct-06 16:54 
AnswerRe: Live Redirection Pin
Owner drawn16-Oct-06 19:28
Owner drawn16-Oct-06 19:28 
GeneralRe: Live Redirection Pin
rupert_durans16-Oct-06 22:00
rupert_durans16-Oct-06 22:00 
QuestionDll Loading Visual Studio 6.0 VC++ Pin
ccp99916-Oct-06 14:30
ccp99916-Oct-06 14:30 
AnswerRe: Dll Loading Visual Studio 6.0 VC++ Pin
prasad_som16-Oct-06 19:45
prasad_som16-Oct-06 19:45 
Questioncreating a thread Pin
xJorDyx16-Oct-06 10:21
xJorDyx16-Oct-06 10:21 
AnswerRe: creating a thread Pin
Mark Salsbery16-Oct-06 10:36
Mark Salsbery16-Oct-06 10:36 
GeneralRe: creating a thread Pin
xJorDyx18-Oct-06 11:51
xJorDyx18-Oct-06 11:51 
GeneralRe: creating a thread Pin
Mark Salsbery18-Oct-06 12:03
Mark Salsbery18-Oct-06 12:03 

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.