visual-studio-2008

indexing Array out of Range Exception

前提是你 提交于 2019-12-24 16:48:57
问题 I try to save the SQL Results in a array and return it back. but i'm getting an exception: array out of range error. here is my code: public BookingUpdate[] getBookingUpdates(string token) { String command = "SELECT b.ID,b.VERANSTALTER, rr.VON ,rr.BIS, b.THEMA, b.STORNO, ra.BEZEICHNUNG from BUCHUNG b JOIN RESERVIERUNGRAUM rr on rr.BUCHUNG_ID = b.ID JOIN RAUM ra on ra.ID = rr.RAUM_ID WHERE b.UPDATE_DATE BETWEEN DATEADD (DAY , -20 , getdate()) AND getdate() AND b.BOOKVERNR = 0"; SqlConnection

indexing Array out of Range Exception

谁都会走 提交于 2019-12-24 16:48:49
问题 I try to save the SQL Results in a array and return it back. but i'm getting an exception: array out of range error. here is my code: public BookingUpdate[] getBookingUpdates(string token) { String command = "SELECT b.ID,b.VERANSTALTER, rr.VON ,rr.BIS, b.THEMA, b.STORNO, ra.BEZEICHNUNG from BUCHUNG b JOIN RESERVIERUNGRAUM rr on rr.BUCHUNG_ID = b.ID JOIN RAUM ra on ra.ID = rr.RAUM_ID WHERE b.UPDATE_DATE BETWEEN DATEADD (DAY , -20 , getdate()) AND getdate() AND b.BOOKVERNR = 0"; SqlConnection

Unit test with accessors

[亡魂溺海] 提交于 2019-12-24 16:35:11
问题 This is a two part question. Background: We moved our C# application from VS2005 to VS2008 and in the process moved the application from .net 2.0 to .net 3.5. The transition went smoothly except for Unit Tests. First: Is the unit test framework based off Visual Studios or .NET? Second: This question is derived from the issues we have with the unit tests. We have internal classes that need accessors in order to unit test them. When the application was in VS2005, all the accessors were auto

OOLua compile errors

穿精又带淫゛_ 提交于 2019-12-24 16:15:39
问题 Code #include <OOLua/oolua.h> class foo { public: int bar(); }; OOLUA_CLASS_NO_BASES(foo)//class has no bases OOLUA_NO_TYPEDEFS OOLUA_MEM_FUN_0(int,bar) OOLUA_CLASS_END Compiler output main.cpp(21) : error C2061: syntax error : identifier 'bar' main.cpp(22) : error C2143: syntax error : missing ';' before '}' main.cpp(22) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int main.cpp(22) : warning C4183: 'OOLUA_MEM_FUN_0': missing return type; assumed to

Visual studio 2008 error ? “LNK1104 : cannot open file ”

余生颓废 提交于 2019-12-24 15:27:32
问题 Error 1 fatal error LNK1104: cannot open file 'C:\Users\hongo\Documents\VisualStudio2008\Projects\PruebaNodosLcmasmas\Debug\PruebaNodosLcmasmas.exe' PruebaNodosLcmasmas PruebaNodosLcmasmas This error happens in visual studio 2008 after I rebuild a solution too many times in little time. After that, I cannot get access to the debug/release folders for up to 3 minutes and that is really "APITA" cause I need to test new changes to the code as I am programming. Any ideas on how to fix this? I'm

Killing child processes when debugging ends

一世执手 提交于 2019-12-24 15:25:36
问题 I have a C++ project in Visual Studio 2008 that, when executed, spawns another process (due to a GUI library that is being used). However when I exit the main process (either using Ctrl-C or by stopping the debugger), the spawned process (and hence the GUI) remains. This is a side-effect of the library being used, and the nature of the project - it is designed to be embedded, and hence never really "exit", but debugging and testing is Windows-based. The orphan process then stops me being able

Make Visual Studio not care about DLL versions

北城以北 提交于 2019-12-24 15:22:32
问题 Is there a way to make visual studio not care about dll versions? Is this a bad idea? I am resetting up my dev machine and I just installed the latest version of Pex and Moles (version .92). All my projects are on version .91. We are in the middle of a release and don't want to upgrade right now. Also, I cannot find an installer to version .91. When I try to compile I get a message that I am missing the reference. (Hence this question) 回答1: The version is important.. By definition, there is a

Killing child processes when debugging ends

喜欢而已 提交于 2019-12-24 15:17:05
问题 I have a C++ project in Visual Studio 2008 that, when executed, spawns another process (due to a GUI library that is being used). However when I exit the main process (either using Ctrl-C or by stopping the debugger), the spawned process (and hence the GUI) remains. This is a side-effect of the library being used, and the nature of the project - it is designed to be embedded, and hence never really "exit", but debugging and testing is Windows-based. The orphan process then stops me being able

DLL and Main Project Building - Annoyance

我是研究僧i 提交于 2019-12-24 15:16:15
问题 I have a main executable project and a dll project in VS 2008. Sometimes when I clean/rebuild the dll and then clean/rebuild the main project, the main project will not build because it says the dll is in use. Closing both projects resolves the issue. Why does this occur and how do I prevent it from happening? It is annoying having to close and reopen the projects. Error received when building main project after building dll: Unable to load referenced library 'C:\Documents and Settings\xxxxxx

Forcing Focus for Desktop Applications built in .NET

╄→гoц情女王★ 提交于 2019-12-24 12:46:27
问题 I have a production application that I always want to force focus on. Sometimes the users will accidentally click off the form and the blue focused window will turn gray. I have a timer that fires every 30 seconds and I want to programatically give focus back to the form so that it goes from gray back to blue with focus. I've tried using the .focus event and the .activecontrol property but none of those seem to work and I'm not seeing any other viable options. Surely there is a way to do this