Click here to Skip to main content
15,924,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Setting Dialog Tab Order With Propertysheet Pin
John Clump16-May-03 22:14
John Clump16-May-03 22:14 
GeneralRe: Setting Dialog Tab Order With Propertysheet Pin
Gary R. Wheeler17-May-03 4:55
Gary R. Wheeler17-May-03 4:55 
GeneralDisplay mirror drivers Pin
vikramlinux15-May-03 19:15
vikramlinux15-May-03 19:15 
GeneralDestructor Order Pin
Andrew Walker15-May-03 17:20
Andrew Walker15-May-03 17:20 
GeneralRe: Destructor Order Pin
Taka Muraoka15-May-03 18:58
Taka Muraoka15-May-03 18:58 
GeneralRe: Destructor Order Pin
Vikram A Punathambekar16-May-03 0:12
Vikram A Punathambekar16-May-03 0:12 
GeneralRe: Destructor Order Pin
Andrew Walker16-May-03 1:35
Andrew Walker16-May-03 1:35 
Generalerror C2601: 'CreateArrayOfRandomNumbers' : local function definitions are illegal Pin
linex15-May-03 17:16
linex15-May-03 17:16 
hey people

have taken your advice, but it just won't work, keeps coming up with the error in the subject line. any help would be truly appreciated..
here's what the code looks like:

#include "stdlib.h"
int* CreateArrayOfRandomNumbers(int nSize)
{
int* pArray = new int[nSize];
if( NULL == pArray );
return NULL; // memory allocation error
for( int i=0; i);
{
pArray[i] = rand();
}
return pArray;
}
GeneralRe: error C2601: 'CreateArrayOfRandomNumbers' : local function definitions are illegal Pin
Taka Muraoka15-May-03 19:03
Taka Muraoka15-May-03 19:03 
GeneralRe: error C2601: 'CreateArrayOfRandomNumbers' : local function definitions are illegal Pin
linex15-May-03 19:47
linex15-May-03 19:47 
GeneralRe: error C2601: 'CreateArrayOfRandomNumbers' : local function definitions are illegal Pin
Vikram A Punathambekar16-May-03 0:17
Vikram A Punathambekar16-May-03 0:17 
GeneralRe: error C2601: 'CreateArrayOfRandomNumbers' : local function definitions are illegal Pin
Martyn Pearson15-May-03 21:43
Martyn Pearson15-May-03 21:43 
GeneralRe: error C2601: 'CreateArrayOfRandomNumbers' : local function definitions are illegal Pin
David Crow16-May-03 3:51
David Crow16-May-03 3:51 
GeneralRe: error C2601: 'CreateArrayOfRandomNumbers' : local function definitions are illegal Pin
linex16-May-03 15:36
linex16-May-03 15:36 
GeneralBitmap Processing Pin
sooyewguan15-May-03 16:58
sooyewguan15-May-03 16:58 
Questionifstream ambiguity error??? Pin
alex.barylski15-May-03 16:51
alex.barylski15-May-03 16:51 
AnswerRe: ifstream ambiguity error??? Pin
valikac15-May-03 18:29
valikac15-May-03 18:29 
GeneralZModem protocol Pin
SNathani15-May-03 15:09
SNathani15-May-03 15:09 
Questionhow to open file faster? Pin
includeh1015-May-03 11:32
includeh1015-May-03 11:32 
AnswerRe: how to open file faster? Pin
Chris Richardson15-May-03 17:10
Chris Richardson15-May-03 17:10 
GeneralRe: how to open file faster? Pin
includeh1017-May-03 15:50
includeh1017-May-03 15:50 
GeneralRe: how to open file faster? Pin
Chris Richardson18-May-03 13:13
Chris Richardson18-May-03 13:13 
AnswerRe: how to open file faster? Pin
jhaga15-May-03 23:16
professionaljhaga15-May-03 23:16 
QuestionChange the default title of an application? Pin
Kevein15-May-03 11:17
Kevein15-May-03 11:17 
AnswerRe: Change the default title of an application? Pin
Neville Franks15-May-03 11:33
Neville Franks15-May-03 11:33 

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.