Click here to Skip to main content
16,016,750 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: url decode Pin
David Crow19-Feb-07 3:15
David Crow19-Feb-07 3:15 
Newsthread Pin
sulabh_expert@rediffmail.com18-Feb-07 23:41
sulabh_expert@rediffmail.com18-Feb-07 23:41 
GeneralRe: thread Pin
toxcct18-Feb-07 23:46
toxcct18-Feb-07 23:46 
QuestionRe: thread Pin
David Crow19-Feb-07 3:17
David Crow19-Feb-07 3:17 
AnswerRe: thread Pin
toxcct19-Feb-07 3:20
toxcct19-Feb-07 3:20 
AnswerRe: thread Pin
jhwurmbach19-Feb-07 3:40
jhwurmbach19-Feb-07 3:40 
GeneralRe: thread Pin
Stephen Hewitt19-Feb-07 18:43
Stephen Hewitt19-Feb-07 18:43 
QuestionExplain the working of this program please Pin
Deepchand P18-Feb-07 23:28
Deepchand P18-Feb-07 23:28 
1st of all sorry for posting this entire program hope its not a large 1. This program has been tested in gcc,msvc,tc to give the same result. My question is how does it work

#include <stdio.h>
void Call_Aswathy()
{
	printf("Yes Girish........\n\n");
}

int Call_Girish(int w_argc)
{
	printf("Aswathy do u hear me...\n\n");

	unsigned int *p = (unsigned int *)&w_argc;
	*p = *(p-1);
	*(p-1) = (unsigned int) &Call_Aswathy;

	return w_argc;
}

int main(int argc,char **argv)
{
	unsigned int *p = (unsigned int *) &argc;//getting the address of argc in p

	*p = *(p-1);
	*(p-1) = (unsigned int) &Call_Girish;
	
	return 0;
}


if some1 has posted a this question or similar question before plz post the exact link or mail the link

thx in advance




-- modified at 5:36 Monday 19th February, 2007


-- modified at 5:38 Monday 19th February, 2007


-- modified at 5:50 Monday 19th February, 2007

Deepchand P
Software Developer
Optiwise Solutions

Answersatisfiable ?? Pin
toxcct18-Feb-07 23:40
toxcct18-Feb-07 23:40 
GeneralRe: satisfiable ?? Pin
Deepchand P18-Feb-07 23:48
Deepchand P18-Feb-07 23:48 
GeneralRe: satisfiable Pin
Deepchand P18-Feb-07 23:53
Deepchand P18-Feb-07 23:53 
GeneralRe: satisfiable Pin
benjymous19-Feb-07 0:15
benjymous19-Feb-07 0:15 
AnswerRe: Explain the working of this program please Pin
BadKarma19-Feb-07 1:52
BadKarma19-Feb-07 1:52 
GeneralRe: Explain the working of this program please Pin
David Crow19-Feb-07 3:20
David Crow19-Feb-07 3:20 
GeneralRe: Explain the working of this program please Pin
BadKarma19-Feb-07 3:58
BadKarma19-Feb-07 3:58 
Questionhow to add FIle image icon in the listview control? Pin
amitmistry_petlad 18-Feb-07 22:31
amitmistry_petlad 18-Feb-07 22:31 
AnswerRe: how to add FIle image icon in the listview control? Pin
Nibu babu thomas18-Feb-07 23:16
Nibu babu thomas18-Feb-07 23:16 
GeneralRe: how to add FIle image icon in the listview control? Pin
amitmistry_petlad 19-Feb-07 0:52
amitmistry_petlad 19-Feb-07 0:52 
GeneralRe: how to add FIle image icon in the listview control? Pin
Nibu babu thomas19-Feb-07 0:58
Nibu babu thomas19-Feb-07 0:58 
Questionfile create problem Pin
david bagaturia18-Feb-07 22:15
david bagaturia18-Feb-07 22:15 
AnswerRe: file create problem Pin
prasad_som18-Feb-07 22:34
prasad_som18-Feb-07 22:34 
GeneralRe: file create problem Pin
apoorva_raje18-Feb-07 22:45
apoorva_raje18-Feb-07 22:45 
AnswerRe: file create problem Pin
Hamid_RT19-Feb-07 6:29
Hamid_RT19-Feb-07 6:29 
QuestionUser Authentication NT Domain Pin
apoorva_raje18-Feb-07 21:43
apoorva_raje18-Feb-07 21:43 
QuestionCliking button programmatically [modified] Pin
rp_suman18-Feb-07 21:00
rp_suman18-Feb-07 21:00 

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.