|
set your breakpoint, right click on it, and choose Conditional breeakpoint in the contextmenu...
|
|
|
|
|
Hi,
In my class wizard WM_NC**** messages are not available for CMainFrame class. So can not add the handlers for the same from the classwizard.
how to make them available.
Thanks
Leya
|
|
|
|
|
|
|
Hi
Is any class related Stack in MFC. Please help me any one
thanx in advance
by
KK
|
|
|
|
|
What do you mean by "class related Stack" ?? Could you be more specific ?
|
|
|
|
|
|
If it already exists, why are you looking for something else ?
BTW, I never heard about CStack.
|
|
|
|
|
Hi
There is no class related to Stack. But u can use STL for stack.
|
|
|
|
|
Hi
For stack class in STL, refer the following address
http://www.sgi.com/tech/stl/stack.html
|
|
|
|
|
Krishna Kumar N wrote: HiIs any class related Stack in MFC. Please help me any one
http://www.cppreference.com/cppstack/index.html[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
A graph with x ranging from say 0 to 100 and
y ranging from say 0 to 30.
I need to draw a graph for the following points.
(0,5) (10,20) (15,40) (30,60)
i.e the Y value is out of range.
Now I need to modify the above y-points {5,20,40,60} such that they'll fit in the y-range of [0 to 30] .
How to do this? By performing which (arithmatic) operation the Y-points can be changed so that they fall within the range.
|
|
|
|
|
Why don't you consider changing the scale om the Y-axis and the redraw the graph?
if(currentY > maxYvalue) {
maxYvalue = currentY;
redrawGraph();
}
|
|
|
|
|
As per our application we cannot change the range. So the Y-Values should be changed.
|
|
|
|
|
Why don't you just divide the Y-values by 2 ( 60 / 30 = 2)
then you get {2.5, 10, 20, 30} which all fit in the specified range
codito ergo sum
|
|
|
|
|
Hi All,
I am implementing Drag and Drop of files from "my Namespace extension" to windows folders. Can anyone tell me what I need to do to allow for Drop into explorer left pane?? Both From Desktop folder to My namespace extension and vice versa. Is there any special clipboard format that I need to implement for this to happen?
Thanks and Regards,
Anil
|
|
|
|
|
Hi all
Still working with my 64-bit researching and conversions, now I've found myself stucked on an error where the _CONTEXT struct in Winnt.h is involved. The following two fields are only long in that struct, but as you probably know a pointer in x64 is 64-bit and not 32... So, I'm afraid of that the previos cast from Context.Eip and Context.Ebp to a pointer would not work so very well...
Eip
Ebp
So, how to workaround this problem? I've tried to find a simple fix but in that research I find myself more and more convinced that it isn't so easy. I'm pretty convinced now that there is some other way to handle the information in that struct in x64, but how?
I'm programming in VS2005 but the code is supposed to be platform independant.
TIA
|
|
|
|
|
If you have the appropriate headers, you should find the correct definition for _CONTEXT on x64. In my copy of the Platform SDK supplied with Visual Studio 2005, this starts on line 2368 of WinNT.h.
You won't find Eip or Ebp members here. These registers are extended on x64 to 64-bits and go by new names, Rip and Rbp.
To ensure you get the correct _CONTEXT structure, you need to ensure you're defining _AMD64_ rather than _X86_ .
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Thanks, found it and it's probably working now...
|
|
|
|
|
Hey friend,when I add new record to sql via m_pConn->execute("Insert..",,),it's ok.
but m_pConn could not control the cursor like m_pRecord,Problem comes,
while
m_pRecord->AddNew();
m_pRecord->PutCollect(L"Column",_variant_t("value"));
complier pass,but when progam start to run,it abort with message "Abnormal program termination",what's indicating with my code?
please give me a hand as quick.
Lee
|
|
|
|
|
I don't know, but here's a guess:
m_pRecord->PutCollect(L"Column",_variant_t(L"value"));
Steve
|
|
|
|
|
Thanks you,but it looks no function.
another suggestion?
expecting Online
Lee
|
|
|
|
|
Hi
I would like to ask you what is the best way to input a binary number. For example I want to read from a file 1011 and input it as an int variable as ELEVEN (1011 in binary) and not as a THOUSAND AND ELEVEN. Should we input it as a string and then write a little function that would return the integer equivalent or is there a more efficient way (faster) to do this?
thx.
|
|
|
|
|
read the file in binary mode, otherwise, you'll have to parser the string to recreate your own binary parsing (as C/C++ cannot handle binary directly).
be aware also that you cannot assign an integer (whatever type - char, short, long, int, __int64) with less of 8 bits...
|
|
|
|
|
v2.0 wrote: read the file in binary mode
From what I understood, the binary number is written litteraly (so you will have something like 00100101 in the file, not binary data).
|
|
|
|