visual-studio-2010

Visual C++ 2010 compatibility with VC 2008

为君一笑 提交于 2019-12-29 08:35:13
问题 I am compiling a program with Visual C++ 2010 but I don't want everyone to have to download the redistributable package to run my programs. Most people that will be using my program already have the VC++ 2008 redistributable package though, so is there a way I can compile it with compatibility with VC 2008? Or is there a place I can download VC 2008 express? 回答1: Visual Studio 2010 has an option to compile with Visual Studio 2008 toolset. You can find it under your project settings. I think

How do I grant NETWORK SERVICE read permissions

爱⌒轻易说出口 提交于 2019-12-29 08:33:08
问题 I'm currently learning ASP.NET and I'm running into difficulties integrating SQL Server into ASP.NET. I'm trying to grant NETWORK SERVICE read permission as follows: 4.NETWORK SERVICE must be granted Read permission to the top-level Visual Studio folder located in your user's Documents folder. The Visual Studio folder will have different names depending on the version: "Visual Studio 2005", "Visual Studio 2008", or "Visual Studio 2010". 5.NETWORK SERVICE must be granted both read and write

Access several controls with a for in visual basic

浪尽此生 提交于 2019-12-29 08:24:24
问题 I Got this form with several Labels inside a GroupBox, all with the same name plus a number (similar to the default Label1, Label2, LabelN) I'm changing the look and content of this labels with a sub(), but I can't figure out how to refer to each label without write the complete name it's possible to do something like: To All Labels inside Group Box Sub(LabelN) Currently I'm creating an Array of labels and assigning the names when the form loads, something like: Private Sub Form1_Load(ByVal

How to synchronize Database and DataGridView

隐身守侯 提交于 2019-12-29 08:07:50
问题 I have been trying to synchronize a database trough a DataGridView . So far I have created a data model class. This class contains multiple Properties that match the database. They are mapped using the [Table] and [Column] attributes from the System.Data.Linq.Mapping namespace. Ok. So I bound the DataGridView using the DataSource -Property to a DataContext connecting to the Database (MSSQL). This Logic is implemented in a singleton class, so I can assure there is a single instance of this

How to synchronize Database and DataGridView

*爱你&永不变心* 提交于 2019-12-29 08:07:10
问题 I have been trying to synchronize a database trough a DataGridView . So far I have created a data model class. This class contains multiple Properties that match the database. They are mapped using the [Table] and [Column] attributes from the System.Data.Linq.Mapping namespace. Ok. So I bound the DataGridView using the DataSource -Property to a DataContext connecting to the Database (MSSQL). This Logic is implemented in a singleton class, so I can assure there is a single instance of this

how to access winform components from another class?

a 夏天 提交于 2019-12-29 07:49:06
问题 i have a form with one button and two labels and i have a separate class called myCounter i want the myCounter class to be able to access the labels in the form through a method called changeColor.. how can make the labels available in this class the form public partial class Form1 : Form { public Form1() { InitializeComponent(); } public Color colTurn { get { return lblp1Turn.BackColor; } set { lblp1Turn.BackColor = value; } } private void Form1_Load(object sender, EventArgs e) { } } the

Switched to VS 2012 and now form doesnt resize properly?

偶尔善良 提交于 2019-12-29 07:47:12
问题 I switched to VS 2012 yesterday from VS 2010 and all seemed to go well except this. I have a button on my form that when pressed extends the width of the form to show additional controls. Press the button again and it reduces the width to hide those controls. Now all of this worked great in VS 2010 and also works fine when I debug in VS 2012 but as soon as I publish or compile the project and open the .exe when you click on the button it adds like 5 to the width instead of the 100+ it needs

How to recognize a phrase from a voice file

这一生的挚爱 提交于 2019-12-29 07:08:07
问题 How to get the engine to successfully recognize a phrase from a voice file (wav/mp3/etc..)? For example, if I'll have a voice file and a written text of the context of the same file, so to make it recognize the written words in the voice file. I tried to play around with the SpeechRecognitionEngine, but without success so far. I'll appreciate ideas, since this is my first time dealing with Speech Recognition techniques. I've seen examples of speech-to-text using dictionaries, but I'm not sure

Unable to pass std::wstring across DLL

非 Y 不嫁゛ 提交于 2019-12-29 07:02:52
问题 I've set up a project in Visual Studio 2010 to write unit tests against an existing MFC DLL. I'm using a single-header unit test framework, and linked to the MFC DLL's lib wrapper from the unit test project. I'm trying to construct a class that takes a std::wstring in it's constructor. Here's what my test looks like: TEST_CASE("MyProject/MyTest", "Do the test.") { MockDbService mockDbService; Foobar foo(L"{F00DFACE-FEED-DEAD-BEEF-C0FFEEDECADE}", mockDbService); foo.loadObject(); REQUIRE

Create multiple versions of a project in Visual Studio using Build Configurations

狂风中的少年 提交于 2019-12-29 07:01:14
问题 I neeed to create multiple versions of my project using configuration just like we do with #define , #if , #endif . The down side of using these preprocessor directives is that I need to define symbols in almost every file of the project but I want to handle this thing by my build configurations. I am not even sure if Build Configurations will help me to do this. What I want is if I create a configuration with name "Development" and other with name "QA", my code would look like: if