dcsimg

Search:

Type: Posts; User: sancarn

Search: Search took 0.02 seconds.

  1. Re: Has anyone had any success implementing IDispatch / IDispatchEx?

    Lol well that's cheating! :p But indeed you can do that.



    I did not do anything of the sort. On all systems I have used the following code:



    Dim sc as object: set sc =...
  2. Re: Has anyone had any success implementing IDispatch / IDispatchEx?

    Hi Olaf,

    Gotta say your vbFriendlyInterfaces dll does indeed look very nice! That said I'm not sure if you can easily attach methods to your IDispatch implementation without implementing TypeInfo...
  3. Replies
    8
    Views
    490

    Re: Call VB6 module function dynamically

    Hi DreamManor,

    I've had several ideas but I havent put any into action as of yet, but generally these ideas require scraping the memory of the application instance. I have already in the past done...
  4. Re: Has anyone had any success implementing IDispatch / IDispatchEx?

    Ah you are totally right! I recall coming across CreateStdDispatch a few weeks ago, remember thinking "Man this looks like it'll do what I need it to". I think I chickened out after seeing the total...
  5. Has anyone had any success implementing IDispatch / IDispatchEx?

    Recently I've found myself wanting to implement the IDispatchEx interface which would allow me to create objects 'on the fly'. The core benefit of which is for syntax sugar:



    Dim person as...
  6. Replies
    8
    Views
    490

    Re: Call VB6 module function dynamically

    @Zvoni - Though you are correct, I actually forgot to mention in my main post that I'm not interested in CallByName unless I can get a handle to the project itself like The Trick.

    @westconn1 -...
  7. Replies
    8
    Views
    490

    Re: Call VB6 module function dynamically

    Sorry, but this call convention you provided is far from dynamic. The real equivalent of what I'm after would be:


    VariantCopy myVariant, runFunc("myProject.vbp","myModule","c")



    Though you...
  8. Replies
    8
    Views
    490

    Call VB6 module function dynamically

    I think this is a long shot... But if I have a module named e.g. "mHello":


    Function a() as Variant
    a=1
    End Function
    Function b() as Variant
    b=2
    End Function
    Function c() as Variant
  9. Re: How to set a variant without VB6 default value?

    You are absolutely correct! Thanks!

    @Eduardo - This is for an API. Although you are correct I have this ability I would rather not unless I have to :)
  10. How to set a variant without VB6 default value?

    So I'm making a funky callback class for VBA. One of the core difficulties is getting around the syntax sugar set/let. I.E.

    if vartype(result) = vbObject then
    set FuncReturn = result
    else
    ...
Results 1 to 10 of 10



Featured


Click Here to Expand Forum to Full Width