Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Device Driver Programming Pin
wb25-Jan-04 4:39
wb25-Jan-04 4:39 
GeneralRe: Device Driver Programming Pin
toxcct25-Jan-04 23:02
toxcct25-Jan-04 23:02 
GeneralUnicode ActiveX on 98 Pin
Hesham Amin24-Jan-04 1:04
Hesham Amin24-Jan-04 1:04 
GeneralRe: Unicode ActiveX on 98 Pin
Michael Dunn24-Jan-04 6:17
sitebuilderMichael Dunn24-Jan-04 6:17 
GeneralRe: Unicode ActiveX on 98 Pin
Hesham Amin24-Jan-04 10:13
Hesham Amin24-Jan-04 10:13 
GeneralRe: Unicode ActiveX on 98 Pin
Michael Dunn24-Jan-04 20:08
sitebuilderMichael Dunn24-Jan-04 20:08 
GeneralCalling of DHTML Dialog Pin
Inam23-Jan-04 22:40
Inam23-Jan-04 22:40 
QuestionDialog dissapears... ? Pin
Calder23-Jan-04 22:34
Calder23-Jan-04 22:34 
I've been trying to do something like this in my OnInitDialog:
<br />
CDatabase db;<br />
AnstalldaSet set(&db);<br />
TRY<br />
{<br />
	set.Open();<br />
	if (! set.IsBOF())<br />
	{<br />
		set.MoveFirst();<br />
		while (! set.IsEOF())<br />
		{<br />
			// populate controls on the dialog with member variables from 'set'<br />
			m_Fornamn.SetWindowText(set.m_FORNAMN);<br />
			m_Efternamn.SetWindowText(set.m_EFTERNAMN);<br />
			set.MoveNext();<br />
		}<br />
	}<br />
}<br />
CATCH(CDBException, pDBException)<br />
{<br />
	AfxMessageBox(pDBException->m_strError);<br />
}<br />
END_CATCH<br />
		<br />
set.Close();<br />
<br />
return TRUE;  // return TRUE  unless you set the focus to a control<br />


However, I get a strange problem - when I started the app the first time, it all worked great.
However, when I closed the app it didn't dissapear from the Processes view in the taskmanager. If I stop the process it won't run again... I tried restarting the computer, but that doesn't help either.
Does anybody have a clue? I don't...

BTW, when I double click to start the program (or CTRL+F5 in VisualC++) it appears in the Processes view, and in MySQL Admin as an open thread. But the dialog never shows on the screen! OMG | :OMG:

(It's a normal App-Wizard generated dialog app, with the only addition of a CRecordset class!)

Big thanks to DavidCrow for helping with the recordset...
AnswerRe: Dialog dissapears... ? Pin
Antti Keskinen23-Jan-04 22:57
Antti Keskinen23-Jan-04 22:57 
GeneralRe: Dialog dissapears... ? Pin
Calder23-Jan-04 23:33
Calder23-Jan-04 23:33 
GeneralRe: Dialog dissapears... ? Pin
Antti Keskinen23-Jan-04 23:57
Antti Keskinen23-Jan-04 23:57 
GeneralRe: Dialog dissapears... ? Pin
Calder24-Jan-04 4:08
Calder24-Jan-04 4:08 
GeneralRe: Dialog dissapears... ? Pin
Antti Keskinen24-Jan-04 21:22
Antti Keskinen24-Jan-04 21:22 
GeneralRe: Dialog dissapears... ? Pin
Calder25-Jan-04 12:15
Calder25-Jan-04 12:15 
GeneralRe: Dialog dissapears... ? Pin
Antti Keskinen26-Jan-04 5:24
Antti Keskinen26-Jan-04 5:24 
Generalshow/hide a pane in static splitter window Pin
gailya23-Jan-04 21:57
gailya23-Jan-04 21:57 
GeneralRe: show/hide a pane in static splitter window Pin
Antti Keskinen23-Jan-04 23:00
Antti Keskinen23-Jan-04 23:00 
GeneralCScrollview data plotting &amp; grabbing the plotted data Pin
JHAKAS23-Jan-04 19:41
JHAKAS23-Jan-04 19:41 
GeneralDisplaying text in MDI Pin
hurr1can323-Jan-04 19:32
hurr1can323-Jan-04 19:32 
GeneralRe: Displaying text in MDI Pin
Antti Keskinen23-Jan-04 23:04
Antti Keskinen23-Jan-04 23:04 
GeneralHelp the Newbie(plz) Pin
MrNiceBerG23-Jan-04 18:46
MrNiceBerG23-Jan-04 18:46 
GeneralRe: Help the Newbie(plz) Pin
monrobot1323-Jan-04 20:33
monrobot1323-Jan-04 20:33 
GeneralRe: Help the Newbie(plz) Pin
Antti Keskinen23-Jan-04 23:24
Antti Keskinen23-Jan-04 23:24 
GeneralRe: Help the Newbie(plz) Pin
MrNiceBerG24-Jan-04 5:19
MrNiceBerG24-Jan-04 5:19 
GeneralRe: Help the Newbie(plz) Pin
MrNiceBerG27-Jan-04 18:55
MrNiceBerG27-Jan-04 18: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.