Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is it the fact that using only one kind of programming language would probably restrict your capacity? Pin
Erudite_Eric16-May-13 7:54
Erudite_Eric16-May-13 7:54 
AnswerRe: Is it the fact that using only one kind of programming language would probably restrict your capacity? Pin
MicroVirus17-May-13 1:34
MicroVirus17-May-13 1:34 
GeneralRe: Is it the fact that using only one kind of programming language would probably restrict your capacity? Pin
rudiestf17-May-13 2:51
rudiestf17-May-13 2:51 
AnswerJack of many languages, and master of one (C++ in your case) Pin
Amarnath S17-May-13 7:05
professionalAmarnath S17-May-13 7:05 
Questionich ran correctly unfret2008 Visual C++ in static mode? Pin
Anthony Appleyard15-May-13 12:21
Anthony Appleyard15-May-13 12:21 
AnswerRe: ich ran correctly unfret2008 Visual C++ in static mode? Pin
Richard MacCutchan15-May-13 22:12
mveRichard MacCutchan15-May-13 22:12 
GeneralRe: 2008 Visual C++ in static mode? Pin
Anthony Appleyard15-May-13 23:48
Anthony Appleyard15-May-13 23:48 
GeneralRe: 2008 Visual C++ in static mode? Pin
Richard MacCutchan16-May-13 1:23
mveRichard MacCutchan16-May-13 1:23 
That should make no difference, since all you are doing is opening the file with sharing enabled. This has nothing to do with your variables getting corrupted in memory. The fact that it works now, is more luck than judgement. And given all the index values to your arrays, it's highly likely that you are overruning or otherwis writing in the wrong place in your buffer.

BTW it makes it much easier for us to read your code if you format your code with proper indents, and place it between <pre> tags, like:
C++
if(_sopen_s(&fil,out,_O_RDWR|_O_CREAT|_O_BINARY, _SH_DENYNO, _S_IREAD|_S_IWRITE))
{    
    M="I can't open this file";
    goto BAD;
}
for(i = 0; i < 256; i++)
{
    BM[54+i*4] = BM[54+i*4+1] = BM[54+i*4+2] = (char)i;
    BM[54+i*4+3] = 0;
} /* palettes */

Use the best guess

AnswerRe: ich ran correctly unfret2008 Visual C++ in static mode? Pin
jschell16-May-13 8:24
jschell16-May-13 8:24 
QuestionCompress short fixed length string (52 characters) down to less than 40. Pin
hatemtaleb15-May-13 2:52
hatemtaleb15-May-13 2:52 
AnswerRe: Compress short fixed length string (52 characters) down to less than 40. Pin
Jochen Arndt15-May-13 3:48
professionalJochen Arndt15-May-13 3:48 
AnswerRe: Compress short fixed length string (52 characters) down to less than 40. Pin
Joe Woodbury15-May-13 8:26
professionalJoe Woodbury15-May-13 8:26 
AnswerRe: Compress short fixed length string (52 characters) down to less than 40. Pin
David Crow15-May-13 10:38
David Crow15-May-13 10:38 
AnswerRe: Compress short fixed length string (52 characters) down to less than 40. Pin
dusty_dex17-May-13 14:47
dusty_dex17-May-13 14:47 
GeneralRe: Compress short fixed length string (52 characters) down to less than 40. Pin
hatemtaleb24-May-13 4:12
hatemtaleb24-May-13 4:12 
QuestionSetCheck on click in CListCtrl Pin
_Flaviu15-May-13 2:30
_Flaviu15-May-13 2:30 
AnswerRe: SetCheck on click in CListCtrl Pin
Jochen Arndt15-May-13 3:33
professionalJochen Arndt15-May-13 3:33 
GeneralRe: SetCheck on click in CListCtrl Pin
_Flaviu15-May-13 20:53
_Flaviu15-May-13 20:53 
GeneralRe: SetCheck on click in CListCtrl Pin
Jochen Arndt15-May-13 21:05
professionalJochen Arndt15-May-13 21:05 
GeneralRe: SetCheck on click in CListCtrl Pin
_Flaviu15-May-13 21:26
_Flaviu15-May-13 21:26 
GeneralRe: SetCheck on click in CListCtrl Pin
Jochen Arndt15-May-13 21:36
professionalJochen Arndt15-May-13 21:36 
GeneralRe: SetCheck on click in CListCtrl Pin
_Flaviu15-May-13 23:07
_Flaviu15-May-13 23:07 
GeneralRe: SetCheck on click in CListCtrl Pin
Jochen Arndt15-May-13 23:20
professionalJochen Arndt15-May-13 23:20 
GeneralRe: SetCheck on click in CListCtrl Pin
_Flaviu15-May-13 23:24
_Flaviu15-May-13 23:24 
QuestionWriting on BitMap by DC does not work Pin
Member 989133414-May-13 21:17
Member 989133414-May-13 21:17 

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.