What is this? "this->operator [](mySize) = "

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AndreasL

    #1

    What is this? "this->operator [](mySize) = "

    Hi!

    As a C and Java programmet, I thought that C++ should be at least readable. I mean, I have got google and such. But...

    Some code is realy tricking me, and it's not googleable. What's happening at the bottom row?!? (What the method does I know, it's the "this->operator [](mySize)" I'm confused about.)

    Code:
    define DWORD unsigned long
    
    DWORD mySize;
    string myString;
    myString = "Hello";
    
    this->operator [](mySize) = ConvertXToDWORD(myString)
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    I am confused also. You can't use the this pointer outside a class declaration or a member function definition.

    Maybe you could post the code for the entire function.

    Comment

    Working...