|
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
|
|
|
|
|
George_George wrote: What is wrong with my code?
The double quotes " .
If you need to build the hello_world macro then you have to merge hello with world .
As it stands, your code produces "hello"_"world" that is just a sintax error.
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,
Cool!
regards,
George
|
|
|
|
|
The best way to solve such problems is to see the code as the compiler is seeing it. Compile with the /P or /E switch and look at the preprocessor output.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thanks DavidCrow,
It works! Cool!
regards,
George
|
|
|
|
|
I have the following code to read data from a list of files. The code read the first file and read the data correctly. I used break point debug and found at "fclose(f_ptr2)" giving error: "Access Violation"
//
FILE *f_ptr2;
//
//
for (int ii=0;ii
|
|
|
|