Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

wxSmith - tutorial

<< < (8/10) > >>

Adam01:
Also, using wxFileSelector, how can I use ofstream to open the return value?
It is a wxString, but is there anyway to convert it to a char?

byo:
You can use such scheme to convert wxString into const char*:


--- Code: ---wxString someString;
const char* chars = someString.mb_str(wxConvLocal);
--- End code ---

This may work in many cases but will probably cause big problems when some local characters are used in the path due to different character encodings.

Did you try to use wxFileStream class instead? I'm not familiar with it so I can not tell whether it works like standard iostreams.

Regards
   BYO

Master:
hello , and sorry i just figured it out that i shouldnt have posted here ! ,

many tanx MortenMacFly
 

MortenMacFly:

--- Quote from: Master on October 04, 2008, 10:28:15 am ---hello, i got some questions!:

--- End quote ---
Sorry to interrupt here, but these question go far beyond the scope of our forums. Thus in fact they violate our forum rules. I suggest you ask in a programming and/or wx related forum.

Master:

--- Quote from: MortenMacFly on October 04, 2008, 03:50:50 pm ---
--- Quote from: Master on October 04, 2008, 10:28:15 am ---hello, i got some questions!:

--- End quote ---
Sorry to interrupt here, but these question go far beyond the scope of our forums. Thus in fact they violate our forum rules. I suggest you ask in a programming and/or wx related forum.

--- End quote ---
tanx, edited .

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version