Software Development Network Logo
  • Game Technologies
  • Architecture
  • Windows Vista
  • SQL Server
  • Windows Forms
  • Visual J#
  • Microsoft ISV
  • VS Team System
  • Visual FoxPro
  • Windows Live
  • Visual Studio
  • VS Express Editions
  • Visual Basic
  • Visual C#
  • Smart Device

Software Development Network >> Sanjeet Sachan's Q&A profile

Sanjeet Sachan

Member List

KateTheCopyEditor
Edward Thompson
Craig Main
SaqibRokadia
Satya vani
mrsamer
Mikko Larjava
kfrost
Salvador Dali
Ahmed-Mahdy
glebd
BLOODream
DaleG177
Dhurean
Kerpoise
ucnnohm2
adisD
mscherotter
Richard L Brown
Marchionni Daniele
Only Title

Sanjeet Sachan's Q&A profile

  • Windows Forms Accessing classes among projects in a solution

    I have two projects in a solution. How can use a class in Project B which has been defined in Project A  Secondly, if I declare a variable as Friend in Form1, then can I use the same variable in Form2  How is Private different from Protected and Public different from Friend   Thanks  Create a new project of type class librar ...Show All

  • Visual C++ Sockets problem

    // create sockets rtpsock = socket(PF_INET,SOCK_DGRAM,0); if (rtpsock == INVALID_SOCKET) { MAINMUTEX_UNLOCK return ERR_RTP_UDPV4TRANS_CANTCREATESOCKET; } Any idea why that gives me an invalid socket no matter what Works in studio 6 but not in 2k5 Built as a library and being called from a windows forms application I'm an idiot ! had big problems with MFC giving odd problems and my old project was in MFC so I made a new one in windows forms (better to move to forms i think) and totaly forgot to WSAStartup , lmao, wood for the tree's. I spent 11 hours looking at the code and checking, never spotte ...Show All

  • .NET Development how to write a schema file with an xml file

    I'm using xmltextwriter to write out an xml file and I need to create the schema file. How would I do this If you want to create a schema with your application you can use the classes in the System.Xml.Schema namespace where you have handy classes for schema creation. ...Show All

  • Visual C++ C++/CLI Translator

    In Stanley Lippman's article, "A Baker's Dozen: Thirteen Things You Should Know Before Porting Your Visual C++ .Net Programs to Visual Studio 2005"; in the introduction, there are three points, "To ease the transition...".  I quote point 2: "We're working on an informal translation tool that can get you 80% of the way there. It will likely be made available for test-driving during the time-frame of the second beta." I can not find this translator.  Was it released If so, what is it's name and where can I get it   The tool is not yet released but it is under current consideration. I will keep you updated! Thanks, ...Show All

  • Windows Forms Manual deployment using Mage.exe and MageUI.exe

    My goal is to create an automated script to build and deploy our application to a publishing URL. The building is already done and is working great. Using MageUI, I was successful in creating the application manifest and deployment manifest, then manually copied the files into the publish URL and everything worked. Using Mage.exe, I have been slightly less successful. I have tried to follow the same steps I believ MageUI is taking, listed below. I keep getting errrors when installing and running from my client pc though. Steps to reproduce: Create new folder for application to deploy ( ie. bin\debug\1.0.1.3) From the debug ...Show All

  • Visual C++ error C2664: 'ATL::_CopyInterface<T>::copy' : cannot convert parameter 2 from 'IFileInfo *const *' to 'IFileInfo **'

    Got a piece of code which was happy enough under VS2003 but fails to compile under VS2005. Its using the ATL IEnumXXX template classes to provide a concrete collection implementation. The dual interface (looks like this) [ object , uuid (552E001E-DE6A-4ED4-A35B-F58211EF485B), dual , helpstring ( "IFileInfo Interface" ), pointer_default ( unique ) ] interface IFileInfo : IDispatch { [ propget , id (1), helpstring ( "property FileName" )] HRESULT FileName([ out , retval ] BSTR *pVal); [ propget , id (2), helpstring ( "property PathName" )] HRESULT PathName([ out , ...Show All

  • Visual Studio Express Editions String to DWord

    How can I turn a string into a Dword OK , the following code will take a Hex value as a string and turn it into a 16, 32 or 64 bit integer value. Dim sHex As String = "FFE2" Console.WriteLine(sHex) Dim lng0 As Integer = Convert.ToInt16(sHex, 16) Console.WriteLine(lng0) Dim lng1 As Integer = Convert.ToInt32(sHex, 16) Console.WriteLine(lng1) Dim lng As Long = Convert.ToInt64("FF", 16) Console.WriteLine(lng1) ...Show All

  • Windows Forms WinForms vs Normal Windows App

    Hi...I'm kind of new with WinForms on the .net framework I'd just like to know if anyone could tell me about the differences between a windows application as we know it and WinForms .net a WinForm application is a windows application that typically provides a GUI user interface....it is what previously to .Net was a "Windows Application"...Today with .Net you have WinForm app for creating applications in the windows GUI environment, console apps for running at the command line, service application for running in the background typically without user intervention and then Control libraries and C ...Show All

  • .NET Development registering for COM interop creating duplicate registry entries.

    Hi, I am working on .NET 2.0 beta2 on Windows 2000 advanced server. I have created small .NET dll, in which I have exposed a number of classes for COM interop using ComVisible(true) on those classes, for example:         [ComVisible(true)]         [ClassInterface(ClassInterfaceType.None)]         public  class Class1: IClass1         {                 private int i;                 public int GetInt()               &n ...Show All

  • Windows Forms Help with classes

    Hi there, I have a form created in vb.net, which uses a Text Box called TextBox1.  A second class in a seperate file needs to change the contents of the textbox.  How can I do this One way in which you could do this is expose the text property of your textbox as a property of the form in which it is created. ...Show All

  • Visual C# Problem with sorting a generic List

    The new generics in C# 2.0 are really breath taking, but I've got some problems with sorting a Generic List. I've got a List<KeyValueType<TKey, TValue>>, so this is a list containing another generic type. Now I would like to sort this list by the TKey type of the KeyValueType<TKey, TValue> type. The list contains KeyValueType objects with in which the TKey is unique. I've been working on it all night, but can't get the syntax right. I tried to write a class that implements the IComparer<KeyValueType<TKey, TValue>> interface, but the compiler reports errors in my code. How should this be written PS. here i ...Show All

  • Windows Forms Embeding Word into an application

    My user wants to have reports in Word format.  Is there a way to embed the Word API into a .NET app   Are there any articles discussing this Your help is apreciated. Kaytrim Well, assuming that the end user will have Word installed on their machine, you could use the .NET Office Primary Interop Assemblies to control Word.  There  ...Show All

  • Visual Studio Team System Control is not going to DLL part while debugging a project in visual studio 2005

    Hi All, I have created a Dll(Class library). I have Windows application and using that created Dll as reference(addedd from the bin derectory of the DLL project) both the project are in visual studio 2005  Now while i m debugging my application control is not going to the dll part(classes/functions). can any one tell me what may be the problem anything is to be customize Thanks in avdance. try removing the reference and then adding the reference, but this time instead of browsing to the dll, select the project from the projects tab.     ...Show All

  • Visual Studio Make a tool window always display on startup.

    How do I force a tool window to display even when in the previous session I had closed the ool window. There must be some point in some interface where I can set the tool window to visible and it will display. However, I would like it to stay closed after it's been closed in the session and then not re-appear unless explicity enabled or visual studio 2005 is restarted. Same way the start page works. Thanks, Darren By default, all tool windows will appear on restart if the window was visible when Visual Studio was closed. The Start Page makes its self the topmost window when it is shown, and you ...Show All

  • Visual Basic Printing from datagridview

    I'm sure this has probably been asked before, but I can't find it. I’m using a DataGridView to display data from a SQL database and I would like to be able to print it. How do I do that My problem is grabbing the data. I simply don’t know how to get the data from the DataGridView. The best thing would be if I could grab and print the entire table but anyway to grab the data and print it in a readable way would be great. Thanks in advance Hi, You can get data from the DataGridView by iterating through the rows in the DataGridView.Rows collection. Code similar to the following should work: Dim line As String F ...Show All

©2008 Software Development Network