visual-studio-2012

How to set environment variables in Visual Studio 2012?

橙三吉。 提交于 2020-02-21 10:50:13
问题 How do I set environment variables in Visual Studio 2012? For example, I need to set this: $(MyDir) = "c:\my_dir" 回答1: Open the project in a text editor, and into the top existing tag add <PropertyGroup> <MyDir>c:\my_dir</MyDir> ...(leave existing ones here)... </PropertyGroup> There's probably some way to do this in the UI, but I only ever edit the files by hand nowadays. And its a different UI for every language(!) 来源: https://stackoverflow.com/questions/16718193/how-to-set-environment

error in visual studio 2013 (compilation and running code)

早过忘川 提交于 2020-02-08 09:10:52
问题 I have visual studio 2013 installed but each time I try to compile the code or run it. When I compile it displays this: Error 1 error MSB4014: The build stopped unexpectedly because of an internal failure. System.Text.EncoderFallbackException: Unable to translate Unicode character \uDF10 at index 949 to specified code page. at System.Text.EncoderExceptionFallbackBuffer.Fallback(Char charUnknown, Int32 index) at System.Text.EncoderFallbackBuffer.InternalFallback(Char ch, Char*& chars) at

Selecting an Item or column in a Repeater and changing the Data

血红的双手。 提交于 2020-02-07 06:44:05
问题 I am trying to change the data in my repeater so far I am cycling through each row by Item and AlternatingItem but I want change the values in the last column so that the value is to two decimal places. I have a basic Connection to a stored procedure which populates the repeater code below: connection to the stored procedure: SqlDataAdapter da = new SqlDataAdapter("Stored Procedure", conn); da.SelectCommand.CommandType = CommandType.StoredProcedure; da.SelectCommand.Parameters.Add(new

VS Developer Express for Windows Phone new project shows XamlParseException

浪子不回头ぞ 提交于 2020-02-07 04:08:29
问题 I recently installed windows 8 along with Visual Studio Express 2012 for Windows Phone. However, if I start a new Windows Phone App project (7.1, although 8 has the same issue) and open the MainPage.xaml file, an error appears in the designer window as follows: XamlParseException: Cannot find a Resource with the Name/Key PhoneBackgroundBrush [Line: 47 Position: 111] The MainPage.xaml file is as follows: <phone:PhoneApplicationPage x:Class="PhoneApp1.MainPage" xmlns="http://schemas.microsoft

VS Developer Express for Windows Phone new project shows XamlParseException

妖精的绣舞 提交于 2020-02-07 04:08:06
问题 I recently installed windows 8 along with Visual Studio Express 2012 for Windows Phone. However, if I start a new Windows Phone App project (7.1, although 8 has the same issue) and open the MainPage.xaml file, an error appears in the designer window as follows: XamlParseException: Cannot find a Resource with the Name/Key PhoneBackgroundBrush [Line: 47 Position: 111] The MainPage.xaml file is as follows: <phone:PhoneApplicationPage x:Class="PhoneApp1.MainPage" xmlns="http://schemas.microsoft

Add resources (sound files) to exe? [MS Visual Studio 2012]

*爱你&永不变心* 提交于 2020-02-06 07:37:51
问题 I currently have a "data" folder from which I load the .wav sound files that I use in my application. I load them like this sf::Soundbuffer ss; ss.loadFromFile("./data/sfx/sound.wav") Is is possible to somehow integrate all those sound files into my .exe so I don't have to distribute them additionally? Kind of like statically linking libraries instead of dynamically so there's no need to provide them as separate dlls (I do that already). Is it possible and if yes, how would I load them then?

Add resources (sound files) to exe? [MS Visual Studio 2012]

夙愿已清 提交于 2020-02-06 07:37:07
问题 I currently have a "data" folder from which I load the .wav sound files that I use in my application. I load them like this sf::Soundbuffer ss; ss.loadFromFile("./data/sfx/sound.wav") Is is possible to somehow integrate all those sound files into my .exe so I don't have to distribute them additionally? Kind of like statically linking libraries instead of dynamically so there's no need to provide them as separate dlls (I do that already). Is it possible and if yes, how would I load them then?

Visual Studio 2012 Attach to process dialog does not have Show Processes from all sessions

与世无争的帅哥 提交于 2020-02-05 05:24:06
问题 I am using Visual Studio 2012 Pro on Windows 8 Pro. What I want to do is attach to w3wp so I can debug a website but w3wp isn't showing in the process list. In every example, I can find it shows both Show processes from other users and Show processes from all sessions ticked. However when I launch the Attach To Process dialog, I don't have the Show processes from other sessions tick box. Anybody please let me know how I can get that tick box to appear? I've tried running VS as administrator

Installing OpenCV in Visual Studio 2012

杀马特。学长 韩版系。学妹 提交于 2020-02-03 10:38:50
问题 Im trying to install OpenCV to work with Visual Studio. I'm using the 2012Pro version but I think it should be the same as vs10. I was following this tutorial: http://docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html#windows-visual-studio-how-to I have A Solution with only one Project And with only one file. For testing purposes I used the same code as in the tutorial. // Video Image PSNR and SSIM #include <iostream> // for standard I/O

Installing OpenCV in Visual Studio 2012

牧云@^-^@ 提交于 2020-02-03 10:38:09
问题 Im trying to install OpenCV to work with Visual Studio. I'm using the 2012Pro version but I think it should be the same as vs10. I was following this tutorial: http://docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html#windows-visual-studio-how-to I have A Solution with only one Project And with only one file. For testing purposes I used the same code as in the tutorial. // Video Image PSNR and SSIM #include <iostream> // for standard I/O