Mart Tapp's Q&A profile
Visual C++ N00b question
hi i am totally new to programming so please forgive my stupid questions. i am running MS Visual studio .NET 2003 i started up MS Visual Studio .NET and went to File > New > Project > Visual C++ Porjects > .NET > Windows Form Application (.NET). can anyone please tell me what version of Visual C++ that i would be using its very confusing as i am not sure if it is .NET or Visual C++ or even Visual C++ .net i am totally lost as there are so many languages. if i knew what language i was using i could find help a lot better by knowing what to exclude. please help me. thank you Do you want to know the version of the run-time libraries, or the compiler If you want to know what version the comiler is you can ...Show All
SQL Server User initiated backups
During the month end close the accontants want to have their SQL2000 databases backed up before they run certain processes. We (IT) run the backups using the SQL management console when they call. Is there a way we can allow the users to start a backup without giving them access to the SQL management console We already have end of day backups scheduled automatically. The requirement here is to backup the database whenever the accountants have completed certain procedures during the close so I can't have them run on a seet schedule. ...Show All
SQL Server Errors using multiple parameters in a SQL Statement
In an OLE DB Source in an SSIS package, we are having difficulties using multiple parameters in a SQL statement. Using a single ' ' works fine, but I've read that when you want to map more than 1 parameter you should use 'Parameter0, Parameter1, etc'. The problem is that when we use Parameter0 and Parameter1 and then try to map it, it says that the query contains no parameters. Can anyone help with the correct way to use multiple parameters in a SQL query that's part of an OLE DB Source task Thanks, Mike Neither Parameter0 or just 0 is working This is the SQL in an OLE DB Source. At one point, 0 and 1 caused the parameter mapping dialog to appear, but these others are not workin ...Show All
SQL Server Cant upload report (rdl-file) in Reporting Services 2005
When uploading a report definition file in Report Manager I get following error: An unexpected error occurred while compiling expressions. Native compiler return value: ‘[BC2000] compiler initialization failed unexpectedly: Project already has a reference to assembly System. A second reference to 'C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll' cannot be added.’. (rsUnexpectedCompilerError) Any suggestions Thanks Robert for pointing out the direction. I did review my report definition code row by row and found following section: <CodeModules> <CodeModule>System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</CodeModule> </CodeMod ...Show All
.NET Development Marshaling unmanaged C 2D array
How to access this: __declspec(dllexport) void __stdcall TestArray(int nI, int nJ, double** arr1, double** arr2) { int x1; int x2; for(x1 = 0; x1 < nI; x1++) { for(x2 = 0; x2 < nJ; x2++) { arr1[x1][x2] = 5; arr2[x1][x2] = arr1[x1][x2]; } } return; from c# i tried with: using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace Runner { class Program { [DllImport("../../../debug/testArraysUnmanaged.dll")] public static extern void TestArray(int i, int j, double[,] arr1, double[,] arr2); static void Main(string[] args) { int nI = 100; int nJ = 50; double[,] array1 = new double[nI, nJ]; double[,] ...Show All
Windows Forms Problem with form repainting
Hello all. I have some form with user controls on it. These controls take some time to be fully repainted. As result when I open this form I see repaint process for first control, then second etc. This looks a bit terrible and I want get rid of this. I tried using SuspendLayout() ....loading...... ResuleLayout() and setting double buffering for form with following code: SetStyle( ControlStyles .OptimizedDoubleBuffer | ControlStyles .AllPaintingInWmPaint, true ); but this did not help. Any ideas Thanks in advance. Hello Chris, thanks for your reply. Actually I'm using double buffering for controls that take time to be fully repainted, but I still get this problem. I expected same behaviour from the form when set do ...Show All
Visual Studio 2008 (Pre-release) Does WCF Support transactions ?
Does WCF Support transactions How would this be done Here is the help topic for this: http://msdn2.microsoft.com/en-gb/library/ms730266.aspx If you dont think it helps you get started, that's good feedback on the documentation for the product team. Thanks! Kavita ...Show All
Smart Device Development Problem trying to consume a web service behind a web service proxy
I am hitting a rather critical bug regarding consuming a web service on a mobile device that is sitting behind a web service proxy (Jaxview). My device is able to see the wsdl of the service (on IE) and it is able to send a request to the service, but on the response I get the error below. The response is processed just fine if I bypass the proxy but that is not an option in my environment. I also have been capturing the tcp traffic to confirm that the proxy is indeed sending back valid xml responses to my request and it is. I am really at a loss as to why I am getting this error. Regards, Darren "The response did not contain an end of entity mark." at System.Net.HttpWebRequest.finishGetResponse() at System.Net.HttpWebRequest.Get ...Show All
Visual Basic FormClosing Event
Hi there. I have an inherited form hierarchy where the root form captures the FormClosing event, which then invokes a overriden "FormClose" method. The overriden method correctly determines the value of the e.cancel attribute and passes it back to the root FormClosingEvent handler. However, when e.cancel = true the form closing event is not canceled and the form closes anyway. The root form, and all it's children, are children for a MDI form. Can anyone tell me why e.cancel = true in the case doesn't prevent the form from closing Thanks. Here is the declaration of the FormClosing Event handler: Private Sub StandardUIForm_FormClosing( ByVal sender As Object , ByVal e As System.Windows.Forms.FormClosingEve ...Show All
Visual Studio Express Editions Delete a Selected row
I am trying to delete a row in DataGridView with a Button from a ToolBar. I have written code to add a row with input from the user and need to find out how to delete a certain rwo that I click on and highlight. Is this possible If yes how would I go about telling the delete command which row is to be deleted Thanks. Nick I thought we were talking about datagridviews. What is Me .DevicesDataSet.Workstations ...Show All
SQL Server Getting Previous Date SQL Script
Hello, I have a table that also has a timestamp field I want to get any data that was inserted into that table on the previous day even if the month changes and i have no clue how to go about that Tdar Waldrop's is the better option here, because it doesn't need to apply a function to yourDateColumn before doing the comparison. This means that it can use indexes effectively. Rob ...Show All
Visual Studio Team System Global Exception Handler for a Test Project?
I have a test project that exercises a legacy COM server using a layer of Interop assemblies. There are thousands of test cases. The COM server throws a COMException whenever an error occurs (with only a return code and a one-line message), but makes available an extended set of (server-side) stack trace information via a separate method call. I'd like to add that additional information to the test results of a failing test case. In my main application I would put a try/catch block around the call, catch COMException and re-raise my own "ServerException", which would make available all of the additional stack trace info. Is there a way to apply this same mechanism globally for all test cases, without having to add the exact sa ...Show All
Visual C++ Automated command line build of multiple projects, but not the entire solution
I have a solution with around 300 projects that are divided into solution folders like this: solution: solution folder 1: project 1 project 2 .... project 5 solution folder 2: project 6 .... project 30 etc... In the devenv gui I can click on a solution folder and build all projects in that solution folder for a given configuration. How do I do this from the command line using either VCBuild.exe, devenv.exe, or MSBuild.exe So far all I have been able to do is build either the entire solution for 1 configuration or build it one project at a time. I cannot justify the maintenance overhead of having seperate solution files for each set of projects I want to build. Another possible solution for my problem would be a w ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Skydomes
How would I render a sky dome with XNA They are both the same concept... keep locked to the camera position and rotate with the camera in one form or another. The only things to base a decision off I can think of : Domes: You can do more with shaders. IE clouds skimming over.. multiple paralax.. a better simulation of a dynamic atmosphere and or background scenery. Boxes: Very fast and easy. Not really good for a dynamic background.. the only way would be to render a seperate scene to a cube map type scenario and only updating every now and then. That said my first XNA game is using a Sky Box solution due to the fact that the scenery is static... also a correctly made and imple ...Show All
Visual Studio Exporting subreports to excel ... SOS
Hi there I'm using VS2005 and SQL 2005 reporting services. I've got a main report and a subreport in one of the table cells. I'm using local processing mode for these. When the reports are viewed from the reportviewer, everything looks fine. But when I export it to Excel, the subreport isn't exporting. Instead I get the following message : "Subreports within table/matrix cells are ignored." How can this be addressed Is there anyway of getting information on the subreport exported to excel Any help would be greatly appreciated. TIA. This can be addressed by restructuring your report. There is a little more information on this topic at this thread: http://forums.microsoft.com/MSD ...Show All
