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

Software Development Network >> Madhuchhanda's Q&A profile

Madhuchhanda

Member List

dustinto
Koray Samsun
MarnieV
sgaap
ashwin_k_s
PLess
Joel Poiron
C. Charpentier
Igor Solodovnikov
shmulik_segal
LML
Lima Beans
lx
nechmads
MichaelEber
Nubby
AronW
Shane Poppleton
Tamim Sadikali
TerryYoung
Only Title

Madhuchhanda's Q&A profile

  • .NET Development converting output from transformNode to byte array

    Hello, Can someone tell me why solution 1 works, but solution 2 does NOT work; it results in truncated data. There has to be an easier way than soution 1. The goal is to get the string output from transformNode into a byte array. Thanks. Solution 1 (works, but seems like a round about way): Dim ReportDef() As Byte Dim ReportStr As String ReportStr = dom.transformNode(xsl) Using sw As StreamWriter = New StreamWriter( "c:\temp\TestOut.xml" ) sw.Write(ReportStr) sw.Close() End Using Dim Stream As System.IO.FileStream Stream = System.IO.File.OpenRead( "c:/temp/TestOut.xml" ) ReDim ReportDef(Stream.Length) Stream.Read(ReportDef, 0, Stream.Length) Stream.Cl ...Show All

  • Visual Studio Express Editions idiots code book

    hi everyone, i am a beginner to vb as are many who post here, i am putting together a book that explains all code statements and explains how they work and what they are doing better then some of the books i have read. i there is anyone who can submit their error mesages and solutions that will be great, also i will be posting all kinds of command questions as i have already done to others on other posts and i would be gratefull for yoiur explanation comments. i want to start with accept changes why do i use it and wehn dio i use it, what is it for thanks thanks for your response sj i do as you suggest create small foldes that contain cetrtain bits of info im not sure of eben those i am ...Show All

  • Visual C++ What define the order of the includes files?

    What define the order of the includes files while compiling I've wrote down the includes directory path in >>Tools>>Options>>VC++ directories. I though the upper one were included before but still, i got the error C2065 which says 'undeclared identifier' for a type that is declared in a file in an other directory that is upper in the list i spoked about before. What would be the fastest way to get in the good way Thanks in advance, Tools>>Options>>VC++ directories defines the order of searching for include files. You still need to include them to source files. For example, if directories are searched by the following way: $(VCInstallDir)PlatformSDK\include $(VCInstallDir)include and you write ...Show All

  • SQL Server Report Headers vs Page Headers

    Hi, this is probably a simple question but I just can't figure it out. I'm using SQL Server Reporting Services 2005 sp1. I'm trying to design a report that displays a particular embedded image on the first page, and then a different one on every subsequent page. I.e full, fancy company logo on the first page, and a trimmed down version on every other. In Crystal, I would have simply used the Report Header and Page Header sections to achieve this - easy. However, in SQL Reporting Services, there is only a Page Header section - therefore whatever I place in the Page Header shows on every page. Now, I know how to stop it displaying on the first page, but I don't know how to display the other image instead. I read in a support forum t ...Show All

  • Visual Studio 2008 (Pre-release) [OperationContract] and properties,

    Hi, Why is the below interface definition not possible Surely the fact that properties are just methods anyway mean that this should be possible. Why should it be necessary to change the perfectly reasonable Length property into a GetLength() method Is there any way to expose a property value /// <summary> /// Service contract definition. /// </summary> [ ServiceContract ] public interface IWorkContract { [OperationContract ] int Length { get ; } } IT WORKS! You have to set the attribute directly before the get- and set-stubs like this: int Length { [OperationContract()] get; [OperationContract()] set; } ...Show All

  • Visual C# Windows Updates

    How can I check if windows updates are enabled Thanks, Add a reference to System.ServiceProcess. Then try this code: using System.ServiceProcess; ... public static bool WindowsUpdatesEnabled() { ServiceController sc = new ServiceController("Automatic Updates"); return sc.Status == ServiceControllerStatus.Running; } ...Show All

  • Smart Device Development Serial Port on real PPC device

    Hello, Have no troubles with data transfer through COM port using my app running on WM50 Emulator from one side and Hyperterminal on other side's PC. For some reason having problems with the real PPC device. COM port gets opened but when I try to write something over it looks like WriteFile hungs for a specified write's timeout and after expiration returns that everything was just fine but I see no data on terminal or analyzer. Any comments, ideas May be I have a conflict with ActiveSync It attempted to do Sync over the COM at the beginning but failed because there is no ActiveSync on the PC. TIA. The problem was in COM settings for Hardware flow control I have this settings by default d ...Show All

  • Windows Forms text box issue

    I happened on a textbox issue that may be of interest. In this case, I have a number of textboxes vertically aligned that contail $ amounts. Generally want the text right aligned so that the decimal points line up but since I don't like editing with right alignment, I use the Enter event to change the alignment and then use the leave event to put it back Private Sub Cost_Enter(..) Cost.TextAlign = HorizontalAlignment.Left If Cost.TextLength <> 0 Then If Cost.Text.StartsWith("$") Then Cost.Text = Cost.Text.Substring(1, Cost.TextLength -1) End if End if End Sub Private Sub Cost_Leave Cost.TextAlign = HorizontalAlignment.Right Cost.Text = Format(m_dlsCost, "Curre ...Show All

  • .NET Development Convert Stream Reader into XML Format

    Hi I am receiving an xml file via http post..from a third party vendor. StreamReader streamReader; streamReader = new StreamReader(Page.Request.InputStream); line = streamReader.ReadLine(); do { //Writing XML String Content in a Log File. Logging.Logger.log("\n" + line + "\n"); line = streamReader.ReadLine(); } while (line != null); This is the code which i am using to recieve an xml file... I just want to see the content of the xml file... so that i am writing the output xml stream in a log file, but i am unable to see the <XML> tags... nor in an xml format the out put of the xml string is like this "%3C%3Fxml+version%3D%221.0%22%3F%3E%0A%3CBooks%3E%0A++%3CASP.net ...Show All

  • .NET Development Smartphone 2003

    I would like to write a simple game like "Gaming with cheese"(MSDN) for Smartphone 2003. What version of Visual Studio and what other programs do I need I would like to try it with the emulator to. I would like to try bluetooth comunication to. Can I do this between the Emulator and a phone   Visual Studio 2003 or 2005 can be used for SmartPhone 2003! There is no other software required for SmartPhone development but its better if you download Windows Mobile SDK. Blue tooth communication is also possible. For more details its better to post this question on .Net Compact Framework Forum! Best regards, ...Show All

  • .NET Development UserNameToken and KerberosToken together

    Hello all. In my webservice I want to mix windows and custom authntication. I can successfully use UserNameTokens or KerberosToken via applying corresponded policies to a webservice class. But I want to an ability to mix these 2 options and write something like this: if ( RequestSoapContext.Current.Credentials.UltimateReceiver.GetClientToken<KerberosToken>() != null ) { //do some win-based authorization actions } else if ( RequestSoapContext.Current.Credentials.UltimateReceiver.GetClientToken< UsernameToken >() != null ) { //do some forms-based authorization actions } The problem is that I cannot achieve this using one policy. Also I cannot apply 2 policies to one WebService class. Does ...Show All

  • Visual C# general question C#...

    in ASP.Net, I can, in my server-side C# code, define a static variable. What is the life span of that variable Is it destroyed after the Page_Load or is it accessable and updateable upon postback to the server. Example: as the site is first loaded I instantiate a varible statically that I wish to increment during the life of the "Session". Can I later access it and change it's contents. Basically, I want to instantiate a static array and add information to it based on user response. like a shopping cart.. etc. Thanks JJ So this Dot Net stuff is cool..., yes I'd probably create an object for a shopping cart if the rules are the same for them too. Actually, i am creating a funtion t ...Show All

  • SQL Server A priori algorithm in Association Rules

    MS uses the a priori algorithm in Association Rules, while other DM software have gone to the Novel Algorithm. Can you tell us why MS decided to stay with the a priori Did you overcome the limitations that it's accused of having Thanks! Hi Roger, I have not had a chance to look into the Novel algorithm, but we do definitely organize the itemsets generated in a tree where by you can save space by recognizing that many itemsets share items (Some itemsets are subsets of others). It also proved important to keep the tree representation in order to be able to perform predictions efficiently where the tree serves as an index to the itemsets (and rules). Thanks, Jesper Lind (Microsoft Research) ...Show All

  • Visual C# how can I do this?

    Hello, I have 2 classes: Circle, Sphere and the interface IShape. Interface IShape { public vitual void Area { } } class Circle : IShape { public override void Area { } } class Sphere: IShape { public override void Area { } } how can I do like: from the call to set currentShape as circle, it will point to Cirle class example: currentshape.Area or currentShape as Sphere, will point to Sphere class... Thanks for the help, tammy Technically Cricle is a kind of Sphere... I'm not clear what it is you want to do. Do you just want to deal with one or more shapes and be able to tell what type of shape each one is ...Show All

  • Visual Studio Tools for Office Excel Automation

    Hi, I am facing a peculiar problem with Excel Automation. I have a winform where in I display some data in OWC axSpreadsheet. Next I export this data to an .xls file. When I try to open (through OleDb) and read this file, I get an error - "External table is not in the expected format." However, if I have the file open in Excel, I am able to read it through code. However the same piece of code works for some files without having them opened in Excel. What am I missing out here Please suggest. Hi, This is a good question, but it is not a VSTO-related issue. I would suggest that you post this question, however, in the excel.programming newsgroup. Here is the link. http://m ...Show All

©2008 Software Development Network