|
Rebooting works.
Or, have Task Manager running (if in NT/2k/xp) and kill all explorer.exe processes. Then start a new one (from the "File|Run" command).
The last Explorer.exe is using your DLL, so when you kill it, the DLL is no longer in use. But, when this process is ended, you Start taskbar will disappear, so you need to have Task Manager running to be able to restart Explorer.
|
|
|
|
|
And for anyone who gets stuck in the "Explorer is dead and my task manager isn't visible" mode, you can always hit Ctrl+Shift+Esc to launch the task manager.
Chris Richardson
|
|
|
|
|
I started to design the visual shell for my application, that is I have made several dialog windows and populated them with the required list, combo, button and labels etc...
I now have to code this application and am having trouble getting the buttons to open up the dialog windows that I made earlier. *See thread below (buttons)*
1. void CSkydiveDlg::OnCarear()
2. {
3. CMyDialog MyDialog(); // this is the 2nd dialog
4. MyDialog.Create(..parameters if needed); // create it
5. MyDialog.ShowWindow(true); // then show it
6. }
As I understand it on line 1. it's saying that when the Carear button is activated do whats in the braces. (what exactly does CSkydiveDlg:: do?)
Could someone explain line 3 to me. Where do I get the CMyDialog from, or should it be CDialog.... and is MyDialog(); any name I can make up to suit my purpose ?
On line 4. MyDialog (name created on earlier line ??) is then telling the machine to create something ?? What is it creating ?? Another Dialog window ?
Line 5. I hope I understand... It's just saying that MyDialog should now actually show it's window on the screen.
What have I screwed up that won't let my code work the button ?
Pleaseeeeeee some one heeeeeelp........
Would be really good if someone could send a tiny working program with two dialog windows, a button in the first which opens the second and closes the first.
blairstent@hotmail.com
Cheers.
P.S. If you're not living life on the edge you're taking up too much room.
From Crazy Skydiver.
|
|
|
|
|
if this is a plain old, everyday modal dialog (one that takes over the app until the dialog is closed), you don't need to use Create. just create it (line 3) and call MyDialog.DoModal(); .
if you're creating a modeless dialog then the process is much different, and you should probably check out any of the modeless dialog articles on this site.
WWJD? JWRTFM. found on /.
|
|
|
|
|
In a CP article I'm folowing, he has in the dbImages.h file (a class derived from CRecordSet)
the following:
class CdbImages : public CRecordset
{
public:
CdbImages(CDatabase* pDatabase = NULL);
DECLARE_DYNAMIC(CdbImages)
CString m_BLOBName;
CLongBinary m_BLOBImage;
What do I need to do to get the wizard to automatically put the entries in the afx_field above? Or is this put in by hand?
The article I'm referring to is at http://www.codeproject.com/database/usingblob.asp
Thanks,
ns
|
|
|
|
|
NE1 know how to get CButtonST to display muli lines on a button? I would also like to display other chars like the right arrow.
Thanks!
|
|
|
|
|
you might get a better response if you ask this question on the CButtonST page.
but, as a starting point for multi-line text, you might try finding the place where the text is drawn and add the DT_MULTILINE style to the DrawText command - just to see what happens.
-c
WWJD? JWRTFM. found on /.
|
|
|
|
|
can anyone tell me how can i disable the
combination of alt+f4 on another window
which i have its window handle (without hooking
to its window procedure)?
thanks
|
|
|
|
|
You can't do that.
Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
|
|
|
|
|
but why?
when i create a new form in vb and
set the controlbox to false, then
alt f4 won't work. but if i copy
its window style and extended style
to another window, then in the other
window the alt f4 does work!
why does it happen?
|
|
|
|
|
Anonymous wrote:
why does it happen?
Probably VB is changing the window procedure to ignore WM_SYSCOMMAND/SC_CLOSE when controlbox property is set to false.
Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
|
|
|
|
|
|
Anonymous wrote:
r u sure?
WTF are you trying to say? Keyboard is destroyed??
Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
|
|
|
|
|
|
Do you have any problems with the following letters on your keyboard: 'y', 'o', 'a', 'e' ??
Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
|
|
|
|
|
no!
i have problems writing at these late hours.
however you can't judge me Mr. WTF, can't you?
10x
|
|
|
|
|
Anonymous wrote:
however you can't judge me Mr. WTF, can't you?
I can't, but even if I could, I wouldn't want to.
Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
|
|
|
|
|
so i see that you can't help me
with my question, can you?
|
|
|
|
|
I have told you all I know in earlier posts.
Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
|
|
|
|
|
You must remember three things:
- Windows doesn't make sense a lot of the time.
- VB makes sense even less of the time.
- Some styles are only taken into account when a window is created.
Don't waste your time worrying about it; just handle WM_CLOSE and rest easy.
---
Shog9
If I could sleep forever, I could forget about everything...
|
|
|
|
|
ok, but how can i handle WM_CLOSE from
a different application?
|
|
|
|
|
You could probably install a global hook, or subclass the window or something; i've never had the need, so i can't really give you anything concrete. I'm starting to get curious; what's the requirement for strange task? (if you don't mind sharing)
---
Shog9
If I could sleep forever, I could forget about everything...
|
|
|
|
|
Why can't you hook...???
I must say what a strange thread for VC++ forum...
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Hockey wrote:
what a strange thread for VC++ forum
you should hang out here more often! people are constantly asking stuff like this. how can i intercept all keystrokes/mouse actions? how can i prevent windows from moving? how can i intercept file I/O from other processes? how can i select menu items/click buttons/enter text/etc in other processes? how can i change text on windows in other processes?
i'm totally afraid of the kinds of apps they must be making.
WWJD? JWRTFM. found on /.
|
|
|
|
|
Actually I was referring to the exchange of words Anonymous and Tomasz had...it was kinda amuzing in this forum...considering most threads here are strictly technical. I thought it was funny...
Something for the lounge almost...
Cheers
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|