Click here to Skip to main content
16,010,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: About AfxEndThread and memory Pin
David Crow22-Jul-04 3:29
David Crow22-Jul-04 3:29 
GeneralConnect through firewall and proxy Pin
georgestrajan21-Jul-04 23:37
georgestrajan21-Jul-04 23:37 
GeneralDirectshow transform filter Pin
Resyek21-Jul-04 21:41
Resyek21-Jul-04 21:41 
GeneralWhen I using SetIpNetEntry( ), I got wrong IP in ARP Table Pin
Anonymous21-Jul-04 19:54
Anonymous21-Jul-04 19:54 
GeneralDimedrol Pin
Anonymous21-Jul-04 19:52
Anonymous21-Jul-04 19:52 
Generalcomposite control background color Pin
Abhi Lahare21-Jul-04 19:34
Abhi Lahare21-Jul-04 19:34 
QuestionHow to Display a Image ONLY as a Tablabel in a Tab control Pin
pubududilena21-Jul-04 18:56
pubududilena21-Jul-04 18:56 
GeneralHelp me !!! Regular MFC DLL Pin
TuanTriTue21-Jul-04 18:47
TuanTriTue21-Jul-04 18:47 
Hi all,
I want to call a CDAODatabase class from my Regular MFC DLL, I have followed the instruction of Microsoft MSDN. But the following code incorrect run.
Can you help me on it ?
Thanks a lot for your reply.
Tuan

PS : This is my code
extern "C" BOOL PASCAL EXPORT VehicleChange()
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
CDaoDatabase* connData;
try{
connData = new CDaoDatabase ;
if(connData->IsOpen()) {
AfxMessageBox("The connection has been openned");
}else{
CString strConnect= "ODBC;DSN=FieldTrip;UID=;PWD=;";
connData->Open(_T(""), TRUE,FALSE, strConnect);
}
strSql = "update VehicleInformation set cAacity=11";
connData->Execute(strSql,dbSQLPassThrough);
} catch(CException *e){
connData->Close();
delete connData;
AfxDaoTerm();
return false;
}
AfxMessageBox("success");
connData->Close();
delete connData;
AfxDaoTerm();
return true;
}

GeneralRe: Help me !!! Regular MFC DLL Pin
David Crow22-Jul-04 4:10
David Crow22-Jul-04 4:10 
Generali want to get a ftp client code example written in "socket api" for c or c++,not mfc CSocket and not wininet .who can give me .thanks very much. Pin
bowen.feng21-Jul-04 18:44
bowen.feng21-Jul-04 18:44 
GeneralRe: i want to get a ftp client code example written in "socket api" for c or c++,not mfc CSocket and not wininet .who can give me .thanks very much. Pin
User 665822-Jul-04 2:25
User 665822-Jul-04 2:25 
GeneralRe: i want to get a ftp client code example written in "socket api" for c or c++,not mfc CSocket and not wininet .who can give me .thanks very much. Pin
palbano22-Jul-04 8:08
palbano22-Jul-04 8:08 
QuestionHow to launch a .job file in VC++ ? Pin
ErisonWu21-Jul-04 16:54
ErisonWu21-Jul-04 16:54 
AnswerRe: How to launch a .job file in VC++ ? Pin
palbano21-Jul-04 17:00
palbano21-Jul-04 17:00 
GeneralRe: How to launch a .job file in VC++ ? Pin
ErisonWu22-Jul-04 15:52
ErisonWu22-Jul-04 15:52 
GeneralCListCtrl flicker... Pin
bryce21-Jul-04 16:31
bryce21-Jul-04 16:31 
GeneralRe: CListCtrl ficker... Pin
palbano21-Jul-04 17:11
palbano21-Jul-04 17:11 
GeneralRe: CListCtrl ficker... Pin
bryce21-Jul-04 17:27
bryce21-Jul-04 17:27 
GeneralRe: CListCtrl flicker... Pin
wb22-Jul-04 4:11
wb22-Jul-04 4:11 
GeneralStandalone mfc application Pin
TallAndyB21-Jul-04 14:22
TallAndyB21-Jul-04 14:22 
GeneralRe: Standalone mfc application Pin
Michael Dunn21-Jul-04 15:03
sitebuilderMichael Dunn21-Jul-04 15:03 
GeneralRe: Standalone mfc application Pin
palbano21-Jul-04 16:58
palbano21-Jul-04 16:58 
GeneralMultiline editbox Pin
Spank me!!21-Jul-04 13:16
Spank me!!21-Jul-04 13:16 
GeneralRe: Multiline editbox Pin
Alexander Wiseman21-Jul-04 15:38
Alexander Wiseman21-Jul-04 15:38 
GeneralRe: Multiline editbox Pin
Harold Bamford23-Jul-04 11:05
Harold Bamford23-Jul-04 11:05 

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.