|
yes that was the reason. was not in administrator mode.. activex component successfully registered.
|
|
|
|
|
I'm working in a VC++ project. I've received an error which states that
error C2440: 'static_cast' : cannot convert from 'void (__thiscall CPerspectiveView::* )(UINT,short,CPoint)' to 'BOOL (__thiscall CWnd::* )(UINT,short,CPoint).
When I double click on this error,the cursor goes to a Windows Message Map called ON_WM_MOUSEWHEEL(). I have checked the address of the function corresponding to this Message in both the files(i.e .cpp and .h).
They are the same only. Please help me to resolve this error.
|
|
|
|
|
i assume CPerspectiveView is your custom class derived indirectly from CWnd
the return type of the function corresponding to the message map should be BOOL.
change the return type of message handler for ON_WM_MOUSEWHEEL in the CPerspectiveView to BOOL;
|
|
|
|
|
|
the problem can be with the return type.. change the return value from void to BOOL. is should work.
|
|
|
|
|
I want to interface the Excel shheet with MFC SDI application.how will you do that ?
|
|
|
|
|
Member 4048294 wrote: how will you do that ?
I will not do that.
If you want to do that, you need to tell us what you've tried and where exactly you're stuck.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
|
Normally to create and run the MFC SDI application, the document page will be displayed.instead of doc user can add our own excel sheel and run the application output should be displayed in excel sheet.
|
|
|
|
|
Hi, all
In vc6, test1 project, for example, I can use add to gallery to make a .ogx file,
and then, In test2 project, I can click menu->project->
Add to project->components and controls for add the .ogx,
but, how to do this In vc8?
|
|
|
|
|
Hi all,
how can i change the color of the Title bar of the window in SDI aplication.
varun
|
|
|
|
|
See here[^] and here[^].
Also, see here[^].
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
|
Hamid. wrote: Owner Drawn Menu with Icons, Titles and Shading[^].
What are you linking him to? He's asking how he could color the Title bar[^].
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Hey I saw your reply and I guess maybe he like to customize its menu,but why give me this link?
|
|
|
|
|
may be he tried "titles" in the article search, u can check this now.
It is like search bot
|
|
|
|
|
dear all
how to use image in c++, including build CDib class and load image, display, anyone has such code under vc++ 60 IDE, it is better to use in one dialog box. thanks a lot
Li Zhiyuan
|
|
|
|
|
Whats your problem can you use of CDib or you have other problem?
|
|
|
|
|
What are you having trouble with?
With the CImage class you can load an image in 1 line of code.
You can render an image with one or two lines of code.
What is CDib?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hello everyone,
Here are two conflicting documents from MSDN. About whether linker will modify code generated by compiler. I quote both of them here.
Document (1) mentioned linker can not modify any code generated by compiler, but document (2) mentioned linker will replace address code generated by compiler during fixup process.
Which one is correct?
1.
http://blogs.msdn.com/oldnewthing/archive/2006/07/21/673830.aspx
--------------------
But the linker can't rewrite the code generated by the compiler.
--------------------
2.
http://www.microsoft.com/msj/0797/hood0797.aspx
--------------------
Consider a call to a function named Foo in C++:
//...
Foo();
//...
The exact bytes emitted from a 32-bit C++ compiler will be this:
E8 00 00 00 00
The 0xE8 is the CALL instruction opcode. The next DWORD should contain the offset to the Foo function (relative to the CALL instruction). It's pretty clear that Foo probably isn't zero bytes away from the CALL instruction. Simply put, this code wouldn't work as expected if you were to execute it. The code is broken, and needs to be fixed up. In the above example, the linker needs to replace the DWORD following the CALL opcode with the correct address of Foo.
--------------------
thanks in advance,
George
|
|
|
|
|
George_George wrote: Which one is correct?
The non-wrong one.
The linker does not modifiy your code. Moving code around in memory (i.e, rebasing) does not change the code itself. Both statements are correct.
"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,
You mean both of them are correct? But they are of different options, the point of the first one means linker can not modify the code produced by compiler, but the 2nd one means linker modifies the code produced by compiler.
regards,
George
|
|
|
|
|
George_George wrote: You mean both of them are correct?
Is that what you inferred from what I said? Just take the red pill and watch out for stray rabbits.
"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
|
|
|
|
|
|
The second is correct.
Steve
|
|
|
|