Convert Visual C++ console project to Forms Project (Visual Studio 2010) - visual-studio-2010

In Visual Studio 2010, I have a CLR C++ console project that I would like to change into a Forms project, so that I can add a form and use the designer and whatnot. Is there a good way to do this?

Compare the old project templates then make necessary changes like adding references to winforms and changing the entry point function from winmain back to main.
See http://jiangsheng.net/2012/12/17/how-to-migrating-a-clr-console-visual-c-project-to-windows-forms/ for details. This article is written for 2012 but should work in 2010.

Related

Opening a VB6 project [duplicate]

I want to open a program (written in Visual basic 6) to be open in Visual Studio.net. Please guide, how could I do that?
While trying to open VB6 (.vbp file) program directly from the OPEN project option in visual studion.net, I was getting this error,
"Visual Basic 6 (.vbp) files cannot be opened in Visual Studio"
I am trying to open in VS 2010.
Visual Studio 2010 does not support VB6 projects. See the link here
From the msdn documentation:
Visual Studio 2010 does not provide tools for upgrading applications and projects from Visual Basic 6.0. If you want to upgrade your project from Visual Basic 6.0 to Visual Basic 2010, you can use the upgrade tools provided with earlier versions of Visual Studio and then upgrade the project again in Visual Studio 2010.
Visual Basic Tools for Visual Studio
There's a plugin called Visual Basic Tools for Visual Studio that provides the following features:
load classic VB workspace- and project-files and offers quick access to the extension´s options
integrates with the solution explorer and the code editor having support for syntax highlighting, basic outlining (allows to expand/collapse methods, properties and types) as well as navigation bar support.
Classes, Types, Modules, Forms and Controls can be inspected using the Object Browser and Class View.
From the reading, it's unclear if you can actually build the project, though it does say:
The import tool creates a new solution and MSBuild compatible projects.
Links to the plugin by VS Version
2012-2013
2015
2017
RAD Basic
There is also an independent IDE called RAD Basic that claims the following features:
New and modern IDE (Integrated Development Environment) with form designer supporting drag and drop, code completion, refactoring tools, etc.
RAD Basic Compiler: Compiler 100% compatible with your VB6 project (vbp, frm, bas and cls files). Generate native executables (exe and ocx) in both 32-bit and 64-bit.
RAD Basic Forms: Reimplementation of common VB6 controls and components supporting 32-bit and 64-bit.
etc.
Speaking from my experience, it's not easy to open a Visual Basic 6.0 project in any versions of Visual Studio above 2008.
Although 2008 and below versions do provide an automatic function to convert Vb6 code to the VB.net framework. But, the problem starts after the conversion - it can skip some code, add functions/variables on its own, or modify the functional behavior on its own, and with that the VB.proj will be created with errors and you will not be able to open it anywhere as a solution file. The same with any 3rd party tools.
If you want to open the VB6 code try Visual Basic 6.0 Portable edition.
But headache will still follow you there, please refer this link
Installation of VB6 on Windows 7 / 8 / 10
Make sure you are clicking on the project file itself... Right click on the file and select "Open With" and select your visual studio program. It may need to be converted and if so, it will prompt you to convert the project.
Thanks!
Download Visual Basic Tools for Visual Studio,allows to work with classic VB workspaces and projects

f# visual studio code gui How using open System.Windows.Forms on Mac osx

I want to make an gui form in f# visual studio code or f# visual studio.
From How can I enable a WinForms or WPF project in F#?! but i don't see "...This will be a console application, so next select the project properties and change the Application | Output type from Console Application to Windows Application..."
This image
Likewise Creating an F# WinForms application but it doesn't work.
It opens with visual studio (not code).
I see just this but doesn't want to go out
enter image description here
I have both visual studio and visual studio code.
Thanks for your help
You are using Visual Studio for Mac, which is quite different than normal Visual Studio for Windows. It was formerly named Xamarin Studio and you might get more useful search results if you use the old name.
To change the project type, you'll need to go to project options. Here is a documentation with screenshots on where this is located - it does not show F# project, but it will be in a simlar place.
Also note that you can reference System.Windows.Forms from a console application and use it there too - so if you cannot figure out how to change the project type, you can start just by creating forms from a console application - and then change the type later.

How to open project VS 2015 with VS Code?

I have developed a project (AngularJS, NodeJS, ExpressJS) with Visual Studio 2015 (.sln) in Windows, and want to know how I can open it with Visual Studio Code in iOS.
Thanks!
Visual Studio Code is meant to be a powerful editor and not a full IDE. So, it isn't designed to work with project files (.sln or .csproj).
If you want to use your project created in Windows, then create a .NET Core application. See, more information on the .NET Core.
Also, check out this explanation by Benjamin Pasero.

Use Visual Studio for custom script language

We are using a commercial software that has its own scripting language with which you can customize the product. It is very tedious to write code in it without any help from an IDE and it has its own compiler.
Is it possible to use Visual Studio and create an environment for me to write scripts in this language and get the help of intellisense and syntax highlightning and other good things you find in an IDE? Ideally I would like to bind a button in VS to launch the external compiler and compile the code so I don't have to switch windows all the time as well.
If this is possible is it a very hard thing to accomplish?
Yes, this is certainly possible. You need to create a Visual Studio Shell add-in with custom language services and text editors. You need to install the appropriate Visual Studio SDK and then you'd continue to:
Create a custom Editor and/or designer
Add a language service
Add Project and Item templates
You're allowed to ship Visual Studio Isolated Shell with your application (license required and there are some limitations) so that your users don't need to have Visual Studio Professional installed.
There are a number of open-source projects that provide a custom editor, language services etc in Visual Studio, these could provide a nice place to research how things are done, next to teh Visual Studio SDK documentation:
PyTools, which is a Visual Studio editor for IronPython
Phalanger, which contains a Visual Studio editor for PHP
PoShTools, a Visual Studio service for PowerShell editing right inside Visual Studio
You'll probably want to dig into MsBuild as well, since Visual Studio will expect you to create a project file if you want to edit a collection of files and compile them. MsBuild could in turn call your own compiler, like it calls csc to compile C# code for example.
Creating Project Types

Using DLL's in Visual Studio 2010 C++ project

I am trying to use a DLL in a Visual Studio 2010 C++ project . I followed the directions here but http://msdn.microsoft.com/en-us/library/ms235636(v=vs.80).aspx I cannot seem to add references to my project.
When I open add reference there is no way for me to add any references, as shown below.
What am I doing wrong here?
You are using the wrong version of the tutorial. It is created for Visual Studio 2005 and you are using Visual Studio 2010. This is the correct version.
The problem here (I think) is that you didn't "add to solution" when creating the project that will utilize the dll file.
edit: or you might have forgotten to compile your dll

Resources