Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I build a VB6 Console App

I did some googling to try to answer this question but even after that I'm not quite clear about something. Is it possible to create a console app from VB6?

I've got a VB6 app that doesn't put up a window. I always assumed that it was a console app. However, I want to be able to use the Windows API SetConsoleCtrlHandler function from within it. I believe that with C++/MFC apps you have to set a linker switch to create a console app. And one of my fellow developers told me that VB6 doesn't create a true console app and therefore this would not work. So is it possible to create a console app that Windows will recognize as a console app from VB6?

Platform: Windows XP SP2

Development Platform: VB6

like image 625
Onorio Catenacci Avatar asked Nov 13 '08 13:11

Onorio Catenacci


People also ask

What is a console application in Visual Basic?

Visual Basic is a type-safe programming language that's designed to be easy to learn. A console app takes input and displays output in a command-line window, also known as a console. In this tutorial, you learn how to: Create a Visual Studio project. Run the default application.

Is console application easy to develop?

Creating a console application is more straightforward than building an application that has a rich user interface. You do not need to know or use any user interface languages, tools or frameworks. You can implement a console application using simple C# programming.

How do I get the console app in Visual Studio?

Open Visual Studio, and choose Create a new project in the Start window. In the Create a new project window, select All languages, and then choose C# from the dropdown list. Choose Windows from the All platforms list, and choose Console from the All project types list.


1 Answers

Yes. It's also possible to create totally headless applications (which I've done a few times in the past). This link gives an example with a code snippet.

like image 52
ConcernedOfTunbridgeWells Avatar answered Oct 15 '22 14:10

ConcernedOfTunbridgeWells