Click here to Skip to main content
15,908,673 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionStandalone application Pin
Sendilkumar.M4-Apr-06 17:09
Sendilkumar.M4-Apr-06 17:09 
AnswerRe: Standalone application Pin
Ștefan-Mihai MOGA4-Apr-06 20:51
professionalȘtefan-Mihai MOGA4-Apr-06 20:51 
GeneralRe: Standalone application Pin
toxcct4-Apr-06 21:50
toxcct4-Apr-06 21:50 
AnswerRe: Standalone application Pin
toxcct4-Apr-06 21:52
toxcct4-Apr-06 21:52 
GeneralRe: Standalone application Pin
Sendilkumar.M5-Apr-06 17:44
Sendilkumar.M5-Apr-06 17:44 
GeneralRe: Standalone application Pin
toxcct5-Apr-06 21:28
toxcct5-Apr-06 21:28 
QuestionParallel Port I/O Library in C++ Pin
CNewbie4-Apr-06 16:45
CNewbie4-Apr-06 16:45 
AnswerRe: Parallel Port I/O Library in C++ Pin
Ștefan-Mihai MOGA4-Apr-06 20:50
professionalȘtefan-Mihai MOGA4-Apr-06 20:50 
QuestionCatch the text of the Window Items Pin
vtalau4-Apr-06 16:05
vtalau4-Apr-06 16:05 
AnswerRe: Catch the text of the Window Items Pin
Anilkumar K V4-Apr-06 18:34
Anilkumar K V4-Apr-06 18:34 
AnswerRe: Catch the text of the Window Items Pin
Michael Dunn4-Apr-06 20:12
sitebuilderMichael Dunn4-Apr-06 20:12 
Questionexported class meets DoModal() error! Pin
sting_lee4-Apr-06 16:01
sting_lee4-Apr-06 16:01 
QuestionKey code question Pin
EvScott4-Apr-06 15:42
EvScott4-Apr-06 15:42 
AnswerRe: Key code question Pin
Waldermort5-Apr-06 0:01
Waldermort5-Apr-06 0:01 
QuestionNetwork Client Registry Question Pin
u6ik4-Apr-06 15:22
u6ik4-Apr-06 15:22 
AnswerRe: Network Client Registry Question Pin
kakan4-Apr-06 21:27
professionalkakan4-Apr-06 21:27 
GeneralRe: Network Client Registry Question Pin
u6ik4-Apr-06 21:59
u6ik4-Apr-06 21:59 
QuestionProblem with the window handle m_hWnd Pin
dannyham4-Apr-06 14:41
dannyham4-Apr-06 14:41 
I’m trying too passing a window handle from my application to an Interface
Software. The software will then send messages to my application. But it seems like no messages are sent at all. Its really strange though when I create another dialog (config window for my first window) in the first dialogs OnInitDialog(); function where I’m calling the Interface function it works. And then when I remove the code for the config dialog no message is sent.

Kind of hard to explain in words, here is the code that works:

:BOOL ClightswitchDlg::OnInitDialog()<br />
{<br />
  int retval;<br />
        CDialog::OnInitDialog();<br />
/*classic OnInit code<br />
 			*/       <br />
<br />
  hZigBee = new CZigBeeIf(); // The ZigBee Interface<br />
<br />
  retval = hZigBee->ZBIFConnect( m_hWnd ); // Find some hardware<br />
  <br />
<br />
  CConfigureDlg hConfigureDlg; // The Config Dialog<br />
  /* Config code<br />
*/<br />
       INT_PTR nResponse = hConfigureDlg.DoModal(); // Display the dialog<br />
  if (nResponse == IDCANCEL)<br />
        {<br />
    return FALSE; // Cancelled Config so just leave<br />
        }<br />
<br />
    // Subscribe to relevant Callbacks<br />
  hZigBee->ZBIFSubscribe( ZDO_SET_CONFIRM );<br />
  hZigBee->ZBIFSubscribe( ZDO_RESET_CONFIRM );<br />
  hZigBee->ZBIFSubscribe( ZDO_START_CONFIRM );<br />
  hZigBee->ZBIFSubscribe( ZDO_END_DEVICE_BIND_CONFIRM );<br />
  hZigBee->ZBIFSubscribe( AF_INDIRECT_CONFIRM );<br />
  hZigBee->ZBIFSubscribe( ZDO_NLME_SYNC_CONFIRM );<br />
<br />
  Sleep( 1000 ); // Let the stack start and the world sort itself out<br />
<br />
  hZigBee->ZDO_RESET_request( 0 ); // Send a reset into the stack<br />
  <br />
  <br />
  return TRUE;  <br />


And the same code without config dialog that doesn’t work:

BOOL ClightswitchDlg::OnInitDialog()<br />
{<br />
  int retval;<br />
        CDialog::OnInitDialog();<br />
/*classic OnInit code<br />
 			*/       <br />
<br />
        <br />
<br />
  hZigBee = new CZigBeeIf(); // The ZigBee If<br />
  <br />
  }<br />
<br />
  retval = hZigBee->ZBIFConnect( m_hWnd ); // Find some hardware<br />
  <br />
<br />
    // Subscribe to relevant Callbacks<br />
  hZigBee->ZBIFSubscribe( ZDO_SET_CONFIRM );<br />
  hZigBee->ZBIFSubscribe( ZDO_RESET_CONFIRM );<br />
  hZigBee->ZBIFSubscribe( ZDO_START_CONFIRM );<br />
  hZigBee->ZBIFSubscribe( ZDO_END_DEVICE_BIND_CONFIRM );<br />
  hZigBee->ZBIFSubscribe( AF_INDIRECT_CONFIRM );<br />
  hZigBee->ZBIFSubscribe( ZDO_NLME_SYNC_CONFIRM );<br />
<br />
  Sleep( 1000 ); // Let the stack start and the world sort itself out<br />
<br />
  hZigBee->ZDO_RESET_request( 0 ); // Send a reset into the stack<br />
  <br />
  return TRUE;  <br />
}

AnswerRe: Problem with the window handle m_hWnd Pin
Giannakakis Kostas4-Apr-06 19:53
professionalGiannakakis Kostas4-Apr-06 19:53 
GeneralRe: Problem with the window handle m_hWnd Pin
dannyham4-Apr-06 22:21
dannyham4-Apr-06 22:21 
QuestionActiveX Print Template Pin
folken_max4-Apr-06 14:27
folken_max4-Apr-06 14:27 
Questionlink library + crazy error Pin
surfman194-Apr-06 13:40
surfman194-Apr-06 13:40 
AnswerRe: link library + crazy error Pin
Michael Dunn4-Apr-06 13:44
sitebuilderMichael Dunn4-Apr-06 13:44 
GeneralRe: link library + crazy error Pin
surfman194-Apr-06 14:23
surfman194-Apr-06 14:23 
QuestionRegisterWindowMessage Text Pin
Blake Miller4-Apr-06 12:31
Blake Miller4-Apr-06 12:31 

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.