CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: razo

Search: Search took 0.03 seconds.

  1. Replies
    22
    Views
    7,913

    Re: Is OLE automation via Dll possible?

    Hi, The target program only supports Late Binding automation, so this was a creative attempt to use the easier implementation of OLE automation that VB offers as compared to Visual C++ late binding....
  2. Replies
    22
    Views
    7,913

    Re: Is OLE automation via Dll possible?

    Broker.exe is a trading application. Apparently, this program only supports "late binding" automation. As far as I know all information is defined in the Broker.exe file... but I am no expert on OLE...
  3. Replies
    22
    Views
    7,913

    Re: Is OLE automation via Dll possible?

    I can just check in the Task manager - Processes and from there the "Broker.exe" object is not being created. (In fact only way to get the code to execute is to include it the function code as we...
  4. Replies
    22
    Views
    7,913

    Re: Is OLE automation via Dll possible?

    Hi, if I leave the out the MsgBox statement so that the function looks like this:

    Public Function vbfunksjon(ByVal param As Integer) As Integer
    vbfunksjon = param * 2
    End Function
    ...
  5. Replies
    22
    Views
    7,913

    Re: Is OLE automation via Dll possible?

    Hi, I included the object creation statement and tried substituting "MsgBox("Failed)" with Call MsgBox("Failed") and MsgBox "Failed", as you suggest, but I still get the same error message in both...
  6. Replies
    22
    Views
    7,913

    Re: Is OLE automation via Dll possible?

    Hi, I tried to remove all the statements you mention. The function implementation now looks like:

    Public Function vbfunksjon(ByVal param As Integer) As Integer
    vbfunksjon = param * 2
    ...
  7. Replies
    22
    Views
    7,913

    Re: Is OLE automation via Dll possible?

    I tried the code you suggest; it is not executed... I also tried to include the code after the case switch inside Dllmain just before End Function, but it was not executed.
    I also tried the same...
  8. Replies
    22
    Views
    7,913

    Re: Is OLE automation via Dll possible?

    Hi, no, I was using VB 6.0, (its just that I had VS2008 installed on my laptop also and its debugger chose to get activated)..

    As a test I tried to remove the lines of automation code and...
  9. Replies
    22
    Views
    7,913

    Re: Is OLE automation via Dll possible?

    Hi!

    At runtime a standard textbox appears saying: "Name_of_Calling_Program has stopped working". I Then get the message: "An unhandled win32 exception occured in Name_of_Calling_Program.exe...
  10. Replies
    22
    Views
    7,913

    Is OLE automation via Dll possible?

    Hi,

    I have made a standard windows dll in vb6 that is working, and can be called from a vc++6 application (using the trick described here...
Results 1 to 10 of 10





Click Here to Expand Forum to Full Width

Featured