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

Software Development Network >> Madhu K Nair's Q&A profile

Madhu K Nair

Member List

santosh2001
No-spam Sam
M. Shariq Muzaffar
ftbx
JohnnyP34
X4U
Chris128
djarctic
Bill Foust-DAI
RabinLin
Kesava
carlz
red-ned
forrestcupp
Sniper167
Joe Janson
Chris.P.J
Dvlnblk
Carlos Marcelo Farías
Kerryr
Only Title

Madhu K Nair's Q&A profile

  • Windows Forms ClickOnce fails on assembly containing Win32 resource

    If anyone can help me with this I would really appreciate it: I have an assembly into which I have linked a manifest file as a Win32 resource. This is necessary since I want to use a class in this assembly with registration-free COM interop from a Win32 application. I also want to use this assembly with a .Net application that I want to deploy using ClickOnce. However when I try to install the application from the deployment location I get the following error: ERROR SUMMARY * Activation of \\myhost\deploy\MyApp\MyApp.application resulted in exception. Following failure messages were detected: + Reference in the manifest does not match the identity of the downloaded assembly MyAssembly.dll. If I remove the manifest file as a Win32 resource ...Show All

  • Windows Forms Icon.Save throws an error

    I am tring to save an icon from the from ( or just an icon in general ) using the Icon.Save method and i can not get this method to work correctly for me. Can someone point out to me how to use the Icon.Save method ---------------Error-------- Problem saving icon Error HRESULT E_FAIL has been returned from a call to a COM componet ----------------------------- if ( this .sfdIcon.ShowDialog() == DialogResult .OK) { try { using ( FileStream fs = File .Create( this .sfdIcon.FileName)) { //Our current icon is the icon on the form. this .Icon.Save(fs); fs.Flush(); } } catch ( Exception ex) { MessageBox .Show( "Problem saving icon" + Environment .NewLine + e ...Show All

  • .NET Development odbccommand object returning DBNull

    Hello Everyone, I am running the following query against an Access database using an ODBC command. SELECT Sum(APM_MASTER__DISTRIBUTION.Amount-APM_MASTER__DISTRIBUTION.Amount_Paid) AS Balance FROM APM_MASTER__DISTRIBUTION INNER JOIN APM_MASTER__INVOICE ON (APM_MASTER__DISTRIBUTION.Vendor = APM_MASTER__INVOICE.Vendor) AND (APM_MASTER__DISTRIBUTION.Invoice = APM_MASTER__INVOICE.Invoice) WHERE (((APM_MASTER__DISTRIBUTION.Status)='Open') AND ((APM_MASTER__DISTRIBUTION.Accounts_Payable_Account) Like '400-3600*') AND ((APM_MASTER__INVOICE.Invoice_Date)<#9/14/2006#)); The query above returns a value when I run it in access, however when I run the query programatically, using the function below, DBNull is returned everytime. Pub ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. A noob's first game: Shape Battles (a GeoWars clone)

    Well, I've "finished" work on my first game, which was really just a launching pad for me to experiment with XNA etc. Im quite new to game programming and have limited experience with C# (although I have exp with C and work with ASP.Net in my 9-5). I wanted to post my source code for anyone interested in checking it out, in the hopes that other noobs like myself could gain something from it. You can find it on my MSN Blog here: http://xnagamer.spaces.live.com/ Enjoy, and comments are defnitely appreciated! Thanks! Great job for your first XNA game! It totally had the feel of geometry wars, (except for the AI...that was kind of annoying). But all around, one of the more fun first games I've play ...Show All

  • SharePoint Products and Technologies where to store a unique ID?

    Hello,   I want to store a unique ID to use in a webpart. In a aspx page I would do it with a database field and a stored procedure, but with webparts i don't know. I want to give all my documents a unique ID, but not use the ID from sharepoint itself. A web part is a piece of code, the same as an aspx page. It does have storage, but it is not a database management system, and does not offer protection from concurrency or locks etc. Why not do the method that you allready know how to do (use a database field and a stored proc) to create these IDs ...Show All

  • .NET Development Get Absolute Path of Drive mapped to local folder

    Can anyone help me find out how to get the absolute path of a drive which is mapped to a local folder For example, I have a "c:\test" folder and an "x:" drive which is mapped to c:\test. I'm looking for a function which will return "c:\test" when I pass in "x:" Thanks rr12 To confirm... you are looking for some sort of API call that can give you the same data that is provided when you run ' net share ' from the commandline ...Show All

  • SQL Server Printing differences between RTM and SP2

    Using SQL Server 2000 SP4 and SQL Server 2000 Reporting Services I'm using the code from http://blogs.msdn.com/bryanke/articles/71491.aspx and have discovered a problem with the printed report between the RTM version of Reporting Services and SP2. Our development server had not been upgraded to SP2 and using Bryan's code the reports were printing without any issues at all. Now the server has had SP2 applied the report footer is missing and data on the right-hand margin is truncated. Anyone got any ideas why this would be the case What can I check to see why this would be happening Thanks I'm not sure what would have changed to cause this behavior. The only other thing I can think to try is ...Show All

  • Visual C++ DataSet Creation Visual C++ 2005 Express Edition

    Hello All, I am trying to create my own dataset like this: using namespace System; using namespace System::Data; ..... .... int main( array <System::String ^> ^args) { DataSet TT = gcnew DataSet(); } When I am trying to build this it gives me the following error: ..\DbCheck.cpp(29) : error C2664: 'System::Data::DataSet::DataSet(System::String ^)' : cannot convert parameter 1 from 'System::Data::DataSet *' to 'System::String ^' I don't know why Can somebody help me out and explain to me why this doesn't work' Many Thanks !! Well, keep in mind what the gcnew operator is doing. Your original code won't compile for essentially the same reason the s ...Show All

  • Visual Studio 2008 (Pre-release) ContextMenu propagation using HierarchicalDataTemplate?

    Hello! I'm trying to propagate a ContextMenu using a HierarchicalDataTemplate. The rendering looks just fine but how do I assign the Command property and CommandParameter property of the synthesized MenuItem objects Best regards, Henrik Dahl Sam Bent, Unfortunately I get a runtime exception, which I do not really understand. The exception is: "XamlParseException" having the message: "Must specify both Binding and Value for DataTrigger. Error at object 'System.Windows.DataTrigger' in markup file 'Dantek.Library.Presentation.CommunitySearch;component/window1.xaml' Line 1544 Position 7.". Line 1544 is the closing "</ DataTrigger > " element of t ...Show All

  • .NET Development SOAP Validation Tool?

    I've created a C# application which queries a Web Service. The service responds as expected, but when debugging Visual Studio says 'Server has committed a protocol violation. Section=ResponseStatusLine [in System.Net.WebException]. Is there any way to find out exactly what the problem is with this SOAP reply, either within visual studio or otherwise The SOAP being sent by the server is: < xml version="1.0" encoding="UTF-8" > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> .<soapenv:Body> .<getCountResponse soapenv:encodingStyl ...Show All

  • Visual Studio Tools for Office Feasibility: outlook aggregator emails

    Based on past limitations of the outlook programming model, I wanted to first check on the possibility for something before perusing the documentation: I was wondering about the ability to enumerate outlook 2003 messages such that email addresses can be used to create personal folders where messages will be moved. In other words, an automatic personal folder creator based on a repetetive emails. In addition, ide like to create rules automatically for this process. Is this already done Or is it not possible Thanks in advance. Thanks for the starting point. One last question: can rules be managed programatically Thanks again; Eric ...Show All

  • Windows Forms Check for Selected Item

    I have a listbox with a folder....if i dont select the folder in the listbox i need messagebox.show to appear and let the user know to pick a folder to copy the file but i do not know how to check the listbox so see if a folder has been selected...i thought it would work like so but it throws an exception "Object ref not set to instance of an object".....any help { if (listBox3.SelectedItem.ToString() == null ) { MessageBox.Show("You need to choose the folder"); } else { string cpath = listBox2.SelectedItem.ToString(); string cpath2 = listBox3.SelectedItem.ToString(); if (cpath.EndsWith("xml")) { MessageBox.Show("hello"); File.Move(cpath, cpath2+ ...Show All

  • Visual Basic Problem faced in updating databases

    I designed a softwaere usng vb 2005.. i face a problem with sql server 2005... i used the automated database designing tables with the gridview option... the problem is that i cant update the database once i exit the appln. during runtime, the database works well, but the database doeant update or create the new records after exiting th appln... also provide some help on how to deploy an appln.. the databses dont get installed during installation... Also be sure that your database file isn't getting overwritten each time you build the project: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=427451&SiteID=1 ...Show All

  • Visual Studio Team System Datawarehouse, how can I do?

    Hi, I want to know how can I do a Datawarehouse, what requirements have how can I'm configurate my Team Foundation for get a good a datawarehouse Any idea, Are you interested in creating custom reports using the same cube that the Team System out-of-box reports use The Team Foundation Reporting Cube (TfsWarehouse database -> Team System cube) is created and initialized when installing. This cube is used by the out-of-box reports via the TfsOlapReportDS data source. It is refreshed every hour (by default). This link has instructions on how to create a custom report using Excel that uses data in the Cube: http://msdn2.microsoft.com/en-us/library/ms244699.aspx ...Show All

  • .NET Development Question for DataTables Replation in a DataSet?

    Can anyone explain what the relations in DataSet do and what it for I have run the code below with and without the relation snippet, and I see not different. Can you tell me what the relation in a DataSet doing   protected void Page_Load( object sender, EventArgs e) { //1. Db Connection string myConnString = "Data Source=localhost;Initial Catalog=Northwind;Integrated Security= SSPI " ; SqlConnection myConn = new SqlConnection (myConnString); myConn.Open(); //2. DataSet DataSet ds = new DataSet (); //3. Adapter command and fillin dataSet //--1). Customer SQL Adapter-- string sSQL = "Select CustomerID, Phone From Customers Where CustomerID ='VINET'" ; SqlDa ...Show All

©2008 Software Development Network