FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

c++ in our projects

3 posters

Go down

c++ in our projects Empty c++ in our projects

Post  bytecode Fri Sep 25, 2009 11:19 am

Hi,

i heard about i can use c++ in sio2 projects,

I got some strange errors when i compile my class

error: stray '\342' in program
error: stray '\210' in program
error: stray '\274' in program
error: 'CFoo::CFoo()' cannot be overloaded
error: with 'CFoo::CFoo()'
etc....

My test class looks like this:
class CFoo {
public:
CFoo() {}
∼CFoo() {}
void something(void) {}
};

When i delete the destructor, everthing goings ok. But i need the constructor and destructor :/
So... question i can i use fully c++ code in projects or only C with Objective-C classes?

Greets,
Bytecode

bytecode

Posts : 4
Join date : 2009-08-20

Back to top Go down

c++ in our projects Empty Re: c++ in our projects

Post  Faikus Fri Sep 25, 2009 12:06 pm

That is not a real tilde (~) you have in your destructor.

Faikus

Posts : 23
Join date : 2009-05-26
Location : Berlin

Back to top Go down

c++ in our projects Empty Re: c++ in our projects

Post  bytecode Fri Sep 25, 2009 3:10 pm

So what kind of character shall i use?
I used table of chasracter to insert this char, becouse mac keybosrd dobt have it.

bytecode

Posts : 4
Join date : 2009-08-20

Back to top Go down

c++ in our projects Empty Re: c++ in our projects

Post  Faikus Sat Sep 26, 2009 1:22 am

Type Alt+n.

Faikus

Posts : 23
Join date : 2009-05-26
Location : Berlin

Back to top Go down

c++ in our projects Empty Re: c++ in our projects

Post  bytecode Sat Sep 26, 2009 10:21 am

i have "ń" ehn i typed alt+n, can u write this cahr here?

bytecode

Posts : 4
Join date : 2009-08-20

Back to top Go down

c++ in our projects Empty Re: c++ in our projects

Post  Faikus Sat Sep 26, 2009 10:30 am

It's ~. But copy&pasting this char every time is not something you want to do. You really should find out how to type it on your keyboard layout. From the Macnn forum:


Go to System Preferences>International>Input Menu and activate the Keyboard Viewer in the list of additional keyboards. Then click the flag menu in the right hand side of the menu bar to show the viewer. When you press alt (or option depending on what it is called on your keyboard) or alt-shift it will display what symbols will be input when you press that key combo.

Faikus

Posts : 23
Join date : 2009-05-26
Location : Berlin

Back to top Go down

c++ in our projects Empty Re: c++ in our projects

Post  oioioi Sat Sep 26, 2009 11:18 am

If you can't find the hot key you can download a program called spark(spark download) to make a hot key for it

oioioi

Posts : 136
Join date : 2008-12-02
Location : Norway

Back to top Go down

c++ in our projects Empty Re: c++ in our projects

Post  bytecode Sat Sep 26, 2009 4:00 pm

thanks very much, problem solved

bytecode

Posts : 4
Join date : 2009-08-20

Back to top Go down

c++ in our projects Empty Re: c++ in our projects

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum