Thanks for following up on this and posting the solution.
I had exactly the same problem with a C# application, compiled in Visual Studio 2008 on 64-bit Windows 7 RTM.
I had to do two things to get my project to work:
(1) As you point out, change the target platform from "Any" to "x86".
(2) Instead of creating the AxTws control dynamically, I have to put it directly in my windows form (i.e. put it in the toolbox, then drag it onto my form).
I can't remember where I saw this discussion, but apparently if you create the control dynamically, initialization may not be carried out properly. That's why I have to do Step #2 as well.
I had exactly the same problem with a C# application, compiled in Visual Studio 2008 on 64-bit Windows 7 RTM.
I had to do two things to get my project to work:
(1) As you point out, change the target platform from "Any" to "x86".
(2) Instead of creating the AxTws control dynamically, I have to put it directly in my windows form (i.e. put it in the toolbox, then drag it onto my form).
I can't remember where I saw this discussion, but apparently if you create the control dynamically, initialization may not be carried out properly. That's why I have to do Step #2 as well.