|
It's in afxdisp.h .
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Hi guys i would like to know how to do this i want to make my editing CEdit control know if it lost focus by a mouse click a keyboard hit, a popup window, etc
Thx
|
|
|
|
|
i don't think that's possible. any window can grab focus any time it wants, just by calling SetFocus, and it doesn't need to tell anyone why.
|
|
|
|
|
Your CEdit will receive a WM_KILLFOCUS ,
and you could implement a reaction for the message...
virtual void BeHappy() = 0;
|
|
|
|
|
Ok guys thanks i will have to do something else for this requirement.
|
|
|
|
|
Hi,
I am trying to follow some assembler code
in my program However it would be nice
if the C/C++ source statements will laid
out before the generated assembler code
I guess the compiler optimizes the code
and moves things around
would using the above #pragma get me
code where I code see what assembler code
is generated by the C/C+ source
|
|
|
|
|
Hi,
Yes the #pragma optimize directive can be used to disable compiler optimizations around a particular portion of code. You will also need to use the /FAs compiler switch to see both source and assembly.
/FA, /Fa (Listing File)[^]
Best Wishes,
-David Delaune
|
|
|
|
|
Or you could just use the debug version of the compiled code? That would be just as valid as turning off optimisations selectively…
Why are you looking at the assembly language, BTW? If it's to debug a problem, then you have to look at the optimised code, painful as it might be...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
I just like to look at the paramters and return
code ax register etc optimized code is to difficult
|
|
|
|
|
ForNow wrote: However it would be nice
if the C/C++ source statements will laid
out before the generated assembler code
Such as what the /E and /P compiler switches do?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Sorry for delayed response
was observing passover
/P and /E are for pre-processor
|
|
|
|
|
Sorry. I meant /FAs.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
if I use backspace and delete keys to edit code in VC6, VC6 shutdowns at once (without asking for saving file), so I can't work now.
I test other edit programs, such as word, notepad and this forum, all are fine.
do you know why?
======================================
I got solution and post here for others.
some h and cpp files are edited by another editor, they look good in VC6, but actually have different format - I think it is \r\n, when VC tries to save the file after modification, VC crashes.
I use notepad modified related h and cpp files, now my project is fine.
-- Modified Tuesday, March 30, 2010 5:38 AM
|
|
|
|
|
Other than the usual "real programmers never use the delete and backspace keys" answer , have a look at the .suo file (heck that probably did not even exists for VC6 !) or maybe the keyboard settings/preferences.
Do it crap out with other projects or just that one ? i.e. create a new project from scratch and see if you can edit the files.
Or maybe your VC6 is telling you it wants to retire and urge you (and/or your organization) to upgrade to a more recent IDE.
Watched code never compiles.
|
|
|
|
|
try deleting your .NCB file.
|
|
|
|
|
1. other VC6 projects are fine, problem comes only from this one.
2. there is no .suo file.
3. no help after deleting .ncb file.
how to change keyboard settings for specified project?
any comments?
|
|
|
|
|
includeh10 wrote: ...problem comes only from this one.
Every time or just sporadically.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
always in 2 projects, but no problem for others.
Cut action of menu also causes project shutting down.
|
|
|
|
|
Hi! I've got the following situation:
1.A Visual Studio 2008 solution with many projects in it. One of them builds a dll while the others build exe's that use it.
2.I need to add my own project to this solution to make an exe which uses the dll. So I create a new project in the solution and copy the configurations from the other projects(which are for all intents and purposes identical). Then, basing my code off one of the other projects, I write a simple program using the dll's functions.
3.When I try to build the solution, or my own project, the compiler suddenly finds errors in the dll project!(which built fine previously,along with every other project in the solution.They still do,too, only mine reports a ton of errors) Specifically, it finds errors in the two header files I include. The errors are too numerous to mention here (263 of them,of all kinds of types)
I'm stumped, any idea whatsoever what could cause this? Why would the build of the dll project fail only when I build my newly added project and not when building the identical older projects?
I realize it might be a bit vague but if you need more info to help, just say so!
|
|
|
|
|
Please do not repost the same question to multiple forums; I have already responded to this here[^].
txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Hi I need your help to Genetic Algorithms for Codebook Generation
in Vector Quantization ,I wannna a source code or all thing about to begin programing
|
|
|
|
|
Read here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Hi guys,
I'd like to check the terminal at position (y,x) and see if there is any char over there? Any hints pls?
I tried to play around with mvgetch(y,x), but it didn't solve my problem. Anything else?
Thanks
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Does this [^] help?
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
[My articles]
|
|
|
|
|
thanks a lot, mate. I am still learning C you know any good sites with some useful functions like those?
also, sorry if my OP was a bit newbie-ish
modified 1-Aug-19 21:02pm.
|
|
|
|