visual-studio-2008

In some condition How can I close second form without open first form?

夙愿已清 提交于 2020-01-25 07:59:05
问题 I have a problem and I couldn't solve it.please help me. I have two windows form in C#,main form and userpassword form. at first I use main form, if user are using username and password,the main form calls userpassword form when user enters correct username and password, can use main form but when the user enter incorrect username and password, she /he can't use main form and now the user want to close the program but in this level user closes program with closeBox,but program opens main form

How to use the same obj files in different projects in the same solution

血红的双手。 提交于 2020-01-25 00:31:05
问题 I have a solution that contains several projects. Some of these projects share source files. I have set up my project tree so that the projects that share source files are together. My problem is that when I do a clean and build the shared source files get re-compiled for every project, not just the first one that uses them. The result is that the initial build takes longer than it should and I have to build more than once to get all of the dependencies satisfied (re-links are necessary.) The

wstring::c_str() contains garbage

我的梦境 提交于 2020-01-24 23:45:31
问题 I have a std::wstring decode(const char *s) function. I use it like this: const char *src = "some string"; const wchar_t *result = decode(src).c_str(); I always get garbage in result[0] , sometimes in result[1] too. I dont get garbage when I use it in another way: std::wstring res = decode(src); const wchar_t *result = res.c_str(); My decode function defined as below, and it does it's job. Only problem is calling code(above). std::wstring decode(const char *s, UINT cp=CP_ACP) { if(s == NULL)

Note: C++ does not support default-int

不羁的心 提交于 2020-01-24 13:09:10
问题 I'm getting this message in Visual Studio: Note: C++ does not support default-int What's wrong with my C code? #include <stdio.h> #include <stdlib.h> #include <time.h> void remplire (int t[], int n); void afficher (int t[], int n); void main () { const long_tab = 2000; int t[long_tab]; srand (time(NULL)); remplire (t, long_tab); afficher (t, long_tab); } void remplire (int t[], int n) { int i; for (i = 0; i <= n; i++) { t[i] = rand (); } } void afficher (int t[], int n) { int i; for (i = 0; i

Can't find vcvarsall.bat file [duplicate]

人盡茶涼 提交于 2020-01-24 05:04:47
问题 This question already has answers here : error: Unable to find vcvarsall.bat (41 answers) Closed 4 years ago . I'm trying to install Scrapy on my computer using pip. For the most part it works, but after a short while in the installation I get an error saying "unable to find vcvarsall.bat. I've looked around for help, and most sources say just to install Visual Express 2008. However, even after doing this, when I navigate to C:\Program Files (x86)\Microsoft Visual Studio 8\VC, I don't see the

How do I get DebuggerBrowsable RootHidden to work?

偶尔善良 提交于 2020-01-24 01:00:08
问题 I read about the DebuggerBrowsable attribute yesterday, and it sounded great, however when I tried to get it to work in a test, It doesn't seem to make any difference. I am using VS 2008 version 9.0.30729 1 SP, .Net 3.5 SP1, MSTest framework [TestClass] public class TestingDebuggerBrowsable { [TestMethod] public void JustToDemonstrateDebugging() { var foo = new MyExposedClass(); foo.ToString(); // I put a breakpoint here, and debugged the test } } public class MyExposedClass { public

Controls moving in vs2008 design mode on build

℡╲_俬逩灬. 提交于 2020-01-23 23:10:35
问题 I have a C#.NET winforms project, and some controls are moving in design view whenever I build the project. Its only some of the controls (a panel with a label and datagridview in it, a button, a link button and a label) are all moving up on each build. Has anyone seen this before or know how to fix it? 回答1: I think it is because of the AutoScaleDimensions. My guess is that your form was originally created on another machine. Per MSDN. "The AutoScaleDimensions property represents the DPI or

Controls moving in vs2008 design mode on build

瘦欲@ 提交于 2020-01-23 23:08:06
问题 I have a C#.NET winforms project, and some controls are moving in design view whenever I build the project. Its only some of the controls (a panel with a label and datagridview in it, a button, a link button and a label) are all moving up on each build. Has anyone seen this before or know how to fix it? 回答1: I think it is because of the AutoScaleDimensions. My guess is that your form was originally created on another machine. Per MSDN. "The AutoScaleDimensions property represents the DPI or

Installing PyCLIPS based on CLIPS 6.30 for Windows Python 2.7 32 bit

ε祈祈猫儿з 提交于 2020-01-23 17:19:48
问题 I learned that there is a version of PyCLIPS based on CLIPS version 6.30. The same (or similar) PyCLIPS version can also be installed via pip, see here. On Linux, both approaches work fine, i.e. installing via git clone + setup.py, or via pip. On Windows, it worked only with cygwin 64bit. pip install pyclips failed (I suppose due to the missing '-DWIN_MVC' flag, see step 7 below). However, I would like to have a PyCLIPS based on CLIPS 6.30 on a 'regular' Windows python, to be precise Python2

Editing RDL files with Visual Studio 2008

南笙酒味 提交于 2020-01-23 11:04:31
问题 I have installed SQL Server 2008 Express on two workstations. On one workstation, it has updated the VS2008 installation so that I can create reporting projects containing reports as *.rdl files. On the other workstations, VS2008 can only create/edit *.rdlc files. The report edition interface is also different. I do not understand where the difference comes from. Two major differences between the two workstations are: - one is x86 and had no VS installation before installing SQL Server 2008