|
Thanks much!
Mike Ellertson
|
|
|
|
|
When i press an Escape Key ...during my application dialog is opend. it becomes dissapear.
how can i handle this stupid way of escape key that on press it my dialog not dissappear.
thanx
|
|
|
|
|
Override OnOk and OnCancel functions (to do nothing or if you would like to handle them do not call CDialog::OnOk (OnCancel) in them).
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
i did it ,, but situation is same ,, dialog dissapears on Escape key.
tellme the right way
by example of code line
thanx
|
|
|
|
|
If CTestDialog is ur Dialog class, then add implementation
void CTestDialog::OnCancel()
{
//Remember the function body has nothing
}
the problem was occuring because ur app must have had the implementation below:
void CTestDialog::OnCancel()
{
CTrayDialog::OnCancel();
}
|
|
|
|
|
<br />
void yourclass::OnCancel(){<br />
}<br />
I once had the same problem and I solved it like this.
(try both OnOK and OnCancel maybe)
if this doesn't work I wouldn't know sorry.
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
hai,
I am doing a project in voice chat,the problem is that the program works correctly in LAN,but when it is used in net, the sound gets more noisy and there is a loss of some data,there is also some echo .
can any one tell me how to reduce noise and echo in the voice chat over the net.
(there is also some delay of data in the data)
Give some suggestion and solutions to solve the problem.
Thanking u all for reading my question...
M.Kailasam
|
|
|
|
|
increase the compression of the data you send.
|
|
|
|
|
Does anyone know how I can track which window in my app has the focus. Using break points causes the focus to shift to visual studio and I dont want to add an OnSetFocus() method with trace statements everywhere
|
|
|
|
|
Run a Timer function and call GetFocus() from within the timer function.
Bikram Singh
|
|
|
|
|
I would like some suggestions on how to create a version of my program for use as a trial. I want the program to either quit working after a specified date or to only run X number of times. What are methods to do this that can't be hacked around?
|
|
|
|
|
You cannot make it 100% unhackable
You could reduce the features and not ship the code that implements the disabled features. People cant run code they dont have.
|
|
|
|
|
Quite true
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
Almost all of the ways possible to make a program shareware are possible to go around. One way to do it is to encrypt a hidden key somewhere in the registry with the set date to expire that an uninstall utility wouldn't remove.
The most secure way I can think of would be to make the user create a user name and password to register it. When you registered it it would notify the host of the usernames and increment the number of times the username/password combination has been used. If the number approaches a specific value you could delete it. This would require the user to have internet access, which most do.
Those are my ideas....I dont know how they would work.
|
|
|
|
|
|
Thanks, this is just what I was looking for.
|
|
|
|
|
I'm using OpenGL on a dialog based MFC application. It works fine and well until I try to open a messagebox. Then the program freezes. I'm not sure why. By cutting certain lines of code out, I have discovered that the only lines that stop the problem from occuring that I can remove is:
<br />
CString className = AfxRegisterWndClass(<br />
CS_HREDRAW | CS_VREDRAW | CS_OWNDC,<br />
NULL,<br />
(HBRUSH)GetStockObject(BLACK_BRUSH),<br />
NULL);<br />
CreateEx(<br />
0,<br />
className,<br />
"OpenGL",<br />
WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN,<br />
rect,<br />
parent,<br />
0); <br />
I dont see how this could cause the error, but I think it does. If anyone can tell me how to make it not freeze when I display a message box I would appreciate it. Thanks a bunch.
Ken
|
|
|
|
|
Hello all
Can any one please tell me when to use IO Completion ports with sockets? When we want to handle asynchronous read or write operations we can do with event objects then why to use IO Completions ports?
Please advice ..
Thanks for your help.
Amarelia Maehsh
Gujarat
India
|
|
|
|
|
|
we have a server app that used to create a thread for each connection. This was fine for 100 users but was too slow for 1000's of connections
I changed it to use asynchronous io and a completion port with a fixed number of threads, one listener, one receiver, one worker per cpu and a couple of others for timing, cache purging etc.
The listener accepts connections and assosiates them with the completion port, the receiver waits on the completion port and generates job objects based on the received message. These are then queued and processed by the worker threads.
This has worked very well in production (most customers have very high end multiprocessor boxes) with 1000's of connections
|
|
|
|
|
Dear all,
need some help.
I freeze the process loading using 'PsSetCreateProcessNotifyRoutine' on win2k and winXP.
I manage to get the process id and process name from it.
However, i need the full path for the process.
I have try the following and failed.
1)EnumProcessModules
2)CreateToolhelp32Snapshot
3)GetModuleFileNameEx
4)WTSQuerySessionInformation
All the above fail to get the process path using the process id.
I need it to work in win2k and winXP.
any ideal?
Thank you in advance.
Cheers,
|
|
|
|
|
Hi nihao,
Have you tried using GetModuleFileName in conjunction with the previous?
Jeff
|
|
|
|
|
Jeff,
thanks for the response.
and yes, i have try it.
it dun works.
Somehow the information is not updated when the process is freeze.
Thanks,
Murphy
|
|
|
|
|
hi! how can i realize a file transfere via winsock with tcp/ip protocoll??
please help me!!
cu
|
|
|
|
|
It has been a while. What do you mean? You open a file read it into a buffer or part of it and send it. If you are using winsock and understand it enough to make a connection, then sending anything should be easy (sort of like writing to a file).
A little more explination is required.
INTP
|
|
|
|