Aamir Iqbal's Q&A profile
Visual Studio Express Editions Matrix free function problem
Hi everyone, My program creates a matrix with the specified size. And it also some additional function that can free the matrix. However, when I call the below main function, my free function does not work properly so how can I fix it For example the outpt that I gave when I ran the below application; Sorry,we can not perform the add operation since the sizes of matrices are different 1 2 3 4 2 5 6 7 3 6 8 9 4 7 9 10 0134526920134526944134526968 134526920 5 6 7 134526944 6 8 9 134526968 7 9 10 so how can I correct this 0134526920134526944134526968 134526920 5 6 7 134526944 6 8 9 134526968 7 9 10 The codes for .cpp file; #include ...Show All
Visual Studio 2008 (Pre-release) WPF and Web Forms
Hello, Microsoft has provided a rich set of functionality through various web-based widgets such as those available at www.microsoftgadgets.com . I was hoping of passing values from my WPF page to a control that was housing a web page. Does WPF provide a control to allow you to load a web page, or other web-based controls into a WPF page Can someone please describe how to do this if it is possible Thank you for your help. Ah! I figured out the problem. I was pretty sure it was the Frame element (as you pointed out). However, my XBap wouldn't run. I figured out that the WebPermission was not included, this was throwing a SecurityException when I attempted to navigate to a URL. Thanks for your help ...Show All
Visual Studio NEED QUIDANCE IN INSTALLATION OF RC2 ISO.DLM
HELP! I Need quidance on installing RC2 ISO.DLM Ellis ...Show All
.NET Development incoding arabic language to hexa(important)
my application should send texts in arabic language through http protocol .. and as we know http does not support arabic language ... so I have to incode the texts into hexa ... how can I do that ... I have a source code but in VB.net can any one convert it to c#.net or can any one help me to write the incoding function .... this is the VB.net code Public Function ArabicHex( ByVal b() As Byte ) As String Dim s As String , h As String Dim i As Integer i = 0 s = "" While i <= UBound(b) h = Microsoft.VisualBasic.Right("00" & Hex(b(i)), 2) i = i + 1 h = Microsoft.VisualBasic.Right("00" & Hex(b(i)), 2) & h If h = "000D" Then h = "" ...Show All
Visual Studio Express Editions Confirm Deletion of a Record
I have a datagridview with a binding navigator with a delete button (the red X). I want a message box to appear when the user clicks on the delete button to confirm whether they in fact want to delete the record. I have the following code so far: Private Sub BindingNavigatorDeleteItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorDeleteItem.Click If MsgBox( "Are you sure you want to delete selected record(s) " , MessageBoxButtons.OKCancel, "Confirm Delete" ) = Windows.Forms.DialogResult.Cancel Then End If End Sub As you can see, I do not have anything after the Then line because I can't figure out what code I need to cancel the event. Of course, th ...Show All
Windows Live Developer Forums Multiple problems trying to add third-party gadgets to Live
First of all let me say that we did not seem to have these problems as of August 29th, 2006. We are having some erratic behavior from Windows Live where we are only able to add a gadget successfully a small percentage of the time. If we call the live.com add URL, we have found that when Live hits our servers for the manifest, sometimes the content-length returns as 0, sometimes the correct length comes back. Due to this, we have problems were we are stuck with a terminal "Loading content" message, or we have an empty IFRAME. If we hit the same URL the Live proxy is calling, we get the content back without any trouble. When we try to add the gadget using the "Subscribe" box under advanced options, normally we get a message saying "Thi ...Show All
Visual Studio 2008 (Pre-release) TextPointer.GetCharacterRect throwing NullReferenceException
I'm trying to write code to scroll particular paragraphs of a FlowDocument to the top of a FlowDocumentScrollViewer. What I'm thinking to do is to: 1) Find the Paragraph by Name in the FlowDocument 2) Use the Paginator attached to the FlowDocument and the GetObjectPosition to get a TextPointer to the Paragraph. 3) Use TextPointer.GetCharcterRect to find the offset to that paragraph in the document 4) Find the ScrollViewer elemet in the Template of the FlowDocumentScrollViewer 5) use the ScrollViewer.ScrollToVerticalOffset method with the offset computed in 3. Is this strategy going to work I've run into one problem straight away, which is that in step 3) (and see code below), GetCharacterRect throws a NullReferenceE ...Show All
SQL Server strange null exception
Using vb express and sql express. I add selected rows from table1 to table2 have all the code working for that. When updating the changes I noticed that for somereason the CustomerID field was autoincrementing. Can't have that. Changed the properties to autoincrement false. Now I get an exception saying cannot add null to column. Problem is, the field is not null. When i copy the row the "CustomerID" value is 2. For some reason it is not seeing this field. The CustomeID field is not a key. I don't want it set to autoincrement as it is in a table set on the many side of a one to many relation. The field is not set to read only. If I do set it to autoincrement it sees the field fine and updates the table with autoincrem ...Show All
Visual Studio Tools for Office Deployment Problem with Outlook 2003 Add-In
I created an add-in for Outlook 2003 using VSTO2005 SE Beta and Visual Studio 2005. The add-in worked great on my development machine, but getting it to work on a client is a different story. At first I tried copying the addin.dll over to the client machine and adding it to Outlook through the COM Add-Ins option. I discovered that wouldn't work, and I should probably use a setup file. I've also tried the setup method using the tutorial provided by Microsoft at http://msdn.microsoft.com/library/d...Walkthrough.asp . Needless to say, this didn't work either. It has been a huge detriment to my time trying to get this to work. To simplify things, I started a new Outlook 2003 Add-In solution. ...Show All
SQL Server Why is there a 256 JOIN Limit in SQL Server 2000/2005?
Hi, Does anyone know why there is a 256 JOIN limit in SQL Server 2000/2005 Are there any plans to raise this limit (or do any add-ins exist to raise this limit) Thanks. BTW, a separate question -- is there a limit to the number of rows a SQL Server 2000 database table can have What about SQL 2005. Thanks. Almost sounds like the classic "Noone will ever need more than 64k memory..." Unfortunately, I've run into this problem as well. In my case, SSAS is generating queries to populate and optimize it's dimensions. I cannot control how it creates those queries, but it is trying to use more than 256 joins to do so. (My data warehouse only has 43 tables btw.. so it must have to do with ...Show All
SQL Server string literal problem
hi! din't work. I need some thing in C# that can execute like this: This works in SQl Query perfectly. xp_cmdshell 'dtexec /f \"D:\\SSISProject\\Integration Services Project1\\ArchiveMainMultiTables.dtsx\"/Set \package.Variables[User::connectst].Properties[Value];\""Data Source=SE413695\AASQL2005;Initial Catalog=TestDB;Provider=SQLNCLI.1;Integrated Security=SSPI;"\"' How do we interp ret in c# currently i have some thing like this which is not correct i need to fix this to work in C# string conn = @"""Data Source=SE413695\AASQL2005;Initial Catalog=TestDB;Provider=SQLNCLI.1;Integrated Security=SSPI;"""""; path = @"""D:\SSISProject\Int ...Show All
Windows Forms DataGridView AutoFilter whitepaper and sample
Are you spoiled by the AutoFilter feature in Excel Do you want the same functionality in the DataGridView control Then my new whitepaper and sample are for you. See: http://msdn.microsoft.com/netframework/windowsforms/default.aspx pull=/library/en-us/dnwinforms/html/DtGrdVwAF.asp The DataGridViewAutoFilter library provides a custom DataGridViewColumnHeaderCell with a drop-down filter list that displays each unique value in a column, and updates the filter of the bound data source when a value is selected from the list. A custom DataGridViewColumn is also provided to make using the AutoFilter header cell easier, particularly in the Windows Forms Designer. Customizing DataGridView column header cells is not as easy as customizi ...Show All
Visual C# Code Security Review Template
I'm not sure exactly where to post this. Does anyone have a code security review template I'm just looking for some general questions to ask and a starting point to tweak for my own environment. Thanks, Steven How abour start with the famous "Writing Secure Code" book http://www.microsoft.com/mspress/books/5957.aspx (Someone tole me it was a "must-read" in Microsoft) ...Show All
SQL Server SSIS Run'ablility' requirements
I'm using the import wizard to create a new table from a flat file source. The table gets created but no data gets copied. What's wrong Here's the report: Operation stopped... - Initializing Data Flow Task (Success) - Initializing Connections (Success) - Setting SQL Command (Success) - Setting Source Connection (Success) - Setting Destination Connection (Success) - Validating (Error) Messages * Error 0xc00470fe: Data Flow Task: The product level is insufficient for component "Source - inSsrc_txt" (1). (SQL Server Import and Export Wizard)   ...Show All
Game Technologies: DirectX, XNA, XACT, etc. D3DERR_NOTAVAILABLE while build of first example in help how to do
I used to code in pascal, cobol, assembly, basic, etc, but not C. From: Your First Game: Microsoft XNA Game Studio Express in 2D following along and doing the first build, I get the error above. I did not think I was calling the 3d engine only the 2d. I cannot find any help on the error, where to look, etc, except what is in the error window when you cursor over it. I cannot figure out how to copy the error in that popup window to look at it further. I know some dislike nubies, but please help if you know the answer. Its disheartening to type in only 6 lines of code and not be able to debug it! To say the least. Thanks OH OH OH, I figured out how to copy the error: Error 1 Building content threw InvalidOperationExcept ...Show All
