Software Development Network Logo
  • .NET Development
  • Windows Vista
  • Visual C++
  • Windows Forms
  • IE Development
  • Microsoft ISV
  • Smart Devicet
  • Visual Basic
  • Visual C#
  • Visual Studio
  • VS Team System
  • SharePoint Products
  • SQL Server
  • Game Technologies
  • Visual FoxPro

Software Development Network >> Syed Mahmood Ali's Q&A profile

Syed Mahmood Ali

Member List

robin l
Brian Tucker
Elurahu
Valst
Saiboro
bijubiju
Fred Robinson
Alex Hoogendoorn
Rob218
No-spam Sam
spasnikowski
Tarana
Bruno Kovačić
chris441962
piportill4
wiscon
Brian Abram
Mike Hadlow
Gagandeep Singh
Ricardo Francisco
Only Title

Syed Mahmood Ali's Q&A profile

  • .NET Development Extracting data from TCP/IP and UDP network packets

    I am working a personal project that involves sending numerical data from one computer to another. The UDPClient and IPEndPoint working together can only receive an array of bytes. Converting from bytes to integers is a pain, to say nothing of what I imagine for converting to floats. Some details are discussed in a C# thread found here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1062358&SiteID=1 It seems to me that with all the communications going on, there are standard methods of extracting various types of data from network packets. I have been unable to find them. Question: How do I extract 16, 32, and 64 bit integers and various floating point values from network packets For stream based sockets (ie. TCP) ...Show All

  • .NET Development Problem with calculated column - does not refresh automatically

    Hi I have three tables tbl_customer_visit (master), tbl_customer_visit_parts (detail) and tbl_customer_visit_services (detail). That have 1-many relations using customer_visit_id column in each table. I am using calculated columns in both the tables as following: tbl_customer_visit_parts and tbl_customer_visit_services have calculated columns for calculating the total cost for each part sold and service given for a given visit. then I have aggregate calculated columns in those tables to calculate the total costs for each table for a given visit. Then I have calculated column in tbl_customer_visit to take the totals from the detail tables (respective calculated columns) and give me the total amount due for that customer visit. NOW, the prob ...Show All

  • Visual Basic Updation Error (Access Database)

    Hi all i am facing a strange problem that i cannot under stand. i have a table names user_details (access database.). and when i want to change the password of a user named admin. it will generating error. =================================================================== Dim cmd As New OleDbCommand("UPDATE USER_DETAILS SET PASSWORD = '11111' WHERE USER_NAME = 'admin'", Conn) Try cmd.ExecuteNonQuery() Catch ex As Exception End Try cmd.Dispose() =================================================================== Error is. {System.Data.OleDb.OleDbException} [System.Data.OleDb.OleDbException]: {System.Data.OleDb.OleDbException} HelpLink: Nothing InnerException: Nothing M ...Show All

  • Windows Forms How to have no image for some nodes in a TreeView with an ImageList?

    Is it possible to set some nodes within a treeview to have no image My treeview is bound to an underlying imagelist. I know that you can hack this by adding some sort of blank space image, but the imagelist constrains this to a certain size so you're left with a big space -- not ideal. I don't believe this is possible. The TreeNode inherit their imageList from the underlying TreeView so there is no way to decide on a node by node basis whether or not and images should be attempted to be drawn. You can set the ImageKey to null and there won't be an image drawn, but as you pointed out there will be the extra space inserted. ...Show All

  • Visual Studio Team System Coudl not load type ProjectInitializationDetails from Assembly Microsoft.VisualStudio.TeamSystem.Data

    After reinstalling the Data Dude, I get the above error with the effect that I can’t open any DB projects anymore. Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- I already tried that, reinstalling / reparing / restarting etc. Nothing helped at all. My luck that this was a Virtual machine with Undo disk, because the problem was not solved. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. The XNA Framework and DirectX

    Hi! Do I need to at any time learn DirectX when working with the XNA Framework In other words does the XNA Framework provide everything that DirectX provides, but without writing a single line of DirectX code Thanks, O. It depends on how deeply you are diving in the programming. All of us are really happy without writing any line of the DirectX code (except MS boys). The MS DirectX supplies a set of high-level APIs to access a hardware things. Writing an  application used native DirectX in full strength is not a trivial task. The managed DirectX for managed languages (like C#) is a step toward the less painful coding and the XNA framework is just the next step. Because managed languages are relativel ...Show All

  • Visual Studio Express Editions Joining code

    Is it possible to make a program with joined code (Like joining a little bit of VB and a little C#) Not in the same class or in the same project ... However you can have a VB project and a C# project in the same solution ...Show All

  • Visual C# Expedite the Build Process

    I have a solution with a large number of projects (including a client app, server app, some utility DLLs, some custom development tools, and some DLLs that act as plug-ins for the main applications).  All of them are C#.  The time it takes to rebuild even after making a small change in one code file is significant.  Even though it only compiles one of the projects, it lists each project in the output pane and spends several seconds 'building' it (which doesn't seem to do anything).  My best guess is that its scanning the files of that project to determine if anything has changed and needs to be rebuilt. If it helps, the project has 32 projects with 507 code files in total (although the distribution is very uneve ...Show All

  • SQL Server PInvokeStackImbalance when exporting report to PDF with chinese chars

    Is there a way around this This is a blocking issue for me. The generated pdf contains ' ' instead of the chinese chars. I use Reporting Services in local mode. Thanks for your help. Charles Here's the call stack: PInvokeStackImbalance was detected Message: A call to PInvoke function 'Microsoft.ReportViewer.Common!Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionPDF+WindowsGDIWrapper::GetGlyphIndicesW' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. [Managed to Native Transition] > Microsoft.ReportViewer.Common.dll!Microsoft.Repor ...Show All

  • Windows Forms vb 2005 and sql server datetime field

    hi im trying to display the documents which are going to expire within 7 days. i have a document table and expirydate field (in smalldatetime in sql server. i wrote the following code at form load event. is there any better way to do it Dim t As String t = " 10:28:00" TextBox1.Text = Format( My .Computer.Clock.LocalTime.Date, "yyyy-MM-dd" ) Dim x As String x = TextBox1.Text & t MsgBox(x) str1 = "select * from company where compregexpdate =" & "'" & x & "'" '& " '" & 2006-11-16 10:28:00 & "'" con.ConnectionString = "dsn=alphasql" con.Open() da.SelectCommand = New ...Show All

  • Visual Studio 2008 (Pre-release) Will WPF *EVER* work under W2K?

    I am keen to develop my next wave of development using the WPF. Thankfully it's a small project for internal use so it will be a good chance to try WPF out. The issue is there are two machines that run Windows 2000 AS. In the long term they will need this app on these machines, but in the short term (next 9-12 months) it's not an issue. Will there ever be a SP/FW release for W2K that will at least all WPF apps to run even if none of the WPF visuals are viewable by the user If not, does this mean that I'll have to develop two UI's for the app If so it's a big thumbs down and I doubt my company will even move from .NET 2.0/WinForms I wouldn't count on WPF for Windows 2000 ever becoming available - the OS is already in extended s ...Show All

  • Visual C++ Different behaviour of MainFrame with classic and XP styles!

    In my windows profile Windows Classic style is set. My application has no scroll control here. But when it is run on computers with XP style windows, it gets a big vertical scroll to move my View up/down. I really don't want no scrollbar on my application. First thing I did was to set FALSE parameter in View's InitInstance here:  GetParentFrame()->RecalcLayout(FALSE);  ResizeParentToFit(); ... but, it did nothing to remove my unwanted scroll! Then I tried this piece of code:  CRect r;  GetClientRect(r);  SetScaleToFitSize(CSize(r.right, r.bottom));   .. and that removes the scroll, but now left side of the mainframe is empty, and there is just about enough space left ...Show All

  • Visual Basic Opening forms on 2nd monitor

    Hi all, I'm trying to get a form to open on a secondary display. Anybody know a way to open a form on a different screen other then the primary one Or even if you can't open on the 2nd screen, how to move a form to a secondary display by code. Dustin. Use the Screen object: Dim f As new Form Dim screens() As Screen = Screen.AllScreens f.Show() For Each sc As Screen In screens      If MessageBox.Show(String.Format("Move Form to Screen {0} ", sc.DeviceName), "Pick Screen", MessageBoxButtons.YesNo) = Windows.Forms.DialogResult.Yes Then           f.Location = sc.bounds.Location           Exit For    ...Show All

  • SharePoint Products and Technologies Application crashed if i set the data source of excel to "external data connections"

    My application would crash if the data source of my excel workbook on server is extracted from sqlserver . So I add a breakpoint to the code... I found it throw an exception when code run on "ExcelService.OpenWorkbook" I saw the post Excel Services Architecture said "You can develop applications that call Excel Web Services to calculate, set, and extract values from workbooks, as well as refresh external data connections" Any suggestion hi, Luis Bitencourt-Emilio The message is: The workbook that you selected cannot be loaded because it contains the following features that are not supported by Excel Services: External data ranges (also called query tables) ...Show All

  • Visual Studio THANX!!!

    I've been using VS 2005 Beta 2  for a few weeks now on a win2K machine, with nothing else installed at all. It's been working fine every day for three weeks, but today I get the following error message whenever I try to open an .aspx file. "Package 'Visual Web Developer Trident Designer Package' has failed to load properly. ( GUID = {30AE7E2B-6CO2-496D-8E43-85F7A90AEFF1} )..." I have not had any previous versions installed, and installed directly from DVD part no. X11-16280 EN SKU 121-00019. In fact I assembled this machine especially to test out VS 2005. However, I have VS 2003 installed on another machine on the same domain which I also log into and use, and I may have logged off/on the VS 2005 Beta 2 machine for the firs ...Show All

©2008 Software Development Network