w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to move windows forms from Visual Studio 2010 to Visual Studio 2012
You should be able to just copy the Form files (TheForm.cs and TheForm.designer.cs) to the new project, then add them to the project. Note that you will also need to move any files that form depends upon (if any) before it will work properly.

Categories : Forms

Visual Studio not using Visual Studio Command Prompt for post-build events
The easiest way is probably just call out to the thing the normal VSXXXX command prompt uses: Ex: CALL ""%ProgramFiles(x86)%Microsoft Visual Studio 10.0VCvcvarsall.bat"" x86 (edit: updated as per Hans's comment)

Categories : C#

Using static library from Visual Studio 2008 with Visual Studio 2010
If getting a VC2010 version of the library is out of the question, then you will need to build a DLL using VS2008 that offers the functionality in the VS2008 static library. You will probably not be able to use C++ linkage to this DLL and certainly will not be able to pass std::string directly between the DLL and your main application. This is because the memory layout/interface is different and you will end up with ODR violations and crashes etc (that's if you can even compile/link it that way without tons of errors). So, you'll need to craft a C style API that the DLL exposes for use by your main VS2010 application. Strings will need to be passed as c-style const char* or const wchar_t* strings, or some other struct/opaque pointer. If you can build the DLL in such a way that it is

Categories : C++

will visual studio 2012 projects open in visual studio 2010
Depends on what features you have in your 2012 projects. Some of the 2012 features will not open in 2010 and will therefore need upgrading. To quote Microsoft: "If you use both Visual Studio 2012 and Visual Studio 2010 SP1, you can create and modify projects and files in either version as long as you don't add features that require Visual Studio 2012." More details on the features that are not supported in 2010 can be found here.

Categories : Dotnet

64 bit exe crashing outside visual studio but working inside visual studio
You can try comparing the environments between visual studio and the default environment. Dependency walker should identify any missing DLLs.

Categories : C++

Visual studio issues after installing visual studio 2013
In order to build windows 8 apps in visual studio 2013, you must be using windows 8.1. (defined here). This is possibly the issue. You also wouldn't see the windows sdk include path because the wdk would be uninstalled. I would recommend one of two things get visual studio 2012 again, and download the windows 8 sdk get windows 8.1, then install visual studio 2013, and use the windows 8.1 sdk I know, its quite silly.

Categories : Visual Studio

Open a Visual Studio Solution with a Visual Studio Add-in
You should use the ExecuteCommand to execute the standard File.OpenProject command. Similar to using the File>Open>Solution. Something like this will do in C#: string path = @"C:UsersxyzDocumentsVisual Studio 2010ProjectsMyAddin1MyAddin1.sln"; path = """ + path + """; _applicationObject.ExecuteCommand("File.OpenProject", path); Which translates to VB.NET: Dim path As String path = """C:UsersxyzDocumentsVisual Studio 2010ProjectsMyAddin1MyAddin1.sln""" DTE.ExecuteCommand("File.OpenProject", path) If you would like to know whether the command has finished, you should create an eventhandler for the command.

Categories : Vb.Net

Why is it faster to attach the visual debugger to my program than to run it directly from visual studio?
Visual inserts plenty of tests into your executable at runtime when you run it into the debugger: Heap corruption checks Stack corruption checks Mem leaks checks some even more subtle, especially if you run CRT It does so by inserting a custom memory allocator library that supersedes the standard one. All your calls to new, delete and all your stack operations (entering/exiting a function) are watched... So yeah, for performance analysis, don't run into the VS debugger. If you want to unroll what's happening in your code, you can take a look at the answer here: Is there a good Valgrind substitute for Windows? Especially the second answer that has interesting pointers. One of the tools suggested is very useful: http://www.codersnotes.com/sleepy

Categories : C++

Can you convert Visual Studio 7.10 project to Visual Studios 2012?
Converting from an older version may cause problems, here and here you can find more about converting from an older version. You can also try to make rebuild the code manually, you can rewrite the project in a newer version by yourself and this will also help you understand the code.

Categories : C++

Visual Studio 2012 "Visual C# class" template location
I'm not entirely sure if this is the same with VS 2012, but I think you can tell VS to regenerate the cache using the command devenv /installvstemplates (provided you run the command as administrator). More complete explanation (for VS 2010) here: http://ericsowell.com/blog/2007/5/22/how-to-edit-visual-studio-templates

Categories : C#

How to install Visual Basic in Visual Studio ultimate 2012?
Run the installer again or go to Control Panel > Programs > Programs and Features, find Visual Studio 2012, press Change and select Visual Basic from the install options when prompted. Edit: It should ask you on first run which language you want as your default. To reset this you'll need to: Open Visual Studio Go to Tools > Import and Export Settings from the menus, Select the option to reset all settings, press Next, Select Visual Basic Development Settings when prompted to select a default collection of settings. This will set Visual Basic to your default language.

Categories : Visual Studio 2012

Read write privileges between Microsoft SQL Server Management Studio and Visual Studio
I ended up solving it on my own. The problem had to do with privileges. The database was on my local machine with limited rights. SSMS was using a different account to access the file than VS.I had to go to the MDF file and LDF and add rights to some users.

Categories : SQL

SQL Server Management Studio equivalent for CTR+L keyboard Shortcut from Visual Studio
Just hit ctrl+c with no text selected - this copies the current line; likewise ctrl+x with no text selected cuts the current line.

Categories : Visual Studio

COM in a Windows form EXE using Visual Basic/Visual Studio 12
This started as a comment but just kept growing, hopefully i am not off track ... You can only register a dll. So the short answer would be to add a class library to your project and put the com class in there. This would allow you to share the functionality of the class, but not the same instance of that class. I think your problem is that you are trying to establish Interprocess Communications. My immediate suggestion is not to do that, at least at first. For a start you could have your com app interface with a .net class library which would log data. You could then have another project with a .net executable that displays the log, and updates periodically. Now you have .net code on both sides of the fence and can start investigating ways to get them to talk to each other. The hard

Categories : Vb.Net

Visual Studio - Run the project outside of Visual Studio
you would need to either build statically or provide the required dll files. the page at http://www.tapkaa.com/2013/05/what-dll-files-are-required-to-run-an-application-developed-with-visual-c/ tells how you can find the missing dll files.

Categories : C++

Removing Visual Studio 2010's upgrade of SP1 after removing Visual Studio 2010
Try Revo uninstaller. This software can do a deep analysis of installed software. IT first try to uninstall the product using the official uninstaller, then seek remaining files and registry keys. Use with cautious, because it can remove more than necessary.

Categories : Visual Studio 2010

What is the Visual Studio DTE?
DTE = "Development Tools Environment" Essentially, I understand it to be the part of Visual Studio that lets you interact with the computer itself. This can control things such as active windows and applications.

Categories : C#

Why do I see changes in Git Status and not in Visual Studio?
My first guess (as discussed in the comments above) is that you have different whitespace handling configurations in the two different git programs you're running. You'll need to figure out which one is right and fix the other one to match.

Categories : GIT

IPP and Visual Studio 2012
The Plugin for Visual Studio has not been updated for Visual Studio 2012, the last supported version is 2010. The code that the plugin generates is available as templates and sample code as well. It includes the Oauth grant and handler pages, as well as the OpenId handlers. regards, Jarred

Categories : Azure

Using Visual Studio with TWL/Nitro SDK
It should be pretty easy, I wrote a little wizard that creates projects for use on the devkitPro toolchain (supports the DS among others) that could probably be modified for use with the official devkit. VS 10 is a bit more friendly with this sort of setup but it works on VS12 as well. http://pern.drunkencoders.com/ The wizard is here and you will have to install it then open and edit the javascript files...no access to the official devkit so can't comment on how much of an undertaking this might be. You may simply be able to edit the libnds template makefiles to point at the official toolchain and the wizard will just work as is (other than having to create a debug association). There are also some good debugging tools if the toolchain that is based on gcc that will let you debug dir

Categories : Visual Studio 2010

XNA for Visual Studio 2013
XNA is no longer supported. Windows recommends MonoGame. This was actually done a while ago. And I've never seen it included. For me with 2010 Ultimate it was a separate download. From here: [According to a leaked email] "The XNA/DirectX expertise was created to recognize community leaders who focused on XNA Game Studio and/or DirectX development. Presently the XNA Game Studio is not in active development and DirectX is no longer evolving as a technology. Given the status within each technology, further value and engagement cannot be offered to the MVP community. As a result, effective April 1, 2014 XNA/DirectX will be fully retired from the MVP Award Program." As others have commented, it may go well for you regardless of the above facts. I wouldn't count on a "Previe

Categories : Dotnet

Git Extension for Visual Studio
The message is about uncommitted changes, not real merge conflicts. Learn to NOT merge or do any fancy git stuff with uncommitted changes. Before an operation commit your changes or stash them. Even if conflict like that is not flagged it's likely not what you really wanted to do. In GE there's an option to show worktree changes (ignore the "slow" warning unless you work on a giant repo and regularly have hundreds of changed files) and get used to look at it in browse. Also the "Commit" button shows a count, that shall be 0 when you incite a merge. If in the middle of your work you want to synch (and thought again and have a really good reason, honest), use stash, then pull (or rebase), and after that is done, unstash your work. Real merge conflicts are best handled using visual merg

Categories : GIT

Visual Studio 2010, PCL, Qt and 32-bit and 64-bit: How?
Yes you can. I have QT 4.8 and 5.0.2 on my machine. The environment variable QTDIR points to the ne you want. If you use Visual Studio and the QT addin you can have multiple QT version changeable by the QT options dialog.

Categories : Windows

Bug in the Visual Studio WPF designer?
It appears the designer has trouble resolving MergedDictionaries that are defined in the code-behind at design-time. An even worse example can be seen by moving the ResourceDictionary to before your Initialize. public UserControl1() { this.Resources.MergedDictionaries.Add(new ResourceDictionary() { Source = new Uri("TempProject;component/Resources.xaml", UriKind.RelativeOrAbsolute) }); InitializeComponent(); } In this case, the DynamicResource even fails to resolve at design-time, indicating the design-time view is not necessarily calling the constructors as you may expect. I tested this with Visual Studio 2012, so this behavior has not changed since 2010. in terms of your original test code, note that the StaticResource does successfully bind as expected at run-time (the red

Categories : Dotnet

Is Visual Studio C++ interpreted like C#?
C# is not interpreted. Also notice that compiling from C# - or any other language - to IL should be see as a one way trip. You can decompile an assembly into IL and try to translate it back to C#. As Ben and Trant pointed out in the comments, some of the original code may reappear the resulting code, but the more features of the language you use, the more the resulting code will differ from the original.

Categories : Dotnet

How to use PhoneGap with Visual Studio
You can use VS to edit the html, css, and javascript files, but I don't believe there are any VS project templates available. At least I've never seen any. But, you won't be able to compile and deploy. The templates for Android for instance are eclipse project templates since phonegap is building a java application in order to deploy to android. If you want to develop for android, follow the getting started guide from Phonegap ( I can't get you a link right now due to firewall issues). The files you put in the www folder will be the html, css, and javascript files for your project and you can use anything you want to edit them, including VS.

Categories : Visual Studio 2012

visual studio Dll and Matlab
Example: Take the following files, and build a DLL in Visual Studio. helper.h #ifndef HELPER_H #define HELPER_H #ifdef _WIN32 #ifdef EXPORT_FCNS #define EXPORTED_FUNCTION __declspec(dllexport) #else #define EXPORTED_FUNCTION __declspec(dllimport) #endif #else #define EXPORTED_FUNCTION #endif #endif simple.h #ifndef SIMPLEH_H #define SIMPLEH_H #include "helper.h" #ifdef __cplusplus extern "C" { #endif EXPORTED_FUNCTION int sq(int x); #ifdef __cplusplus } #endif #endif simple.cpp #define EXPORT_FCNS #include "helper.h" #include "simple.h" int sq(int x) { return (x*x); } Copy the generated simple.dll and the header files simple.h and helper.h in the current directory. Then in MATLAB: >> loadlibrary('./simple.dll', './simple.h') >> libisloaded simple ans =

Categories : C++

Visual Studio Solution
A lot of files can exist in folders and subfolders under the solution (sln file). not all of these files are required to participate in projects. each project file (vbproj / csproj) maintains the inventory of files included in the project. you need to both place your files at appropriate places and update the vbproj file appropriately. As it happens, the vbproj files are not simple indexes, they are full blown build scripts. they have a pretty intricate file format (XML) and a convoluted semantics. Appending nodes in that file works fine if you follow the existing pattern. but i suggest you look up MSBUILD first. Please note that if the project you are mutating programmatically, is open in visual studio, then there are strong chances of inconsistency. make sure the project is not open in

Categories : Vb.Net

Run Visual Studio in memory?
Start a ram disk, such as AMD RamDisk. And install it or copy it to there. It should have an option to backup the ramdisk on shutdown. [AMD Ramdisk][1] http://www.amd.com/us/products/desktop/radeon-memory/Pages/ramdisk-overview.aspx Alternatively, buy an SSD which will have a great performance increase over your HDD, and doesn't have the downsides of running stuff from ram (ie losing data on power loss, having to backup to hdd at shutdown etc).

Categories : Visual Studio 2012

x64 if Visual Studio C++ 2012?
Oh well, this question is a bit hard to understand for me. It looks, like MSalters suggested, that you mix up some terms. The source of your problem is probably just the missing Visual Studio Redistributable on the target computer. You can get it here. Not that this is the redistributable for VS 2012 Update 1. There are also different versions for x86 and x64 (also arm). Depending on what your output is, you have to deliver the right version of the redistributable with you programms.

Categories : C++

Visual Studio Templates
Go to File - new project- this will give you this window. Then click on online templates. This link tells you how to find and install templates. Article on Visual Studio 2010 templates. Here is another link to the MSDN forums, where are question is asked about installing template on VS 2010 Express, you may find it useful.

Categories : C#

Using a DLL created in Visual Studio with Qt
Yes, it is possible and I have done it before. I am assuming you are talking about a Win32 DLL, probably written in C. Using any language other than C could be tricky. I don't remember the exact procedure but here is the outline: Configure your QT app to link to the .lib (import library binary) for the DLL. I think you need to edit the main QMake config file. Add an include in your Qt app for the DLL's header (.h) file. Add a Qt post-build step to copy that DLL to your app directory so it can be found and loaded at runtime.

Categories : Qt

Visual Studio SDKs
You will have to install an update to get this directory on your machine. It is used to create apps that still run on XP, the original release of VS2012 did not support that. Which requires at least Update 2, you should however strongly favor Update 3 to avoid a bug. It should have already reminded you that this update is available. You can go here to kick-start that. Do make sure your machine boots the 64-bit version of Windows or you won't be able to test your program.

Categories : Windows

How do I connect an SDK to Visual Studio?
There should be some documentation on the Leap Motion website, if it's compatible with Visual Studio. Also, check out this link, it might help: http://jviaches.blogspot.com.au/2013/02/leap-motion-development-connection-and.html

Categories : C++

Visual studio not recognized css
Thanks daniele i added this in my web config and problem resolved: <system.webServer> <staticContent> <mimeMap fileExtension=".less" mimeType="text/css" /> </staticContent > </system.webServer>

Categories : Asp Net

Is there a way to restart FSI in Visual Studio?
Right click in the F# interactive window, and select Reset Interactive Session. Cancel Interactive Evaluation should also work for you if you just want to cancel the current running function but to keep previous results.

Categories : Visual Studio

Using PictureBox in Visual Studio
Check this out: Programatically using a string as object name when instantiating an object. By default, C# does not allow you to do that. But you can still use a string to access the image you want from a Dictionary. You can try something like this: Dictionary<string, Image> nameAndImg = new Dictionary<string, Image>() { {"pic1", Properties.Resources.pic1}, {"pic2", Properties.Resources.pic2} //and so on... }; private void button1_Click(object sender, EventArgs e) { string name = textBox1.Text; if (nameAndImg.ContainsKey(name)) pictureBox1.Image = nameAndImg[name]; else MessageBox.Show("Inavlid picture name"); }

Categories : C#

Can you create a .exe with Visual Studio
is there a way I could create an .exe that doesn't require all the excess files like you would with a JAR file? Partly. If you're using VB.Net, you will always need to verify that the machine where you run your executable has the .NET Framework version which you target. Most systems already have some .NET versions installed, which will allow your .exe to "just work" (provided you don't use any libraries apart from the framework). Targeting an older .NET framework (like 3.5) will allow your exe to work on any system with .NET 3.5, without any other files.

Categories : Vb.Net

Not able to run Visual Studio Project
In the properties of your web project you can see the start options which has a server option. Also if you right click your web project you can see option to use IIS express or dvelopment server.

Categories : Asp Net

Visual Studio misbehaving
Follow these steps to delete old files that you no longer need: Search the Registry (Local User) - go down to Microsoft > Visual Studio 12 > MRUList - delete relevant entries in there. Delete the actual Projects and Websites in their respective folders (if you no longer need them) - otherwise, rename them. Open the IIS folder in your Documents Library folder, then delete the files in there (this may cause problems for you - but everything is fine for me). Open the JumpList for your Visual Studio, delete everything in the list. So basically - delete everything.

Categories : Visual Studio



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.