|
So, if IAT address is not known at compile/link time, import library Lookup Table will not be able to contain pointers to the address of IAT.
Yes. That is true...but certain programs (like viruses,exe protected files) can "build" (or rather fill) their Import Table by themselves...The IAT is sometimes "purposely" corrupted ...it used to be some kind of anti-disassembly trick. (i doubt if it works anymore...)
IAT address of an EXE is some default address which has the same values for all EXE?
No, It does not have a fixed addr...You can grab the RVA (Relative Virtual Address) from the PE Header...For the Physical Address you'll need to convert RVA into Physical Address.
-st0le [st0le'n'stuff softwarez!]
http://st0lenc0des.googlepages.com/
modified on Tuesday, February 19, 2008 2:34 AM
modified 20-Oct-19 21:02pm.
|
|
|
|
|
Thanks st0le,
My question is answered.
regards,
George
|
|
|
|
|
I dont know if this is the right forum to post this message... if not please pardon me..
I need to register an OCX which i got from the net. used Regsvr32 to register it. but if failed to register. it was goveong me an error
something like this
DllRegisterServer c:\windows\myocx.ocx failed
return code was :0x80004005\
what needs to be done to register it?
thanks
|
|
|
|
|
Are you logged on as an administrator?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
No. i guess i need to have admin rights to register an OCX.. right?
Thanks.. Guess the query is resolved
|
|
|
|
|
At first, you need to be an administrator or power user to register a component with DLLRegisterServer . But don't yet decide your query is resolved. It could have failed for other reasons too.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
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++
|
|
|
|