|
yes, I have played computer games, and I am still playing them.
but I don't know how to answer your question, please specify what is your c/c++ question.
why am i even answering that?
Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
|
|
|
|
|
Maximilien wrote:
but I don't know how to answer your question
what question;P
A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.
|
|
|
|
|
Anonymous wrote:
I want to make Minesweeper game in VC++.
Uhhuh. That's nice.
Nobody's gonna stop you. Go for it. Just make sure you have fun.
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"
|
|
|
|
|
Does anyone know if _tsetlocale only affects the current thread or the whole application?
Please tell me it is not the latter! If it is, how do you cope with this? Put all the access to the locales in critical section? Surely there must be a better way!
Any info welcome!
|
|
|
|
|
in msdn it's not mentioned, that it only affects the current thread, so i suppose that it affects the whole process!
Don't try it, just do it!
|
|
|
|
|
Each thread in a process can be set to a different locale. This is useful in a server environment, where each thread can be communicating with a different client, using the client's locale. For this reason, it doesn't appear necessary to lock access to the locale using a critical section.
Software Zen: delete this;
|
|
|
|
|
Hi Gary!
Thank you very much! I did find relief and happiness thanks to SetThreadLocale... I have also read somewhere on CodeProject, that it was not safe with MFC but apparenly it is sorted since VC6 SP3.
Thank you to all who helped!
|
|
|
|
|
Any good links for image halftone screening?
Would be great if the lib or source is in Windows platform.
I found few and currently testing it but like to know if there are better one.
Anyone?
Thank you
|
|
|
|
|
Hello,
I'm using the CList tempate. I declared it this way:
CList<A,A&> list;
in the following function I add elements:
BOOL something::AddElement(A *pa)
{
if(pa)
list.InsertAfter(list.GetTailPosition(), *pa);
else
return FALSE;
return TRUE;
}
when I empy the list by calling list.RemoveAll() do the objects remain in the heap?
thanks in advance.
A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.
|
|
|
|
|
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
|
|
|
|