Zero_'s Q&A profile
SQL Server Display multi value parm in text box
Is there a way to dsiplay all the values of a multi value parm in a text box Yes. Set value to =Join(Parameter!Name.Value,", ") This will give you a comma seperated list. If you want another seperator, simply change what is in the quotes. ...Show All
.NET Development Number of thread in a ThreadPool
I have a C# 2003 windows service running on Windows Server 2000 machine, 1 processor. The application uses ThreadPool to handle requests from concurrent users. From MSDN: "The thread pool has a default size of 25 threads per available processor." 1. Does this mean I can utilize all 25 threads If there is a System.Timers.Timer in the application, does it run on a thread from the same ThreadPool, and therefore do I have only 24 (or, 23) threads left 2. Is the number of threads for a ThreadPool the same for Windows Server 2003 3. If we move this application to another server (with more processors), will I have to configure the application somehow so that it uses all processors for better scalability, or will the O ...Show All
Visual C# Unmanaged to managed code
I have funtion wich was written in C++ and has the signature like this : "DWORD XPTO(BYTE **aux)" I want to use it within C# code but the function has to be declared like: static extern xpto( aux )), I dont know how to translate it!!! Can Anyone help Thanks a lot! Barbara Hello All. ahmedilyas: Well, it just goes to show about "different strokes." For me, the brighter color was easier to read against the darker background. Are these colors easy to read private void Form1_VisibleChanged( object sender, EventArgs e) { if ( this .Visible) MessageBox .Show( "Visible" ); } For ...Show All
Visual Basic Call EXE method from DLL
Hi Is there a way that I can call a method in an EXE (managed code, VB.NET) from a .NET DLL by passing a reference to the instance of the EXE Multiple instances of EXE might be running and loaded in memory and I need the DLL to invoke a method within the running instance by passing a reference (such as the application title, window handler etc). In case you are wondering why the DLL is calling the EXE method and not the other way around, it is because this DLL is like a wrapper class and the method that invokes the method in the EXE is actually called from an Access VBA module. TIA Oh. and I should probably mention...this is a clickonce app. I'm looking at using the StartupNextInstance handler, but it doesn't look to promising ...Show All
Commerce Server Discount Priority???
I want to apply all the discounts maintained below: 1. Contract Discount 2. Product Discount 3. Order Threshold Discount 4. One of the lowest rank discount among some other discounts. How can I handle this situation in the Commerce Server Hi Sachin, Can you be more specific about what you're trying to accomplish YourContract, Product, Order Threshold and other discounts should all be able to be captured by the Discount object. The orders pipelines will apply them based on their relative priority, items in the basket, and targeting expressions based on the user profile. Thanks, David ...Show All
Software Development for Windows Vista vista blocks application at startup
Hi, I'm a software developer and I have a question about Vista. Our application (a .NET 1.1 app) requires Administrator access and we have the "requiresAdministrator" access level defined in the application manifest. That part is working fine. However, our application needs to startup when the computer boots so we have it in the "startup" folder. For some reason (I can't imagine why) Vista puts it in the "blocked startup programs" list and the user needs to manually launch it. This is not acceptable for us. Is there any way to circumvent this problem And by the way, why is there no way for the user to say "I want this app to run every time I reboot so stop blocking it!" On a side note, I not ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX SDK download corrupt each and every download
I've tried to download the DirectX SDK about half a dozen times, cleaning the explorer cache, trying a different computer, trying both the October and August versions, and after bogging down my [2.4GHz Pentium 512MB RAM] computer for a few long minutes, the extraction failed time after time after time due to CRC error in zip file or corrupt cab file. Any clue what's the problem OK, here's the damn thing - I did not use a download accelerator, I downloaded three different versions (April, August, October), and using two different computers connected via different ISPs, and got CRC error in self extraction stage. Rereading the download page, I noticed a warning regarding possible clash between th ...Show All
Visual Studio Express Editions How do I select rows in DataGrid with values
Hi, How can I select all rows on tableviewgrid However, I don't want to select a new row i.e: colunm1 | column2 ------------------------------ 1 | 'xxx' 2 | 'ddd' * null | null -> new row When I use selectall(), new row is always selected, but I don't want. How do I select rows with values cheers, SelectAll will of course select all the rows, even if no data is there/new row. why dont you, when processing the selected cells, check to see if the last row contains data and if not then skip it and do the rest of your process request i will see what I can come up with - not thinking the usual self at the moment! ...Show All
Visual Studio Express Editions Debugging using VC# Express
Hi, How do we debug using the VC# express edition You place break points by clicking the left edge of the code window. Then you hit F5 to start the program in debug mode. The program stops on every breakpoint (you can also set some conditions to break points). When stopped, you can inspect the object values in VC#, and when ready, hit the "play" button (a triangle) in VC# to continue You can also print out debug messages, that are shown in VC#'s output window: using System.Diagnostics; ... Debug.WriteLine("Doing some hard calculation here"); ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Sprite scaling and blending
OK, I've searched through a couple posts here and didn't find anything that fixed the problem. I'm scaling sprites to draw GUI controls and I'm getting funky results. Here's what I get (blown up 6x to show the problem). I'm drawing the box in chunks - upper left 4x4 pixels, upper right 5x5 pixels, left border, right border, lower left 4x4 and right 5x5 pixels, and upper and lower middle sections.I don't think I have to explain what the problem is. I've tried setting texture filtering, destination blending, but nothing seems to affect it. Here's the sprite I'm using to draw. Maybe I just need to get some sleep. Whenever you scale a texture, you need to care about how filtering works. Consider this texture with just two pix ...Show All
Gadgets Sidebar and gadgets in XP
Hi Is it possible to create a sidebar and gadgets for previous versions of Windows ie XP and 2000 thanks bigbadbubba wrote: It would be nice if they would support gadgets on XP. If not, I'll end up having to use either Google or Yahoo. Personally, I'd prefer Microsoft to be cracking on with Sidebar v2 for Vista, there's so much they can do to improve it. XP SP2 may still be supported by Microsoft but I doubt they will waste their time releasing features for XP that are part of Vista's selling point. Andy ...Show All
SQL Server Error 4064 after attempting restore backup?!
Hi, We have a little problem for you: We have 2 servers both running sqlexpress2005, both have service pack 1 installed, both have the same db (same tables etc.) both have the same users with the same passwords. Everything is identical. What I want to do is move the db. I am attempting to do this by making a backup of the db and restoring it into the second machine. (I am not sure of a more practical way to do this without stopping the SQL server). This is the problem, the backup process works fine, without error, but when restoring the copy to the other server ,it loses the dbowner property and all default users when attempting to connect recieve a 4064 error even though all the password for users are there. Very strang ...Show All
Windows Forms Use Publish Wizard to register (regsvr32) a dll
Hi, I am doing a small project here which requires a 3rd party DLL be registered on the end user's PC. The budget for this project is tiny (not even in to triple figures!) so I'm reliant on either: Using the Publish wizard in VB.net 2005 Express Creating my own installer I'd rather use the former for simplicity. I can't work out how to make it register the DLL - including it in the final installation is fine, but running REGSVR32 for it - I can't find. I couldn't make my main EXE register it either by calling REGSVR32 when it first runs because I can't work out where the Publish wizard is dumping the files. Any suggestions Regards Daniel Under ClickOnce, the only optio ...Show All
Visual C# Fail to Load dll from C# when no VS2005 installed
Hi, I am running C# application with a MFC dll on VS2005. When I copy the .exe file and the dll to another computer I get the following errer (both installed with .NET 2.0): An unhandled exception of type 'System.IO.FileNotFoundException' occurred in FilesUpdateApplication.exe Additional information: Could not load file or assembly 'StrtData, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. where 'StrtData is my dll file. When I installed the VS2055 on the computer, it worked just fine. Are there any specific dll's that the 2005 adds is it something that it adds in the installation Please advice, Thanks Idit The problem was that the dll was compil ...Show All
.NET Development uninstalling SQL Server Express Beta 2
Hi,Originally, I had C# Express Edition Beta 2 installed. The version expired, so I uninstalled it with "Add or remove programs". So far so good. Then I uninstalled the Visual Studio .NET Express Beta 2 using "Add or remove programs" before uninstalling SQL Server Express Beta 2. I didn't read http://msdn.microsoft.com/vstudio/express/support/uninstall/ until after uninstalling .NET.When I attempted to uninstall SQL, I got an error message: "the feature you are trying to use is on a network resource that is unavailable". I then installed Visual Studio .NET Express 2.0 Beta 2 and attempted to uninstall SQL again. This time the message said that Visual Studio .NET 2 was not installed. Then I ran the C# installer, which attempted to down ...Show All
