|
vytheeswaran wrote: I heard the CString will be using internally multi-byte character, So I expecting the file format also should be the UTF8 format
MBCS and UTF-8 are two different beasts. If your machine is using a loaded code page like Latin-1, I don't believe MBCS will contain any lead bytes that would lead to a double byte sequence anyway. The other western encodings might have them but I've never seen one in action in the US.
vytheeswaran wrote: but its saving as a ASCII
Are you sure it's limiting output to ASCII. It's more likely what some refer to as ANSI. Try outputing a character above index 127. Did the output resemble what MSDN lists for ANSI?
Character sets[^]
Transformation formats[^]
UTF[^]
|
|
|
|
|
Thank you for your links and I open the file in binary mode and append the UTF-8 BOBM EF BB BF in the starting posistion of the file.
solved the problem.
Grazie,
Vythees
|
|
|
|
|
Do you have the file *.rc in its place?
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
|
Under the Project->Settings, Resources tab, do you have the correct .res file specified under the 'Resource File name'??
Priya Sundar
|
|
|
|
|
I have used this project in Office Release and Debug Release mode. The project name is mitumori and there is a mitumori.rc too but is doesnot have the mitumori.res. mitumori.res file is present in Office Release folder.
keyto
|
|
|
|
|
Why dont you try importing resources by Insert->Resource, select the type of exact resource you want to get displayed and then import it by selecting the exact file.
Will this help??
Priya Sundar
|
|
|
|
|
This creates certain kind of hex code into the window.
keyto
|
|
|
|
|
Hi,
I have created one IE Toolbar with Tabs each tab having different Toolbars
I was created one invisible window for message relection over the ReBar & over that window i was placed the Tabs & toolbar But my Chevron featue is not working
can anyone help me
please send if anyone know about more it....
Yogesh Amrutkar
|
|
|
|
|
ayogesh_28@yahoo.co.in wrote: But my Chevron featue is not working
Hi,
I am just a learner. I have created and worked with Toolbars.. but what are you reffering to by 'Chevron Feature'. Would like to know.
Thankyou.
Priya Sundar
|
|
|
|
|
Hi
I am creating a Tabs on ReBar over one invisible window & by changing the Tab Selection user can view the different toolbar, Also User can add button on that toolbar at run time if the no of buttons are increase than IE Size then i have to show the Chevron button on clicking on it user can view the other buttons....
I u know any thing then reply me
Yogesh
|
|
|
|
|
I declare a class CChildView2 derived from CView, and change the constructorr's and destructor's attribute from protect to public,
and declare a member variable in CMainFrame as m_wndView2, then replace the original m_wndView with m_wndView2, every thing is well except that when I close the application, there is an exception. What's the problem?
I tracked it, but found nothing.
the problem ocuurs here:
void CView::PostNcDestroy()
{
// default for views is to allocate them on the heap
// the default post-cleanup is to 'delete this'.
// never explicitly call 'delete' on a view
delete this;
}
|
|
|
|
|
CChildWnd is derived from CWnd not CView,
CView will delete itself after the view is destroyed, in PostNcDestroy.
It can't be delete twice.
|
|
|
|
|
Hi,
Currently I am implementing a dll that will be used in the VB application for identifying the multiple mice.
In the C++ dll I have to write the code to receive the RawInputData that will contain the HID, and based on the HDI I can identify the different mouse.
But as I searched in the MSDN I can collect the raw input information HID only inside the WndProc function with the WM_INPUT message.
Please let me know, Is there any way to receive the HID for mouse without WndProc function.
|
|
|
|
|
hello every one,
I am using RegEnumValue function to enumerate the registry values of a open key. I want to know how does it enumerate the values i mean in sorted manner or in different manner. pls help me.
|
|
|
|
|
yudhisthira wrote: I want to know how does it enumerate the values i mean in sorted manner
From the docs:
"Because values are not ordered, any new value will have an arbitrary index.
This means that the function may return values in any order."
I take that to mean any order
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
As Mark said, the order is not defined. If you want them in a particular order you'll have to enumerate the lot then sort them yourself.
Steve
|
|
|
|
|
as it displayed in registry !
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hello everyone,
The compile error of the following code is,
foo.cpp(7) : error C2146: syntax error : missing ';' before identifier '_'
foo.cpp(7) : error C2065: '_' : undeclared identifier
foo.cpp(7) : error C2143: syntax error : missing ';' before 'string'
I do not know why there is errors. I think in MERGE macro, the value of parameter a is hello and the value of parameter b is world in my case, and I defined hello_world to "H E L L O", it should be fine...
Any ideas?
<br />
#define MERGE(a,b) a ## _ ## b<br />
#define hello_world "H E L L O"<br />
<br />
int foo()<br />
{<br />
char* p0;<br />
p0 = MERGE("hello", "world");<br />
<br />
return 0;<br />
}<br />
thanks in advance,
George
|
|
|
|
|
This macro invocation expands to the following:
"hello"_"world"
This is not a legal C++ statement.
Steve
|
|
|
|
|
Thanks Steve,
I am a little confused. When I input MERGE ("hello", "world"), since the definition of MREGE (a, b) is a##_##b, and the value of parameter a is hello and the value of parameter b is world, the result should be hello_world, what is wrong with my above analysis? Why it will result in "hello"_"world"?
regards,
George
|
|
|
|
|
Firstly this page on Token-Pasting[^] may be of interest; a Google[^] search on the topic may also be of interest. If you wanted a macro to do what you're after this would do the trick (I'm not sure why you'd want one however):
#include <iostream>
using namespace std;
#define MERGE(f, s) f s
void main()
{
cout << MERGE("Hello ", "world!") << endl;
}
Steve
|
|
|
|
|
Thanks Steve,
It is my pure technical interest.
Your code works, cool!
regards,
George
|
|
|
|
|
If my guess is correct, you're trying to do something like the following:
#define MERGE(a,b) a##_##b
#define hello_world "H E L L O"
int main()
{
char* p0;
p0 = MERGE(hello, world);
printf("%s\n", p0);
return 0;
}
the above code compiles and sets p0 = " H E L L O"
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Thanks CPallini,
Your code works. But why my code is not working? I just changed MERGE (hello, world) to MERGE ("hello", "world").
I think if I input MREGE ("hello", "world"), then the result will be hello_world by the definition of MERGE macro, then by the hello_world macro, the result should be "H E L L O".
What is wrong with my code?
regards,
George
|
|
|
|