Click here to Skip to main content
15,914,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Import dll to vc++ Pin
Hamid_RT3-Sep-07 0:05
Hamid_RT3-Sep-07 0:05 
Questionhi Pin
Lakshmi_p2-Sep-07 23:47
Lakshmi_p2-Sep-07 23:47 
AnswerRe: hi Pin
baerten2-Sep-07 23:53
baerten2-Sep-07 23:53 
GeneralRe: hi Pin
Rajesh R Subramanian2-Sep-07 23:59
professionalRajesh R Subramanian2-Sep-07 23:59 
GeneralRe: hi Pin
Lakshmi_p3-Sep-07 0:37
Lakshmi_p3-Sep-07 0:37 
AnswerRe: hi Pin
Rajesh R Subramanian3-Sep-07 0:08
professionalRajesh R Subramanian3-Sep-07 0:08 
Questionabout HKEY_CLASSES_ROOT TypeLib Pin
George_George2-Sep-07 23:27
George_George2-Sep-07 23:27 
QuestionStack overflow while reading bamp image Pin
Maynka2-Sep-07 23:26
Maynka2-Sep-07 23:26 
Hello all,

I am getting error message:

Unhandled exception:Stack overflow.It is due to the declaration of too large array sizes.
But how can i overcame that problem

The code presented here is given below:

FILE *fp1,*fp2,*fp_write,*fpw,*fp_col;
int width,height;
int buffer,buffer1,buffer3;
int k=0,p=0;
unsigned int blueValue=0,redValue=0,greenValue=0;
unsigned int grayValue=0;
unsigned char *pChar;
unsigned char someChar;
long int iHist[256];
float hist[256];
long int total_pixels=0;
int col[257499];
int C[561][459];
int m=0;



fp1=fopen("D:\\Pictures\\mod.bmp","rb");
if(fp1==NULL)
{
printf("file doesn't open");
return;
}



fseek(fp1,1078,SEEK_SET);




k=0;
while(!feof(fp1))
{
fread(&buffer,1,1,fp1);
col[k]=buffer;
k++;
}

int i=0;
int j=0;
k=0,m=0;
for(m=0;m<258878;m++)
{
C[i][j]=col[k];
j++;
k=k+561;
if((j%459==0) &(j!=0))
{
i=i+1;
k=i;
j=0;
}
if(i>561)
break;
m++;
}

Regards
AnswerRe: Stack overflow while reading bamp image Pin
chandu0042-Sep-07 23:48
chandu0042-Sep-07 23:48 
AnswerRe: Stack overflow while reading bamp image Pin
Russell'2-Sep-07 23:55
Russell'2-Sep-07 23:55 
AnswerRe: Stack overflow while reading bamp image Pin
Mark Salsbery3-Sep-07 9:05
Mark Salsbery3-Sep-07 9:05 
GeneralRe: Stack overflow while reading bamp image Pin
Maynka3-Sep-07 18:45
Maynka3-Sep-07 18:45 
GeneralRe: Stack overflow while reading bamp image Pin
Mark Salsbery3-Sep-07 20:31
Mark Salsbery3-Sep-07 20:31 
QuestionPicture Control / Client Rectangle Pin
TheShihan2-Sep-07 23:22
TheShihan2-Sep-07 23:22 
GeneralRe: Picture Control / Client Rectangle Pin
chandu0042-Sep-07 23:46
chandu0042-Sep-07 23:46 
GeneralRe: Picture Control / Client Rectangle Pin
TheShihan3-Sep-07 0:02
TheShihan3-Sep-07 0:02 
GeneralRe: Picture Control / Client Rectangle Pin
chandu0043-Sep-07 0:13
chandu0043-Sep-07 0:13 
Questionmsi.lib Pin
himanshu p taunk2-Sep-07 22:58
himanshu p taunk2-Sep-07 22:58 
AnswerRe: msi.lib Pin
Hamid_RT3-Sep-07 0:07
Hamid_RT3-Sep-07 0:07 
QuestionCan anyone tell me whats wrong with this mime format Pin
monsieur_jj2-Sep-07 21:17
monsieur_jj2-Sep-07 21:17 
QuestionNeed help about SIP protocol on PDA Pin
goooff2-Sep-07 21:09
goooff2-Sep-07 21:09 
QuestionIncluding files present in subfolders in VC++ Pin
vipin_nvk2-Sep-07 20:48
vipin_nvk2-Sep-07 20:48 
AnswerRe: Including files present in subfolders in VC++ Pin
chandu0042-Sep-07 21:38
chandu0042-Sep-07 21:38 
AnswerRe: Including files present in subfolders in VC++ Pin
jhwurmbach3-Sep-07 2:45
jhwurmbach3-Sep-07 2:45 
Question/Gz;/Gd;/Gr Pin
nitin32-Sep-07 20:40
nitin32-Sep-07 20:40 

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.