Click here to Skip to main content
15,891,529 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need idea about Command line compilation.. Pin
Naveen23-Jan-07 19:47
Naveen23-Jan-07 19:47 
GeneralRe: Need idea about Command line compilation.. Pin
Sakthiu23-Jan-07 19:59
Sakthiu23-Jan-07 19:59 
QuestionA Question on SetWindowOrg Pin
sunshine jeffrey23-Jan-07 18:52
sunshine jeffrey23-Jan-07 18:52 
AnswerRe: A Question on SetWindowOrg Pin
Mark Salsbery24-Jan-07 6:35
Mark Salsbery24-Jan-07 6:35 
GeneralRe: A Question on SetWindowOrg Pin
sunshine jeffrey25-Jan-07 6:39
sunshine jeffrey25-Jan-07 6:39 
QuestionBase Address Pin
Shouvik Das23-Jan-07 18:40
Shouvik Das23-Jan-07 18:40 
AnswerRe: Base Address Pin
Stephen Hewitt23-Jan-07 18:57
Stephen Hewitt23-Jan-07 18:57 
GeneralRe: Base Address Pin
Shouvik Das23-Jan-07 19:05
Shouvik Das23-Jan-07 19:05 
Well i'll make myself clearer
#include <iostream>
using namespace std;

class pvt
{
private:
	int shouvik,raj;
	void sum();
public:
	float sdprivate;
	pvt(){}

};

void pvt::sum()
{
	cout<<endl<<"pvt sum";
}

typedef void(*funcs)();

int main()
{
	pvt p;
	funcs i;
	
	i = (funcs)0x00401190;
	_asm
	{
		call i
	}

	i();
	return 0;
}


the 0x00401190 what you see is the addres of the private method sum(). I need to access private methods directly and hence I need to know the address of the project its loading.

I'm having a set of classes which I cannot alter(no friend/virtual) as its a critical software and it might contain a private method. I'm to access and know the characteristics of the method to use it in my project. Hence as per my first post i need to know the load address so that I can call the method even if it's not loaded in 0x00400000. hope I clarify your doubt..

Sorry for a km long post;)



There are only two kinds of people who are really fascinating-people who know absolutely everything, and people who know absolutely nothing.
Oscar Wilde (1854-1900)
Regards...
Shouvik

GeneralRe: Base Address Pin
Stephen Hewitt23-Jan-07 19:11
Stephen Hewitt23-Jan-07 19:11 
GeneralRe: Base Address Pin
Shouvik Das23-Jan-07 19:19
Shouvik Das23-Jan-07 19:19 
GeneralRe: Base Address Pin
Stephen Hewitt23-Jan-07 19:29
Stephen Hewitt23-Jan-07 19:29 
GeneralRe: Base Address Pin
Shouvik Das23-Jan-07 19:33
Shouvik Das23-Jan-07 19:33 
GeneralRe: Base Address Pin
Naveen23-Jan-07 19:16
Naveen23-Jan-07 19:16 
GeneralRe: Base Address Pin
Shouvik Das23-Jan-07 19:20
Shouvik Das23-Jan-07 19:20 
GeneralRe: Base Address Pin
Naveen23-Jan-07 20:30
Naveen23-Jan-07 20:30 
GeneralRe: Base Address Pin
Shouvik Das23-Jan-07 20:32
Shouvik Das23-Jan-07 20:32 
GeneralRe: Base Address Pin
Shouvik Das23-Jan-07 20:36
Shouvik Das23-Jan-07 20:36 
GeneralRe: Base Address Pin
Naveen23-Jan-07 21:30
Naveen23-Jan-07 21:30 
GeneralRe: Base Address Pin
Naveen24-Jan-07 1:20
Naveen24-Jan-07 1:20 
GeneralRe: Base Address Pin
Shouvik Das24-Jan-07 1:31
Shouvik Das24-Jan-07 1:31 
GeneralRe: Base Address Pin
Naveen24-Jan-07 1:37
Naveen24-Jan-07 1:37 
GeneralRe: Base Address Pin
Shouvik Das24-Jan-07 1:39
Shouvik Das24-Jan-07 1:39 
GeneralRe: Base Address Pin
Monty223-Jan-07 19:08
Monty223-Jan-07 19:08 
GeneralRe: Base Address Pin
Stephen Hewitt23-Jan-07 19:11
Stephen Hewitt23-Jan-07 19:11 
AnswerRe: Base Address Pin
Michael Dunn23-Jan-07 19:22
sitebuilderMichael Dunn23-Jan-07 19:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.