nielsvanvliet's Q&A profile
Visual Studio Team System JAVA Application & DB2 database, how relevent are .Net & SQL Parameters
Our Application is a JAVA Application and Database is IBM DB2. How relevent are the .NET and SQL Parameters captured during the Load Test using VSTS. Please Clarify System counters will be relevant. Things such as % processor time or Available mbytes. However, counters specific to .NET or ADO will not be relevant. You can create custom counter sets to collect counters for values that are not be collected by default. Here is help on custom counter sets: http://msdn2.microsoft.com/en-us/library/ms404668(VS.80).aspx ...Show All
SQL Server Could not start the SQL Server Reporting Services (REPORTS) service on local computer.
Error 1069. The service did not start due to login failure. I can't get a domain login account with domain admin rights to start the service. The only way I can start the service is with the LocalSystem account, which isn't a good solution because it's not networkable. Thank you for any advice you have. How do I know what password the RS Service has or should be I know the password hasn't changed for our domain account. I verified it works for other services. Here is more information: I have two servers: One database server: SQL Server 2005 SP1 One web server with IIS running multiple websites with ASP 1.1 and ASP 2.0 and SQL Server 2005 Reporting Services. I confi ...Show All
Visual C++ When "It just works!" doesn't. :(
Hi, To test out "C++ Interop", I created a static library in VC++ 6.0: Here is the contents of the header file (staticLibrary.h): #ifndef STATICLIBTEST_H #define STATICLIBTEST_H #include <string> using std::string; int add352(int value); string sayHello(string name); #endif Here is the implementation (staticLibrary.cpp): #include "staticLibrary.h" int add352(int value) { return value + 352; } string sayHello(string name) { string s1("Hello, you are the greatest, "); return (s1 + name + "!\n"); } This code compiles fine in VC++ 6.0 and it produces an object called "staticLibrary.lib ...Show All
Windows Forms Set SingleMonthSize
Is there any way to set the SingleMonthSize of the calendar control in C# I wish I can increase the size of the calendar but apparently I were not allowed to do that. You can not directly adjust the size of the monthCalendar, set the Font size of the calendar instead, it would auto-size the monthCalendar to fit the font size, by default the font size of monthCalendar is 8.25, set it to whatever you want. for example: Font f = new Font ( this .monthCalendar1.Font.FontFamily, ( float )10.2); this .monthCalendar1.Font = f; ...Show All
Visual C++ bug in wingdi.h ?
Hello, could someone verify this is bug : #define GetGValue(rgb) (LOBYTE(((WORD)(rgb)) >> 8)) Atleast for me it throws runtime-check-error when used. """ Run-Time Check Failure #1 - A cast to a smaller data type has caused a loss of data. If this was intentional, you should mask the source of the cast with the appropriate bitmask. For example: char c = (i & 0xFF); Changing the code in this way will not affect the quality of the resulting optimized code. """ Change to #define C_GetGValue(rgb) (LOBYTE(((WORD)(rgb&0xFFFF)) >> 8)) helps, so it seems like a small bug in headers to me. I wouldn't like to spam the Microsoft Connect with this th ough... Regards, Mar ...Show All
.NET Development RFID Reader Project
Hello, I'm currently working on a project which involves a serial port RFID Reader. I have connected the Reader to COM2 of my PC and i'm trying to get the signals from the RFID Tags. I'm using Visual C# and SerialPort class. The problem is that i can't read or write to the port. I even tried to write something to the port using port.Writeline("string") and then read it with Readline() but it seems that nothing is written and nothing can be read. When i set the RtsEnable to TRUE the BytesToRead property changed from 0 to 9 no matter what i did and still i couldn't read anything. I also wanted to ask you if you have any code samples to send me or if any of you has written a similar program that works. I need to fix t ...Show All
Visual Studio .net 2003 IDE closed when i build the solution?
Hi All, im facing a problem that is weired and annoying and need your help please im working on a solution consistes of 6 projects, web applications and windows applications along with web setup projects. the problem is that when i build the solution in order to run it the .net close its window i tried to reopen it again but the problem persists, restarting the computer or shuting it down didn't solve the problem either, scanning my computer with norton antivirus up to date didnt found any viruses, formatting the computer didnt change anything either, sometimes its working after restarting the computer 3-4 times sometimes dont work at all please help me Regards, Ghassan ...Show All
.NET Development Using soap with tcp
Hi, I have a windows service that is currently using tcp format headers and I want to change it to use soap. I've read that soap formatters can be used with tcp but I have not been able to find an example. Here is the code I have in the on start of my service: BinaryServerFormatterSinkProvider serverProv = new BinaryServerFormatterSinkProvider(); serverProv.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full; BinaryClientFormatterSinkProvider clientProv = new BinaryClientFormatterSinkProvider(); IDictionary props = new Hashtable(); props["port"] = 32460; TcpChannel chan = new TcpChannel(props, clientProv, serverProv); ChannelServices.RegisterChannel( chan ); / ...Show All
Software Development for Windows Vista Equivalent of ShowWindowAsync in .net
Does any body know equivalent of the following in .net ShowWindowAsync. Which is used to maximize the control by getting the handle. Thanks & Regards, M.S.Basha .NET does not have an equivalent for ShowWindowAsync. If you need it you'll need to p-invoke it: In C#: [DllImport("user32.dll")] private static extern int ShowWindowAsync(IntPtr hWnd, int nCmdShow); In VB: Declare Auto Function ShowWindowAsync Lib "user32.dll" ( ByVal hWnd As IntPtr, ByVal nCmdShow As Integer ) As Integer Note that you can maximize a form by setting its WindowState property to WindowState.Maximized. You only need ShowWindowAsync if you have a handle to ...Show All
Visual C++ This code snippet makes no sense...
I've come across some code syntax I've never seen. It compiled, but I don't know how, or what it even does! I've been reading a book about DirectX, and in one of the examples, this little piece of code was present: D3DXMATRIX *D3DXMatrixIdentity(D3DXMATRIX *pout); "D3DXMATRIX" is a type, of course. And "D3DXMatrixIdentity" is a function, of course. Now I don't see how this works. Okay, to break it down, first we have a type, which is D3DXMATRIX, then we have the indirection-operator (which I assume is a pointer), and then we have a function (perhaps a call) with a new D3DXMATRIX (pointer) as it's only parameter. How the heck does this work It isn't just a regular function-call. It isn't a function-call that' ...Show All
Visual Studio Where can i get VS2005 for free?
Hello, Where can i get VS2005 for free I am student of High school and i am looking for some studying program where would i can get VS2005. I found http://theSpoke.Net but that's not longer available. I was also looking for MSDN AA, but that's for University or College, but i am studying High school. Any another chance how can i get copy of VS2005 for free I was using VS Express, but that's not support addins and i haven't chance develop for Windows Mobile and these two things are what i want. Sorry for my poor english, i am still learing. Thanks for help. ahmedilyas wrote: that's correct, unless your school has some scheme going on which you can enquire into. MSDN subscription co ...Show All
Windows Forms Best practice - DatagridView column manipulation
Hi I would like to give my users the possibility to change column width, change column order and change column visibility. This information should be stored so the application, next time started, remembers the settings. Also, the most right column, should automatically be resized to hide the background. I've been trying to solve this requirements myself, but not beeing able to find any "good" solutions. Is there a "best practice" for this kind of problems. I guess my requirements must be quite common. //lars Check this out: http://www.code-magazine.com/Article.aspx quickid=0607031 ...Show All
Visual Studio Express Editions DataGridView Modifications
I want to be able to input a numeric value into the .Text = "Value" field. On the Datagridview table. I need to be able to input a value in each field individually Here is my current code: ------------------------------------------------------- Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' Initialize the button column. Dim buttonColumn As New DataGridViewButtonColumn With buttonColumn .HeaderText = AssignmentNameTextBox.Text .Name = "Assignment" .Text = "Value" ' Use the Text property for the button text for all cells rather ' than using each cell's value as the text for its own but ...Show All
Visual Studio How to set VS2003 as default debugger
I am using System.Diagnostics.Debugger.Launch() to debug some startup code. I am coding in VS 2003/Framework 1.1, and when this line is hit, I am prompted to choose what I wanted to debug the code with, one of these options being the VS2003 solution I have open at the time. However, after installing VS2005, when this line executes, the VS2003 solution is not offered as an option. What do I need to reneable VS2003 as an option Hi, In order to re-enable VS2003 as a possible Just In Time debugger, go to Tools | Options | Debugging | Just-In-Time in VS 2003 and make sure all the checkboxes on that pane are checked. Hope this helps, Monica ...Show All
Software Development for Windows Vista Webservice Workflow with Dynamic SetState Activity
I am writing a webservice workflow using Visual Studio 2005. I am trying to add in a Hold State in my workflow so that users can temporarily hold an approval process or something. I can use recursive composition to create an event so that the Hold State can be reached from any other state. The problem is --- how do I then return to the previous state before the Hold State I have tried to set the TargetStateName property within my workflow class (inherited from StateMachineWorkflowActivity) in a CodeActivity but I get a InvalidOperationException. It seems that I can't set the state within StateMachineWorkflowActivity while running. Thanks for any help. Hi Jimmy, You can use the StateMachineWork ...Show All
