I have some VB6 code that I made a ActiveX.dll with and I cannot get it to work properly. If I make a very simple activex dll with a msgbox using binary compatiability and using tlbimp to convert it to .net it works fine. I am trying to pass a value back from the Activex dll when a certain event occurs but when I try to type Public Function Example() as integer or Public Function Example(ByVal x as integer) it gives me a compatibility error and says that I should change it.

Any ideas?

Thanks
J