Click here to Skip to main content
15,916,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to test TCP/IP connection on the client-side? Pin
RoseAl15-Mar-06 21:57
RoseAl15-Mar-06 21:57 
AnswerRe: How to test TCP/IP connection on the client-side? Pin
Dathan Tseng15-Mar-06 21:59
Dathan Tseng15-Mar-06 21:59 
AnswerRe: How to test TCP/IP connection on the client-side? Pin
sunit515-Mar-06 22:07
sunit515-Mar-06 22:07 
QuestionPrinters !!! Pin
vikramlinux15-Mar-06 21:47
vikramlinux15-Mar-06 21:47 
Questioninsert char into buffer Pin
beardy janggut15-Mar-06 21:25
beardy janggut15-Mar-06 21:25 
AnswerRe: insert char into buffer Pin
kakan15-Mar-06 21:32
professionalkakan15-Mar-06 21:32 
AnswerRe: insert char into buffer Pin
sunit515-Mar-06 21:45
sunit515-Mar-06 21:45 
AnswerRe: insert char into buffer Pin
Nishad S15-Mar-06 22:47
Nishad S15-Mar-06 22:47 
To specify an array with dynamic size, you should allocate it dynamically.
eg.

char* buffer1 = new char[nfilelength];
// read the file.
// do other thing that you need.
delete [] buffer1;

But I think there is a logical mistake in your code. You read only one char from the file using fread. If you intended to do so then you don't have to give any array.
If not you should specify the size as nfilelenght or sizeof(char)*nfilelength instead of sizeof(char).

- NS -
QuestionTreeView in vc++ 6.0 Pin
pankajgarg1215-Mar-06 21:12
pankajgarg1215-Mar-06 21:12 
AnswerRe: TreeView in vc++ 6.0 Pin
Nibu babu thomas15-Mar-06 21:18
Nibu babu thomas15-Mar-06 21:18 
AnswerRe: TreeView in vc++ 6.0 Pin
toxcct15-Mar-06 21:34
toxcct15-Mar-06 21:34 
AnswerRe: TreeView in vc++ 6.0 Pin
Michael Dunn16-Mar-06 5:18
sitebuilderMichael Dunn16-Mar-06 5:18 
Questionhow to create bitmap Pin
himuskanhere15-Mar-06 20:24
himuskanhere15-Mar-06 20:24 
AnswerRe: how to create bitmap Pin
Karlzheng15-Mar-06 21:14
Karlzheng15-Mar-06 21:14 
QuestionWriting different colums of data into excel file through code in vc++ Pin
ledallam15-Mar-06 20:20
ledallam15-Mar-06 20:20 
AnswerRe: Writing different colums of data into excel file through code in vc++ Pin
kakan15-Mar-06 21:29
professionalkakan15-Mar-06 21:29 
QuestionWriting data to excel file through code in vc++ Pin
ledallam15-Mar-06 20:13
ledallam15-Mar-06 20:13 
AnswerRe: Writing data to excel file through code in vc++ Pin
HakunaMatada15-Mar-06 22:14
HakunaMatada15-Mar-06 22:14 
GeneralRe: Writing data to excel file through code in vc++ Pin
ledallam15-Mar-06 22:44
ledallam15-Mar-06 22:44 
QuestionHow to fix this warning ? Pin
BeakX15-Mar-06 19:46
BeakX15-Mar-06 19:46 
AnswerRe: How to fix this warning ? Pin
Joe Woodbury15-Mar-06 20:11
professionalJoe Woodbury15-Mar-06 20:11 
AnswerRe: How to fix this warning ? Pin
toothless boots16-Mar-06 3:26
toothless boots16-Mar-06 3:26 
QuestionControlBar Messages... Pin
Aravind Badrinath Krishnan15-Mar-06 19:23
Aravind Badrinath Krishnan15-Mar-06 19:23 
QuestionSecurity question on hiding data from possible snooping apps Pin
KnaveR77715-Mar-06 18:44
KnaveR77715-Mar-06 18:44 
AnswerRe: Security question on hiding data from possible snooping apps Pin
kakan15-Mar-06 18:54
professionalkakan15-Mar-06 18:54 

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.