Click here to Skip to main content
15,896,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Two CPU's Pin
Bob Stanneveld4-Oct-05 7:44
Bob Stanneveld4-Oct-05 7:44 
AnswerRe: Two CPU's Pin
Blake V. Miller4-Oct-05 9:10
Blake V. Miller4-Oct-05 9:10 
Questionhow to convert unsigned char to COleVariant type Pin
snprani4-Oct-05 3:36
snprani4-Oct-05 3:36 
AnswerRe: how to convert unsigned char to COleVariant type Pin
John M. Drescher4-Oct-05 5:32
John M. Drescher4-Oct-05 5:32 
QuestionAcquireCredentialsHandle returns SEC_E_INTERNAL_ERROR Pin
sunit54-Oct-05 2:10
sunit54-Oct-05 2:10 
Questionhelp plz tell url of COM ebooks Pin
Anonymous4-Oct-05 1:33
Anonymous4-Oct-05 1:33 
JokeRe: help plz tell url of COM ebooks Pin
toxcct4-Oct-05 3:33
toxcct4-Oct-05 3:33 
QuestionHow to create a HUGE 2d array? Pin
Member 17264404-Oct-05 1:16
Member 17264404-Oct-05 1:16 
Can anyone tell me how to create a huge 2d array without affecting the processing time too much?

I used double pointer to create an array 2d array[27000][27000] as following:

BYTE **array;
array = (BYTE**)calloc(sizeof(BYTE*), 27000);
for (unsigned int index = 0; index < 27000; index)
array[index] = (BYTE*)calloc(sizeof(BYTE), 27000);


Right now, I need to increase the array size to 54000X54000 or even more. However, the compiler seems to have little problem to compile along with other codes. Even it compiles, the processing time is so slow.

Does anyone have a better way to profrom this task?

Thanks!
AnswerRe: How to create a HUGE 2d array? Pin
Trollslayer4-Oct-05 1:24
mentorTrollslayer4-Oct-05 1:24 
AnswerRe: How to create a HUGE 2d array? Pin
John M. Drescher4-Oct-05 2:49
John M. Drescher4-Oct-05 2:49 
AnswerRe: How to create a HUGE 2d array? Pin
Prakash Nadar4-Oct-05 5:43
Prakash Nadar4-Oct-05 5:43 
AnswerRe: How to create a HUGE 2d array? Pin
Rage_bla4-Oct-05 6:59
Rage_bla4-Oct-05 6:59 
Question1 pixel == 1 mil Pin
Member 17264404-Oct-05 15:53
Member 17264404-Oct-05 15:53 
AnswerRe: How to create a HUGE 2d array? Pin
karmendra_js4-Oct-05 23:24
karmendra_js4-Oct-05 23:24 
AnswerRe: How to create a HUGE 2d array? Pin
karmendra_js4-Oct-05 23:25
karmendra_js4-Oct-05 23:25 
QuestionRe: How to create a HUGE 2d array? Pin
Raymand C4-Oct-05 23:42
sussRaymand C4-Oct-05 23:42 
QuestionAbout Database: Plz Help Pin
Shhhrr4-Oct-05 1:03
sussShhhrr4-Oct-05 1:03 
QuestionShlwapi.h Pin
svirmani3-Oct-05 23:37
svirmani3-Oct-05 23:37 
QuestionRe: Shlwapi.h Pin
David Crow4-Oct-05 4:26
David Crow4-Oct-05 4:26 
QuestionA required .dll was not found Pin
Mike Winter3-Oct-05 23:16
Mike Winter3-Oct-05 23:16 
AnswerRe: A required .dll was not found Pin
Cedric Moonen3-Oct-05 23:32
Cedric Moonen3-Oct-05 23:32 
GeneralRe: A required .dll was not found Pin
Mike Winter4-Oct-05 0:43
Mike Winter4-Oct-05 0:43 
AnswerRe: A required .dll was not found Pin
The NULL Developer3-Oct-05 23:36
professionalThe NULL Developer3-Oct-05 23:36 
AnswerRe: A required .dll was not found Pin
bugDanny4-Oct-05 6:16
bugDanny4-Oct-05 6:16 
QuestionLinking VB and VC Pin
benjnp3-Oct-05 23:11
benjnp3-Oct-05 23:11 

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.