visual-studio-2012

Index was outside the bounds of the array vb.net n mapwingis

隐身守侯 提交于 2020-01-06 19:27:11
问题 I am making a map app with VB.net and Mapwingis . I want to save the map data with an array, but any error. this code : Dim scheme As New MapWinGIS.ColorScheme Dim idx As Integer idx = FormMain.TreeViewLayer.Nodes.IndexOf(FormMain.TreeViewLayer.SelectedNode) sf = FormMain.AxMapMain.get_Shapefile(idx) mainMapHandler = FormMain.AxMapMain.AddLayer(sf, True) sf = FormMain.AxMapMain.get_Shapefile(mainMapHandler) Dim fieldName As Integer fieldName = CBSymVarNameUnique.SelectedIndex sf.Categories

windows phone 8 Cordova - placing a file in a different path

流过昼夜 提交于 2020-01-06 17:42:28
问题 I am very new to VisualStudio and porting a cordova/phonegap application from android to windows phone 8. So I created a new project using createTemplates.bat and imported it in my VS2012 Express. The core result is one www folder containing img/css/js and index.html ; it works fine and I manage to launch it and deploy on my device. Because the application is quite big, I want to create a new sub-folder call subfold (under img), and placing picture.jpg in there so in solutionExplorer I have

Setting up Aquila for my c++ Project in Visual studio 2012

一笑奈何 提交于 2020-01-06 16:20:54
问题 I want to use Aquila DSP to compute MFCC features in my project and trying to make it work.I followed this tutorial but after mingw32-make install on the source code pulled from Aquila's git repo, it generates only libAquila.a in lib folder. I tried changing my project's include and library dependencies using these generated files after install. Also tried adding FindAquila.cmake and tried building my project with cmake for VS 2012, still no luck. Keep getting "aquila/global.h" no such file

VS/VB keeps changing the capitalization of my strings

半世苍凉 提交于 2020-01-06 14:27:31
问题 Lets say I have this VB.net code in VS2013: Y = "This is a test of some text." Z = "And this is another line of text where its longer." Now I realize I it would be useful to output my loop iterator in Y, so I click in Y and start typing... Y = "This is a test of some text on "." Z = "And this is another line of text where its longer." Now since I don't have a closing quote, VS interprets this as the string (and as you can see from the coloring here in SO, so does the MU parser!)... Y = "This

Added team member cannot see project despite similar permissions

折月煮酒 提交于 2020-01-06 12:44:59
问题 We have a project administrator for a collection of projects on TFS Online. We recently hired so he had to add the guy as a new member into the team. However he cannot see one specific project we have, even with identical permissions as the other users. His account was created in the same way as the others. Trying to help the guy out here I offered to try a few things and noticed, If I create a new project as a test. "Test1", and add him as a member, he can see this account fine when he logs

Why I am getting the Constructor and the copy constructor called here? [duplicate]

孤街浪徒 提交于 2020-01-06 12:38:27
问题 This question already has answers here : C++ copy-construct construct-and-assign question (3 answers) Closed 6 years ago . I have a lot of C# Code that I have to write in C++. I don't have much experience in C++. I am using Visual Studio 2012 to build. The project is an Static Library in C++ (not in C++/CLI). I have a class with a static method with a static private member. When I debug I can see both the Constructor and the Copy Constructor being called. I don't understand why both get

How do I Write a Custom Deleter to Handle Forward Declared Types

删除回忆录丶 提交于 2020-01-06 08:22:05
问题 Some older versions of visual-studio required a complete definition of the type for default_deleter to be defined. (I know this was the case in Visual Studio 2012 but I'd give bonus points to anyone who could tell me which version remedied this.) To work around this I can write a custom_deleter function like so: template <typename T> void custom_deleter(T* param) { delete param; } And declare a smart pointer on a forward declared type like so: unique_ptr<Foo, function<void(Foo*)>> pFoo ,

Red lines under ViewBag and HTML.TextboxFor helpers in Views

北城余情 提交于 2020-01-06 08:18:06
问题 I have installed Visual Studio 2012 that comes with MVC4, and opened a project done in MVC3. On my views, all references to: ViewBag.<Property> Showed the red waved lines, saying "dynamic library missing", and HTML.TextBoxFor(m => m.Property) HTML.HiddenFor(m => m.Property) etc... Showed error "arguments cannot be inferred from usage". I found the answered in other no-related thread, so I'm opening this question here to help others, as I didn't find it in Google looking for the main topic.

Function pointer in Visual Studio 2012

那年仲夏 提交于 2020-01-06 08:08:42
问题 Please explain me where I am wrong. I want to switch between several encoding utilities using pointer to function. I declare it like int (*enc_routine)(); Later I switch coding utilities like enc_routine = g723_24_encoder; where utility by itself is something like extern int g723_24_encoder( int sample, int in_coding, struct g72x_state *state_ptr); Everything was cute and fine on Linux, but now I am on Visual Studio 2012 and it says: a value of type "int (*)(int sample, int in_coding, g72x

Form TextBox values to Form2 TextBox values

[亡魂溺海] 提交于 2020-01-06 07:53:08
问题 Basically when a user enters data into a textfield on Form2 , I want that data to be stored into a variable then when users selects the button enter, Form2 will hide and Form1 will appear. I then want Form1 to display the data entered in the textfield from Form2 in a new textfield . This is my attempt, but it doesn't work On Form 2... public string Player1 {get; set;} private void pvpPlay_Click(object sender, EventArgs e) { Player1 = txtPlayer1.Text; Form1 op = new Form1(); op.Show(); this