Muzammil Baig's Q&A profile
Visual C++ Exception handling showing undefined behaviour. Help !!!
Question #1 : The following code crashes in Visual C++ compiler. It fails in the expression _BLOCK_TYPE_IS_VALID(). It means that, it is deleting a bad pointer. When I give a copy constructor, it works fine but the control does not even go in the copy constructor. Why is it showing this behaviour Question #2 : If I throw a local primitive type like an int, the address of that variable matches in the catch block if I am catching by reference. But for objects, the address for the variable in the catch block changes. Why #include <iostream> using namespace std ; class Exception { char * m_pszError ; public : Exception ( const char * p ) { cout << "Exception::E ...Show All
SQL Server Error programaticaly rendering a report using Reporting Services Web Services
I'm using Reporting Services 2005 SP1 and wrote some code to render reports server-side. My sample report has few parameters that must be passed so I pass these parameters with code. <My code> ReportServiceExecution.ReportExecutionService rs = new ReportServiceExecution.ReportExecutionService(); rs.Credentials = System.Net.CredentialCache.DefaultCredentials; string extension, mimeType, encoding; ReportServiceExecution.Warning[] warnings; string[] streamID; ParameterValue[] parameters = new ParameterValue[2]; parameters[0] = new ParameterValue(); parameters[0].Name = "pID"; parameters[0].Value = "6548747"; parameters[1] = new ParameterValue(); ...Show All
Visual Studio Express Editions Instance of Class and context
Hi, I have a project that contains the following: Form1------------------Form AccountsForm-------Form Search-----------------Form AccUpdate-----------Class I have created the following instances of the above AccountsForm in Form1 and called it ObjAccountsForm Search in the AccountsForm and called it ObjSearch AccUpdate in Search and called it ObjAccUpdate My question is When I need to reference, forexample, the instance of the AccUpdate Class form within my project I am having to type the full context to its instance Form1.objAccountsForm.objsearch.ObjAccUpdate. somepublic property in this Class My project contains many more Class's, and I have had to draw a table to keep track of where each instance of a ...Show All
Visual Studio Team System TFSScheduler not using SSL
I keep getting these messages in the IIS log: 2006-11-07 19:55:24 W3SVC3 192.168.1.2 POST /Services/v1.0/ServerStatus.asmx - 8080 - 192.168.1.2 Team+Foundation+(TFSServerScheduler.exe,+8.0.50727.147) 403 4 5 I already changed the TFSServerScheduler.exe.config to use the FQN and the HTTPS site (port 8081) but it doesn't look like it is using it. Jason, Can you post the changes you made to the config file here (without specifying your FQDN ) Did you make sure to change the "BisDomainUrl" element to "TFSNameUrl" Thanks, ...Show All
Windows Forms Reload data in DataTable
Lets say I have a function that receives two parameters: function MyFunction (dt as datatable, reload as boolean) as boolean end function Is there a way to reload (requery from database) data in dt, without knowing what dataadapter (SelectCommand0 was used to fill data in dt we can use some thing else but dataadapter:) like: MyFunction (dt as datatable, reload as boolean) { new a datareader as Reader; if (reload==need Reload) { dt.remove all rows(); while (Reader.read()) { Add Row to your table } } else { return ;} } ...Show All
Windows Forms Print Preview problem(Bug)
Hey, I have this code in the PrintDocument control under the PrintPage event: private void printDocument_PrintPage( object sender, PrintPageEventArgs e) { RtextboxUC thisrichtextbox = GetCurrentTextBox(); //Start printing text and store last letter... checkPrint = thisrichtextbox.Print(checkPrint, thisrichtextbox.TextBox.TextLength, e); //Check if there should be more pages if (checkPrint < thisrichtextbox.TextBox.TextLength) { e.HasMorePages = true ; } else { e.HasMorePages = false ; } } There are no errors, but when I test it on my program and click print preview...when it opens the PrintPreview dialog It shows the dialog that is telling you how many pages it is det ...Show All
.NET Development facing the same prob
I'm currently working on a application in VB.NET 2003, with a SQL Server backend. I was asked to make an import function that would allow a user to import an Excel worksheet into SQL Server. I'm aware you can do it from Excel directly to SQL Server, but the clients would like something that wouldn't involve the users of this application touching the SQL Server. I'm using an OLEDB for the Excel connection, and a ODBC connection for the SQL Server connection. Next, I have a button event that would open up a OpenFileDialog window, and a user can choose an Excel sheet. If the Excel sheet is valid, it would go on extracting the data into a dataset: ds = New DataSet ds.Clear() strSQL = "Select HEAT, Practice, C, Mn, P, S, Si, Cu, ...Show All
SQL Server Printing at the bottom of report
I need to print a subreport at the bottom of the last page of the report and I can't find a way to do it. Can't use page footer for it because subreports are not allowed in the page footer. Help please!!! I have the same problem. In Crystal I am able to print at bottom of the page. Does Microsoft or anyone have any idea if this feature will be added Print at Bottom of Page (Crytsal Reports) This check box causes each group value to print only at the bottom of a page. (Details continue to print in their normal positions.) The command is useful for printing invoices and other reports where you want a single group (for example, line items grouped by order number) to appear on a page and the value for that group (subtotal, summary fi ...Show All
Visual Studio Class Diagram - How to use Associations & Properties correctly
Hi, I realize I am a Class Diagram newbie, so i am hoping someone can help me with what is probably a simple problem. I have a very simple VB project with one form and one class. The class contains a few properties and methods that I want to use in the form. In the Class Diagram, I create an association between the two item by drawing an association line from the form (Form1) to the class (clsMain). This creates the following code in the form's declaration's section: Public Property clsMain() As clsMain Get End Get Set ( ByVal value As clsMain) End Set End Property I can then call the properties and methods in the class like so: clsMain.CurrentValue = CInt ( Me .txtInput.Text) ...Show All
SQL Server Converting Desktop Engine to SQL Server 2005
I have got SQL Server Desktop Engine running with 2 database and I need to install the evaluation version of SQL Server 2005 instead. A straight upgrade does not seem to be possible. Does someone know if backing up the databases, uninstalling the desktop engine, installing SQL Server 2005 and then importing/restoring the databases would be an option to look into Here is an article on Upgradeing MSDE to SQL 2005 Express , you could follow this example then it is an easy upgrade to the Full SQL 2005 Product. ...Show All
Software Development for Windows Vista While burning DVD: time estimate way off
Using the event sink Update's IDiscFormat2DataEventArgs (2nd parameter) to retrieve: get_ElapsedTime and get_TotalTime (in seconds) The progression is as follows (below.) Notice that the total time estimate is really off, and after the time the elapsed time reaches it, they both progress together all the way to the end. This means, that in this case (burning a dvd) the total time actually ends up taking 7x the original estimate of 101 seconds. So 86% of the time, we end up reading as 100% progress. That original estimate of total time keeps being updated the same way until elapsed time hits it, then they both increase until the end. Not very useful for a customer... Am I missing something, or is there some way this can be improved 0, 0 0, ...Show All
Visual Studio Team System CTP7 Sql2K Data Generation Failure
Hello all. I have a project for Sql2K data base. Both Sql2005(default, SP1, Dev) and Sql2k(named, SP4, Ent) instances are on my machine. While I try to create some data in source database, VS fails with following message: Error 1 An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) C:\Projects\DDRGD_TRAIN_DELAYS\DigDes.RGD.TrainDelays.Sql.DataBase\Data Generation Plans\ReportDataGenerationPlan.dgen 1 0 DigDes.RGD.TrainDelays.Sql.DataBase Project output: Retrieving data from ...Show All
Windows Forms Datagridview unbound computed on bound...which event to use?
Okay, I've spent the day trying to get this right, and not quite there yet. So much for rapid application development. Please advise My datagridview control has bound columns and unbound columns. I want the unbound columns values set based on a computation against the bound columns. Say my boundcolumn value is a date Sep 20 2006, so I want my unboundcolumn value to be assigned "Wednesday". I can do that fine in various events, but not immediately after the initial databinding...my unboundcolumns are remaining blank until my user starts selecting cells because I haven't solved which event when the datagridview is first loaded to use to calculate the unboundcolumns. Any ideas I've tried after the rowsadded and databindco ...Show All
.NET Development Generating sql query using C# code
How do i generate sql query using my frontend windows application C# 2005. ie developer has to select table and columns from the list box. it should look like our add query in the sql express 2005. Thanks Arun Arun S wrote: Thanks Paul June A. Domag Exectly you are correct. but i want some sample code. could you pls help in this case. Thanks Arun Hi, A sample like that is quite complicated. Its like creating a full pledged program. Just try checking 3rd party controls that generates sql. Maybe if you get lucky you might get a hold on an open source in codeplex . cheers, Paul June A. Domag ...Show All
Game Technologies: DirectX, XNA, XACT, etc. manual deploy
Hello, Is there a way to manually deploy a game to the xbox via commandline I am wondering how I can deploy an application built on top of the XNA framework say, from the command line. It seems like XNATrans.exe might be responsible for the actual deploy, but I can't find any information on doing this. I am curious how to deploy an app not built in the Game Studio Express, but rather built with XNA Build. Hi, Unfortunately, this is the only way to deploy and communicate with your Xbox at this time. I suppose that you can try to automate VS as a workaround. V ...Show All
