|
by: Alex Mizrahi |
last post by:
Hello, All!
i admit that it's better to ask questions connected with atl/mfc classes in
special newsgroups, but seems like people there are interested more in
discussing stuff like MFC GUI than C++ 8-/, so i'll better ask here too..
CStringW is a class in atl/mfc dealing with strings 8-]. the only typecast
operator i found is to PCXSTR that is LPCWSTR that is simply "const unsigned
short*" (wchar_t is unsigned short).
wcout accepts...
|
by: jalkadir |
last post by:
WinXP P3 MinWing-GCC-3.4.3
When compiling the program below, I get a message that reads:
wcout' is not a member of `std'
What am I doing wrong?
This message popping up too often!! >:(
TIA
|
by: blackswift |
last post by:
Hello,all
I hava a problem that
when did cout call its destructor?
I used GCC compiler under linux , It compiles OK.
and gives me :
cons
des
as I haved expected.
|
by: iwongu |
last post by:
Hi,
I have a question about std::wcout and its underlying C functions.
According to C99, a stream have an orientation type that is one of
byte-oriented or wide-one, and it is determined by the first using C
function on that stream. And the specific orientation functions should
not be applied to the stream that have other orientation.
|
by: interec |
last post by:
I have a simple program in which I want to read a wstring using wcin
and then output the same string using wcout. The program takes a few
words separated by spaces as input. The problem is that only the first
word is outputted. Everything after the first space seems to be lost
in the output. My OS is redhat hat linux 4 ES. gcc 3.4.6.
How do I fix this and why its not working? Thanks
Code
|
|
by: Ralf Goertz |
last post by:
Hi,
can I mix output to cout and wcout? It seems that if I write to cout
first it works fine but if I start with wcout the output to cout
vanishes. I assume that is has to do with the initialization of
standard output, right?
#include <iostream>
using namespace std;
|
by: Angus |
last post by:
Hello
I can do this:
std::wstring strHello;
std::cout << strHello.c_str() << std::endl;
But not this:
|
by: year1943 |
last post by:
There was the same topic not so long ago, but as I see it stays w/o
answer:
http://groups.google.ru/group/comp.lang.c++/browse_thread/thread/9a05d7bba9394a60/fe109c899f916871?lnk=gst&q=locale+imbue&rnum=1&hl=ru#fe109c899f916871
As Bjarne Stroustrup said in his book,
"in Stroustrup (retranslated from German)
"Setting the global locale does not affect existing input/output
streams. The streams continue to use those locales that were...
|
by: Ioannis Vranos |
last post by:
Has anyone actually managed to print non-English text by using wcout or
wprintf and the rest of standard, wide character functions?
|
by: evenstar |
last post by:
CString st1;
st1.Format(_T("%s"),"010210002022E803E903");
printf_s("%s\n",st1);//output:010210002022E803E903
//wcout<<st1.GetString()<<endl; //error,why?
CString st=_T("010210002022E803E903");
printf_s("%s\n",st);//output:0,why?
wcout<<st.GetString()<<endl;//output:010210002022E803E903
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|