Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: regular expression problems Pin
Jon Hulatt3-Oct-02 21:52
Jon Hulatt3-Oct-02 21:52 
General*.bmp *.wbmp conversion Pin
3-Oct-02 12:27
suss3-Oct-02 12:27 
GeneralRe: *.bmp *.wbmp conversion Pin
Jörgen Sigvardsson3-Oct-02 13:35
Jörgen Sigvardsson3-Oct-02 13:35 
GeneralRe: *.bmp *.wbmp conversion Pin
Anonymous3-Oct-02 13:59
Anonymous3-Oct-02 13:59 
GeneralRe: *.bmp *.wbmp conversion Pin
Chris Losinger3-Oct-02 18:00
professionalChris Losinger3-Oct-02 18:00 
QuestionThis 'works' but would you ever want to ?? Pin
RedZenBird3-Oct-02 12:21
RedZenBird3-Oct-02 12:21 
AnswerRe: This 'works' but would you ever want to ?? Pin
RedZenBird3-Oct-02 12:49
RedZenBird3-Oct-02 12:49 
AnswerRe: This 'works' but would you ever want to ?? Pin
Jörgen Sigvardsson3-Oct-02 13:47
Jörgen Sigvardsson3-Oct-02 13:47 
Sure, why not? It's perfectly legal to do replacement new like that. However, I'm sure it would be frowned upon in a programming team. Wink | ;)

One way to do it with a more java-like syntax would be:
template <typename T>
class java_lookalike_helper {
protected:
    typedef T this_t;
};
 
#define this_ new (this) this_t
 
class Class : java_lookalike_helper<Class>  {
    int x, int y;
 
public:
    Class(int x_) : x(x_) {
    }
 
    Class(int x_, int y_) : y(_y) {
        this_(x_);  // Check out the spiffy java like syntax!
    }
};


--
Please state the nature of your medical emergency.
GeneralRe: This 'works' but would you ever want to ?? Pin
RedZenBird3-Oct-02 14:46
RedZenBird3-Oct-02 14:46 
GeneralRe: This 'works' but would you ever want to ?? Pin
Jörgen Sigvardsson3-Oct-02 15:06
Jörgen Sigvardsson3-Oct-02 15:06 
GeneralRe: This 'works' but would you ever want to ?? Pin
RedZenBird3-Oct-02 15:16
RedZenBird3-Oct-02 15:16 
GeneralCAsyncSoccket Pin
moloko3-Oct-02 11:59
moloko3-Oct-02 11:59 
GeneralRe: CAsyncSoccket Pin
Alexthombra3-Oct-02 19:21
Alexthombra3-Oct-02 19:21 
GeneralRe: CAsyncSoccket Pin
moloko4-Oct-02 14:25
moloko4-Oct-02 14:25 
GeneralUndocumented Windows APIs Pin
uniken3-Oct-02 11:59
uniken3-Oct-02 11:59 
GeneralRe: Undocumented Windows APIs Pin
Andreas Saurwein4-Oct-02 0:33
Andreas Saurwein4-Oct-02 0:33 
GeneralCListCtrl OnColumnClick Pin
ns3-Oct-02 10:44
ns3-Oct-02 10:44 
GeneralRe: CListCtrl OnColumnClick Pin
Tomasz Sowinski3-Oct-02 10:52
Tomasz Sowinski3-Oct-02 10:52 
GeneralRe: CListCtrl OnColumnClick Pin
ns3-Oct-02 10:58
ns3-Oct-02 10:58 
GeneralRe: CListCtrl OnColumnClick Pin
Tomasz Sowinski3-Oct-02 11:02
Tomasz Sowinski3-Oct-02 11:02 
GeneralRe: CListCtrl OnColumnClick Pin
ns3-Oct-02 11:02
ns3-Oct-02 11:02 
GeneralRe: CListCtrl OnColumnClick Pin
Tomasz Sowinski3-Oct-02 11:04
Tomasz Sowinski3-Oct-02 11:04 
GeneralRe: CListCtrl OnColumnClick Pin
ns3-Oct-02 11:09
ns3-Oct-02 11:09 
GeneralRe: CListCtrl OnColumnClick Pin
Tomasz Sowinski3-Oct-02 11:15
Tomasz Sowinski3-Oct-02 11:15 
Generalyay!!! Pin
ns3-Oct-02 11:29
ns3-Oct-02 11:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.