|
Thank you RChin..
Even i had the incremental linking option set.. and i didn't delete the exe also.
regards
pal
|
|
|
|
|
I have found that sometimes it will do a full rebuild if your codebase has changed drastically, or there where modifications in the code that would prove difficult for the compiler to reliably perform an incremental link.
I Dream of Absolute Zero
|
|
|
|
|
Ok.. you are right.. I added some classes to my project..
Thank you
pallavi
|
|
|
|
|
Hi Pal,
Just Clean you Solution/Project file by selecting BUILD|Clean Option.
Then Recompile/Rebuild the Solution to get your phoneAdapter.exe
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Hi Alok..
Ya.. I did that.. and its working fine now.. Thank you..
regards
pal
|
|
|
|
|
mpallavi wrote:
Thank you..
As Usual, Mention Not .
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
I am a novice programmer in VC++.I want to create an application in which i want to capture the menu events e.g in notepad when some user press file -> save / file-> print i got notified. How can i do the same.
Sunil Virmani
|
|
|
|
|
Sunil Virmani,
When you design a menu using RC editor or if you create a menu item dynamically, it will have a window ID which is uniquly used to find out which control generates that event. Suppose if you have a menu item ID_FILE_SAVE it will have a interger value. This integer value is passed with the LOWORD of wParam.
-- If you use MFC , you can use ON_UPDATE_COMMAND_UI macro. The corresponding handler will be called/notified when there is an event.
-- If you want to process the message, you can use ON_COMMAND(id,memberFxn ); macro. IT will call appropriate handler.
-- In case if you use Win32 SDK, you have to use switch case..
switch(msgType)
{
case WM_COMMAND:
if (LOWORD(lParam)) == ID_FILE_PRINT)
{
//.. do your process here
}
}
Thanks & Regards,
Gopalakrishnan
" Action without vision is only passing time,
Vision without action is merely day dreaming,
But vision with action can change the world "
- Words from Nelson Mandela
Thanks & Regards,
Gopalakrishnan
|
|
|
|
|
I want to capture the events of the existing applications. I mean i want that i get notified when some one presses File->Save in notepad i get notified.
Regards,
Sunil Virmani
|
|
|
|
|
I wish to write a program to get the number of bytes/packets being received / sent over an NIC (standard ethernet card). Are there any inbuilt functions / libraries in the standard c/c++ library to this? If not, are there any external libraries to do so?
Nikhil
|
|
|
|
|
Nikhil Wason wrote:
Are there any inbuilt functions / libraries in the standard c/c++ library to this?
Yes, loop for IpHelper Api's
Nikhil Wason wrote:
are there any external libraries to do so?
Sure, here it is http://www.winpcap.org/[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Jesus ! You seem very agile with your nose today
|
|
|
|
|
cedric moonen wrote:
You seem very agile with your nose today
Nope, As you have lost control, i started using my hand again
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Hi,
You can also use WMI (Windows Management Intruments) objects for this monitoring. It provides all the features, in terms of objects. It is very is use and work.. Please check with MSDN with Win32_NetworkAdapterConfiguration section. IT will help you a lot..
Thanks & Regards
Gopalakrishnan
" Action without vision is only passing time,
Vision without action is merely day dreaming,
But vision with action can change the world "
- Words from Nelson Mandela
Thanks & Regards,
Gopalakrishnan
|
|
|
|
|
HI Gopal,
By Mistake, you a make post to wrong person!, Please post it again to right Guy.
Thanks
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
I am sure a simple solution exists for this problem.
But for data enter and validation via an Edit Box, using the EN_KILLFOCUS event.
The problem is, unless I set the Multiline properity, when Enter is pressed the dialog will close.
Are they a way to have Enter work the same way as the Tab key to signal the end of data entry?
Currently have to Tab out of this control to do the processing.
Many thanks.
|
|
|
|
|
Set WANT RETURN property of Edit Box
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
If you set the Want Return properity, then still have to use the Tab key to move off that control.
If you just set the Want Return properity then dilog closes when Enter pressed.
Was just hoping to use Enter like the Tab key.
Any suggestions.
|
|
|
|
|
sweep123 wrote:
Any suggestions.
Sorry, I Interpreted your Question Wrong!, By the Way Mr. Nilesh already given the Answer
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
sweep123 wrote:
Was just hoping to use Enter like the Tab key.
don't know how you're gonna do this
Your problem is that the OK button is set to default button and when you press Enter button, automatically OnOk() is called.So override the OnOk handler
void CYourDlg::OnOk()
{
//OnOk();
}
if you only delete the OK button without doing what i wrote above it won't solve the problem.
But if you have already deleted the OK button , then one way to avoid this problem is to add an invisible button and set is as default.
"Go as far as you can see,and when you get there youll see further" - Unknown
|
|
|
|
|
Thanks for your Post, but do not understand what you mean adding an invisable button and set as default.
Yes I have deleted the OK button on the dialog as it's a modeless dialog.
More help please.
|
|
|
|
|
sweep123 wrote:
Thanks for your Post, but do not understand what you mean adding an invisable button and set as default.
simply add a button then in the properties window set the Visible checkbox to false and in the same window Mark the Default Button check box.
"Go as far as you can see,and when you get there youll see further" - Unknown
|
|
|
|
|
Ohh, you stilln't got the answer!.
Ok Handle OnOK() virtual function in your CDialog derived class and Comment Out any CDialog::OnOk() line.
i.e.
void YOURDIALOGCLASS::OnOk()
{
}
Now you dialog will not close on pressing ENTER key!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
The problem is I have deleted the OnOK() button.
|
|
|
|
|
sweep123 wrote:
The problem is I have deleted the OnOK() button.
No Problem, add a Button in your Dialog Box and Set it ID to IDOK
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|