Re: How best for dll to "report progress"?



On Fri, 10 Nov 2006 00:36:40 -0600, "MP" <nospam@xxxxxxxxxx> wrote:

<snip>

The dll is created by my vb6.exe app "in process" to the external app(acad).
The dll can then "communicate" to the external app(in whose process it is
running) by calling that apps api methods etc.
Then it can return data back to my vb6 exe when I call it's properties,
right?
Sub()
Set oApp = CreateInstanceOfApp
Set cDll = oApp.GetInterfaceObject(mydll.myclass)
Call cDll.GatherInfo (oApp.Document)'dll communicates with app ???
ReturnData = cDll.ReturnInfo'dll communicates with me???
Call UseData (ReturnData) 'or whatever
End Sub

<snip>

This sounds as if:

1) You have AutoCad running and it has some sort of VB inside it
2) You have another pure VB EXE
3) You want to make the things talk to each other
4) All this stuff about DLLs is a red herring

Basically it sounds as if you either need to set up some form
communication such as WM_COPYDATA or 'Chat by Textbox' or you need to
turn your pure VB App into an AX EXE

PostMessage is not going to be much use for all but the most trivial
things.

Cross Process Marshalling (which is really SendMessage in drag) is
slow, but 'slow' is a relative thing - unless you have two Apps stuck
in tight loops without processing their Windows Message Queue then
that 'slow' communication will be pretty darn quick in human terms.

Personally I would Shell your pure VB App with the HWND of a Textbox
in the Command Line and use WM_SETTEXT to talk back from the pure VB
App to the Textbox in AutoCad.

It is simple to set up, and will give you a good idea of 'speed'


.



Relevant Pages

  • Re: How best for dll to "report progress"?
    ... Probably that DLL is working inside AutoCad's process ... Ken also mentioned Ax exe but said that was also Out of process... ... in the Command Line and use WM_SETTEXT to talk back from the pure VB ... App to the Textbox in AutoCad. ...
    (microsoft.public.vb.general.discussion)
  • Re: Issues of state (was: Tkinter or wxpython?)
    ... desktop app where the window system communicates with a gui toolkit ... through a socket, ... I haven't used wxpython but for tkinter you'd typically have a gui ...
    (comp.lang.python)
  • Re: Middle Tire in PHP MySQL
    ... > for a PHP MySQL web app but couldn't make a head way. ... Application server. ... connections can be handled by one Server process. ... XML output that then communicates with an application server running a JAVA app ...
    (comp.lang.php)
  • Re: creating services with UI
    ... Then create a windows app that communicates with the service somehow. ... that display UI's and need to allow interaction with the desktop? ...
    (microsoft.public.dotnet.framework)
  • TAPI 3.0 app and NetMeeting compatibility
    ... I am trying to write a TAPI 3.0 app that communicates using H323 with other ... are making it from my app to NetMeeting (this is looking at the sound card ... app to incomming is fine and going from outgoing to NetMeeting is fine. ...
    (microsoft.public.win32.programmer.tapi)