| View previous topic :: View next topic |
| Author |
Message |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Thu May 07, 2009 2:51 pm Post subject: Syntax error? |
|
|
Can someone tell me whenever this syntax is allowed or not, becuase I don't get error when executing locally. Only when publishing it i get error.
It looks odd beucase of static and new. You shouldn't be able to do it right?
| Code: | | static WindowsLiveLogin wll = new WindowsLiveLogin(true); |
_________________
Intel over amd yes. |
|
| Back to top |
|
 |
Spawnfestis GO Moderator
Reputation: 0
Joined: 02 Nov 2007 Posts: 1746 Location: Pakistan
|
Posted: Thu May 07, 2009 3:07 pm Post subject: |
|
|
Why is it static and why is it "true"? These things are useful to know.
_________________
CLICK TO HAX MAPLESTORAY ^ !!!! |
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Thu May 07, 2009 3:31 pm Post subject: Re: Syntax error? |
|
|
A little more information could be useful, like:
1) what language
2) which library if it's an external one
3) which error, just syntax error?
C++, Java, etc: | wallantia wrote: | | Only when publishing it i get error. | You probably should just declare the variable when you publish it and in the constructor do it initialization, eg. | Code: | public:
static WindowsLiveLogin wll;
Constructor() { this->wll = new WindowsLiveLogin(true); } | Poor coding, but whatever, you get the point.
Hope you have any idea what are you doing.. I kinda suggest you to learn the basics before moving to "advanced" stuff.
|
|
| Back to top |
|
 |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
Posted: Thu May 07, 2009 3:46 pm Post subject: |
|
|
maybe just missing ; behind first line
_________________
|
|
| Back to top |
|
 |
blackmorpheus Expert Cheater
Reputation: 0
Joined: 05 Apr 2008 Posts: 159
|
Posted: Fri May 08, 2009 1:04 pm Post subject: |
|
|
| You should compile as release, and not debug, if you want to distribute your program.
|
|
| Back to top |
|
 |
|