\r\n\r\n
Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > ActiveX Server


\r\n \r\n
 
 
Thread Tools Display Modes

\r\n\r\n\r\n
I\'m developing an ActiveX "server" application that will read and write information to a industrial controller over the serial port. I have created methods that read and write the data, when requested. My question is how can I let users "bind" to a piece of data in the control ? I want the user to be able to put a label on a form and have that label automatically update and display the requested data from the control (without using a timer control in the user app).
\r\nWe have an existing DDE server app which works fine but no one wants to use DDE anymore. With the DDE Server, I can set the "LinkTopic", LInkItem and LinkMode of a label and it will always refresh the label with new data.
\r\n
\n
\n
\r\n \r\n\r\n
\r\n \r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n Reply With Quote\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n'; pd[12846] = '\r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n \r\n\r\n\r\n \r\n \r\n\r\n
\r\n
\r\n  \r\n #2  \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n Old\r\n \r\n 01-19-2001, 03:54 PM\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n blink\r\n \r\n
\r\n\r\n
Guest
\r\n \r\n \r\n\r\n
 \r\n\r\n
\r\n \r\n \r\n \r\n
\r\n Posts: n/a\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n
\r\n Default\r\n Re: ActiveX Server\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n\r\n \r\n\r\n\r\n
Hard to tell how you have the components laid out here, but assuming your "Server" is a Com object, you can invoke it from another application and just fire events back to the host app. Declare the server WithEvents, and then handle the "OnDataChanged" or whatever you want to call it.
\n
\nIf the server needs to run out-of-process, and perhaps is invoked seprately from the app with your label control, you\'ll need to get the handle of the listening app from your server and use callbacks to invoke functions in the listener.
\n
\nJust a couple of ideas.
\n
\nBLink
\n
\n
\r\n \r\n\r\n
\r\n \r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n Reply With Quote\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n'; pd[12847] = '\r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n \r\n\r\n\r\n \r\n \r\n\r\n
\r\n
\r\n  \r\n #3  \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n Old\r\n \r\n 01-22-2001, 07:41 AM\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n JerryB\r\n \r\n
\r\n\r\n
Guest
\r\n \r\n \r\n\r\n
 \r\n\r\n
\r\n \r\n \r\n \r\n
\r\n Posts: n/a\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n
\r\n Default\r\n Re: ActiveX Server\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n\r\n \r\n\r\n\r\n
Thanks for the ideas. It will be an out of process server and the only thing I could think of was to use callbacks but I wanted to see if I was missing anything.
\n
\n
\r\n \r\n\r\n
\r\n \r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n Reply With Quote\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n'; // next/previous post info pn[12845] = "12847,12846"; pn[0] = ",12845"; pn[12846] = "12845,12847"; pn[12847] = "12846,12845"; // cached usernames pu[0] = guestphrase; // -->
Prev Previous Post   Next Post Next
  #1  
Old 01-19-2001, 08:47 AM
JerryB
Guest
 
Posts: n/a
Question ActiveX Server


I'm developing an ActiveX "server" application that will read and write information to a industrial controller over the serial port. I have created methods that read and write the data, when requested. My question is how can I let users "bind" to a piece of data in the control ? I want the user to be able to put a label on a form and have that label automatically update and display the requested data from the control (without using a timer control in the user app).
We have an existing DDE server app which works fine but no one wants to use DDE anymore. With the DDE Server, I can set the "LinkTopic", LInkItem and LinkMode of a label and it will always refresh the label with new data.


Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->