Click here to Skip to main content
15,890,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Context help property of a dialog box Pin
Sam Hobbs12-Dec-06 15:47
Sam Hobbs12-Dec-06 15:47 
QuestionSingle CreateDevice() for multiple views? Pin
rp_suman11-Dec-06 21:11
rp_suman11-Dec-06 21:11 
AnswerRe: Single CreateDevice() for multiple views? Pin
prasad_som11-Dec-06 21:44
prasad_som11-Dec-06 21:44 
GeneralRe: Single CreateDevice() for multiple views? Pin
rp_suman11-Dec-06 22:12
rp_suman11-Dec-06 22:12 
GeneralRe: Single CreateDevice() for multiple views? Pin
rp_suman12-Dec-06 22:06
rp_suman12-Dec-06 22:06 
QuestionRe: Single CreateDevice() for multiple views? Pin
prasad_som12-Dec-06 22:12
prasad_som12-Dec-06 22:12 
AnswerRe: Single CreateDevice() for multiple views? Pin
rp_suman13-Dec-06 12:56
rp_suman13-Dec-06 12:56 
QuestionUpgraded to msjet 4.0 (dao) and now the app crash Pin
Anders Hornemann11-Dec-06 21:07
Anders Hornemann11-Dec-06 21:07 
Environment: VC 6.0 sp5, MFC, Access97/2000 database, W2000/XP pro.
I have upgraded my app to run msjet4.0 as described by Microsoft when using VC6.0 and MFC in shared DLL:
AfxGetModuleState()->m_dwVersion = 0x0601;
Thats easy!
But, when I start a thread (AfxBeginThread/user or worker), doing some Dao-interface, I get problems:
When I construct a CDaoDatabase and open it from within the InitInstance of the CWinThread, I get:
"First-chance exception in Test2.exe (DAO360.DLL): 0xC0000005: Access Violation."

If I do the same in the constructor of the CWinThread, there's no errors!

Running the dao-interface in a MDI og SDI app, works fine.
Going back to msjet3.0 and access97 target database, works fine. I have searched the web for error reports like this, but it seems that I'm completly alone to have this problem...!

Does anybody have a clue or an idea to solve this problem?
In advance, thanks.

PS! I'm stucked with dao for a little more time - I know, ADO would be the answer...;)

Code example:
CDaoDatabase MyDBS;<br />
MyDBS.Open("C:\\Au2PC\\Database\\Au2PC.mdb");<br />
TRACE( "Database engine ver=[%s]\n", MyDBS.GetVersion());<br />
CDaoRecordset rsMedd(&MyDBS);<br />
rsMedd.Open(dbOpenDynaset, CString("SELECT * FROM MeddUd"));<br />


Anders
AnswerRe: Upgraded to msjet 4.0 (dao) and now the app crash Pin
Steve S11-Dec-06 21:42
Steve S11-Dec-06 21:42 
GeneralRe: Upgraded to msjet 4.0 (dao) and now the app crash Pin
Anders Hornemann13-Dec-06 19:41
Anders Hornemann13-Dec-06 19:41 
GeneralRe: Upgraded to msjet 4.0 (dao) and now the app crash Pin
Steve S14-Dec-06 0:58
Steve S14-Dec-06 0:58 
Questionhow to use stored procedure Pin
With_problem11-Dec-06 20:15
With_problem11-Dec-06 20:15 
AnswerRe: how to use stored procedure Pin
Rajesh R Subramanian11-Dec-06 20:22
professionalRajesh R Subramanian11-Dec-06 20:22 
GeneralRe: how to use stored procedure Pin
With_problem11-Dec-06 20:25
With_problem11-Dec-06 20:25 
GeneralRe: how to use stored procedure Pin
Rajesh R Subramanian11-Dec-06 20:31
professionalRajesh R Subramanian11-Dec-06 20:31 
GeneralRe: how to use stored procedure Pin
With_problem11-Dec-06 20:36
With_problem11-Dec-06 20:36 
GeneralRe: how to use stored procedure Pin
Rajesh R Subramanian11-Dec-06 20:41
professionalRajesh R Subramanian11-Dec-06 20:41 
Questionabout MFC Pin
rajaasif11-Dec-06 19:15
rajaasif11-Dec-06 19:15 
AnswerRe: about MFC Pin
kakan11-Dec-06 19:25
professionalkakan11-Dec-06 19:25 
GeneralRe: about MFC Pin
rajaasif11-Dec-06 20:00
rajaasif11-Dec-06 20:00 
GeneralRe: about MFC Pin
Rajesh R Subramanian11-Dec-06 20:25
professionalRajesh R Subramanian11-Dec-06 20:25 
GeneralRe: about MFC Pin
kakan11-Dec-06 20:31
professionalkakan11-Dec-06 20:31 
GeneralRe: about MFC Pin
Rajesh R Subramanian11-Dec-06 20:33
professionalRajesh R Subramanian11-Dec-06 20:33 
GeneralRe: about MFC Pin
Rajesh R Subramanian11-Dec-06 20:36
professionalRajesh R Subramanian11-Dec-06 20:36 
GeneralRe: about MFC Pin
rajaasif11-Dec-06 20:58
rajaasif11-Dec-06 20:58 

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.