|
Bob Stanneveld wrote:
when I empy the list by calling list.RemoveAll() do the objects remain in the heap?
Only the one that was passed to your function. The list creates its own copy which will be destroyed in RemoveAll()
Hope this helps,
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Yes this really helps, thanks a lot
A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.
|
|
|
|
|
You're welcome
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
hi there
i derieved a class to create a useful ctabctrl
but how can i check if - for example - tcs_bottom is set?
|
|
|
|
|
if(GetStyle() & TCS_BOTTOM)
{
} Hope this helps,
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
yet it works thanks
|
|
|
|
|
HI,
Which is the header file to be included to use SetTitle().
Thanks,
Prashant
|
|
|
|
|
CDocument::SetTitle() or CPropertySheet::SetTitle() ? They're the only two I can think of...
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hi,
i'm trying to create a little program fora friend of mine who studies psychology.
For his thesis he wants to study the effect of subliminal messages.
these are messages that u dont see, but your subconscience does pick it up.
(like coca cola used in movie theaters to get u to drink more)
i managed to get a CWnd* to the desktop window and draw text in it,
but i fail to erase it.
the only way i can get it erased is InvalidateRect(NULL, NULL, TRUE) , this way all the windows get a WM_PAINT message
It's obvious that this causes an enormous flicker.
I also tried :
HWND hNextWindow = ::GetWindow(m_hWnd, GW_HWNDFIRST);<br />
::InvalidateRect(hNextWindow, NULL, TRUE);
but this only results in my taskbar popping up.
Anybody got some pointers to get the job done ??
thx,
wouter
I used to have a life ... now I have a computer
|
|
|
|
|
CWnd::GetDesktopWindow()->Invalidate();
Hope this helps,
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
hi world
I want to get all mouse messages towards my application...
I mean when the mouse move outside the window of my application, my application receive mouse messages nevertheless (and thus mouse coordinates too)!
I already use Set/Get/ReleaseCapture and SetWindowsHookEx but when the mouse is outside my application I couldn't receive mouse message...
My question: How to receive ALL mouse message towards my application? Even if the mouse moves outside the main window of my application...
Thanks in advace...
Hello World!!!
from Raphaël
|
|
|
|
|
As someone posted already, use SetWindowsHookEx in an injection DLL.
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
I already do that but it seems don't work... Moreover MSDN says: You should use global hooks only for debugging purposes; otherwise, you should avoid them. Global hooks hurt system performance and cause conflicts with other applications that implement the same type of global hook.
where can I find an example using a DLL?
Thanks for your help!
Hello World!!!
from Raphaël
|
|
|
|
|
|
thank you very much...
Next time I will seek first in CP!
Hello World!!!
from Raphaël
|
|
|
|
|
Hi,
I'm trying to disable and then re enable a firewire card (or any generic hardware device for that matter) through software. I'm doing this is so I can turn the power off and on to my firewire camera when it goes haywire without having to unplug it and plug it back in.
Im programming in visual c++ 6.0 on windows 2000 but any clues as to where to begin even if in other languages would be appreciated.
regards,
Tim
|
|
|
|
|
If you know the name of the driver, you can use the following API functions to start / stop / control
a service / driver.
OpenSCManager
OpenService
ControlService.
Look them up on MSDN for details on how to use them.
Alternatively, you may be able to find out the IOCTL codes to send a "reset" to your driver using
DeviceIOControl.
Iain.
|
|
|
|
|
Thanks Iain, exactly what I was looking for.
regards,
Tim
|
|
|
|
|
I newbie for VC++,I wanna exit my SDI app by coding. How can i tell to ID_APP_EXIT ?
Thank for your help.
|
|
|
|
|
PostMessage(WM_QUIT,0,0);
|
|
|
|
|
Either as per the previous message, or using ::PostQuitMessage(0)
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
hi..
you can use that
::PostMessage(theApp.m_pMainWnd->m_hWnd,WM_CLOSE,0,0)
|
|
|
|
|
Does anyone know how to draw over the top of other direct3d/opengl apps??
At the moment I have a modeless dialog window that has dx7 running in it (aka window mode) just drawing stuff. I have set it to topmost and I am also using this (below) every frame it draws, although it does seem to slow it down
SetWindowPos(hWnd, 0, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_SHOWWINDOW);
Is there any other way to do this??
And when I say draw over other apps I mean games like Half-Life Qauke 3 etc.
Thanks in advance.
|
|
|
|
|
hehe, opengl is very easy, especially for quake and half-life!
half-life calls glEnable every frame before drawing anything!
inject a dll by using for example ForceLibrary(http://mitglied.lycos.de/yoda2k/[^]), hook the GetProcAddress function and in that hooked function compare every entered lpProcName value with "glEnable" and hook this function!
when your hooked glEnable is called, call the original one, then draw your own objects!
DON'T FORGET TO PUSH THE MATRIX BEFORE DRAWING!!!
you can find source codes of wallhacks at http://www.unknowncheats.com[^]
another important thing: MOST OPENGL MANUPULATION ARE DETECTED AS CHEATS AND MAY CAUSE CDKEY BAN!
Don't try it, just do it!
|
|
|
|
|
Hi,
I am drawing a polygonal with Polygon() and using
SetBkMode(TRANSPARENT) but instead of getting the
original image with the lines of the polygon I am getting
a white image with the polygonal lines on top. When I use DrawText it does draw the text as an overlay on the image.
How do I do the same with drawing polygons?
Thanks,
|
|
|
|