"Joy2006" <sh******@gmail.com> wrote in message
news:11**********************@j73g2000cwa.googlegr oups.com...
I am a beginner of VC++...
Whenever I use fprintf(fp,Count); where Count is a Long Variable, I get
an error saying
"error C2664: 'fprintf' : cannot convert parameter 2 from 'long' to
'const char *'"
Can someone help me?
printf would be
printf("%ld", Count);
(%d is for int, %ld is long int)
But, fprintf wants the file to print to as the first paramater, so you just
scoot everything over.
fprintf(fp, "%ld", Count);