Watzinaneihm's Q&A profile
Visual Studio how to delete cancel build task item
Hi, Does anyone succeed in deleting all the "Task List" items after cancelling a build I cancel a build in the "OnBuildBegin" handler. The code I'm using to delete the task list items : Window taskListWindow = ApplicationObject.Windows.Item( Constants.vsWindowKindTaskList ); TaskList taskList = (TaskList)taskListWindow.Object; try { foreach(TaskItem item in taskList.TaskItems) { item.Delete(); } This code is called in the "OnBuildDone" event handler. When item.Delete() is executed, I get an "Object reference not set to an instance of an object". The item reference, however, does exist. It contains the "Compilation cancelled by user" ...Show All
Smart Device Development Bring an application at foreground
Hi all, I'm trying to hava only one cpy of my app running at once, to do that i get the sample code on "Hello World" generated app on embedded C++ 4.0 bool ActivatePreviousInstance() { bool activated = false ; int cTries; HANDLE hMutex = NULL; cTries = 5; while (cTries > 0) { hMutex = CreateMutex(NULL, FALSE, TEXT("myMutex") ); // NOTE: We don't want to own the object. if(GetLastError() == ERROR_ALREADY_ ...Show All
Software Development for Windows Vista Installing ISA Firewall Client in Windows XP 64 Bits
Hello, My name is Rubens, I'm from Brazil... I have a MS ISA Server 2004 in Windows 2003 Server 32Bits, but, I have a workstation running Windows XP x64bits, I Can't install MS Firewall client in this machine, because my version is 32bits Where I found 64 bits for this version(64 bits) Firewall client I hope you answer!! Thanks!!! Rubens G Araujo rubens_ga@hotmail.com ...Show All
Visual Studio Did anyone experience with running NUnit task on multiple projects?
I've run into the following problem. I generate a list of projects to run MsBuild community NUnit task on them: < Target Name = " NUnit " > < Message Text = " @(OutputFiles->'%(FullPath)') " /> < NUnit Assemblies = " @(OutputFiles->'%(FullPath)') " OutputXmlFile = " TestReport.xml " /> </ Target > Then when the targe it executed I get the following error: "Could not load file or assembly 'MyProj' or one of its dependencies". But if the project list contains exactly one assembly, then everything works fine. I tried to test NUnit console from ...Show All
Windows Forms Looking for a Drop Down Button (aka Genghis ThemedArrowButton)
In the 1.1 version of our application we use a “drop down button” (an button with an arrow on the right hand edge that indicates to the user that button has drop down menu). The existing code comes from the Genghis project[1] and makes direct use of the unmanaged XP theming code. Now that 2.0 supports Theming via managed I want to drop our dependency on unmanaged code (one less permission to demand). Is there support for a drop down button baked into WinForms The closest I’ve found is the DropBar in the toolstrip – but of course that doesn’t look like a button in our dialog – the goal here. Am I condemned to rewriting the G ...Show All
.NET Development Server Error in '/Financing' Application
Hello, I created a web application for my boss called financing. When I left last week for my holidays it was working great. Upon coming back to work this week the app no longer works, I get this error: Server Error in '/Financing' Application. ok, I ran the script from that previous web article and that did the trick, I hope that this can help other people with the same problem Jeff ...Show All
Visual Studio 2008 (Pre-release) The COM+ fixing stuff for Danish Windows XP?
Hello! At the end installing the sdk an invitation for installing a com+ fixing component is presented. The problem just is that it refuses being installed on my Danish Windows XP because it's Danish and not English. Is the Windows Communication Foundation just not being meant for Danish Windows XP or is there a solution for this matter Best regards Henrik Dahl Did you try using the procedure in the release notes (reproduced below) The package should be available in Danish... Windows HotFix is Required on Windows XP and Windows Server 2003 to Use WS-AtomicTransaction and COM+ Int ...Show All
Visual Studio 2008 (Pre-release) How to make a non-retangular display?
I wish to make a non-rectangular display like this Windows Media Player( http://journal.mycom.co.jp/news/2002/09/11/06cl.jpg ), How to do it (I have found some information on the web about WIndows form, but I can't find any for XAML) Thanks, can you provide a bit more information Eg, Which control, which template, and what to change... Or is there any sample on the web. I have try to use the clip property on the windows, but not successful. Thank again. ...Show All
Software Development for Windows Vista Input and Output paramters in WinForm Application in Beta2.0 or Beta 2.2
Hi I found a good demo for beginners on WorkFlow at BizTalkGurus.com ( www.biztalkgurus.com/windows- workflow -foundation.aspx )which is in Beta1.I have installed Beta 2.2.As previously mentioned the parameters property of WorkFlow is missing.I tried doing the demo in Beta2.2.But the while Loop doesnt terminate.Has someone tried the same thing in Beta 2.2. or Beta 2. Hi Cory, You could do this a couple of ways: 1. Use Workflow Tracking. 2. At the beginning of each state, use a CallExternalMethod activity and make a call to the host via the communication services and pass the desired informatio ...Show All
Visual Studio Express Editions Dual threaded bitmap creation
Hi there, I have a simple example below showing how I create a bitmap from a data array: void Form1::ImageUpD(array<double,2>^ image) { ImageBmp = gcnew Bitmap(image->GetLength(0),image->GetLength(1),PixelFormat::Format24bppRgb); BitmapData^ data = ImageBmp->LockBits(Drawing::Rectangle(0,0,image->GetLength(0),image->GetLength(1)),ImageLockMode::WriteOnly,PixelFormat::Format24bppRgb); unsigned char *bits = (unsigned char *)data->Scan0.ToPointer(); int bytesPerPixel = 3; // 3 bytes per pixel for 24 bpp rgb int val; for (int i = 0; i < data->Height; i++) { for (int j = 0; j < data->Width * bytesPerPixe ...Show All
Visual Studio Express Editions Simple isn't it ? Returning a scalar data value...
Hello all ^_^ Some kind of noob question, but... I'm using : Microsoft Visual Studio Express Web Developpement and a local MS Access database (TJA.mdb). I'm trying to create a simple web page with a FormView. When I validate an insert command the page crash because the primary key of my table is not populated. This is a "Autonumberd" field called "ID". Ok since the FormView does not handle the the AutoNumberd field automaticaly, I've added some code to call a SQL query which returns a single value (scalar query). This query is not a stored procedure. Here is the code I use : Protected Sub FormView1_ItemInse ...Show All
SQL Server SQL 2005, multiple instances - what about ports?
When multiple instances of SQL 2005 are installed on a cluster or standalone server, is it best to have each instance configured to listen on a different port or will one port for all do We don't use port 1433 and the port we do use is blocked at the firewall. I'd like to standardize on one port for all instances but I'm not sure of the ramifications. Any thoughts Thanks. You have to use one port per instance. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server SQL Syntax
Sirs/ Ma'ams I have an issue with an accounting database where hours (Units) are charged toward a project. If hours are charged incorrectly, they are backed out by accounting & the correct hours (Units) are charged. This will result in records residing for an entry, reversal & entry again. If there are 3 records; Units Project_Desc 10 Desc_a -10 Desc_a 12 Desc_a I'm trying to grab only records which don't have reversals or "Units" <> "Units with a minus sign." My where clause; WHERE cast(units as char(20)) <> ('-' + cast(units as char(20))) is not working. Where am I lacking in ...Show All
Windows Forms Datagrid sorted with relations
Hello, I have made a datagrid. The dataSource is a dataTable with relations. All datatables have a dataAdapter and I have made a strong typed dataset (with xsd file). My problem is the following : If the user sorts a column (NAME for example), inserts a new record (then the last record of the grid) and puts a name called AAA, if he associates a relation to this record, the datagrid don't put this relation to AAA but to the record which name is the last in alphabetic order, because I have sorted the datagrid to alphabetic order and my new record (which is not saved) is not at this moment sorted in the alphabetic order (he's in tha last positi ...Show All
.NET Development Porting C++ pointer code to C#
Hi, I have a piece of C++ code that does a lot with pointer arithmetic in order to parse a char[] array into many different fields. The data is a block from a tape, so for example the first block of data contains such information as tape id, number of files on the tape etc. Most, but not all, of the individual fields in the data are null terminated. I'm looking for the best way to accomplish the same thing in C#. I'm used to pointer arithmetic in C++, but I'm not that familiar with C#. The C# code that I have (in an unsafe method) looks like: char[] tapeHeader = new char[1024 * 256]; UInt32 count = (uint) tapeHeader.L ...Show All
