W
Willy Denoyette [MVP]
Arne Vajhøj said:There is no visible window. I delete the form and change project
startup to Sub Main before building.
I don't know what is going on behind the scene. But from what
is visible it looks like a console app.
Well, "under the covers", the VB6 RT initializes it's main thread to enter
an STA, and creates a Top Window and a child Window. This is great, you can
create an instance of FSO (a COM component) to run in an STA, However, the
problem with this is that the code in Main runs before you enter the message
loop, which means that you are effectively blocking the message loop. No big
deal I would say, after all you are a "console application", but be careful
with what you do with COM or you may deadlock (an STA thread must pump the
message queue!).
Willy.