|
The button 1 seems to be a button control, and I think it contains some code associated with it. You should see which function is executed in your code when you click the "1" button, i.e. how the text is inserted into edit control.
|
|
|
|
|
in button one my code is like
m_text +="1";
UpdateData(false);
where m_text is member variable for edit box
-- modified at 9:20 Tuesday 13th June, 2006
|
|
|
|
|
Therefore the Windows works fine, but not how you expected. I think the handler for button 1 should be changed to:
m_cMyEdit.ReplaceSel("1");
where m_cMyEdit is the control variable of your edit control.
Try this first for button 1, then -- if works -- adjust all of your numeric buttons.
|
|
|
|
|
|
Associate the Control variable to your Edit Control and Use the methods like cut for deleting the selected text.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
thank u.
i tried it not working .
|
|
|
|
|
Use UpdateData function while updating the data of the Edit box.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
DWORD dwSel =m_number.GetSel();
m_number.Cut();
int i=HIWORD(dwSel);
POINT pt;
pt.x=i;
pt.y=0;
m_number.SetCaretPos(pt);
m_number.SetFocus();
*****m_number is the control variable for the edit control with the number property set to true
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
-- modified at 8:18 Tuesday 13th June, 2006
|
|
|
|
|
thank u.
it is also useful to me.
but i want not only last element.what u select u should delete that.
|
|
|
|
|
SO is there a problem in the code I provided?
Isn't it working upto your expectations or needs.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi friends ,
Is there any attribute for printers which is unique and can be used to identify them in network (like printer name...)?
|
|
|
|
|
wrote: Is there any attribute for printers which are unique and can be used to identify them in network (like printer name...)?
Use Manufacture ID of the Printer.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
If I have printers installed on network and I am going to enumerate all printers.How to find "Manufacture ID" ?
|
|
|
|
|
Have a look to NETRESOURCE structure.
Search in MSDN you will find all the attributes which are being passed
Cheers
"Peace of mind through Technology"
|
|
|
|
|
Hi,
Whats the difference between release and debug mode.
Debug mode is enough for debugging and to build the project.THen why release mode is there?
I never use tht mode?Any tutorial about that?
|
|
|
|
|
You can't debug in the release mode.
Debug mode:
This is helpful when you want to know where is a fault in your code that is causing a crash or malfunction.
The assert macros work in the debug mode not in the release mode.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Release mode removes the dependencies and shrinks the size of the application.
Debug mode is for tracing the application.
so prefer the release builds only while deploying the application.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
You can get the brieh Description Here[^]
Cheers
"Peace of mind through Technology"
|
|
|
|
|
|
Another point is that it's illegal to sell applications that are in debug mode because they uses debug dll's also. These dll's are from microsoft and you are not allowed to distribute the debug version.
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
I find this question may be for the 100th time . Debug as it's name suggests , comes with all macros that helps you to debug your application, (ie ASSERT, TRACE ). So with all these, your .exe's size would be naturally bigger. And when you check for dependencies, you'll see it's refering to the dlls that ends with "d".. like MFC42D.dll, MSVCRTD.dll ect. But when you make your application in Release mode, it is fully optimized. Compare the size of both the .exes you'll know.
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
|
|
|
|
|
u can debug in release mode!...
just a matter of changing the settings....just check teh Generate debug info flag!....
|
|
|
|
|
one more difference that don't seem to be told here yet :
compile both debug and release mode and compare the sizes of the new .exe... seeing a difference ? (the debug version should be much bigger because it contains debug infos, the comments of your code have not been erased neither)...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
this is crap.
it's just as if you delete this in a contructor, and initialize your object state in the destructor.
it's not what release mode is made for, so don't use it for debug !!!
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
thanks for all your comments i tried to run the undermentioned code.
::ShellExecute(NULL, (LPCWSTR)"open", (LPCWSTR)"iexplore.exe", NULL, NULL, SW_SHOWNORMAL);
it didnt work as i thought it would. secondly, it seems that it is meant for html file. whereas i am trying to do it for mp3s
please help
|
|
|
|