Click here to Skip to main content
15,907,910 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionException Pin
john563216-Feb-07 19:13
john563216-Feb-07 19:13 
AnswerRe: Exception Pin
Waldermort16-Feb-07 19:22
Waldermort16-Feb-07 19:22 
AnswerRe: Exception Pin
Stephen Hewitt18-Feb-07 14:23
Stephen Hewitt18-Feb-07 14:23 
QuestionHow to set menu font through VC++ coding Pin
Atul2316-Feb-07 18:40
Atul2316-Feb-07 18:40 
AnswerRe: How to set menu font through VC++ coding Pin
Waldermort16-Feb-07 19:21
Waldermort16-Feb-07 19:21 
QuestionRunning multiple instance of same thread Pin
sulabh_expert@rediffmail.com16-Feb-07 18:30
sulabh_expert@rediffmail.com16-Feb-07 18:30 
AnswerRe: Running multiple instance of same thread Pin
Gary R. Wheeler17-Feb-07 3:10
Gary R. Wheeler17-Feb-07 3:10 
QuestionError C2057 (expected constant), trying to convert from gcc Pin
Sean Wcisel16-Feb-07 18:04
Sean Wcisel16-Feb-07 18:04 
Hi guys,
I've got some code from a classmate that was developed in gcc, and which I need to compile in VC++. I know that my problem is a result of VC++ wanting me to give a constant size for an array, but frankly I don't want to Smile | :) (it's not in the assignment specs). Don't worry, this isn't an integral part of the assignment, just setting it up. Here's the code that's causing the trouble:

<br />
int fixAtoi(char myAry[], int arySize){<br />
  char myAry2[arySize+1];<br />
  for (int i=0; i<arySize+1; i++){<br />
     myAry2[i]=myAry[i];<br />
  }<br />
  myAry2[arySize]= '\0';<br />
  return atoi(myAry2);<br />
}<br />


it's that second line there...

Like I said, I know what the problem is, but apart from pre-defining the array size, I don't know of a fix.


P.S. I hope you guys can appreciate having to read all that since I wrote it all while learning the dvorak layout (my second attempt).

Thanks guys,
Sean
AnswerRe: Error C2057 (expected constant), trying to convert from gcc Pin
Waldermort16-Feb-07 19:29
Waldermort16-Feb-07 19:29 
AnswerRe: Error C2057 (expected constant), trying to convert from gcc Pin
prasad_som16-Feb-07 19:38
prasad_som16-Feb-07 19:38 
AnswerRe: Error C2057 (expected constant), trying to convert from gcc Pin
Michael Dunn16-Feb-07 22:04
sitebuilderMichael Dunn16-Feb-07 22:04 
AnswerRe: Error C2057 (expected constant), trying to convert from gcc Pin
Sean Wcisel17-Feb-07 7:36
Sean Wcisel17-Feb-07 7:36 
AnswerRe: Error C2057 (expected constant), trying to convert from gcc Pin
David Crow17-Feb-07 16:13
David Crow17-Feb-07 16:13 
QuestionSocket Connection help? Pin
murali_utr16-Feb-07 18:04
murali_utr16-Feb-07 18:04 
AnswerRe: Socket Connection help? Pin
Mark Salsbery18-Feb-07 7:34
Mark Salsbery18-Feb-07 7:34 
QuestionHow to get the playtime for a mp3? Pin
chocm16-Feb-07 16:16
chocm16-Feb-07 16:16 
QuestionRe: How to get the playtime for a mp3? Pin
David Crow17-Feb-07 16:16
David Crow17-Feb-07 16:16 
QuestionCompiler versions [modified] Pin
Waldermort16-Feb-07 15:39
Waldermort16-Feb-07 15:39 
AnswerRe: Compiler versions Pin
PJ Arends16-Feb-07 22:31
professionalPJ Arends16-Feb-07 22:31 
GeneralRe: Compiler versions Pin
Waldermort16-Feb-07 22:46
Waldermort16-Feb-07 22:46 
QuestionBITMAP handling for screen Pin
Vancouver16-Feb-07 13:12
Vancouver16-Feb-07 13:12 
AnswerRe: BITMAP handling for screen [modified] Pin
Mark Salsbery16-Feb-07 13:58
Mark Salsbery16-Feb-07 13:58 
GeneralRe: BITMAP handling for screen Pin
Vancouver16-Feb-07 18:04
Vancouver16-Feb-07 18:04 
GeneralRe: BITMAP handling for screen Pin
Waldermort16-Feb-07 19:13
Waldermort16-Feb-07 19:13 
GeneralRe: BITMAP handling for screen Pin
Vancouver17-Feb-07 9:58
Vancouver17-Feb-07 9:58 

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.