Click here to Skip to main content
15,889,096 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: thread/application priority Pin
tonyro3-Jan-06 3:53
tonyro3-Jan-06 3:53 
GeneralRe: thread/application priority Pin
basementman3-Jan-06 4:59
basementman3-Jan-06 4:59 
GeneralRe: thread/application priority Pin
Ali Mojtabaee4-Jan-06 5:43
Ali Mojtabaee4-Jan-06 5:43 
AnswerRe: thread/application priority Pin
Michael Dunn3-Jan-06 7:44
sitebuilderMichael Dunn3-Jan-06 7:44 
GeneralRe: thread/application priority Pin
tonyro4-Jan-06 4:53
tonyro4-Jan-06 4:53 
GeneralRe: thread/application priority Pin
Michael Dunn5-Jan-06 9:16
sitebuilderMichael Dunn5-Jan-06 9:16 
AnswerRe: thread/application priority Pin
Stephen Hewitt9-Jan-06 2:04
Stephen Hewitt9-Jan-06 2:04 
Questionproblem with buffer in fread and fwrite Pin
hamsha_ir3-Jan-06 2:38
hamsha_ir3-Jan-06 2:38 
Hi everyone
I have some problem with fread and fwrite in VS2005 beta2
I have the following code, in it i generate a buffer and after assigning some values to it , i write it to a file , then i try to read it back to a new buffer which is not successful.
for variable bigVal=100 i get "k=100" for writing but for reading i get "k=77" , i would be pleased if someone can help me.

#include "stdafx.h"
#include <stdlib.h>
#include <time.h>
#include <stdio.h>

typedef double dtype;


int _tmain(int argc, _TCHAR* argv[])
{

dtype *b;
int i,j,k;
int bigVal;
char filename[]="c:\\temp.data";
FILE *fp;

bigVal=100;
b=(dtype*) malloc(bigVal * sizeof(dtype));

for(i=0 ; i
AnswerRe: problem with buffer in fread and fwrite Pin
kakan3-Jan-06 2:56
professionalkakan3-Jan-06 2:56 
AnswerRe: problem with buffer in fread and fwrite Pin
Laxman93-Jan-06 2:59
Laxman93-Jan-06 2:59 
QuestionSimulating a click in a CListCtrl Pin
Kharfax3-Jan-06 1:47
Kharfax3-Jan-06 1:47 
AnswerRe: Simulating a click in a CListCtrl Pin
khan++3-Jan-06 2:44
khan++3-Jan-06 2:44 
GeneralRe: Simulating a click in a CListCtrl Pin
Eytukan3-Jan-06 5:25
Eytukan3-Jan-06 5:25 
GeneralRe: Simulating a click in a CListCtrl Pin
Kharfax3-Jan-06 7:16
Kharfax3-Jan-06 7:16 
QuestionIE Plugins Pin
Nawal K Gupta3-Jan-06 0:32
Nawal K Gupta3-Jan-06 0:32 
AnswerRe: IE Plugins Pin
Prakash Nadar3-Jan-06 1:15
Prakash Nadar3-Jan-06 1:15 
GeneralRe: IE Plugins Pin
Ganesh_T3-Jan-06 2:07
Ganesh_T3-Jan-06 2:07 
GeneralRe: IE Plugins Pin
basementman3-Jan-06 5:03
basementman3-Jan-06 5:03 
GeneralRe: IE Plugins Pin
Prakash Nadar3-Jan-06 5:08
Prakash Nadar3-Jan-06 5:08 
AnswerRe: IE Plugins Pin
Nawal K Gupta3-Jan-06 17:58
Nawal K Gupta3-Jan-06 17:58 
QuestionAutomation and modal Pin
wdhough3-Jan-06 0:04
wdhough3-Jan-06 0:04 
AnswerRe: Automation and modal Pin
Prakash Nadar3-Jan-06 1:19
Prakash Nadar3-Jan-06 1:19 
GeneralRe: Automation and modal Pin
wdhough3-Jan-06 1:20
wdhough3-Jan-06 1:20 
GeneralRe: Automation and modal Pin
Prakash Nadar3-Jan-06 1:35
Prakash Nadar3-Jan-06 1:35 
QuestionRe: Automation and modal Pin
wdhough3-Jan-06 1:42
wdhough3-Jan-06 1:42 

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.