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 3 3265
"Anonymous" <no******@here.comschreef in bericht
news:5Y******************************@bt.com...
>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:
news:\\Microsoft.public.vb.Generaldiscussions
Cor
"Anonymous" <no******@here.comschreef in bericht
news:5Y******************************@bt.com...
>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,
Is this a MFC DLL or not?
SendNotifyMessage returns a boolean value not null
See: http://msdn2.microsoft.com/en-us/library/ms644953.aspx
But maybe SendMessageCallBack will be better: http://msdn2.microsoft.com/en-us/library/ms644951.aspx
You can also post your DLL question to:
microsoft.public.dotnet.languages.vc
but remember just to mention its unmanaged & whether or not it MFC or not
--
Newbie Coder
(It's just a name)
"Anonymous" <no******@here.comwrote in message
news:5Y******************************@bt.com...
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Gary |
last post by:
I am trying to use the "System.Windows.Forms.SendKeys" class for triggering
the Ctrl+P key.
Syntax:
System.Windows.Forms.SendKeys.Send("^(P)");
This is not working ..what could be the...
|
by: Mullin Yu |
last post by:
hi,
i have a web service that has file operations on Windows OS, and there may
be a file concurrency issue if only one working directory e.g. c:\working
therefore, i want to have a unique sub...
|
by: |
last post by:
Hello,
I am hoping someone else has thought about a date time calculation i need to
perform.
I would like to be able to calculate the number of "working minutes" between
2 dates, given my...
|
by: Hardy Wang |
last post by:
Hi:
Is it possible for me to create/open web application from remote machine
other than port 80? And create application directly under virtual web site
instead of creating a virtual directory?...
|
by: Martin Heuckeroth |
last post by:
Hi
We are working on a webservice application and are having some
problems with the cookies and/or sessions.
We have them working on our intranet but then its not working on the
internet. We...
|
by: tshad |
last post by:
I have been working with setting my drop boxes to allow double clicking to
select an item.
It worked fine until I made some changes. I then stripped the page down to
the bare essentials to find...
|
by: jojobar |
last post by:
Okay, I am trying to do is to test the webresource in 2.0
1. I created a new project with assembly name (and default assembly name)
"Office".
2. I added the following to the AssemblyInfo.cs...
|
by: Don |
last post by:
I'm having problems with intellisense, autocomplete, etc. suddenly not
working in certain classes of a project I'm working on. All the options are
set, and it all works fine for most classes, but...
|
by: MSDNAndi |
last post by:
Hi,
I have a set of simple webservices calls that worked fine using .NET
Framework 1.0.
I am calling a Java/Apache based webservices, the calling side is not able
to supply a proper WSDL.
...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |