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

Software Development Network >> shekhar saran's Q&A profile

shekhar saran

Member List

UncleSam89
Kumaresh
Benjamino
Amadrias
arkiboys
sl0140
idealphotobc
MiltGrin
Kartit
sianan
brother14th
zhihao
Samuel Nakano
Barguast
vsvinuraj
Rubal Jain
Gagand
RabinLin
bkana
gafferuk
Only Title

shekhar saran's Q&A profile

  • Visual Studio 2008 (Pre-release) svcutil.exe datacontract only is not generating minOccus='1'

    Call "C:\Program Files\Microsoft SDKs\Windows\v1.0\Bin\svcutil.exe" /dconly /out:..\..\DataContractXSD.cs /t:code "$(ProjectDir)Data.xsd" Data.xsd file has < xsd:complexType name =" AccessInfo "> < xsd:sequence > < xsd:element name =" User " type =" xsd:string " minOccurs =" 1 " maxOccurs =" 1 "/> < xsd:element name =" Password " type =" xsd:string " minOccurs =" 1 " maxOccurs =" 1 "/> < xsd:element name =" ApplicationID " type =" xsd:string " minOccurs =" 1 " maxOccurs =" 1 "/> < xsd:element name =" ClientIPAddress &quo ...Show All

  • .NET Development store a file into a database and retrive it

    hi I want to store my generated xml files into a database and then retrive some of them. my data type in sql server database is Image. my algorithm works OK with images but when I try to store xml files I miss a few characters from the end of the retrived xml file. and for some heavier xml files have the same problem with some rubbish characters attached to the end of the file. what's going on file is a file. if my algorithm had problem it shouldn't work with Images either. I propose that the code you use to read the file isn't working properly.  I'm assuming you're reading it in using a buffer of a certain size   Can we see the code you use to load the file into memory As for storing it i ...Show All

  • Windows Live Developer Forums Map usage for GPS tracking

    Hi, I am interested in using the VE maps for GPS tracking and due to my location (Chile/ South America) I have had problems to find accurate maps offering the necesary detail level of roads. The VE maps are pretty good in terms of detail level and I would like to use the Chilean map for visualizing objects tracked by GPS data. Does anyone know if it is possible to export the GPS coordinates into the VE online aplication or even better if it is posible to obtain the VE map for a local aplication on my computer As fas as I know the digital map must have a COM interface in order to comunicate with the GPS device but I am still pretty unexpirienced in terms of GPS combatibility with software. I would apreciate to get some of your recomendation ...Show All

  • Visual Basic Mount a virtual drive?

    Hello, I'm interested in making a program that has the ability to mount a folder (e.g. C:\MyFolder\) to a drive letter (e.g. F:\). Is this possible with VB If so how do I do it And if not, can it be achieved with C++ or C# it cant be achieved in C++ not within .NET unless you shell it out or use some SDK/API. .NET is a high level language than C/C++ since you can access the "core" stuff from it. you would need to obtain a free drive letter from the OS then some how make a drive out of it and do all sorts of things, its been discussed previously but its not something you can do within .NET. Perhaps with some 3rd party SDK yes but other than that...its pretty much not so much possible ...Show All

  • Customer Care Framework Agent Desktop launched ... But issues ...

    Ok...I have been on this for a while and at last Agent Desktop launched.... But it has issues....Before going to the problem our background info Initially our setup was We built a windows 2003 server called CCFDC . CCFDC - is the Primary Domian controller (PDC) for Domain CCF We installed all the server components on this system(CCFDC) and created the DNS entries 1. CCFSQL 2. CCFIIS 3. CCFRS as mentioned in the document to point to the CCFDc To our dismay, the web services didn't work. Upon consulting KB site , I found out , IIS will not work on PDC computer properly. (We tried the workaround as specified.but still didn't work)So we are forced to find another system for CCFIIS. Unfortunately there are no other systems. ...Show All

  • Visual Studio Express Editions _CrtDumpMemoryLeaks() in visual c++ express ...

    Hi, I have been trying to get memory leak checking to work for the past few hours but have been unssuccessful. I have created a basic win32 program winmain etc .... and have tried to allocate some memory and then not delete it ... but I can't seem to get it to report the memory leak. The basic idea ... WinMain( ... arguments ... ) { allocate some memory _CrtDumpMemoryLeaks(); return 0; } I've also tried setting the following .... _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF ); _CrtSetReportMode( _CRT_ERROR, _CRTDBG_MODE_DEBUG ); but nothing seems to be working. Anyone know why its not reporting the leak It is important that you fol ...Show All

  • SQL Server How do you get a result set back from a stored procedure

    I am trying to get data back from stored procedure output arguments. I am in a Visual C++ enviroment calling the stored procedure via the ODBC function SQLExecDirect. When the stored procedure has only a single output argument, everything works fine. When there are multiple output arguments, I get an error "Invalid Cursor State' from the SQLFetch. This is telling me there is no result set. Below is a pseudo code fragment which shows what I am doing. I want to use SQLGetData to convert the data into C variables. I do not want to use SQLBindParameter or Parameter Markers. Sql = "DECLARE @outarg1 int DECLARE @outarg2 datetime {CALL ProcName('Inarg1','Inarg2',.......@outarg1 OUTPUT,@outarg2 OUTP ...Show All

  • Visual C++ stdio.h errors in Visual Studio 2005

    I just finished installing VS 2005 (is it that hard for microsoft to just let people download like, a zip file of it, rather than an img file, which i had no idea what to do with at first ) and tried the following code: #include <stdio.h>    // include the standard input/output header file void main(void)    // our program starts here {     printf("Hello World!");    // print "Hello World!" into the console     return;    // return void to windows } It was part of an origionally blank win32 console app called test.  When i tried building the solution or compiling the file separately, I got all those errors: ------ Build started: Project: Test, Configuration: De ...Show All

  • SQL Server Stored Procedures Datasource

    Hi all, I'm trying to use a stored procedure as a data source for my SSRS 2005 report, but I keep getting the following error in the query designer: " The EXEC SQL construct or statement is not supported" Any ideas what the problem is here When you want to use a stored procedure as a datasource, you have to make the Query text equal to your sp name without any EXEC command or parameters. By changing the Command Type of the datasource to StoredProcedure SSRS knows how to handle the stored procedure. ...Show All

  • .NET Development NLB Problem with web service

    hi I'm developing a web service and need to use it on a NLB cluster when executing client application its allways goes to the same server if i shutdown the server it goes to other server but when i restart the first server(while the client is still running) the client crash with "connection actively refused" error any idea thanks ahead liran ...Show All

  • Visual Basic Is there a VB based regex tutorial anywhere?

    Sorry to be a pain but I'm having difficulties getting to grips with the basics of VB regular expresions.  I'm not a newbe to regex - I'm just new to VB (don't know whether or not that helps matters). I'm trying to do fairly simple things eg match the text before the markup <option> so would automatically expect something along the lines of /(w*)<option>/ and then simply consider the variable $1, but i have absolutely no idea where to start in vb. While a solution to the specifics would be nice a pointer to a simple tutorial may be a nicer solution. Incidentally is there a way of finding tutorials - specific help on eg regularexpresions.regex.match without "ask a question" - surely there must be and I'm ...Show All

  • Visual Studio 2008 (Pre-release) TextRange

    Hi I am having trouble saving Images from a flowdocument into an RTF document. I use the TextRange object to get my data which I build up using paragraphs and inlines. I use Avalon Image objects to add Image Inlines to my document. Then I just use the TextRange.Save method to save my data, using the RTF format. The problem is that only my text gets saved (including its formatting), but all my images are gone. Is is possible to save images along with the text Thanks! bbg I see that if I paste an image into the RichTextBox control and save that control's contents using the TextRange, it does indeed save the image. So does anyone know what format I should add images into the Inlines col ...Show All

  • Smart Device Development Null null lovely null

    Newbie question ;) Iget a nullrefernce in: private void lvProduct_SelectedIndexChanged(object sender, EventArgs e) { if (lvCurrentProducts.FocusedItem.Equals(null)) { MessageBox.Show("Null null ja sa nuull"); if (lvCurrentProducts.FocusedItem.Text != " ") { CurrentProductID = int.Parse(lvCurrentProducts.FocusedItem.Text); } else { CurrentProductID = 99999; } } Please Help :) Care to let us know which line Maybe some backgound Or maybe this is some wacky test of our 1337 skillz ^^ ...Show All

  • .NET Development Derived types and System.Collection.Generic.Dictionary?

    Hi, I have a Dictionary in one of my classes: private Dictionary<string, RobotPart> _parts = new Dictionary<string, RobotPart>(); RobotPart has many derived Classes (Rod, Joint, Body, etc.) . I have a method called GetFlatPartList that flattens out a treelike structure of RobotPart objects, for easy iteration through the child objects. Hopefully, once I hit "post" my tabs will be kept for the following method: EDIT: I took this method out, and placed it in the following post for readability Now, my problem is that my program will crash, giving me an invalid cast exception when I am trying to search (using a for each statement) for any Type other that RobotPart, even though they (Joint, Rod, Body, etc.) are ...Show All

  • Windows Forms TreeView: SelectedNode always null?!

    I'm experiencing a weird problem with a System.Windows.Forms.TreeView. After the following few lines of code: TreeNode myNode = new TreeNode("foo"); treeView.Nodes.Clear(); treeView.Nodes.Add(myNode); treeView.SelectedNode = treeView.Nodes[0]; treeView.SelectedNode is null. I'm doing a whole lot of things with my treeView before that, so I don't know what messed it up. Anyway, after clearing it, adding one Node and setting SelectedNode to this one node, it's not supposed to be null, right Apart from the fact that SelectedNode is always null, everything's just fine with the treeView... I'm pretty sure it's not a thread-issue as I used Invoke to call the method containing the snippet above. I'm also on the same thread the tree was cr ...Show All

©2008 Software Development Network