|
Hi Gurus,
I used two combo boxes in a dialogue, it seems that the two combo boxes interference each other. When I tried to retrieve the value from one combo box, I got value from the other Combo box selection.
The response to SelectChange to other Combo box. How to make sure retrieve the correct value from the Combo box A, prevent from interference from Combo Box B.
What is the code to call to retrieve the value from a Comb Box selection?
Thank you
|
|
|
|
|
According to MSDN, CBN_SELCHANGE gives combo box ID in wParam. I think you can use this id to distinguish between combo boxes.
|
|
|
|
|
You add two variables for the two comboboxes.
from class wizard add the two different CBN_SELCHANGE handlers.
|
|
|
|
|
Dont bore of this 80's question...please excuse me for this...
question is very simple...
Why empty class's size is one Byte in C++???
Answer 1:suppose in case of creating array of objects of this empty class, then to distinguish them atleast 1 byte is required ... mE fedup of this answer
My Doubt for this answer : If this reason is valid then why hell in C, empty structure's size is zero... Here also anyone can create the array of objects of this empty structure.Here no neeed to distinguise. Is It ????
Answer 2: Since in C++ provides function members so like
class test
{
};
this is also empty class but by default every class has some default member's function...
test tObject1=test();
test tObject2(tObject1);
or
class test
{
public:
void fun();
};
test obj;
obj.fun();
so to call this function it may required size atleast 1 byte...
BUT I M NOT SUTE FOR WHAT REASON IN C++ THEY HAVE TAKEN 1 BYTE FOR EMPTY CLASS AND ZERO BYTE FOR C....PLEASE U CAN SHARE WHAT'S EXACT REASON????
Truth Can'nt be changed
|
|
|
|
|
asadullah ansari wrote: THEY HAVE TAKEN 1 BYTE FOR EMPTY CLASS AND ZERO BYTE FOR C
C++ != C and a C++ class is not a C struct
the C++ standard requires that all class objects have a "nonzero size".
see page 149 : http://www-d0.fnal.gov/~dladams/cxx_standard.pdf[^]
|
|
|
|
|
offcourse C != C++ ...Here offcourse C++ standard requires it so it's there
But my question is why they have made like this... Some reason should be for this...
Truth Can'nt be changed
|
|
|
|
|
asadullah ansari wrote: Some reason
because same pointers should imply same objects (and same types), different pointer values different objects.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
The reason is very subjective.
In the below posts you can find the link to Stroustroup site, and his "official" answer.
The interesting thing is that the argumentation he provides are good for C as well.
IMHO, I think it was just a different "taste" between K&R and B.S.
In C a struct is just a "bouch of bytes" and and address is just a "place in memory".
In C++ a struct is an "object" and an address is an "object identity" (and two objects must not have the same one).
Of course we can discuss if C++ classes and structs are "real" object or just tools to assemble them ... but it is still another matter of "taste".
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
that is what ++ in C++ means: add 1.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
reallly funny ...gud
Truth Can'nt be changed
|
|
|
|
|
|
Not being the creator of the language I can't answer definitively so I'll just refer you to the "Design and Evolution of C++" by Bjarne Stroustrup.
I hope you won't be disapointed by the answer!
Cheers,
Ash
|
|
|
|
|
to call a function you need a memory address for the function pointer. So you need the size of a void*. Typically 4 Bytes.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hi,
Does anyone know of any free c++ matrix class libraries? In particular, I want to be able to search the matrix for values, obtain min/max values for each of the columns, be able to add/delete columns on the fly, etc.
The more matlab "like" it is the better.
Thanks,
|
|
|
|
|
b-rad311 wrote: Does anyone know of any free c++ matrix class...
Like a multi-dimension array?
"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
|
|
|
|
|
|
It looks as you need somethink like dynamic two dimentional array.What about using STL classes? For example vector of vectors of specific type behaves like "dynamic" matrix.
Life is a stage and we are all actors!
|
|
|
|
|
Hi,
Previously I was using vector of vectors but it seemed to be running slow for what I needed to do, so I was looking for optimized matrix class. The matrix is about 1,000,000 x 13
|
|
|
|
|
Wow, that's huge. I hope it is a sparse matrix and you might find a less resource-consuming way to represent the data.
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, I'll check it out. Have you had good experience with it?
|
|
|
|
|
nope, no experience.
we use Intel's MKL instead (mostly due to historical reasons)
Watched code never compiles.
|
|
|
|
|
u can download from
http://www.freedownloadscenter.com/Programming/C_and_C++_Tools_and_Components/C___Matrix_Template_Class_Library.html
Truth Can'nt be changed
|
|
|
|
|
Anyone know of any good books or courses on WiX? There are some online tutorials, but they are incomplete, and a nice book would go down a treat. Our needs are fairly complex, in that we need to install multiple files, register and start services, and COM objects, create registry entries populated from user input in custom dialogs, create merge modules, create patches and so on.
|
|
|
|
|
How to make dialog controls or form view controls
resizable when the frame window is resizing
|
|
|
|