By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,731 Members | 1,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,731 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.)

Expand|Select|Wrap|Line Numbers
  1. define DWORD unsigned long
  2.  
  3. DWORD mySize;
  4. string myString;
  5. myString = "Hello";
  6.  
  7. this->operator [](mySize) = ConvertXToDWORD(myString)
  8.  
Oct 4 '10 #1
Share this Question
Share on Google+
1 Reply


weaknessforcats
Expert Mod 5K+
P: 9,197
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.
Oct 4 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.