Click here to Skip to main content
15,923,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalconverting LPCSTR to char* Pin
neha.agarwal274-Dec-07 21:27
neha.agarwal274-Dec-07 21:27 
GeneralRe: converting LPCSTR to char* Pin
Cedric Moonen4-Dec-07 21:30
Cedric Moonen4-Dec-07 21:30 
GeneralRe: converting LPCSTR to char* Pin
CPallini4-Dec-07 21:44
mveCPallini4-Dec-07 21:44 
GeneralRe: converting LPCSTR to char* Pin
Don Box4-Dec-07 21:47
Don Box4-Dec-07 21:47 
GeneralRe: converting LPCSTR to char* Pin
ThatsAlok4-Dec-07 22:16
ThatsAlok4-Dec-07 22:16 
GeneralRe: converting LPCSTR to char* Pin
jhwurmbach4-Dec-07 22:31
jhwurmbach4-Dec-07 22:31 
GeneralRe: converting LPCSTR to char* Pin
ThatsAlok4-Dec-07 23:32
ThatsAlok4-Dec-07 23:32 
GeneralRe: converting LPCSTR to char* Pin
sarat4-Dec-07 23:19
sarat4-Dec-07 23:19 
GeneralRe: converting LPCSTR to char* Pin
sarat4-Dec-07 23:20
sarat4-Dec-07 23:20 
GeneralRe: converting LPCSTR to char* Pin
Cedric Moonen4-Dec-07 23:33
Cedric Moonen4-Dec-07 23:33 
GeneralRe: converting LPCSTR to char* Pin
ThatsAlok4-Dec-07 23:34
ThatsAlok4-Dec-07 23:34 
GeneralRe: converting LPCSTR to char* Pin
sarat4-Dec-07 23:40
sarat4-Dec-07 23:40 
GeneralRe: converting LPCSTR to char* Pin
Cedric Moonen5-Dec-07 0:09
Cedric Moonen5-Dec-07 0:09 
GeneralRe: converting LPCSTR to char* Pin
sarat5-Dec-07 0:21
sarat5-Dec-07 0:21 
GeneralRe: converting LPCSTR to char* Pin
Cedric Moonen5-Dec-07 0:52
Cedric Moonen5-Dec-07 0:52 
GeneralRe: converting LPCSTR to char* Pin
sarat5-Dec-07 1:58
sarat5-Dec-07 1:58 
Questionhow to set transparent color for a perticular color Pin
sarat4-Dec-07 21:01
sarat4-Dec-07 21:01 
AnswerRe: how to set transparent color for a perticular color Pin
Cedric Moonen4-Dec-07 21:13
Cedric Moonen4-Dec-07 21:13 
GeneralRe: how to set transparent color for a perticular color Pin
sarat4-Dec-07 21:42
sarat4-Dec-07 21:42 
AnswerRe: how to set transparent color for a perticular color Pin
GauranG Shah5-Dec-07 0:43
GauranG Shah5-Dec-07 0:43 
AnswerRe: how to set transparent color for a perticular color Pin
Mark Salsbery5-Dec-07 5:57
Mark Salsbery5-Dec-07 5:57 
GeneralRe: how to set transparent color for a perticular color Pin
sarat5-Dec-07 19:59
sarat5-Dec-07 19:59 
GeneralMessage Mapping Problem Pin
Md. Mazharul Islam Khan4-Dec-07 20:57
Md. Mazharul Islam Khan4-Dec-07 20:57 
I wrote a class CCamCtrl. I use a Custom message WM_CAPTURE_IMAGE and used message mapping. A dll is to post message. I think dll does not post messsage, sothat OnCaptureData(WPARAM wParam, LPARAM lParam ) event can't be called.

Are there any problem in my code or in dll.

here i mention that dll works well for dialog based application.
Can anyone help me?

Thanks in Advance
Mazhar



header file
class CCamCtrl : public COleControl
{
//some code
///
///

// Message maps
//{{AFX_MSG(CCamCtrl)
afx_msg void OnCaptureData(WPARAM wParam, LPARAM lParam );
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};

in cpp i wrote
BEGIN_MESSAGE_MAP(CCamCtrl, COleControl)
//{{AFX_MSG_MAP(CCamCtrl)
ON_MESSAGE(WM_CAPTURE_IMAGE,OnCaptureData)
ON_WM_SHOWWINDOW()
ON_WM_LBUTTONDOWN()
ON_WM_TIMER()
//}}AFX_MSG_MAP

ON_MESSAGE(OCM_COMMAND, OnOcmCommand)
ON_OLEVERB(AFX_IDS_VERB_PROPERTIES, OnProperties)

END_MESSAGE_MAP()
QuestionVM Size Pin
Programm3r4-Dec-07 20:23
Programm3r4-Dec-07 20:23 
GeneralRe: VM Size Pin
baerten4-Dec-07 21:11
baerten4-Dec-07 21:11 

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.