Is it possible to create a VB6 application in Visual Studio 2010 for creating COM applications?
No, this is not possible. VB6 application cannot be created in any version of Visual Studio beyond Visual Studio 6.0 SP6.
You can, however, write assemblies in .Net (any version) that are "Com visible."
You can set an assembly as "Com Visible" by checking the "Make COM Visible" checkbox on the project settings dialog in whichever version of Visual Studio (that supports .Net) you choose.
Related
I have to do small project of creating rectangle and circle which will change it's color using MFC application wizard.
I tried installing VS 2010 express for it and i do not find any MFC application wizard in it.
please see this for example http://prntscr.com/42ps8k .
How to create MFC poject in VS 2010 c++ express ?
If not possible in express then what link should i follow (i mean what sequence of installations should i do to achieve my target) ?
Express editions do not include MFC.
Use Visual Studio Community edition, it has MFC support.
I want to create a C++ Win32 Application project in Visual Studio 2008, but I don't have that option (as in comparison to Visual Studio 6.0). How can I get that option back or create an equivalent project?
The Option in VS 6.0 looks like this:
Whereas it's missing in VS 2008:
In VS 2008, choose the "Win32 Project" wizard to generate the equivalent of a VS 6 "Win32 Application".
I have .NET 3.5 web application which uses some COM dll created in VB6.
I have source code for both. Also I have pdb file for the COM dll.
I would like to load the VB6 dll code inside Visual Studio 2010 for debugging.
I am able to step into dll code from VS If I loaded the COM app in VB6 IDE.
Since I am new to VB, debugging using VB6 IDE is bit tedious for me.
So I wanted to debug the COM app code inside Visual Studio 2010.
I followed the instructions in Robgruen's Blog
The problem is VS2010 automatically creating Interop dll for the corresponding COM dll,
and It uses the Interop dll only. While debugging when I try to manually load the Symbol file for the COM dll(let's say MyComApp.dll) It fails and VS is instructing me to load Interop.MyComApp.pdb file. But I have MyComApp.pdb only.
How do I make this work?
You can not debug VB6 code in Visual Studio 2010 at any level higher than the compiled assembly code.
You can however convert your VB6 dll project to VB 2010 then use it in Visual Studio 2010.
Just drag and drop your VB6 project to Visual Studio 2010 (drag project to icon of VS 2010 then drop) and upgrade wizard will automatically convert it.
Or just use Artinsoft programs.
Good Luck! :)
My application uses some dll which have been developed using MFC VS 2005. My current application is built using VS 2008 VC++dot net. How can i get the installer to include the Visual c++ runtime libraries???
In a Visual Studio setup project you can add the Visual C++ Redistributables as prerequisites:
right-click your setup project in Solution Explorer
click Prerequisites button
select the prerequisites you want to include
I was hoping there would an option somewhere that would just let me open my VS 2008 projects and continue working in .Net 3.5 - while using some of the neat new VS UI enhancements.
Yes, Visual Studio 2010 allows you to target previous versions of the CLR/.NET framework at the project level.
When you open the Visual Studio 2008 project file in Visual Studio 2010 it will convert the project file for you. Once this is done, it will be smart enough to target the proper framework and runtime version for you (.NET 3.5 and CLR 2). If it doesn't, you can change this yourself on the property sheet for the project.