visual-studio-2008

Disable Designer for a derived class in Visual Studio 2008

笑着哭i 提交于 2021-02-07 07:14:50
问题 I have class A derived from a Windows.Form class, using the VS2008 designer. When I double click on the file name in Visual Studio Solution Explorer, the form designer opens. This is the desired behavior. I have a second class B, derived from A (manually). This class is pure code - it adds some functionality but the form is the same - but if I double click on its file name in Visual Studio Solution Explorer, it opens the form designer. This is the undesired behavior , particularly as I will

Register for COM Interop

假如想象 提交于 2021-02-07 03:13:05
问题 When the Register for COM Interop option in the build properties is checked, I get an error: Cannot register assembly -access denied When the option is unchecked, the project builds without any error. But my requirement is to register the COM objects as I need to use the same in VB. Can anyone help me out in this? 回答1: An extension to Frédéric Hamidi's answer (upvote for your sir), you could either run Visual Studio as administrator, or turn off the 'register for COM interop', and open up a

Register for COM Interop

荒凉一梦 提交于 2021-02-07 03:06:26
问题 When the Register for COM Interop option in the build properties is checked, I get an error: Cannot register assembly -access denied When the option is unchecked, the project builds without any error. But my requirement is to register the COM objects as I need to use the same in VB. Can anyone help me out in this? 回答1: An extension to Frédéric Hamidi's answer (upvote for your sir), you could either run Visual Studio as administrator, or turn off the 'register for COM interop', and open up a

how to set CPU affinity of a program?

限于喜欢 提交于 2021-02-06 10:47:30
问题 I have a program written in C#, I am using VSTS 2008 + .Net 3.5 + Windows Vista Enterprise x86 to develop a Windows Forms application. My current computer is dual-core CPU, I want to set CPU affinity of my program to run on a specific CPU and free another CPU to do some other job. Any ideas how to do this? Either through coding or configuration is ok. A little more background is, my program is CPU intensive, so I do not want to let it occupy all two CPU resources on my computer and I want to

how to set CPU affinity of a program?

∥☆過路亽.° 提交于 2021-02-06 10:45:07
问题 I have a program written in C#, I am using VSTS 2008 + .Net 3.5 + Windows Vista Enterprise x86 to develop a Windows Forms application. My current computer is dual-core CPU, I want to set CPU affinity of my program to run on a specific CPU and free another CPU to do some other job. Any ideas how to do this? Either through coding or configuration is ok. A little more background is, my program is CPU intensive, so I do not want to let it occupy all two CPU resources on my computer and I want to

Build Succeeded, but no .lib file gets created

倾然丶 夕夏残阳落幕 提交于 2021-02-05 14:21:23
问题 I inherited a substantial amount of code, including a visual studio project that is supposed to (as best as I can tell) build a .lib file. Visual studio says "... Generating Code... Creating Library... Creating browse information file...", and at the end, it says the build succeeded. In the release/debug folder, it has a bunch of .obj files, but it doesn't have a .lib file. What could I be missing? Thanks! 回答1: Open the Project Properties (right-click the project in Solution Explorer, select

Build Succeeded, but no .lib file gets created

前提是你 提交于 2021-02-05 14:21:17
问题 I inherited a substantial amount of code, including a visual studio project that is supposed to (as best as I can tell) build a .lib file. Visual studio says "... Generating Code... Creating Library... Creating browse information file...", and at the end, it says the build succeeded. In the release/debug folder, it has a bunch of .obj files, but it doesn't have a .lib file. What could I be missing? Thanks! 回答1: Open the Project Properties (right-click the project in Solution Explorer, select

Build Succeeded, but no .lib file gets created

南笙酒味 提交于 2021-02-05 14:21:13
问题 I inherited a substantial amount of code, including a visual studio project that is supposed to (as best as I can tell) build a .lib file. Visual studio says "... Generating Code... Creating Library... Creating browse information file...", and at the end, it says the build succeeded. In the release/debug folder, it has a bunch of .obj files, but it doesn't have a .lib file. What could I be missing? Thanks! 回答1: Open the Project Properties (right-click the project in Solution Explorer, select

Build Succeeded, but no .lib file gets created

本秂侑毒 提交于 2021-02-05 14:21:05
问题 I inherited a substantial amount of code, including a visual studio project that is supposed to (as best as I can tell) build a .lib file. Visual studio says "... Generating Code... Creating Library... Creating browse information file...", and at the end, it says the build succeeded. In the release/debug folder, it has a bunch of .obj files, but it doesn't have a .lib file. What could I be missing? Thanks! 回答1: Open the Project Properties (right-click the project in Solution Explorer, select

How to convert hash data to original data? [duplicate]

邮差的信 提交于 2021-02-05 12:28:59
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Is it possible to decrypt md5 hashes? I hashed data with ComputeHash how can I learn original data from hashed data? private void btn_Hash_Click(object sender, EventArgs e) { HashAlgorithm ha = HashAlgorithm.Create(); Stream file = new FileStream(@"C:\temp\simetrik.txt", FileMode.Open, FileAccess.Read); hashClass.hash = ha.ComputeHash(file); listBox1.Items.Add(BitConverter.ToString(hashClass.hash)); } 回答1: You