Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to prohibit a window maximizing in api?thanks Pin
PJ Arends26-Nov-04 21:40
professionalPJ Arends26-Nov-04 21:40 
QuestionHow to draw Dashed Ellipse in Embedded VC++ Pin
Arun AC26-Nov-04 20:39
Arun AC26-Nov-04 20:39 
GeneralLittle Doubt Using Send Message Pin
ThatsAlok26-Nov-04 20:38
ThatsAlok26-Nov-04 20:38 
GeneralRe: Little Doubt Using Send Message Pin
PJ Arends26-Nov-04 20:53
professionalPJ Arends26-Nov-04 20:53 
GeneralRe: Little Doubt Using Send Message Pin
ThatsAlok26-Nov-04 22:36
ThatsAlok26-Nov-04 22:36 
GeneralRe: Little Doubt Using Send Message Pin
PJ Arends26-Nov-04 23:00
professionalPJ Arends26-Nov-04 23:00 
GeneralRe: Little Doubt Using Send Message Pin
ThatsAlok26-Nov-04 23:03
ThatsAlok26-Nov-04 23:03 
GeneralRe: Little Doubt Using Send Message Pin
ThatsAlok26-Nov-04 23:37
ThatsAlok26-Nov-04 23:37 
PJ Arends wrote:
ThatsAlok wrote:
char *nam1=(char*)lParam;

you are casting a char** to a char*, here is your error


actually i am facing problem in this step,i can successfully passing integer value by address but problem is when everi try to change the value of that interger, my MSStudio fails.

ie little code here

sending code
int *ji=new int;<br />
	*ji=10;<br />
	::SendMessage((HWND)this->m_lHandle,WM_USER+90,0,(LPARAM)*ji);<br />
	CString s;<br />
	s.Format("%d",*ji);<br />
	MessageBox(s);


Receiving Code
        int * i=(int*)lParam;<br />
         char Text[100];<br />
	  sprintf(Text,"%d ",*i);<br />
	 //char **Nam2=(char**)wParam;<br />
	  ::MessageBox(NULL,Text,Text,MB_OK);<br />
<br />
        *i=40;


hope any body understand my problem.

-----------------------------
"I Think this Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
GeneralRe: Little Doubt Using Send Message Pin
PJ Arends27-Nov-04 0:07
professionalPJ Arends27-Nov-04 0:07 
GeneralRe: Little Doubt Using Send Message Pin
ThatsAlok27-Nov-04 0:34
ThatsAlok27-Nov-04 0:34 
Questioncustom DWebBrowserEvents2 Interface? Pin
tkarven26-Nov-04 16:20
tkarven26-Nov-04 16:20 
GeneralPlease help me CPP Pin
bluehai26-Nov-04 16:02
bluehai26-Nov-04 16:02 
GeneralRe: Please help me CPP Pin
Anonymous26-Nov-04 21:44
Anonymous26-Nov-04 21:44 
GeneralRe: Please help me CPP Pin
bluehai26-Nov-04 23:54
bluehai26-Nov-04 23:54 
QuestionHow come no one has ever posting code related to USB port Pin
paracha326-Nov-04 15:50
paracha326-Nov-04 15:50 
AnswerRe: How come no one has ever posting code related to USB port Pin
Gary R. Wheeler27-Nov-04 2:14
Gary R. Wheeler27-Nov-04 2:14 
GeneralCurrent User Pin
BaldwinMartin26-Nov-04 13:35
BaldwinMartin26-Nov-04 13:35 
GeneralRe: Current User Pin
ThatsAlok26-Nov-04 17:20
ThatsAlok26-Nov-04 17:20 
GeneralRe: Current User Pin
BaldwinMartin27-Nov-04 9:47
BaldwinMartin27-Nov-04 9:47 
GeneralRe: Current User Pin
ThatsAlok28-Nov-04 17:27
ThatsAlok28-Nov-04 17:27 
GeneralRe: Current User Pin
Gary R. Wheeler27-Nov-04 2:18
Gary R. Wheeler27-Nov-04 2:18 
GeneralRe: Current User Pin
david_gilmour27-Nov-04 2:35
david_gilmour27-Nov-04 2:35 
GeneralRe: Current User Pin
BaldwinMartin27-Nov-04 9:46
BaldwinMartin27-Nov-04 9:46 
GeneralRe: Current User Pin
BaldwinMartin27-Nov-04 9:44
BaldwinMartin27-Nov-04 9:44 
GeneralDesign Skin for Program Pin
BRIMID26-Nov-04 12:46
BRIMID26-Nov-04 12:46 

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.