|
Yeah, but why do you store that address in a CString instead of simply sending the address ? You can only exchange CString objects ?
|
|
|
|
|
Ritxi wrote: It's the way my program sends information between program blocks.
Basically your 'programs blocks' communicate via e-mail. This is crazy programming, isn't it?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
CPallini wrote: This is crazy programming, isn't it?
I don't know if that is the case, but client/boss specifications sometimes (more than desirable) are "crazy"
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Yes they are....but it's been my design. so...i am.
|
|
|
|
|
Nelek wrote: but client/boss specifications sometimes (more than desirable) are "crazy"
I agree, indeed they are often crazy. Anyway communication details between program blocks should not be affected by client/boss specification, since it is matter of technical implementation.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Maybe...i might be some stupid...maybe i change it all....
Ok. I've been thinking (it's not my best quality ). I' going to define two kind of communications. Messages and pointers. SCALABILITY! I'm a genious!!! Thank you all.
|
|
|
|
|
I think you need to view that at a higher level. Why in the first case do you need such "communication" mechanism ? Which 'parts' of your software needs to communicate and why ?
Ask yourself the correct question, this will already give some clues for a potential solution.
|
|
|
|
|
I agree. I'm not programming it as you might think...
I'm developing a part of an artifitial vision software. I want to command all the staff throught a flow chart editor (block diagrams). I want it all flexible and i need a mechanism to communicate the blocks.
Now, i've found a solution, but it's time to analize if it's the best solution.
Thanks for all your opinions. They all have helped me!
|
|
|
|
|
Ritxi wrote: I'm not programming it as you might think...
Possibly you're programming it as we fear you're doing.
(just kidding)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Ritxi wrote: Messages and pointers
Maybe numbers too. Good luck!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Those emails are encrypted with blowfish and the cypher is sent as a separate email. So, everything should be fine.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
how to print a character in the dialog box, which is pressed through keyboard.
|
|
|
|
|
Do you need to WM_CHAR or WM_KEYDOWN or WM_KEYUP?
|
|
|
|
|
print means what ??
Do you want to show char on dialog box??
If yes you can take dialog DC and use function Textout()/DrawText()
|
|
|
|
|
You don't like text boxes, do you?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Hi Pallini,
Can you see your votes on your profile or its my problem?
|
|
|
|
|
Nope. I cannot see the votes of my replies. I don't know if it is a new CP feature (at first sight format has changed too) or is a temporary flaw.
[added]
It's a temporaly flaw, the reason here [^]
[/added]
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
modified on Wednesday, May 28, 2008 8:29 AM
|
|
|
|
|
Thanks.
|
|
|
|
|
I m opening the image in OnFileOpen() but when i scroll vertically or horizontally it disappears. When done from OnDraw it is doing fine.Please Help.
|
|
|
|
|
when you will scroll the window it will be repainted always.
if you want the the image to be displayed all time you have to handle in OrDraw/OnPaint only.
|
|
|
|
|
I dont understand,can you more explain?
|
|
|
|
|
i m opening a image in OnFileOpen function it opens finebut when i start scrolling it disappears.
When the it is done in OnDraw function it is displaying image while scrolling. Please Help.
|
|
|
|
|
First you need handler methods for scrolling, which update the scrolled coordinates (usually the upper-left corner's coordinates). In these methods add: Invalidate ();
The Invalidate () method will cause OnDraw () to be invoked. Your OnDraw () method should draw the image, starting at the current scrolled coordinates.
An alternative is to use the CScrollView class, which handles scrolling for you. If you do this, the OnDraw () method should just draw the whole image.
|
|
|
|
|
How to change the name of MFC single document application
from Untitled to desired one?
|
|
|
|
|
If you wish to change the window title you can simply use SetWindowText.
if you just want get rid of "untitled" then you have to change in initinstance to say cmdNothing explictly.
|
|
|
|