Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Database Pin
Nemanja Trifunovic4-Jan-02 6:19
Nemanja Trifunovic4-Jan-02 6:19 
GeneralRe: Database Pin
Philip Patrick4-Jan-02 6:28
professionalPhilip Patrick4-Jan-02 6:28 
GeneralRe: Database Pin
Nemanja Trifunovic4-Jan-02 6:37
Nemanja Trifunovic4-Jan-02 6:37 
QuestionHow can I know the margins for a page... Pin
Braulio Dez4-Jan-02 0:39
Braulio Dez4-Jan-02 0:39 
AnswerRe: How can I know the margins for a page... Pin
Tim Deveaux4-Jan-02 8:42
Tim Deveaux4-Jan-02 8:42 
Generalcalling a ocx into vc++ Pin
xxx3-Jan-02 22:46
xxx3-Jan-02 22:46 
GeneralRe: calling a ocx into vc++ Pin
4-Jan-02 1:13
suss4-Jan-02 1:13 
GeneralUNKNOWN ERROR!!!!!! Pin
phat3-Jan-02 22:17
phat3-Jan-02 22:17 
I am currently working on a project dealing with Client and Server program using API Socket. There are no problems for sending and receiving messages although I always get unknown error when the program ends.....
Is there any possibility for built-in class in Visual Studio to be a problem?? cuz i am using fflush.c which is included in Microsoft Visual Studio\VC98\CRT\SRC\fflush.c !!!!!
Below is my code and please see closely 14 th line.

/***
*fflush.c - flush a stream buffer
*
* Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved.
*
*Purpose:
* defines fflush() - flush the buffer on a stream
* _flushall() - flush all stream buffers
*
*******************************************************************************/

1 static int __cdecl flsall (
2 int flushflag
3 )
4 {
5 REG1 int i;
6 int count = 0;
7 int errcode = 0;8
9
10 _mlock(_IOB_SCAN_LOCK);
11
12 for ( i = 0 ; i < _nstream ; i++ ) {
13
14 if ( (__piob != NULL) && (inuse((FILE *)__piob)) ) {
15
16 #if def _MT
/*
* lock the stream. this is not done until testing
* the stream is in use to avoid unnecessarily creating
* a lock for every stream. the price is having to
* retest the stream after the lock has been asserted.
*/
_lock_str2(i, __piob);

-------------------------------------------------------------------------------------------

line 14 error
First-chance exception in Step2Client.exe: 0xC0000005: Access Violation.

__piob 0x00000000
_nstream 512
i 0
Laugh | :laugh:
Questionwhat syntax is this? Pin
hex3-Jan-02 19:28
hex3-Jan-02 19:28 
AnswerRe: what syntax is this? Pin
Michael Dunn3-Jan-02 19:37
sitebuilderMichael Dunn3-Jan-02 19:37 
GeneralRe: what syntax is this? Pin
hex3-Jan-02 19:46
hex3-Jan-02 19:46 
GeneralRe: what syntax is this? Pin
Michael Dunn3-Jan-02 19:58
sitebuilderMichael Dunn3-Jan-02 19:58 
GeneralRe: what syntax is this? Pin
hex3-Jan-02 20:11
hex3-Jan-02 20:11 
GeneralRe: what syntax is this? Pin
markkuk3-Jan-02 23:36
markkuk3-Jan-02 23:36 
GeneralRe: what syntax is this? Pin
Michael Dunn4-Jan-02 8:03
sitebuilderMichael Dunn4-Jan-02 8:03 
GeneralRe: what syntax is this? Pin
Carlos Antollini4-Jan-02 8:11
Carlos Antollini4-Jan-02 8:11 
GeneralRe: what syntax is this? Pin
Nemanja Trifunovic4-Jan-02 8:16
Nemanja Trifunovic4-Jan-02 8:16 
AnswerRe: what syntax is this? Pin
Nish Nishant3-Jan-02 20:42
sitebuilderNish Nishant3-Jan-02 20:42 
GeneralMemory Mapping Pin
3-Jan-02 19:07
suss3-Jan-02 19:07 
GeneralRe: Memory Mapping Pin
Philip Patrick4-Jan-02 2:52
professionalPhilip Patrick4-Jan-02 2:52 
GeneralList files in a directory Pin
Marcus Spitzmiller3-Jan-02 16:19
Marcus Spitzmiller3-Jan-02 16:19 
GeneralRe: List files in a directory Pin
Ravi Bhavnani3-Jan-02 16:24
professionalRavi Bhavnani3-Jan-02 16:24 
GeneralRe: List files in a directory Pin
Marcus Spitzmiller3-Jan-02 16:26
Marcus Spitzmiller3-Jan-02 16:26 
GeneralRe: List files in a directory Pin
Nish Nishant3-Jan-02 16:33
sitebuilderNish Nishant3-Jan-02 16:33 
GeneralRe: List files in a directory Pin
Marcus Spitzmiller3-Jan-02 16:25
Marcus Spitzmiller3-Jan-02 16:25 

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.