Click here to Skip to main content
15,901,284 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: conversion from double datatype to pixel in VC++ Pin
kindd20-Mar-07 0:44
kindd20-Mar-07 0:44 
GeneralRe: conversion from double datatype to pixel in VC++ Pin
toxcct20-Mar-07 0:49
toxcct20-Mar-07 0:49 
GeneralRe: conversion from double datatype to pixel in VC++ Pin
kindd20-Mar-07 1:00
kindd20-Mar-07 1:00 
GeneralSpam police Pin
toxcct20-Mar-07 1:11
toxcct20-Mar-07 1:11 
QuestionRe: conversion from double datatype to pixel in VC++ Pin
David Crow20-Mar-07 3:38
David Crow20-Mar-07 3:38 
AnswerRe: conversion from double datatype to pixel in VC++ Pin
toxcct20-Mar-07 3:48
toxcct20-Mar-07 3:48 
GeneralRe: conversion from double datatype to pixel in VC++ Pin
David Crow20-Mar-07 5:13
David Crow20-Mar-07 5:13 
Questionpassing 4 parameters in SendMessage() Pin
sulabh_expert@rediffmail.com19-Mar-07 21:02
sulabh_expert@rediffmail.com19-Mar-07 21:02 
Hi all,

My problem is i want to pass 4 variables in my SendMessage function.
What i am doing is pasing a single variable and the other three through structure like this :-

struct pasiin_val
{
int index;
CString url;
CString task_n;
};

void CMyThread::LogMessage(CString& logmsg)
{
if (m_pLogWnd)
{
pasiin_val obj_val;
obj_val.index = test_int;
obj_val.url = test_str;
obj_val.task_n = test_task_name;
m_pLogWnd->SendMessage(LOGMSG, (WPARAM)(CString*)&logmsg, obj_val);

}
}

when i am trying to do this its giving an error:-

error C2664: 'SendMessageA' : cannot convert parameter 3 from 'struct pasiin_val' to 'long'


can anybody help me in this......

thanks in advance




AnswerRe: passing 4 parameters in SendMessage() Pin
prasad_som19-Mar-07 21:05
prasad_som19-Mar-07 21:05 
GeneralRe: passing 4 parameters in SendMessage() Pin
sulabh_expert@rediffmail.com19-Mar-07 21:10
sulabh_expert@rediffmail.com19-Mar-07 21:10 
AnswerRe: passing 4 parameters in SendMessage() [modified] Pin
prasad_som19-Mar-07 21:15
prasad_som19-Mar-07 21:15 
GeneralRe: passing 4 parameters in SendMessage() Pin
sulabh_expert@rediffmail.com19-Mar-07 21:18
sulabh_expert@rediffmail.com19-Mar-07 21:18 
GeneralRe: passing 4 parameters in SendMessage() Pin
prasad_som19-Mar-07 21:25
prasad_som19-Mar-07 21:25 
GeneralRe: passing 4 parameters in SendMessage() Pin
toxcct19-Mar-07 21:25
toxcct19-Mar-07 21:25 
GeneralRe: passing 4 parameters in SendMessage() Pin
Parthi_Appu19-Mar-07 21:20
Parthi_Appu19-Mar-07 21:20 
GeneralRe: passing 4 parameters in SendMessage() Pin
toxcct19-Mar-07 21:24
toxcct19-Mar-07 21:24 
GeneralRe: passing 4 parameters in SendMessage() Pin
sulabh_expert@rediffmail.com19-Mar-07 21:28
sulabh_expert@rediffmail.com19-Mar-07 21:28 
QuestionRe: passing 4 parameters in SendMessage() Pin
Divyang Mithaiwala21-Apr-10 3:07
Divyang Mithaiwala21-Apr-10 3:07 
GeneralRe: passing 4 parameters in SendMessage() Pin
David Crow20-Mar-07 3:40
David Crow20-Mar-07 3:40 
AnswerRe: passing 4 parameters in SendMessage() Pin
ThatsAlok20-Mar-07 1:53
ThatsAlok20-Mar-07 1:53 
QuestionHow to create Customize menu with marathi/Hindi Fonts Pin
Atul2319-Mar-07 21:00
Atul2319-Mar-07 21:00 
AnswerRe: How to create Customize menu with marathi/Hindi Fonts Pin
Rajesh R Subramanian19-Mar-07 22:28
professionalRajesh R Subramanian19-Mar-07 22:28 
Questionhttp authentication using vc++ Pin
Ajay R Ojha19-Mar-07 20:54
Ajay R Ojha19-Mar-07 20:54 
AnswerRe: http authentication using vc++ Pin
Atul2319-Mar-07 20:57
Atul2319-Mar-07 20:57 
GeneralRe: http authentication using vc++ Pin
Ajay R Ojha19-Mar-07 21:16
Ajay R Ojha19-Mar-07 21:16 

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.