SendNotifyMessage() - Not working?

  • Thread starter Thread starter Anonymous
  • Start date Start date
A

Anonymous

I need to update a VB6 label, with information showing progress of some
processing being carried out in a C DLL.

Basically, I want my C function to be able to write messages back to
VB6, which will then display the message in a label. I am subclassing
the form that contains the label to be updated (and passing its hWnd to
the C DLL), I then have a C function like this:


void writeGUIMessage(const char* msg)
{
SendNotifymessage(g_hWnd, WM_SETTEXT, 0, (LPARAM)msg);
}


This is not working - any idea why ?


Note: My Subclassing function stores the form Hwnd into the variable g_hWnd
 
Anonymous said:
I need to update a VB6 label, with information showing progress of some
processing being carried out in a C DLL.

Basically, I want my C function to be able to write messages back to VB6,
which will then display the message in a label. I am subclassing the form
that contains the label to be updated (and passing its hWnd to the C DLL),
I then have a C function like this:


void writeGUIMessage(const char* msg)
{
SendNotifymessage(g_hWnd, WM_SETTEXT, 0, (LPARAM)msg);
}


This is not working - any idea why ?


Note: My Subclassing function stores the form Hwnd into the variable
g_hWnd
 
Hi,

As the name of this newsgroup says, it is for dotNet programming. VB6 is no
dotNet programming, the newsgroup for those you can find as:


Cor
 
Back
Top