• Member Avatar for cambalinho
    cambalinho

    Began Watching about the pointer class(this)

    i have 1 class that have members dependents of the class pointers. when i do the Copy Construtor with assignment operator, how can i use the instance class this, instead …
  • Member Avatar for cambalinho
    cambalinho

    Gave Reputation to Ancient Dragon in Pointers and Strings.

    The difference between `char *str="Hello World!!";.` and `char str[]="Hello World!!";.` is that char\* str is just a pointer into read-only memory where the string "Hello World" is actually stored, it's …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in Pointers and Strings.

    depending on compiler options... i'm using Code Blocks... honestly it's better than Dev C++ and i had used it before, but by some information, i give up on it (isn't …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in Key Press event

    Minimalist: you have right. sorry.... but if you test with: e.SuppressKeyPress = True we didn't ear the beep. sorry if i was rude
  • Member Avatar for cambalinho
    cambalinho

    Began Watching Pointers and Strings.

    Here is my nifty program. #include<stdio.h> int main(){ char *str; str="Hello World!!"; puts(str); printf("\nEnter a new string: "); gets(str); // Is this right ? printf("\nString after entering: "); puts(str); // …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in Pointers and Strings.

    1 - for use getch(), i must include the conio.h ; 2 - you did some mistakes when you inicializade the c-style string: char str[]="Hello World!!"; heres your code correted: …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in Key Press event

    sorry if i was rude... but i thot the: e.SuppressKeyPress = True prevent the key down continues
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in Key Press event

    Minimalist: i can be mistaked, but i think that you code isn't completed: e.SuppressKeyPress = True i belive these line avoid the enter key continues be pressed. anotherthing: these line …
  • Member Avatar for cambalinho
    cambalinho

    Gave Reputation to Reverend Jim in Key Press event

    I suggest using CTRL instead of ALT for two reasons: 1. CTRL-ENTER is used in many other apps for this purpose 1. ALT typically activates the menu
  • Member Avatar for cambalinho
    cambalinho

    Began Watching Key Press event

    Friends I am new to VB.Net Please help me I have two text boxes. When I press the 'Enter' key in the first text box the focus should go to …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in Key Press event

    easy: If e.KeyCode = Keys.Return And e.Alt = False Then e.SuppressKeyPress = True Me.SelectNextControl(Me.ActiveControl, True, True, True, True) End If why i use the Alt key teste? imagine that you …
  • Member Avatar for cambalinho
    cambalinho

    Began Watching Difference between returning a pointer and a struct?

    Is there any difference between returning a pointer to a struct, and returning a struct? Aside from the derefrenceing that is done would they both be working with the same …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in Difference between returning a pointer and a struct?

    but you can create instances\objects of structurs, enums, types(int, double...) and others
  • Member Avatar for cambalinho
    cambalinho

    Began Watching Quick fire Pre-Compiled Header Questions

    I have read tutorials using my google-fu on how to set up Pre-Compiled Headers, and now I wanted to clear up a few questions: If all the 'to be pre-compiled' …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in Quick fire Pre-Compiled Header Questions

    anotherthing: don't forget the compiler read everything by order from top to bottom(inclued that header files). for exemple: if you use 1 function before been created, you will get an …
  • Member Avatar for cambalinho
    cambalinho

    Marked Solved Status for [C++ 11] - my own properties code

    i'm build a completed new code for properties: #include <iostream> #include <functional> using namespace std; template <typename T> class property { private: T PropertyValue; //i think these is ok, but …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in [C++ 11] - my own properties code

    problem resolved... for resolve it, i did a Copy Constructor, but works only between properties and not others class's. so, in class test, i did another constructor and works fine …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in why i don't recive a mail notification, when i'm logined?

    "and notifications about new posts are always delayed by up to an hour." they never came. but you said, yesterday, that is if have seen the post(like you said: "before …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in why i don't recive a mail notification, when i'm logined?

    sorry... realy sorry... i will say it in diferent way: - i'm logined: i don't receive the mail notifications about posts\answers... only about PM(i had tested too, by case); - …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in why i don't recive a mail notification, when i'm logined?

    ok... i only refresh now and i see your answers but not my mails notifications :( but i bet, that if you answer, tomorrow i will receive an mail notification, …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in why i don't recive a mail notification, when i'm logined?

    you posted, but i din't get the notification mail, because i'm logined. i will trying test more. have you reciving the mail notification about these post?
  • Member Avatar for cambalinho
    cambalinho

    Marked Solved Status for [win32] - is there anyway for get the text rectangle?

    using API functions, can i get the text rectangule?
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in [win32] - is there anyway for get the text rectangle?

    heres the code corrected for give us the text rectangule and more 2(for we never lose 1 or 2 pixles of the letter): //Getting the DC Font amd select it …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in [C++ 11] - my own properties code

    when i do: test b = a; i copy everything in 'a' to 'b'. even the 'this'... now i know the problem is my property class.(i did a test just …
  • Member Avatar for cambalinho
    cambalinho

    Revoked Solved Status for [C++ 11] - my own properties code

    i'm build a completed new code for properties: #include <iostream> #include <functional> using namespace std; template <typename T> class property { private: T PropertyValue; //i think these is ok, but …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in [C++ 11] - my own properties code

    i found 1 error with code: #ifndef PROPERTY_H #define PROPERTY_H #include <iostream> #include <functional> using namespace std; template <typename T> class property { private: T PropertyValue; std::function<T(void)> getf; std::function<void(T)> setf; …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in [C++ 11] - my own properties code

    let me ask anotherthing about these and other macro: #define event(eventname, ... ) std::function<void(__VA_ARGS__ )> eventname using these macro in a class and do: classobjectname. members builded by that macro …
  • Member Avatar for cambalinho
    cambalinho

    Marked Solved Status for [C++ 11] - my own properties code

    i'm build a completed new code for properties: #include <iostream> #include <functional> using namespace std; template <typename T> class property { private: T PropertyValue; //i think these is ok, but …
  • Member Avatar for cambalinho
    cambalinho

    Gave Reputation to mike_2000_17 in [C++ 11] - my own properties code

    MACROs must be upper-case because this is the convention throughout the programming world of C and C++ and related languages. Basically, MACROs have a number of quirky things about them, …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in [C++ 11] - my own properties code

    thanks for all
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in [C++ 11] - my own properties code

    sorry, but why the macros must be in upper case letters and not like other names? i like the names like functions or others(that's why i did 'Property')... but the …
  • Member Avatar for cambalinho
    cambalinho

    Gave Reputation to mike_2000_17 in [C++ 11] - my own properties code

    Sorry about that placeholder `_1`, it is in the namespace `std::placeholders`. So, it should be `std::placeholders::_1` instead of just `_1`. The error was due to me being more used to …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in [C++ 11] - my own properties code

    1 question: when i do: a. is showed a list of class members. but the Age isn't showed. why isn't showed? it's because is a macro?
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in [C++ 11] - my own properties code

    i did that ;) heres the entire with 1 nice macro: #include <iostream> #include <functional> using namespace std; template <typename T> class property { private: T PropertyValue; std::function<T(void)> getf; std::function<void(T)> …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in why i don't recive a mail notification, when i'm logined?

    now i did a new test: i was log off and i recive a mail notification. i hope you see the problem. thanks for all
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in [C++ 11] - my own properties code

    thanks for all... realy.. thanks for finish i need the property inicialization: from: test(): Name(), Age(std::bind(&test::getage, this),std::bind(&test::setage, this, std::placeholders::_1)) { } property<string> Name ;//i need be possible inicializate them here …
  • Member Avatar for cambalinho
    cambalinho

    Created why i don't recive a mail notification, when i'm logined?

    maybe i'm the 1st seen these problem, maybe i'm not... i noticed before and i didn't make case, but now i'm horry about it... i'm logined from 1h(maybe more) and …
  • Member Avatar for cambalinho
    cambalinho

    Began Watching why i don't recive a mail notification, when i'm logined?

    maybe i'm the 1st seen these problem, maybe i'm not... i noticed before and i didn't make case, but now i'm horry about it... i'm logined from 1h(maybe more) and …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in [C++ 11] - my own properties code

    now the code give me 2 problems: 1 - the '_1' ins't defined, so i use '1'; 2 - the value is showed '1', but seems not be setted:( #include …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in [C++ 11] - my own properties code

    sorry, but that variable is used, only, when i don't need the getf and setf
  • Member Avatar for cambalinho
    cambalinho

    Gave Reputation to mike_2000_17 in [C++ 11] - my own properties code

    It's a typo, you had this: property(std::function<void(void)> GetFunction=nullptr,std::function<T(void)> SetFunction=nullptr) It should be this: property(std::function<T(void)> GetFunction=nullptr,std::function<void(T)> SetFunction=nullptr) Notice the first parameter should be `std::function<T(void)>`, not `std::function<void(void)>`, and similarly for the second …
  • Member Avatar for cambalinho
    cambalinho

    Gave Reputation to rubberman in [C++ 11] - my own properties code

    Also, since the function returns a reference to an object, returning 0 (null) is not valid! This function should ALWAYS return os.
  • Member Avatar for cambalinho
    cambalinho

    Gave Reputation to Moschops in [C++ 11] - my own properties code

    Most of your errors involves trying to use member variables but not stating which object they're from. For example: friend ostream& operator<<(ostream& os, const property& dt) { if(getf==NULL && setf==NULL) …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in [C++ 11] - my own properties code

    i belive these isn't correct too: friend istream& operator>>(istream &input,property &dt) { if(dt.getf==nullptr && dt.setf==nullptr) input << dt.PropertyValue; else if (dt.setf!=nullptr) input << dt.setf() //maybe these isn't completed\corrected return input; …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in [C++ 11] - my own properties code

    sorry, but i continue with some errors :( #include <iostream> #include <functional> using namespace std; template <typename T> class property { private: T PropertyValue; std::function<T(void)> getf; std::function<void(T)> setf; public: property(T …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in [C++ 11] - my own properties code

    thanks for that information... thanks now i have more errors: on test class constructor i have these error: "call of overloaded 'property()' is ambiguous" these don't make sence to me. …
  • Member Avatar for cambalinho
    cambalinho

    Created [C++ 11] - my own properties code

    i'm build a completed new code for properties: #include <iostream> #include <functional> using namespace std; template <typename T> class property { private: T PropertyValue; //i think these is ok, but …
  • Member Avatar for cambalinho
    cambalinho

    Began Watching [C++ 11] - my own properties code

    i'm build a completed new code for properties: #include <iostream> #include <functional> using namespace std; template <typename T> class property { private: T PropertyValue; //i think these is ok, but …
  • Member Avatar for cambalinho
    cambalinho

    Created [win32] - how can i avoid flickers on controls? :(

    i'm learning, by work, how use win32 forms applications. but i'm geting a problem: the label(STATIC class) is give me flickers :( i had tryied use the WS_EX_COMPOSITED but give …
  • Member Avatar for cambalinho
    cambalinho

    Began Watching [win32] - how can i avoid flickers on controls? :(

    i'm learning, by work, how use win32 forms applications. but i'm geting a problem: the label(STATIC class) is give me flickers :( i had tryied use the WS_EX_COMPOSITED but give …

The End.