C#!!!!!!!!!!1

Hi,
I am a newbie in C# programming.( though was using COM,Win32 earlier!)
I try to explain the current problem, which I am facing-
1.I have a ATL dll(VS6) and a C# program(which refers to a web page...VS7).
2.I run C# CLR from this ATL dll.
3.So C# is caller program, which calls ATL dll's signatures.
4.Though I have added refernces to this ATL dll, in my C# prgram, but thread fails on ATL dll as well as C# program, as soon as it tries to enter in that dll.
.Above things are working fine if I use vb6 as client, instead of C#.

What might have been going wrong, lost and confused in this
Any help regarding this(with a small example) would be highly appreciated.
Thanks
TestHim




Answer this question

C#!!!!!!!!!!1

  • Hoppe

    Hi

    Are you using the correct data types when calling your dll's method via C#. Data types are different in the .NET world so where you may have been passing Long for example in VB6, you would now need to pass Int32. If this doesn't help, it would be helpful if you could post your dll's signature and your C# calling code.

    HTH


  • Jameslee20

    For this purpose even tried with addition of ATL's tlb as well as vb's tlb in C# program, even though references of these dlls are already added. what might have been cause

    TestHim



  • C#!!!!!!!!!!1