|
ugur_basak wrote:
But there is a class i wrote that is inherited form CEdit...It doesn't call en_change
Nor should it.
ugur_basak wrote:
...so i have to use EN_UPDATE...
This notification is sent when an edit control is about to redraw itself (after the control has formatted the text, but before it displays the text).
ugur_basak wrote:
Also, can i only alter the pasted data in Dialog's with EN_CHANGE?
This notification message is sent after the user has taken an action that may have altered text in an edit control. In other words, it's not a message that your code would send.
To change the text in an edit control, send it a WM_SETTEXT or EM_SETTEXTEX message.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hi first of all: Is it possible to use my MFC DLL in a regular Win32 app?
If yes, how?
Does my MFC DLL have to meet any requirements? How do I for example handle an exported function that returns a CString in my Win32 app.
All tips are welcomed!
_____________________________
...and justice for all
APe
|
|
|
|
|
Certainly, is possible, like using any function exposed by a dll,
through LoadLibrary api.
But... what is the point? Why should you you make such a complicated thing, when you could use it normally???
|
|
|
|
|
I'm going to write a quite small dll for one of my customers and he says he don't use MFC. To accomplish my mission I like to write an MFC DLL. Isn't it only to check the dependencies on my MFC dll and distribute them to him too?
_____________________________
...and justice for all
APe
|
|
|
|
|
Yes, provided your MFC DLL was built with static or dynamic linking to mfc*.dll and possibly other standard dlls. It cannot be an MFC extension library.
|
|
|
|
|
hello, well I have the following problem...in my MFC project I am using atlbase.h, because I am working with CRegKey class. On my computer the .exe works just fine, but on a friend's of mine, it doesn't...and I created this project as a statically linked project...
this is the error
after the first error, this is what appears
|
|
|
|
|
maybe he is not allowed to enter the registry or the key is not found where you are looking for it!?
|
|
|
|
|
P-Rex wrote:
maybe he is not allowed to enter the registry or the key is not found where you are looking for it!?
well the key is the same on every computer...adk he said he is allowed
|
|
|
|
|
Junyor wrote:
this is the error
These type of error occcur, when there is problem of permission,have you done proper error handlling for registry code.
like.
CRegKey key;
if(key.Open(HKEY_LOCAL_MACHINE,"Software\\cp")==ERROR_SUCCESS)
{
................
key.Close();
}else
{
MessageBox("Faliure in opening registry");
}
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
well I tried this and still, on my computer works, on a friend's computer works, but on 2 other friend's of mine it shows the same error
If you have a dream, follow it, because it might just become true.
|
|
|
|
|
Junyor wrote:
but on 2 other friend's of mine it shows the same error
I believe, You are not checking CRegKey State before Writing or reading data. I too using CregKey from Long time, and this type is error usually arise due to permission or Security
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
That ASSERT is only invoked in atlbase.h when you try to
delete a subkey or value, close a subkey or set a value
in a subkey where the subkey is still null. In other words
somewhere you tried to create or open a subkey which failed
and you ignored the failure and proceded to try to set,
delete or close that subkey. There is no other explanation.
IF you are really checking the success of opening the subkey
before setting the value then you are probably still trying to
close or delete the invalid key somewhere later.
Steve T
|
|
|
|
|
I'm looking for a "edit" type control where the user can enter and equation mixing units (metric / english), etc including +,-,*,/.....
Thanks in advance
Tony Teveris
Gerber Scientific Products
Senior Software Engineer
Phone: 860 648 8151
Fax: 860 648 8214
83 Gerber Road West
South Windsor, CT 06074
|
|
|
|
|
I think your question is not very well formulated ! Because the standard edit control accept those characters...
What are you looking for exactly ? Maybe you want to implement a kind of parser or xomething like that ? If yes, look in the articles of this website, there is a section about parsers (don't remember exactly where). Otherwise, try to be a little bit more explicit.
|
|
|
|
|
|
Thats what I want - Thank you
Tony Teveris
Gerber Scientific Products
Senior Software Engineer
Phone: 860 648 8151
Fax: 860 648 8214
83 Gerber Road West
South Windsor, CT 06074
|
|
|
|
|
Tony Teveris wrote:
Thank you
Say Thanks to toxcct[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
hey, very interesting, i'll have a look at this !!!
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
i'll have a look at this
So,Whats your opinion about 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
|
|
|
|
|
actually, i think it's far from being perfect...
i really liked to add formal calculation into it (like "x + x" returning "2x" )
i also like to add more personalization, like allowing the users to configure the number of digits they'd like to appearing as a result, etc...
I also thought (one day i was dreaming too much) to adding a graphical area to draw functions (2D or 3D why not )
but i saddly don't have enough time to make all these at the moment...
hey, you know what ? i really liked to share this with you (if you agree of course)... it would be grateful to me if you accepted to become my co-author on that article, or at least, help me with some useful tips/suggestions...
i'm waiting for your answer "hurrily"
sincerly,
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
|
ThatsAlok wrote:
I need some time to think over it if you don't mind
no problem.
ThatsAlok wrote:
amn't Intelligent as you,you know many thing which I still learning
hum, are you sure ?!
if i look at your birthday, you're older than me
ThatsAlok wrote:
Hain no thanks and sorry in FriendShip
hum, i'm not certain to understand 'cause my poor english doesn't "decode" this sentence...
anyway, thanks for you're support
cheers,
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
Hain no thanks and sorry in FriendShip
hum, i'm not certain to understand 'cause my poor english doesn't "decode" this sentence...
I want to say :- no need to be formal with me
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
toxcct wrote:
i'm waiting for your answer "hurrily"
I have a OFFER for you! Will you be my Co-Author in 45 Days Series
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
ThatsAlok wrote:
Will you be my Co-Author in 45 Days Series
definitely yes !!
i never had such an opportunity, and it's an occasion so great and so funny that a say YES to your offer !
moreover, it's very advantageaous to sharing knowledges like this, and so more when it's hard to find some work (especially when many of the employers requiere to have a good english level...).
ok, now, when do we start ?
what's my first task captain ???
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|