Click here to Skip to main content
15,919,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Declarations help Pin
Joe Woodbury19-Oct-03 18:27
professionalJoe Woodbury19-Oct-03 18:27 
QuestionHELP PLEASE!!! CRAZY COMPILERS????? Pin
tguzella19-Oct-03 12:44
tguzella19-Oct-03 12:44 
AnswerRe: HELP PLEASE!!! CRAZY COMPILERS????? Pin
tguzella19-Oct-03 12:45
tguzella19-Oct-03 12:45 
AnswerRe: HELP PLEASE!!! CRAZY COMPILERS????? Pin
markkuk19-Oct-03 22:48
markkuk19-Oct-03 22:48 
AnswerRe: HELP PLEASE!!! CRAZY COMPILERS????? Pin
jhwurmbach19-Oct-03 22:56
jhwurmbach19-Oct-03 22:56 
GeneralMacro accessing a function from another macro file Pin
Jeff Miles19-Oct-03 12:35
Jeff Miles19-Oct-03 12:35 
GeneralDatabase connection through MFC help Pin
Mike Danberg19-Oct-03 12:33
Mike Danberg19-Oct-03 12:33 
GeneralRe: Database connection through MFC help Pin
Michael P Butler19-Oct-03 23:35
Michael P Butler19-Oct-03 23:35 
Mike Danberg wrote:
__declspec(dllexport) void Disconnect()
{
AFX_MANAGE_STATE(AfxGetStaticModuleState( ));

CDatabase database;
database.Close();
}



Here you are closing an unopened database, as CDatabase is local to the function. This makes no sense what so ever. If you are trying to close the database opened in Connect, then you will have to make database a global variable rather than being local to the two functions.





Michael

'Logic, my dear Zoe, merely enables one to be wrong with authority.' - The Doctor: The Wheel in Space

GeneralRe: Database connection through MFC help Pin
Mike Danberg20-Oct-03 6:16
Mike Danberg20-Oct-03 6:16 
GeneralHelp with some C Pin
Sirrius19-Oct-03 11:05
Sirrius19-Oct-03 11:05 
GeneralRe: Help with some C Pin
markkuk19-Oct-03 11:45
markkuk19-Oct-03 11:45 
GeneralRe: Convert int to hexa Pin
Alexander M.,19-Oct-03 10:26
Alexander M.,19-Oct-03 10:26 
GeneralRe: MRU problem Pin
Neville Franks19-Oct-03 9:45
Neville Franks19-Oct-03 9:45 
GeneralRe: MRU problem Pin
YaronNir19-Oct-03 22:47
YaronNir19-Oct-03 22:47 
GeneralRe: MRU problem Pin
Neville Franks19-Oct-03 23:13
Neville Franks19-Oct-03 23:13 
GeneralRe: MRU problem Pin
YaronNir19-Oct-03 23:25
YaronNir19-Oct-03 23:25 
GeneralRe: MRU problem Pin
Neville Franks20-Oct-03 0:02
Neville Franks20-Oct-03 0:02 
GeneralRe: MRU problem Pin
YaronNir20-Oct-03 0:14
YaronNir20-Oct-03 0:14 
GeneralRe: MRU problem Pin
Neville Franks20-Oct-03 2:16
Neville Franks20-Oct-03 2:16 
GeneralRe: MRU problem Pin
YaronNir20-Oct-03 2:41
YaronNir20-Oct-03 2:41 
GeneralRe: MRU problem Pin
Neville Franks20-Oct-03 21:16
Neville Franks20-Oct-03 21:16 
GeneralApplication does not terminating Pin
csperber19-Oct-03 7:42
csperber19-Oct-03 7:42 
GeneralRe: Application does not terminating Pin
Neville Franks19-Oct-03 9:47
Neville Franks19-Oct-03 9:47 
GeneralRe: Application does not terminating Pin
csperber20-Oct-03 8:30
csperber20-Oct-03 8:30 
GeneralRe: Application does not terminating Pin
Anthony_Yio20-Oct-03 1:42
Anthony_Yio20-Oct-03 1:42 

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.