Click here to Skip to main content
15,868,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: COM Query Pin
pandit8422-Jan-10 0:53
pandit8422-Jan-10 0:53 
GeneralRe: COM Query Pin
CPallini23-Jan-10 2:41
mveCPallini23-Jan-10 2:41 
QuestionA problem about the rubbish on win7 Pin
nenfa21-Jan-10 21:11
nenfa21-Jan-10 21:11 
AnswerRe: A problem about the rubbish on win7 Pin
«_Superman_»22-Jan-10 16:55
professional«_Superman_»22-Jan-10 16:55 
QuestionReplacing some bytes in a file in binary mode Pin
sunny_vc21-Jan-10 20:55
sunny_vc21-Jan-10 20:55 
AnswerRe: Replacing some bytes in a file in binary mode Pin
CPallini21-Jan-10 21:24
mveCPallini21-Jan-10 21:24 
GeneralRe: Replacing some bytes in a file in binary mode Pin
sunny_vc21-Jan-10 21:34
sunny_vc21-Jan-10 21:34 
GeneralRe: Replacing some bytes in a file in binary mode - fixed, thanks to superman Pin
CPallini21-Jan-10 21:44
mveCPallini21-Jan-10 21:44 
My code (beware: error checking omitted for concision)
FILE * fp = fopen("foo.bin", "rb+");
fseek(fp, 10, SEEK_SET);
fwrite("#", 1, 1, fp);
fclose(fp);

is working fine.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

modified on Friday, January 22, 2010 6:43 AM

GeneralRe: Replacing some bytes in a file in binary mode Pin
«_Superman_»21-Jan-10 22:35
professional«_Superman_»21-Jan-10 22:35 
GeneralRe: Replacing some bytes in a file in binary mode Pin
CPallini22-Jan-10 0:43
mveCPallini22-Jan-10 0:43 
GeneralRe: Replacing some bytes in a file in binary mode Pin
iceman861621-Jan-10 21:48
iceman861621-Jan-10 21:48 
GeneralRe: Replacing some bytes in a file in binary mode Pin
Stuart Dootson21-Jan-10 23:05
professionalStuart Dootson21-Jan-10 23:05 
QuestionFile Manipulation Pin
Chandrasekharan P21-Jan-10 20:03
Chandrasekharan P21-Jan-10 20:03 
AnswerRe: File Manipulation Pin
Rajesh R Subramanian21-Jan-10 20:16
professionalRajesh R Subramanian21-Jan-10 20:16 
AnswerRe: File Manipulation Pin
Cedric Moonen21-Jan-10 20:27
Cedric Moonen21-Jan-10 20:27 
QuestionRe: File Manipulation Pin
David Crow22-Jan-10 4:17
David Crow22-Jan-10 4:17 
QuestionHandle to a video played in a video player Pin
lazy_panther21-Jan-10 19:42
lazy_panther21-Jan-10 19:42 
QuestionCreate function error in CView Class Pin
diarabit21-Jan-10 19:16
diarabit21-Jan-10 19:16 
QuestionRe: Create function error in CView Class [modified] Pin
Nelek21-Jan-10 22:28
protectorNelek21-Jan-10 22:28 
AnswerRe: Create function error in CView Class Pin
diarabit22-Jan-10 2:12
diarabit22-Jan-10 2:12 
GeneralRe: Create function error in CView Class [modified] Pin
Nelek22-Jan-10 2:32
protectorNelek22-Jan-10 2:32 
QuestionGenerate Random Number between min and max range and where numbers can't repeat themselves. Pin
Le@rner21-Jan-10 19:06
Le@rner21-Jan-10 19:06 
AnswerRe: Generate Random Number between min and max range and where numbers can't repeat themselves. Pin
Adam Roderick J21-Jan-10 19:17
Adam Roderick J21-Jan-10 19:17 
GeneralRe: Generate Random Number between min and max range and where numbers can't repeat themselves. Pin
Le@rner21-Jan-10 19:28
Le@rner21-Jan-10 19:28 
GeneralRe: Generate Random Number between min and max range and where numbers can't repeat themselves. Pin
Adam Roderick J21-Jan-10 19:36
Adam Roderick J21-Jan-10 19:36 

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.