Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Global hook Pin
PJ Arends23-Feb-07 10:05
professionalPJ Arends23-Feb-07 10:05 
Questionabout linking obj files Pin
sawerr23-Feb-07 0:52
sawerr23-Feb-07 0:52 
AnswerRe: about linking obj files Pin
toxcct23-Feb-07 0:56
toxcct23-Feb-07 0:56 
AnswerRe: about linking obj files Pin
Cedric Moonen23-Feb-07 0:57
Cedric Moonen23-Feb-07 0:57 
AnswerRe: about linking obj files Pin
Newbie0023-Feb-07 1:09
Newbie0023-Feb-07 1:09 
QuestionCReBar border question. Pin
PatrykDabrowski23-Feb-07 0:28
PatrykDabrowski23-Feb-07 0:28 
QuestionTrying to pass an array Pin
ericelysia22-Feb-07 23:57
ericelysia22-Feb-07 23:57 
AnswerRe: Trying to pass an array Pin
Cedric Moonen23-Feb-07 0:47
Cedric Moonen23-Feb-07 0:47 
You should declare your function this way:

void testFunction(int, int, bool, int, int, int*, char); 


There is another thing wrong in your program. This line:
int testCaseArray1[ arraySize1 ]; //assign myArray[ ] to testCaseArray1[ ]


You cannot declare an array this way (arraySize1 is not a constant). You need to dynamically allocate your array:
int* testCaseArray1 = new int[arraySize1];


And don't forget to delete it when you don't need it anymore.

I would suggest that you take a look at container classes from the STL. It might be hard to understand for a beginner but it solves a lot of problems (memory management and so on).


Cédric Moonen
Software developer

Charting control [v1.1]

AnswerRe: Trying to pass an array Pin
Newbie0023-Feb-07 0:59
Newbie0023-Feb-07 0:59 
QuestionVisual Studio Installer Error Pin
Mahesha_m22-Feb-07 23:42
Mahesha_m22-Feb-07 23:42 
QuestionVS2005 Pin
Anilkumar K V22-Feb-07 23:40
Anilkumar K V22-Feb-07 23:40 
AnswerRe: VS2005 Pin
Cedric Moonen22-Feb-07 23:51
Cedric Moonen22-Feb-07 23:51 
GeneralRe: VS2005 Pin
Anilkumar K V23-Feb-07 0:27
Anilkumar K V23-Feb-07 0:27 
GeneralRe: VS2005 Pin
Rajesh R Subramanian23-Feb-07 0:40
professionalRajesh R Subramanian23-Feb-07 0:40 
GeneralRe: VS2005 Pin
Cedric Moonen23-Feb-07 0:40
Cedric Moonen23-Feb-07 0:40 
GeneralRe: VS2005 Pin
toxcct23-Feb-07 0:52
toxcct23-Feb-07 0:52 
GeneralRe: VS2005 Pin
Rajesh R Subramanian23-Feb-07 3:11
professionalRajesh R Subramanian23-Feb-07 3:11 
GeneralRe: VS2005 Pin
toxcct24-Feb-07 0:52
toxcct24-Feb-07 0:52 
GeneralRe: VS2005 Pin
Nibu babu thomas23-Feb-07 3:25
Nibu babu thomas23-Feb-07 3:25 
AnswerRe: VS2005 Pin
Mark Salsbery23-Feb-07 8:45
Mark Salsbery23-Feb-07 8:45 
GeneralRe: VS2005 Pin
Hamid_RT23-Feb-07 19:24
Hamid_RT23-Feb-07 19:24 
QuestionWin32 Application for SetPrinterDataEx() Pin
Pankaj.Jain22-Feb-07 23:02
professionalPankaj.Jain22-Feb-07 23:02 
QuestionWindows Programming and Vista Pin
mehmetned22-Feb-07 22:59
mehmetned22-Feb-07 22:59 
AnswerRe: Windows Programming and Vista Pin
KarstenK23-Feb-07 2:05
mveKarstenK23-Feb-07 2:05 
QuestionService install problem. Pin
david bagaturia22-Feb-07 22:18
david bagaturia22-Feb-07 22:18 

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.