hexagon logo

Need help with VB6 .Net

Upgraded my workstation to Windows 10, so VB6 is no longer an option for my PC-DMIS software efforts.

I've got Visual Studio 2107 now, and I've run into a problem using PC-DMIS collections. In a nutshell, vb6 .net doesn't recognize them as collections. I have to declare the PC-DMIS application as "Object" in order to be able to enumerate through the collections. I was told that this means it's doing "late binding" - who cares. I need intellisense because I'm a terrible typist. In the screenshot below, if I change the declaration of the "app" variable to type "Object", the compile error goes away, and the code runs fine. But I don't see this as a solution.

I'll also point out that the Microsoft's File System Object collections work just fine when used in the same manner.

Has anyone got the solution to this problem?


Parents


  • Hate to say it but I didn't have much time to look into it therefore I didn't have time to get it done 'right'.


    Oh, I didn't mean to imply that you did anything wrong. You found the solution and moved on. I did the same thing today. We've both got "real work" to do.

    Hopefully will find this soon and show us that everything is just fine, and all we needed to do was read the help file. Slight smile
Reply


  • Hate to say it but I didn't have much time to look into it therefore I didn't have time to get it done 'right'.


    Oh, I didn't mean to imply that you did anything wrong. You found the solution and moved on. I did the same thing today. We've both got "real work" to do.

    Hopefully will find this soon and show us that everything is just fine, and all we needed to do was read the help file. Slight smile
Children
No Data