basic console app without .net, is it possible in c#.

  • Thread starter Thread starter soler
  • Start date Start date
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top