|
You should make progress control a child of status bar, not main frame. Check Q142202 for details.
Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
|
|
|
|
|
Q142202? Could not find that article.
ralf.riedel@usm.edu
|
|
|
|
|
|
|
Hello there,
How can i change windows background ?
Is there any API function for it ?
Please help me ...
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
you can overwrite PreCreateWindow function.
|
|
|
|
|
I wanna change background of Windows OS !!!
Not dialogs ...
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
try IActiveDesktop::SetWallpaper
modified 12-Sep-18 21:01pm.
|
|
|
|
|
|
Hello Jason !!!
That's it !!!!!
Now, it wroks fine
Thanks in advance
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hi there,
I’m looking for a way for inserting a dialog to another …
For example, I have Dialog1(parent) then I make new dialog(child) and then I insert a textbox in the second dialog (Dialog2) …
Is there anyway to attach the Dialog2(child) to Dialog1(parent) ???
I want to when I show the parent wndow(dialog1) by .DoModal() then I be able to see dialog2 in dialog1 !!!
How ???
If possible please write sample
Thanks in advance.
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
|
Hello dear Chris Losinger
Thanks aloot for example
With Warm Regards
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
The following code works with DAO 3.5, but it doesn't when I add the following line into InitInstance():
<br />
AfxGetModuleState()->m_dwVersion = 0x0601;<br />
....<br />
<br />
CDaoDatabase db;<br />
db.Create("c:\\test.mdb");<br />
<br />
CDaoTableDef td(&db);<br />
<br />
td.Create("test link");<br />
td.SetConnect("dBase IV;Database=C:\\");<br />
<br />
td.SetSourceTableName("test.ddf");<br />
<br />
td.Append();<br />
The error message is "The Microsoft Jet database engine could not find the object 'test'. Make sure the object exists and that you spell its name and the path name correctly."
I've tried using "test#ddf" as a vaguely remember reading that this is the key to getting non standard extensions accepted, but this makes no difference in Jet 3.5 or 3.6 (i.e. 3.5 still works , 3.6 doesn't work
Any ideas?
|
|
|
|
|
MFC 6.0 has the ability to use Microsoft Access 2000 databases. To engage this support in your application you use.
AfxGetModuleState()->m_dwVersion = 0x0601;
So to use under DAO 3.5 just remove the line
Hmm...
|
|
|
|
|
but the whole point is that I want to use DAO 3.6
|
|
|
|
|
Hi all...
I've got a problem that arose after moving the resources in our application to an external resource dll for localization. All that works fine, but now the ClassWizard is basically unusable for adding new members based on controls in the dialogs. I know it's got something to do with the fact that all the control and dialog definitions are not part of my main app's project anymore... but..
does anyone know how to fix this?
Thanks in advance,
Andrew Welch
|
|
|
|
|
I don't know how to fix this ClassWizard issue. Any chance for storing main language resources (probably English) in .exe - this solves the problem completely. In this scenario, satellite dlls are needed only for secondary languages.
Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
|
|
|
|
|
I think that is part of the solution.. However, we have separate english, italian, german, spanish and french dll's. Keeping the english resources embedded in the app really isn't feasible because we have some pretty big resources. Keeping them separate reduces the size of the install by about half.
I'm going to try something in the app's resource file (which is basically empty and static now ) using
#ifdef APSTUDIO_INVOKED
#endif
and see if I can't get the symbols I need loaded when editing only.
Thanks
|
|
|
|
|
Hi All,
I need to create a timer that would start once I start running a process from within my program.I need to know how much time it takes for the process to create the first output.For this I would need a timer.I case the timer value reaches a specified limit the process should be terminated.
What is the method I can do this.
Can anybody help me?
Thanks and regards,
Abhishek.
Learning is a never ending process of Life.
|
|
|
|
|
WaitForSingleObject with a timeout period should work for you.
Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
|
|
|
|
|
There are several solutions. You could get the system time exactly before you the process begins and then get the system time exactly after the first output. Their difference is the duration time.
Kuphryn
|
|
|
|
|
I am receiving some configuration setting via a XML document. One of the entry is the caption of a column header. The caption is given using a string ID (IDS_COL1_CAPTION) when extracting this info from the XML document the resulting value is a string containing “IDS_COL1_CAPTION”.
Is there a way to convert this text string ID into a numeric ID to be able to use the LoadString function of CString?
Thank you
|
|
|
|
|
nope. there's no automatic way to do it. you'll have to set up a mapping of strings to numerics. i would use a std::map.
-c
Democracy is the worst form of government except all those other
forms that have been tried from time to time.
-- Winston Churchill
|
|
|
|
|
I don't think so - if IDS_COL1_CAPTION is resource identifier. When you build exe/dll, the #defines are expanded to constant integers, there's no 'IDS_COL1_CAPTION' literal in executable.
You'd have to provide your own mapping from strings to integers.
Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
|
|
|
|