Click here to Skip to main content
16,012,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to show data in internet explorer Pin
PremL26-Aug-03 5:39
PremL26-Aug-03 5:39 
Generalusing CArchive with CBlockingSocket class Pin
Mike Ellertson25-Aug-03 7:56
sussMike Ellertson25-Aug-03 7:56 
GeneralRe: using CArchive with CBlockingSocket class Pin
Mikey_E25-Aug-03 8:30
professionalMikey_E25-Aug-03 8:30 
GeneralProblem with MFC create control for component Pin
tongc25-Aug-03 7:13
tongc25-Aug-03 7:13 
GeneralSHGetFileInfo Pin
Member 50856725-Aug-03 7:02
Member 50856725-Aug-03 7:02 
GeneralRe: SHGetFileInfo Pin
David Crow25-Aug-03 8:06
David Crow25-Aug-03 8:06 
GeneralRe: SHGetFileInfo Pin
Member 50856726-Aug-03 2:36
Member 50856726-Aug-03 2:36 
GeneralCommit to Disk Pin
jmf31415925-Aug-03 6:40
jmf31415925-Aug-03 6:40 
I have software that "Commits" 2KB with every call to fopen(). I have tried the following with the following results:

<br />
// workaround 1<br />
<br />
if (fp = fopen(filename, "cwt"), fp != NULL)<br />
{<br />
  // do stuff<br />
}<br />
else<br />
  perror( ... );<br />
<br />
// the inclusion of the 'c' switch caused<br />
// a)  fopen() to return NULL<br />
// b)  perror() to report "no error"<br />
<br />
// workaround 2<br />
<br />
if (h = _open(filename, _O_CREAT|_O_TRUNC|_O_WRONLY|_O_TEXT), h != -1)<br />
{<br />
  // do stuff<br />
}<br />
else<br />
  perror( ... );<br />
<br />
// resorting to raw I/O was less ambiguous ...<br />
// _open returned -1<br />
// perror() reported Permission denied for reasons which are simply beyond me<br />


Any thoughts? Thanks ...
GeneralRe: Commit to Disk Pin
Neville Franks25-Aug-03 10:43
Neville Franks25-Aug-03 10:43 
GeneralRe: Commit to Disk Pin
jmf31415925-Aug-03 11:43
jmf31415925-Aug-03 11:43 
GeneralRe: Commit to Disk Pin
Neville Franks25-Aug-03 12:03
Neville Franks25-Aug-03 12:03 
GeneralRe: Commit to Disk Pin
parths25-Aug-03 15:25
parths25-Aug-03 15:25 
GeneralGibberish code Pin
dog_spawn25-Aug-03 15:06
dog_spawn25-Aug-03 15:06 
QuestionApplication-Close/Minimize effect, where? Pin
Exim25-Aug-03 6:39
Exim25-Aug-03 6:39 
AnswerRe: Application-Close/Minimize effect, where? Pin
Mikey_E25-Aug-03 10:16
professionalMikey_E25-Aug-03 10:16 
GeneralAutosrolling in an CEdit Pin
Bateman25-Aug-03 6:07
Bateman25-Aug-03 6:07 
Generalrefference a pointer to another process !!! Pin
mr200325-Aug-03 5:46
mr200325-Aug-03 5:46 
GeneralRe: refference a pointer to another process !!! Pin
valikac25-Aug-03 5:54
valikac25-Aug-03 5:54 
GeneralRe: refference a pointer to another process !!! Pin
Babayan Hovhannes26-Aug-03 0:04
Babayan Hovhannes26-Aug-03 0:04 
GeneralRe: refference a pointer to another process !!! Pin
mr200326-Aug-03 6:41
mr200326-Aug-03 6:41 
GeneralDev studio question for experts Pin
YaronNir25-Aug-03 4:12
YaronNir25-Aug-03 4:12 
GeneralRe: Dev studio question for experts Pin
valikac25-Aug-03 5:56
valikac25-Aug-03 5:56 
GeneralRe: Dev studio question for experts Pin
YaronNir25-Aug-03 20:40
YaronNir25-Aug-03 20:40 
QuestionMove text in edit box down and to the right 1-pixel? Pin
DanYELL25-Aug-03 3:55
DanYELL25-Aug-03 3:55 
GeneralOnPaint message Pin
El'Cachubrey25-Aug-03 3:55
El'Cachubrey25-Aug-03 3:55 

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.