visual-studio-2010

Unexplainable error “Please use the /MD switch for _AFXDLL builds”

别等时光非礼了梦想. 提交于 2020-01-24 21:13:29
问题 I use VisualStudio2010 and CMake 2.8.12.1. I created a CMakeLists.txt for a MFC project. MFC capability was done by following lines in the CMake file: add_definitions(-D_AFXDLL) #enables MFC set(CMAKE_MFC_FLAG 2) #use shared MFC library Furthermore the project will be build with MD as runtime library (default). But now I want my project to be build as MT (which also requires to specify static MFC library). So I replaced the lines above with: add_definitions(-D_AFXDLL) #enables MFC set(CMAKE

Renaming Group of Files Using Loop in Visual Basic

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-24 21:10:09
问题 I currently have these group of files I want to rename: C:\Users\tmedina\Documents\testenviroment\Testfolder\file1-1111.doc C:\Users\tmedina\Documents\testenviroment\Testfolder\file2-1111.doc C:\Users\tmedina\Documents\testenviroment\Testfolder\file3-1111.doc ... C:\Users\tmedina\Documents\testenviroment\Testfolder\file20-1111.doc I have a text box on my form where a I would enter a string of text which will replace the '1111' to whatever the string is in the text box field. So for example,

VS2010: VSIX installation doesn't deploy item templates inside it

倾然丶 夕夏残阳落幕 提交于 2020-01-24 20:15:11
问题 Given demo solution with two VSX-projects: 1. Add New Project -> Extensibility -> Item Template - "ItemTemplate1" 2. Add New Project -> Extensibility -> VSIX Project - "VSIXProject1" I did no changes in "ItemTemplate1", so it constains default item template (ItemTemplate1.vstemplate): <VSTemplate Version="3.0.0" Type="Item" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005"> <TemplateData> <Name>ItemTemplate1</Name> <Description><No description available></Description> <Icon

WinNT giving to much information. I need to narrow down to just Machine Names

馋奶兔 提交于 2020-01-24 19:32:09
问题 Dim de As New System.DirectoryServices.DirectoryEntry() Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click de.Path = "WinNT://*****".Replace("*****", ActiveDirectory.Domain.GetCurrentDomain.Name) Dim Mystream As Object MsgBox("Please choose the place you want the file") If savefileDialog1.ShowDialog() = DialogResult.OK Then Mystream = savefileDialog1.FileName Dim UserFile As String = savefileDialog1.FileName & ".txt" Dim fileExists As

How can i fix language for the grammar does not match the language of the speech recognizer error in vb

狂风中的少年 提交于 2020-01-24 18:17:19
问题 Hello in visual basic I am attempting to create a speech recognition system that can help me out with my life on the computer. I called my assistant Jarvis. For this project I imported system.speech.dll. And now im receiving this error: An error occurred creating the form. See Exception.InnerException for details. The error is: The language for the grammar does not match the language of the speech recognizer. Here is my code Imports System.Speech.Recognition Imports System.Speech.Recognition

visual studio does not copy assembly into gac

折月煮酒 提交于 2020-01-24 16:06:49
问题 I have a class library and a sharepoint project. I have added a reference to the class library in the sharepoint project and when I click deploy I don't see the class library assembly in the gac. I think this is not normal. can any please let me know how can I solve this issue without resorting to manual deployment? thank you. 回答1: You have to open the package in the package editor, go to Advanced, and add the class library's DLL there. It doesn't happen automatically just from adding an

visual studio does not copy assembly into gac

和自甴很熟 提交于 2020-01-24 16:05:06
问题 I have a class library and a sharepoint project. I have added a reference to the class library in the sharepoint project and when I click deploy I don't see the class library assembly in the gac. I think this is not normal. can any please let me know how can I solve this issue without resorting to manual deployment? thank you. 回答1: You have to open the package in the package editor, go to Advanced, and add the class library's DLL there. It doesn't happen automatically just from adding an

How to invoke a 32bit COM interop dll from VS 2010 Solution which is targetting 64 bit machines

允我心安 提交于 2020-01-24 15:02:08
问题 I am working on Windows client application using c#, have two projects in my VS 2010 solution, the start-up project and a class library which uses third party COM interop DLL.My desktop is 64 bit and all the client machines are 64 bit as well. If I keep the start-up project as any cpu in (build settings) and x86 for the second project which invokes the COM DLL, I am getting the following error: Could not load file or assembly ... or one of its dependencies. An attempt was made load a program

Adding a Menu Button into VS2010 TFS Query Result or Work Item bar

元气小坏坏 提交于 2020-01-24 11:45:43
问题 I am trying to add button(s) to the Visual Studio / TFS2010 Work Item query results menu bar and also to the menu bar shown for individual Work Items (see image below) - is that actually customizable & doable and if so, how? 回答1: I would take a look at this post: TFS 2010 - Adding a menu item to the Completed Builds context menu in the Build Explorer It discusses the steps you need to take to add menu items to context menus. 回答2: To answer my own question (as the one by NGM was helpful but it

Visual Studio 2010 Database Builds Drop If Exists

核能气质少年 提交于 2020-01-24 09:47:07
问题 Is there any way i can change the "Alter" statements for tables and procs to "Drop if exists" when the build spits out the scripts?? Using Visual Studio 2010 Ultimate. TFS 2010. 回答1: I believe the code you are referring to is generated from a template. Look here... C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\Templates\Database Project Items and the modify these two files. New Table Script.sql New Stored Procedure Script.sql 回答2: After the procedure has been created for the