visual-studio-2012

Type initializer exception OpenTK and monogame

走远了吗. 提交于 2021-02-10 22:28:20
问题 I just installed MonoGame and OpenTK 1.0 and in Visual Studio 2012 I made a new project of type 'Windows OpenGL Game`...but when I run the project I get the following error: The type initializer for 'OpenTK.Graphics.GraphicsMode' threw an exception. The error is right on this line (the consturctor, on the base()) public Game1() : base() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; } My laptop has intel oboard graphics 3000 and I think it supports OpenGL..

Loading large XML on DataSet (OutOfMemory Exception)

a 夏天 提交于 2021-02-10 12:58:25
问题 I am trying to read a 3GB XML file through a URl and store all the jobs in dataset. XML looks like this: <?xml version="1.0"?> <feed total="1621473"> <job> <title><![CDATA[Certified Medical Assistant]]></title> <date>2016-03-25 14:19:38</date> <referencenumber>2089677765</referencenumber> <url><![CDATA[http://www.jobs2careers.com/click.php?id=2089677765.1347]]></url> <company><![CDATA[Broadway Medical Clinic]]></company> <city>Portland</city> <state>OR</state> <zip>97213</zip> </job> <job>

Loading large XML on DataSet (OutOfMemory Exception)

孤者浪人 提交于 2021-02-10 12:57:34
问题 I am trying to read a 3GB XML file through a URl and store all the jobs in dataset. XML looks like this: <?xml version="1.0"?> <feed total="1621473"> <job> <title><![CDATA[Certified Medical Assistant]]></title> <date>2016-03-25 14:19:38</date> <referencenumber>2089677765</referencenumber> <url><![CDATA[http://www.jobs2careers.com/click.php?id=2089677765.1347]]></url> <company><![CDATA[Broadway Medical Clinic]]></company> <city>Portland</city> <state>OR</state> <zip>97213</zip> </job> <job>

Unable to Count Number of Digits as the Input

倖福魔咒の 提交于 2021-02-10 12:25:10
问题 My Program : To get input from the user about personal details and then output the information. My Problem : The program is unable to count the number of digits as the input for Phone Number field. It accepts more than 10-digits as an input for the phone number. My Goal : To check the input for 'Phone Number' and make sure that the number is 10-digits. My Code : #include <iostream> #include <string> #include <limits> using namespace std; class Personal_Details { public: void setFirstName

Why Won't Form Get Focus?

*爱你&永不变心* 提交于 2021-02-08 08:37:24
问题 I have a form that is launched modally like this: private void find_street_Click(object sender, EventArgs e) { this.WindowState = FormWindowState.Minimized; Form findForm = new FindStreet(); findForm.ShowDialog(); this.WindowState = FormWindowState.Normal; } The form launches correctly, and the cursor is in the first text box, whose TabIndex is set to 1. Along with the InitializeComponent(); call, these commands are present. public FindStreet() { InitializeComponent(); this.TopMost = true;

Numerical equivalent of TRUE is -1?

一曲冷凌霜 提交于 2021-02-08 03:41:37
问题 I am using Intel Fortran in Visual Studio 2012 to compile a Fortran code. When I try to use logical operators I have noticed that a standalone logical expression results in T or F as expected. However, if I need the numerical T or F (0 or 1), I get a -1 when logical result is T. For example: integer*4 a a = 1 logicval = (node(5,L).gt.0) numval = 1*(node(5,L).gt.0) write(*,*) logicval, numval would output T, -1 Is there a way in which I can redefine numerical values assigned to T & F? 回答1: Yes

How to make button background transparent?

本秂侑毒 提交于 2021-02-08 03:11:17
问题 I have created one button and applied image (.png with transparent background) on it. My button background is set on transparent but as you can see the background color is still there. How can I make this work as it should? 回答1: Give this a shot. 'Making Existing Button Transparent btnKasa.FlatStyle = Windows.Forms.FlatStyle.Flat btnKasa.FlatAppearance.BorderSize = 0 btnKasa.FlatAppearance.MouseDownBackColor = Color.Transparent btnKasa.FlatAppearance.MouseOverBackColor = Color.Transparent

How to make button background transparent?

偶尔善良 提交于 2021-02-08 03:07:29
问题 I have created one button and applied image (.png with transparent background) on it. My button background is set on transparent but as you can see the background color is still there. How can I make this work as it should? 回答1: Give this a shot. 'Making Existing Button Transparent btnKasa.FlatStyle = Windows.Forms.FlatStyle.Flat btnKasa.FlatAppearance.BorderSize = 0 btnKasa.FlatAppearance.MouseDownBackColor = Color.Transparent btnKasa.FlatAppearance.MouseOverBackColor = Color.Transparent

Can't connect to IIS Express using IP Address

自古美人都是妖i 提交于 2021-02-07 10:48:55
问题 From what I understand, VS2012 comes with the IIS Express version by default. And it allows you to connect to the development site using IP address. Currently I can connect using http://localhost:22222 . But this would not connect using this http://xxx.xxx.xxx.xxx:22222 where xxx just a local IP of the development machine . I have verified that the IIS Express is running and being used. The IE error was http 400 bad request. 回答1: I know you have asked question since a long time. I have an

Is there a way to “map” the program execution order in Visual Studio or MATLAB?

有些话、适合烂在心里 提交于 2021-02-07 10:43:04
问题 What I mean by "map" is that I have a "main" function which calls many other programs inside, and I want to be able to see which file runs first, second, third, etc. Basically, I want to be able to see the list and order of dependencies in this large OOP design program (which the creator did not make a UML class diagram for) to help decipher the code. Surely such a functionality must exist in popular IDE's? I'm mostly dealing with C++ and MATLAB so I'm more concerned with these two