Search:
Type: Posts; User: ingrilli
Search:
Search took 0.07 seconds.
-
September 9th, 1999, 10:41 PM
Win NT or Plus on Win95 do that for you, so I would not do it if I was you... Alternatively you could do an Invalidate at every move, but that could be problematic, as the modal loop's processing...
-
August 26th, 1999, 10:42 PM
When I read my email from last night -- I see I did leave you to desire a better answer... but I think what you said is wrong:
"The order of the last two destructors is implementation dependant."...
-
August 25th, 1999, 10:53 PM
check out your
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
return -1;
if (!m_wndToolBar.Create(this) ||...
-
August 25th, 1999, 10:50 PM
It is not the OS that decides, it is the CPU -- the OS is build on top of that. 32 but CPU's have a 32 bit bus, they can address as much memory as a 32 bit number can.
To top it off, your...
-
August 25th, 1999, 10:42 PM
You are right, but win 95/nt standards request that you use what Rail Jon Rogut told you to do...
here is part of the documentation -- not the same as Rclick:
Remarks
A window can process this...
-
August 25th, 1999, 10:37 PM
Here is what you are asking for
// 1. In some h file define the type for the function you want the dll
// function to take in as a param
typedef int (*PFN_INT_FLOAT) (double);
// 2. In the...
-
August 25th, 1999, 10:20 PM
Ohhh the quest the C++ programmers have had since java was born....
To be able to use a list of pointers to delete all the objects, you need to have objects with virtual dtors (so all the correct...
-
August 25th, 1999, 07:17 PM
-
August 24th, 1999, 10:07 PM
1. Make your window transparent & maximize it. Now anything you paint looks like a screensaver. You can also make it with a dark background to make it look like an empty screen.
2. there is a...
-
August 24th, 1999, 10:02 PM
you don't need to do a GetLastError:
after a line of code that would have resulted in a call to SetLastError, all you have to do is watch (shift-f9) for 'err', and that will have the last error code
-
August 24th, 1999, 09:56 PM
ON_COMMAND_EX essentially allows you to completely take over what MFC is doing -- you can return TRUE to indicate that the command has been handled, otherwise routing will continue to other command...
-
August 24th, 1999, 09:37 PM
Jaime, maybe you were not on the same wavelength as Dmitriy:
You have to export your functions & classes for them to be imported elsewhere.
Here is my latest DLL exporting CHook (this is "Hook.h":...
-
August 24th, 1999, 09:15 PM
All right -- I tried to get the SetWindowsHookEx function to work cross application but I could not. Here is something that does pretty close to what you wanted: it is a thread that you create...
-
August 23rd, 1999, 11:28 PM
What we do in my current project, is we hook up on the kill focus event of all controls, and when that occurs (for any control) we evaluate the apply button status (enabled/disabled) according to...
-
August 23rd, 1999, 11:17 PM
Dino Esposito (Visual C++ Windows Shell Programmings) suggest you use SHFileOperation (#include <ShellAPI.h>) -- its worth giving it a try, because it is a shell function, I assume it should be able...
-
August 23rd, 1999, 11:11 PM
Here is how I would do it: a class with static variables to hold your global data, and static Set/Get to access that global var. This way the CPP for the class takes care of initializing all your...
-
August 23rd, 1999, 10:59 PM
Check out the MFC HWND-CWnd* maps (CWnd::FromHandle and CWnd::FromHandlePermanent)... If I was you I'd rather have the 1ary thread handle the message queue, and the 2ary doing whatever work -- the...
-
August 23rd, 1999, 10:48 PM
If the CString is more complicated than just a number, use sscanf or swscanf (wide is better!)
-
August 23rd, 1999, 10:45 PM
Check out the SDKs GetCursorPos & SetCursorPos.
-
August 23rd, 1999, 10:40 PM
D:\Fengjc\missons\ocr-1\ctFinal\CharTranDoc.cpp(22) : {43} client block at 0x00791F00, subtype 0, 240 bytes long.
a CCharTranDoc object at $00791F00, 240 bytes long
and...
-
August 22nd, 1999, 07:28 PM
check out HSHELL_WINDOWCREATED & HSHELL_WINDOWDESTROYED through Win32 ShellProc.
Altough I would prefer hooking on process creation which can't be done in a very clean way -- EnumProcess in Win95,...
-
August 22nd, 1999, 06:52 PM
I don't see why Sleep() wastes resources...(check out the documentation). On the other hand, it doesn't. The only problem I see with using Sleep(), is that you can't really terminate when you need...
-
August 22nd, 1999, 05:24 PM
Take an generic MFC MDI app where the view is a CFormView.
Put one button on the form. The butotn creates a thread to send the
view itself a message. The handler for this message just does a...
|
Click Here to Expand Forum to Full Width
|