-
Began Watching [win32] - how to change the control backcolor and textcolor?
i build a class for create a static control(label). and i't cool. but why the SetTextColor() and SetBkColor() are ignored? case WM_PAINT: { PAINTSTRUCT ps; HDC hdc = BeginPaint(inst->hwnd, &ps); … -
Replied To a Post in [win32] - how use the SetWindowLongPtr() for use a window procedure?
ok.. now works cool(with some help): #include <windows.h> #include <string> #include <functional> #define event(eventname, ... ) std::function<void(__VA_ARGS__ )> eventname using namespace std; const char *labelpropname = "Cambalinho"; const char *labelclassprop … -
Edited [win32] - how use the SetWindowLongPtr() for use a window procedure?
i'm building the label1 class, but i'm getting bad results... so i ask: how can i use the SetWindowLongPtr() for use a window procedure? (i can show the label and … -
Created [win32] - how use the SetWindowLongPtr() for use a window procedure?
i'm building the label1 class, but i'm getting bad results... so i ask: how can i use the SetWindowLongPtr() for use a window procedure? (i can show the label and … -
Began Watching [win32] - how use the SetWindowLongPtr() for use a window procedure?
i'm building the label1 class, but i'm getting bad results... so i ask: how can i use the SetWindowLongPtr() for use a window procedure? (i can show the label and … -
Began Watching C++. code
how to implement a recursive function that solves the Fibonacci theory, and the program should ask the user to enter a number then the output will show him the Fibonacci … -
Replied To a Post in C++. code
http://www.cplusplus.com/forum/windows/39170/ but learn more about [recursive functions](http://www.danzig.us/cpp/recursion.html) don't forget the recursive functions are functions that call them selfs, never forget put an if for close them or it can takes … -
Began Watching c++
what is C++ mean? and what is the purpose of it? -
Replied To a Post in c++
it's C programming language with class's, templates and more -
Replied To a Post in overloading functions
thanks for that. now tell me why the char* isn't working? int main() { char *c="hello"; Variant a=c; cout << a; return 0; } tell me: "error: call of overloaded … -
Replied To a Post in removed virus now no internet connection
i advice doing the: Internet Options - Advanced - Reset try these and tell me if works -
Replied To a Post in overloading functions
sorry why i get an error with these exemple: #include <iostream> #include <string.h> #include <typeinfo.h> using namespace std; class Variant { private: string result; public: Variant() { } template<typename B> … -
Replied To a Post in overloading functions
#include <iostream> #include <string.h> #include <typeinfo.h> using namespace std; class Variant { private: string result; public: Variant() { } template<typename B> Variant(B val) { result=to_string(val); } Variant(string val) { result=val; … -
Began Watching removed virus now no internet connection
Hi , my computer was running slow , acting weird , getting pop ups , etc . I ran an anti spy , malwarebytes , & my virus scan ... … -
Replied To a Post in removed virus now no internet connection
you continue with network problems? -
Replied To a Post in overloading functions
see these 2 functions: template <typename B> B operator =(Variant &value) { return atof(value.result.c_str()); } string operator =(Variant &value) { return value.result; } imagine that i need, too, return a … -
Created overloading functions
when we overloading a function: what matters is only the argument list(inclued the types) or the return type too? i'm overloading the assigment operator, but seems that i can't use … -
Began Watching overloading functions
when we overloading a function: what matters is only the argument list(inclued the types) or the return type too? i'm overloading the assigment operator, but seems that i can't use … -
Replied To a Post in templates and class's
i mean like these: template<typename T> class variant2 { private: void *Vvariant=NULL; T typ; public: template<typename b> variant2 (b &value) { Vvariant=&value ; typ=b; } template<typename b> variant2 & operator … -
Replied To a Post in templates and class's
yes -
Created templates and class's
can i create 1 template that i use inside the class and not when i create the class object? -
Began Watching templates and class's
can i create 1 template that i use inside the class and not when i create the class object? -
Replied To a Post in how print void pointer to string?
see these: class variant2 { private: void *Vvariant=NULL; public: template<typename b> variant2 & operator = (b &value) { Vvariant=&value ; cout<< typeid(value).name(); return *this; } friend ostream& operator <<(ostream &os,const … -
Replied To a Post in how print void pointer to string?
sorry can i create a variable for recive the variable type? -
Replied To a Post in how print void pointer to string?
:( sorry.. seems that i'm having communications problems :( cout << *static_cast<string*>(test); i know these line isn't corrected, but i want like these. the type is int, but i want … -
Replied To a Post in how print void pointer to string?
imagine that int is 200, i want print 200, but in a string way.. that's why the 'char *', but only prints 1 character :( -
Created how print void pointer to string?
cout << *static_cast<int*>(test); test is a void pointer pointed to an int variable. if i use: cout << *static_cast<char*>(test); i get just 1 character. so how can i print the … -
Began Watching how print void pointer to string?
cout << *static_cast<int*>(test); test is a void pointer pointed to an int variable. if i use: cout << *static_cast<char*>(test); i get just 1 character. so how can i print the … -
Began Watching about pointers and dot operator
i know: - &varname is the adress of varname; - *varname is the value of adressed variable. but: void *Vvariant=NULL; friend ostream& operator <<(ostream &os,const variant2 &obj) { os << … -
Replied To a Post in about pointers and dot operator
yah.. thanks for all (seems that when i'm logined, i don't recive the mail notifications) -
Began Watching about pointers and dot operator
i know: - &varname is the adress of varname; - *varname is the value of adressed variable. but: void *Vvariant=NULL; friend ostream& operator <<(ostream &os,const variant2 &obj) { os << … -
Replied To a Post in about pointers and dot operator
without typecasting, can i get the adressed values? seems that i can't see what it is the type -
Created about pointers and dot operator
i know: - &varname is the adress of varname; - *varname is the value of adressed variable. but: void *Vvariant=NULL; friend ostream& operator <<(ostream &os,const variant2 &obj) { os << … -
Began Watching about pointers and dot operator
i know: - &varname is the adress of varname; - *varname is the value of adressed variable. but: void *Vvariant=NULL; friend ostream& operator <<(ostream &os,const variant2 &obj) { os << …
The End.