Click here to Skip to main content
15,899,937 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Hardware drive serial encryptor/decryptor Pin
Christian Graus17-Oct-06 7:18
protectorChristian Graus17-Oct-06 7:18 
QuestionRTC issue Pin
Cristi B17-Oct-06 0:01
Cristi B17-Oct-06 0:01 
AnswerRe: RTC issue Pin
Christian Graus17-Oct-06 7:18
protectorChristian Graus17-Oct-06 7:18 
AnswerRe: RTC issue Pin
Cristi B17-Oct-06 20:33
Cristi B17-Oct-06 20:33 
GeneralRe: RTC issue Pin
Christian Graus17-Oct-06 22:50
protectorChristian Graus17-Oct-06 22:50 
AnswerRe: RTC issue Pin
Cristi B17-Oct-06 23:52
Cristi B17-Oct-06 23:52 
Questionconsole app: methods autocompletion (get method name from string parameter of invoker)[modified] Pin
n-j16-Oct-06 23:45
n-j16-Oct-06 23:45 
QuestionA strange problem Pin
minihotto16-Oct-06 23:41
minihotto16-Oct-06 23:41 
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 strange problem Pin
Christian Graus17-Oct-06 7:20
protectorChristian Graus17-Oct-06 7:20 
Questionexecuting a member function in a separate thread Pin
singersinger15-Oct-06 23:40
singersinger15-Oct-06 23:40 
AnswerRe: executing a member function in a separate thread Pin
Christian Graus17-Oct-06 7:21
protectorChristian Graus17-Oct-06 7:21 
QuestionHow to get pixel value using WinForm Pin
uusheikh15-Oct-06 21:12
uusheikh15-Oct-06 21:12 
AnswerRe: How to get pixel value using WinForm Pin
Christian Graus17-Oct-06 7:22
protectorChristian Graus17-Oct-06 7:22 
GeneralRe: How to get pixel value using WinForm Pin
uusheikh17-Oct-06 23:03
uusheikh17-Oct-06 23:03 
GeneralRe: How to get pixel value using WinForm Pin
uusheikh17-Oct-06 23:06
uusheikh17-Oct-06 23:06 
QuestionRUNGE-KUTTA ALGORITH FOR SECOND-ORDER ODE Pin
sahoong15-Oct-06 6:57
sahoong15-Oct-06 6:57 
AnswerRe: RUNGE-KUTTA ALGORITH FOR SECOND-ORDER ODE Pin
Christian Graus17-Oct-06 7:23
protectorChristian Graus17-Oct-06 7:23 
GeneralRe: RUNGE-KUTTA ALGORITH FOR SECOND-ORDER ODE Pin
sahoong18-Oct-06 3:47
sahoong18-Oct-06 3:47 
QuestionWinodws Media Player Visualization Pin
ceejeeb14-Oct-06 6:37
ceejeeb14-Oct-06 6:37 
QuestionC++/CLI managed code calling incorrect methods on unmanaged C++ classes Pin
dhazen13-Oct-06 5:20
dhazen13-Oct-06 5:20 
AnswerRe: C++/CLI managed code calling incorrect methods on unmanaged C++ classes Pin
dhazen25-Oct-06 10:13
dhazen25-Oct-06 10:13 
Questionproblem with converting CString to int Pin
singersinger11-Oct-06 1:33
singersinger11-Oct-06 1:33 
AnswerRe: problem with converting CString to int [modified] Pin
Epi11-Oct-06 2:36
Epi11-Oct-06 2:36 
AnswerRe: problem with converting CString to int Pin
led mike11-Oct-06 4:43
led mike11-Oct-06 4:43 
AnswerRe: problem with converting CString to int Pin
tydok18-Oct-06 4:02
tydok18-Oct-06 4:02 

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.