|
Not every company is going have one firewall and computers behind that. Smaller companies have some 'N' number of computers and everything has an IP. I may be wrong too.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Hi ...
I am not Nice Naidu...surprised to see many replies....I have already read the Article suggested by Thomas..
Pls. Suggest more Articles or Tools if any for GDI leak detection
Thanks
Today is a gift, that's why it is called the present.
|
|
|
|
|
narayanagvs wrote: I am not Nice Naidu...surprised to see many replies....
*sigh*
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Try Memory Validator or (if you have masochistic tendencies) BoundsChecker (part of the DevPartner suite).
|
|
|
|
|
brahmma wrote: You can clearly see that he has one ID only for 'asking' purposes
How?
Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers! We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP Linkify!|Fold With Us!
|
|
|
|
|
Linkety[^]
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
hi i am having two buttons ok and cancel. when the user click ok it will do some process also i will disable this button. during my process when we press enter it ahould cancle the process instead it contiues the process. i tried using cancel->SetFocus() but i cant get the soluition. what i have to do if the user press enter key it should do the process in cancel button. anyone who knows please help me.
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
Is your application multithreaded? In a unithreaded application, your whole app will be prevented from processing messages until a process completes. If it a unithreaded app, then AfxPumpMessage may help you.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
deeps_cute wrote: during my process when we press enter it ahould cancle the process instead it contiues the process. i tried using cancel->SetFocus() but i cant get the soluition.
At the point of disabling the OK button, have you tried setting the Cancel button as default?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi all,
I am working on a SDI application.When i run it, on the main window it gives the name of the project. I want to change it and want to give a desired name.
And similarly i want to change the name of exe file through coding .
Can anybody help me in this???
|
|
|
|
|
neha.agarwal27 wrote: And similarly i want to change the name of exe file through coding
actually that name is part of String Table you have to edit that!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
i have tried it by changing IDR_MAINFRAME Caption but its not changing.
Whenever i run it it always come
Untitled - website
n i want to change it to Neha
similary exe name is coming website.exe n i want to change it to neha.exe..
|
|
|
|
|
neha.agarwal27 wrote: n i want to change it to Neha
Override PreCreateWindow
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;
cs.style &= ~FWS_ADDTOTITLE;
cs.lpszName ="Neha";
return TRUE;
}
|
|
|
|
|
Thanku all
My problem is being solved........
|
|
|
|
|
neha.agarwal27 wrote: similary exe name is coming website.exe n i want to change it to neha.exe..
For this, In my knowledge there is no way. I think, you need to follow path suggested by Paresh.
|
|
|
|
|
Q. To change the SDI application mainframe name ?
A. In the resource string table, change the value of IDR_MAINFRAME resource id.
Q. To change the name of exe file ?
A. Go to "Project | Settings | Link" tab. Category -> General. Edit "Output file name".
Regards,
Paresh.
|
|
|
|
|
Hi there,
I have a CWnd custom control and and i set the scroll bar range by using SetScrollRange in OnPaint function.
this->SetScrollRange(SB_HORZ, 0,110000, TRUE);
However, i notice that by a certain range, the diagram the is shown at the beginning of the scroll position repeats itself. And when I scroll further, it will also repeat the same thing again.
Why does this happens?
Thanks for any help
|
|
|
|
|
yes it has a limit.
(from MSDN)
The difference between the values specified by nMinPos and nMaxPos must not be greater than 32,767. The default range for a scroll-bar control is empty; that is, both nMinPos and nMaxPos are zero.
Murali Krishna
|
|
|
|
|
I've notice that if i drag the scrollbar using mouse, the diagram will repeat itself when it reaches a certain range. However, if i click the scrollbar button (which looks like this "[>]" to the left), it can scroll to a larger range but it is too slow if i wan to scroll fast to a certain range. Sometimes when i need to scroll fast,i normally drag the scroll bar to achieve this. However, i also need to be able to scroll slowly by clicking on the scrollbar button. Any suggestion on how to be able to scroll fast and slow whenever needed?
|
|
|
|
|
in my code , i used the system() to excute some command.
when the command excute , always show the DOS window.
i want to hind it, how?
|
|
|
|
|
Instead use ShellExecuteEx . And use SHELLEXECUTEINFO-->nShow to hide the window,
e.g
SHELLEXECUTEINFO ShExecInfo;
ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
ShExecInfo.nShow = SW_HIDE;
ShellExecuteEx(&ShExecInfo);
|
|
|
|
|
thanks!
i have got it~
i use WinExec(strCmd, SW_HIDE); in stand of the system();
it works !
|
|
|
|
|
jakeyjia wrote: i use WinExec(strCmd, SW_HIDE); in stand of the system();
Havn't you seen Note in MSDN documentation for this API ?
Note This function is provided only for compatibility with 16-bit Windows. Win32-based applications should use the CreateProcess function.
|
|
|
|
|
i see~ but it works? why?
|
|
|
|
|
CreateProcess(), WinExec(), ShellExecute() are ok
system() works, but exists for backward compatibility with 16bit applications. you shouldn't use it
|
|
|
|