9 Solved Topics
Remove Filter I have a document/view aplication that opens a bitmap I use the following OnDraw override to draw the bitmap on a window and OnOpenDocument to opening the image from file The bitmap handle ( HBITMAP bmaphandle ) is taken from the Document object that does LoadImage in it's OnOpenDocument method … | |
Compile this code with MSVC2005 [CODE] unsigned short x = 20; unsigned short y = 20; for ( unsigned long i = 0; i < x * y ; i++ ) { cout<<i<<endl; } [/CODE] and u get warning C4018: '<' : signed/unsigned mismatch why? i mean, it all runs … | |
This may sound silly. I have a class that contains a vector of pointers to instantiated objects. I want to return a refrence to that vector, but I don't want to be able to modify the vector through that refrence. Now, if i return a const reference, the vector is … | |
This is cited from Stroustrup third edition [CODE] void f () throw (x2 , x3 ) { // stuff } is equivalent to: void f () try { // stuff } catch (x2) {throw; } / / rethrow catch (x3) {throw; } / / rethrow catch (...) { std: :unexpected() … | |
I try to create a generic binary tree class but when i try to define an inserting function I get these compilation errors error C2072: 'Btree<T>::recins' : initialization of a function error C2143: syntax error : missing ';' before '*' c:\documents and settings\kux\my documents\visual studio 2005\projects\btrees\btrees\btree.h 54 Error 6 error … | |
What i want to do is write some of the rows of a report style CListCtrl with a color and other rows with another color, but if I switch the color with SetTextColor the color of the text in the entire control switches, i want it to switch just for … | |
Hello, I have a CListCtrl and a button to modify the selected row in the CListCtrl. My problem is that my list has several columns and I want to be able to select a row by clicking on any column of the row that I want selected. Now I can … | |
what method is to be used to get the selected row in a CListCtrl ? i tryed GetCount() but it returnes the number of selected items i searched the method list, but found no GetRow() or something thx in advance | |
plz take a look at the following code [CODE] #include <iostream> #include <string> #include <iostream> #include <string> using namespace std; class A { public: string sa; A(string sia); }; class B:public A { public: string sb; B(string sia, string sib); }; A::A(string sia):sa(sia) { } B::B( string sia, string sib):A(sia),sb(sib) … |
The End.