|
|
Windows messaging
I am interested to know how to communicate with another program using
Windows messaging from LabVIEW. I did not develop the program with which I
want to communicate. The developer allows other programs to interact with
it using Windows messaging.
I need to post messages to that application and receive messages from that
application. The application does not use Windows message ID's. Instead it
uses a message name. The message ID can be determined using a Win32 call,
RegisterWindowMessage().
National Instruments has an example LabVIEW 5.1 program with a C++ DLL that
receives messages, although it does not post messages. It works with
message ID's. Unfortunately, I cannot even get the C++ to compile using
Microsoft C++ 6.0. Something about "redefinition of Occur".
The developer of the application knows that they have customers who are
interfacing with their software using LabVIEW. The developer does not know
the particulars. But they did say that some big name companies are doing
it. Darn, I wish I had their budget.
I attempted to write a VB.NET 2.0 Windows control and use WndProc() to
handle messages. It just sat there. Even when I called it from a VB.NET
2.0 containing form. It responds to messages from the application, but not
from an external application.
I have a VB.NET 1.1 program that overrides WndProc() in the Windows form.
It behaves. I can receive messages and post messages. Now if I can only
teach LabVIEW how to do that!
I am an application programmer. I did not expect to have to get this
intimate with Windows. Is there someone who has done this from LabVIEW or
can steer me through some of the issues. I would be delighted.
Thanks,
Hamilton Woods
|
|
0
|
|
|
|
Reply
|
ghw (1)
|
10/23/2009 1:04:22 AM |
|
Accutrol wrote:
> I am interested to know how to communicate with another program using
> Windows messaging from LabVIEW. I did not develop the program with which I
> want to communicate. The developer allows other programs to interact with
> it using Windows messaging.
>
> I need to post messages to that application and receive messages from that
> application. The application does not use Windows message ID's. Instead it
> uses a message name. The message ID can be determined using a Win32 call,
> RegisterWindowMessage().
>
> National Instruments has an example LabVIEW 5.1 program with a C++ DLL that
> receives messages, although it does not post messages. It works with
> message ID's. Unfortunately, I cannot even get the C++ to compile using
> Microsoft C++ 6.0. Something about "redefinition of Occur".
>
> The developer of the application knows that they have customers who are
> interfacing with their software using LabVIEW. The developer does not know
> the particulars. But they did say that some big name companies are doing
> it. Darn, I wish I had their budget.
>
> I attempted to write a VB.NET 2.0 Windows control and use WndProc() to
> handle messages. It just sat there. Even when I called it from a VB.NET
> 2.0 containing form. It responds to messages from the application, but not
> from an external application.
>
> I have a VB.NET 1.1 program that overrides WndProc() in the Windows form.
> It behaves. I can receive messages and post messages. Now if I can only
> teach LabVIEW how to do that!
>
> I am an application programmer. I did not expect to have to get this
> intimate with Windows. Is there someone who has done this from LabVIEW or
> can steer me through some of the issues. I would be delighted.
>
> Thanks, Hamilton Woods
This newsgroups is not frequently used.
See:
http://forums.ni.com/ni/board?board.id=170
|
|
0
|
|
|
|
Reply
|
Anony
|
10/23/2009 2:41:06 PM
|
|
|
1 Replies
272 Views
(page loaded in 0.091 seconds)
Similiar Articles: Windows messaging - comp.lang.labviewI am interested to know how to communicate with another program using Windows messaging from LabVIEW. I did not develop the program with which I ... windows error message: file does not start with %PDF - comp.text ...Hi all, I got informed by someone using a windows computer about an error message if he tries to load a pdf form. file does not start with %PDF ... Windows error message: Not enough storage is available - comp.soft ...Matlab has hung on me. I have a Figure open which is not displaying correctly. I tried Edit - Copy Figure and Matlab has entered an infinite loop, dis... uninstall old version before installing new version? - comp.text ...I have a Dell with the Vista OS. It came with Adobe Reader 7.0. Just recently, when I click on a pdf file I get a Windows message saying that there ... Invisible window, like console app - comp.os.ms-windows.programmer ...On Oct 30, 11:55=A0pm, N0S...@daqarta.com (Bob Masta) wrote: > I don't think there is a way to have a message queue without > a window (is there?) Send remote computer a message - comp.lang.java.helpHow to Enable Net Send in a Remote Desktop | eHow.com Net Send is a Windows command that allows a message to be sent from one computer and instantly displayed on another ... Sharing Data Between Processes - comp.os.ms-windows.programmer ...Using named pipes, sockets or Windows > messages, for example. Actually, please take a look here: > http://msdn.microsoft.com/en-us/library/aa365574%28VS.85%29.aspx ... Difference between Call and Callback ??? - comp.lang.asm.x86 ...Is there a difference between a ?Callback by an API > and a simple call ? > > Jacques Hi, Just a thought, but I believe you may need an operating Windows message loop ... error message - comp.soft-sys.matlabHi all, I got informed by someone using a windows computer about an error message if he tries to load a pdf form. file does not start with %PDF ... text in OpenGL - comp.graphics.api.opengl"Nomador" <Nomador@poprostu.net> wrote in message news:2lt0b6Fg97k4U1@uni-berlin.de ... but - using standard Windows font (not any bitmaps or 3d > fonts!) and using WINDOWS ... Windows Messaging - Wikipedia, the free encyclopediaWindows Messaging, initially called Microsoft Exchange, is an e-mail client that was included with Windows 95 (beginning with OSR2), 98 and Windows NT 4.0. In Windows ... How to Reinstall Microsoft Fax and Windows MessagingThis article describes how to reinstall Microsoft Fax and Windows Messaging. This article describes how to remove and reinstall Microsoft Fax with Windows ... 7/27/2012 10:35:18 AM
|
|
|
|
|
|
|
|
|