|
you can do it in EN_CHANGE handler.
1. If the user has entered a correct char store it in some string,
2. Check for the next character.
3. if it's valid then replace the string stored earlier with the new one.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
i want to pack some files with vc++ application.After that i need to edit & copy that files.how i do that.
|
|
|
|
|
pooja_friends wrote: i want to pack some files with vc++ application
Probably i am too old to understand this new terminology... But I am only 20 + years. Are you talking about creating a installshield project. What do you mean by pack some files?
pooja_friends wrote: After that i need to edit & copy that files
Where? How? Why?
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
My project is USB based application.Now am keeping files in usb drive.when i need i have copy files from usb to user system then using those files using VC++ code.
Instead of that.i need to packing files with vc++ exe.then copy that files to user system then use that file.How i do that?
|
|
|
|
|
Can you add it in the resource?
|
|
|
|
|
|
|
Naveen's answer would help?
|
|
|
|
|
SetWindowText leaves the old text on the screen and draws the new text on top of it. Using Invalidate() function,i solved this problem. But Dialog is blinking each time when we change the text in the Static control.
How can i avoid it? Pls anyone help me...
|
|
|
|
|
use InvalidateRect() to invalidate just the required area. pass the rect of ur static control to this function.
|
|
|
|
|
its not working. Dialog is not blinking. But it writes the new text on top of old one.
|
|
|
|
|
Could it be that you are using the wrong coordinates with InvalidateRect? How did you get the area of the static?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
|
|
|
|
|
What is written in the OnCtlColor ? Share that code?
|
|
|
|
|
I am not using OnCtlColor function
|
|
|
|
|
Is it a custom static control? Means have you derived from CStatic and using it?
|
|
|
|
|
s... it is derived from CStatic
|
|
|
|
|
Then most probably you are not clearing the background in the OnPaint
|
|
|
|
|
Hi, I wanted to ask if anyone ever go into this link, which teaches us how to do an Owner Draw Menu.
http://www.codeguru.com/cpp/controls/menu/article.php/c3721/
By following this tutorial, we'll have an Owner Draw Menu. But I don't know where to set so that when my mouse over the menu item[without left click] then the background color wont shaded.
Unless i left click on the menu item, then the background color of the menu Item is shaded as well as show the submenu of it.
Anyone know where do i have to set so that when mouse over it will have the background color of the menu item shaded ??
Any help is appreciated
Regards,
KH
good
|
|
|
|
|
Hi,
I think ON_UPDATE_COMMAND_UI will help you.
Jose Jo Martin
http://www.simpletools.co.in
|
|
|
|
|
I cant find any ON_UPDATE_COMMAND_UI in the mainFrame's Properties >> Messages
Is it I have to create my own UPDATE_COMMAND_UI ??
good
|
|
|
|
|
Hi All,
I am porting a VC++ 6.0 application to VC++ 9.0. In this process i am getting these erors.
1. void CRoute::RestoreCurOrder(ComPtr<cworkorder> &pOrder)
{
XXX = pOrder.get();
}
error C3867: 'ComPt<t>::get': function call missing argument list;
use '&ComPtr<t>::get' to create a pointer to member
2. _bstr_t func("CScreenDlg::GetDataField(" + tableName + "." + fieldName + ")");
TRACE(func + ": Table not found"); //#define TRACE ATLTRACE//
error C3066: there are multiple ways that an object of this type can be called with these
arguments
Any suggestions will help me fixing the issues.
Thanks.
|
|
|
|
|
Well, VC6 is a hideous disaster, and MFC has changed. Your code must have been very good for these to be the only errors you get. The first error looks to me like the only visible get method expects parameters. The second looks like it can't work out what sort of string you have, so try building the string first and passing in as a specific type of string, such as a BSTR, a CString or a char *.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
The second got resolved, but the first problem get() method has no parameters.
Regards,
Ramahcandraraju KK
|
|
|
|
|
I am not sure when we use an UDP socket to send and receive messages from one windows application to a mobile device that uses a modem and SIM card, where a port be assigned to an IP. say I have a SIM card with fix IP xxx.xxx.xxx.xxx, when I send a message I get it in my Windows base app as coming from that IP and a big port number (i.e. 48618). The SIM card provider suggests that they don't assign any port number to a SIM card. the thing is that after a while the port number gets changed if there is no traffic and My application can't send a message to the device as I send to the IP and the port that I got the last message from.
Best,
Nahita
|
|
|
|
|
If there is an application on that mobile device that you want to communicate with, you have to have the specification for communicating with the application, you can't just guess at how to do it. Do you have the specification?
led mike
|
|
|
|