Pass pointer parameter to axtiveX.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Laszlo Fust

    Pass pointer parameter to axtiveX.

    Hello!

    I have a problem with C#.
    I have a method in an activeX:

    func(long FAR* pRes, long lBufSize, long FAR* lpNeeded)

    This activeX have written in VC 6.
    I should call this method in a C# application, but I don't know
    the type of the first parameter. I tried many ways, but I always
    get StackOverflowEx ception error.
    Can anyone helps me?

    Thanks,
    Laszlo
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Pass pointer parameter to axtiveX.

    Laszlo,

    What is the managed type representation in .NET? It should be something
    like this:

    func(ref int pRes, int lBufSize, ref int lpNeeded)

    What do you have?


    --
    - Nicholas Paldino [.NET/C# MVP]
    - nicholas.paldin o@exisconsultin g.com

    "Laszlo Fust" <fustl@freemail .hu> wrote in message
    news:4549e574.0 309160631.25545 e47@posting.goo gle.com...[color=blue]
    > Hello!
    >
    > I have a problem with C#.
    > I have a method in an activeX:
    >
    > func(long FAR* pRes, long lBufSize, long FAR* lpNeeded)
    >
    > This activeX have written in VC 6.
    > I should call this method in a C# application, but I don't know
    > the type of the first parameter. I tried many ways, but I always
    > get StackOverflowEx ception error.
    > Can anyone helps me?
    >
    > Thanks,
    > Laszlo[/color]


    Comment

    Working...