Click here to Skip to main content
15,921,295 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUNICODE Pin
John R. Shaw7-Jul-05 17:17
John R. Shaw7-Jul-05 17:17 
GeneralRe: UNICODE Pin
Jose Lamas Rios7-Jul-05 18:09
Jose Lamas Rios7-Jul-05 18:09 
GeneralRe: UNICODE Pin
John R. Shaw8-Jul-05 8:47
John R. Shaw8-Jul-05 8:47 
D'Oh! | :doh: Doh!
Now why didn't I think of that? Apparently I was being a tad bit to strict on my requirements.

:-DThanks Jose.

MODIFIED:
D'Oh! | :doh: Whoops!
I spoke to soon! That is not the problem. The problem is, how does the template know what format to use for strings that it generates internaly, with out using compiler specific defines?

Example:
template<class T>
void mytemp<T>::show_info(char_type c1, char_type c2)
{
stringstream<char_type> os;
os << "some text: '" << c2 << "' following '" << c1 << "'";
show_string(os.str());
}

The above would work fine for ANSI, but poduces garbage if the char_type is wchar_t. Since the hard coded strings are ANSI and not UNICODE.
INTP
GeneralRe: UNICODE Pin
Jose Lamas Rios8-Jul-05 10:10
Jose Lamas Rios8-Jul-05 10:10 
GeneralRe: UNICODE Pin
John R. Shaw8-Jul-05 10:55
John R. Shaw8-Jul-05 10:55 
GeneralRe: UNICODE Pin
toxcct7-Jul-05 20:21
toxcct7-Jul-05 20:21 
GeneralRe: UNICODE Pin
John R. Shaw8-Jul-05 7:09
John R. Shaw8-Jul-05 7:09 
GeneralRe: UNICODE Pin
Bob Stanneveld7-Jul-05 22:03
Bob Stanneveld7-Jul-05 22:03 
GeneralRe: UNICODE Pin
John R. Shaw8-Jul-05 8:39
John R. Shaw8-Jul-05 8:39 
GeneralRe: UNICODE Pin
Bob Stanneveld9-Jul-05 5:48
Bob Stanneveld9-Jul-05 5:48 
Generalrget r, g or b value for opengl Pin
cell517-Jul-05 16:27
cell517-Jul-05 16:27 
GeneralRe: rget r, g or b value for opengl Pin
Jose Lamas Rios7-Jul-05 16:44
Jose Lamas Rios7-Jul-05 16:44 
Generalneed help on generate report to excel Pin
firebolt777-Jul-05 16:05
firebolt777-Jul-05 16:05 
GeneralRe: need help on generate report to excel Pin
Jose Lamas Rios7-Jul-05 17:09
Jose Lamas Rios7-Jul-05 17:09 
GeneralRe: need help on generate report to excel Pin
firebolt777-Jul-05 20:03
firebolt777-Jul-05 20:03 
GeneralRe: need help on generate report to excel Pin
Jose Lamas Rios7-Jul-05 20:12
Jose Lamas Rios7-Jul-05 20:12 
GeneralRe: need help on generate report to excel Pin
firebolt777-Jul-05 20:25
firebolt777-Jul-05 20:25 
GeneralRe: need help on generate report to excel Pin
firebolt778-Jul-05 3:36
firebolt778-Jul-05 3:36 
GeneralRe: need help on generate report to excel Pin
urxlnc0077-Jul-05 19:23
urxlnc0077-Jul-05 19:23 
GeneralRe: need help on generate report to excel Pin
firebolt777-Jul-05 21:36
firebolt777-Jul-05 21:36 
GeneralHelp finding wmstub.lib Pin
Lan_Zer07-Jul-05 13:20
Lan_Zer07-Jul-05 13:20 
GeneralRe: Help finding wmstub.lib Pin
Christian Graus7-Jul-05 16:45
protectorChristian Graus7-Jul-05 16:45 
Generalgetting a correct structure data Pin
Ista7-Jul-05 12:40
Ista7-Jul-05 12:40 
GeneralRe: getting a correct structure data Pin
ldaoust7-Jul-05 15:12
ldaoust7-Jul-05 15:12 
GeneralMemory for my application Pin
Ivan Cachicatari7-Jul-05 11:50
Ivan Cachicatari7-Jul-05 11:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.