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

Software Development Network >> Vivek S's Q&A profile

Vivek S

Member List

Learning VB
Sailu
DBAJDS
Santosh_DotNet
magicalclick
Dubious Advocate
misexpert
Mohan1
luca82
LastHope
enric vives
Sutha Thiru
GAG1
DeadlyEvilRyu
New-Bee
Forrestsjs
Leonard Lee
LuisMendes
Adeel Javed
*_Enigma
Only Title

Vivek S's Q&A profile

  • Visual Basic Shrinking a file

    Hi, I have a long file, and I want to make it smaller. How can I do it The .net framework does have compression classes System.io.Compression. http://msdn2.microsoft.com/en-us/library/system.io.compression.compressionmode.aspx The following thread has an example http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=424050&SiteID=1 This may further help as the compression is pretty quick. ...Show All

  • .NET Development how to detect internet connection automatically

    i use this code to detect the internet connection but i need a better idea to get a notification as soon as the PC looses the connection and it will be silly to keep this code in a timer.. [ DllImport ( "wininet.dll" )] private extern static bool InternetGetConnectedState( out int Description, int ReservedValue); public static bool IsConnectedToInternet() { int Desc; return InternetGetConnectedState( out Desc, 0); } Jassim Rahma wrote: but putting it in a timet will slow the application, PC and will waste PC's memory No, if there was a buildin class in the .NET Framework itself it would be doing the same under the hood. If you want, I can write a class for ...Show All

  • .NET Development Tranforming XML Column Data to Relational tables

    Hi, I want to transform XML data to relation tables. I have a table with XML type column. I have XML schema in XSD file. For reporting purposes i want to extract the data and want to fill it in relational table. Depth of XML tree is 6 (it's using complex type). Some leaf Complex types are enumerations. I am thinking of using SSIS for this purpose. I want help on this issue. how to start wid and which one would be best approcah. All suggestions are welcomed. Thanks in advance. Hi, If I were to load an XML into relational format and if there are few different types of XML files then I would probably won't think about using technologies that are outside .NET. I would rather ...Show All

  • .NET Development Help request on how to optimally link VC++.NET applications?

    Hi! I posted this question to a wrong forum earlier, now I am reposting it to the right forum. My problem is that I write C++ aplications in tradional form, e.i., the programs include one header file (.h) and one implementation file (.cpp). Compiling is going very smoothly. However, I get problems with the linker and most of the time I get the notorious LNK 2020 error, "token could not be found etc". The reason that I am getting this error message is that the linker cannot locate the implementation files and therefore cannot see where the "tokens" are implemented. It entails that you are supposed to load these .cpp files into the associated projects. My solution to this problem have been like this, because unti ...Show All

  • Visual Studio 2008 (Pre-release) pie chart

    Hello everyone, I have some data in sql server and I'd like to render the data in a pie-chart (inside my wpf window). What's the best approach I was wondering are there any examples of charting in WPF out there Thanks in advance. Houman Hi - do you have any update on this I'm also looking to create a pie chart in a WPF window, but have not found any solution other than this post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1747697&SiteID=1 ...Show All

  • Visual Studio Team System Question on merging through the API

    Hi, I have a small application that merges files between two folders. To do that I'm using the merge method of Workspace class This is the way I'm using the method: workspace.Merge(sourceFile,targetFile, VersionSpec.ParseSingleSpec( CSNumber, null), VersionSpec.Latest , LockLevel.None, RecursionType.Full, MergeOptions.ForceMerge); My problem is in cases that I'm trying to merge between two files That the change on them (ChangeType) is: Rename or Delete On these cases the application fails. There is a way to merge this kind of changes through this method – workspace.Merge Thanks in advance, Shmulik. What are you trying to do There's probably a better way ...Show All

  • Windows Live Developer Forums starters question.. why does this basic code not work properly

    Hi, I am trying to load a UK address where i pass in as apart of the url. The map moves to the right location, but the zoom doesn't work. The map starts out at a very high zoom level. However if I move the map, then the zoom kicks in, and it is displayed at the proper zoom level. the problem is that te initial maps zoom is wrong. Thanks <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src=" http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></script > <script> function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars ...Show All

  • SQL Server Merge replication foreign key problem

    Hi there. I'm somewhat new to merge replication, and I've been having an issue with one of the scenarios that I've been trying to get working. I am using SQL 2005 on the server, with 2005 express on the client. I have 2 tables: Photo - which has a PhotoID primary key PhotoData - which has a PhotoDataID primary key, and a PhotoID foreign key both primary keys are int, and set to identity. I only want the Photo table to replicate for the merge, because I want the data in the PhotoData table to only be called by demand through a web service (since the images in that table are too large to be included in the normal replication). However, when a client adds a photo to his local database (which adds a record in the photo table, ...Show All

  • Visual Studio 2008 (Pre-release) Recreating client proxies when in a Faulted

    This question continue the question on http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=727775&SiteID=1 Hello, We have problem with recreating our client proxy when it is in Faulted state. We have a stateful service which is configure for private session behavior. When our client start up it creates a channel factory and create a proxy for the client. It is vital that we will work with the same instance of the proxy because (as I understand) this proxy is "connected" (with logical connection off course) to the private instance on the service side. So I ask the question again: What is the preffered way of handling Faulted and Closed event of a client proxy I have experiment with WCF Faulted event and I ...Show All

  • Visual Basic Data table only updates once...why is this happening!!!!!!!!!!!!!!

    Hi there, I have a dataset that i am updating during runtime of my program. To do this, I first delete all of the data in a datatable using "DELETE * FROM Table1" command, and then update the dataset. To initiate this process, i double click on a datagrid. The first time i double-click on the data grid, the program works exactly as planned--i step through the code and verify that first all the records in the datatable delete, and then is updated with all the new records. The problem i'm having is that the next time i double-click on the datagrid, the table doesn't delete! And then i get an error that i am updating a table with a non-unique record. If my table deletes like its supposed to, i shouldn't ever get this error.. ...Show All

  • SQL Server Execution of DTS package after Scheduling.

    Hi All, I have a problem in getting the info about the execution of a DTS Package. I have a SQL-2000 Client installation on my Desktop to connect to SQL-2000 Server Database system to do all of my work. i had a DTS package stored in my SQL Server2000 Local Packages.  Now i have to schedule the DTS Package from my Desktop. And the DTS package is processing some files from a shared network folder. when i used to run the DTS package manually from my desktop my desktop login have access to that shared folder so there is no problem to run the package. suppose i scheduled the DTS to execute on daily basis at 10:00 AM. Now my doubt is wher the DTS will be executed after scheduling, which starts DTS execut ...Show All

  • Commerce Server Product List Screen

    On the product list screen ( the screen that shows a list of products) in the Starter Site where it shows display name and price. How do you configure this screen to show different columns. I thought clicking show in Product List in the Inventory and Catalog Schema manager would have done the trick but it does not seem to affect this screen. Does screen require back end coding changes to change the columns. Also, where can you change the number of rows that show per page. Please Advise. In the Catalog and Inventory Schema manager you need to check the DisplayOnSite checkbox for the properties you want to be displayed. ...Show All

  • Gadgets How to add Vritual Earth API in the Live.com Gadget?

    Hi, Is there any way to add Vritual Earth API to Live.com Gadget It seems failure if writing "<script src="http://dev.virtualearth.net/mapcontrol/v4/mapcontrol.js"></script> " in the gadget content. Thanks Hi, The reference of VE API have been solved, but there is still a problem. Gadget seems different from the normal web page. How could I use "new VEMap('elementID')" to load a map in the Gadget Thanks, ...Show All

  • Visual Studio 2008 (Pre-release) WCF Authentication issue

    I have a windows client that is calling a WCF service that will enrich some data (service1).  Service1 in turn will call another WCF service (service2).  In testing this, both are hosted on my local machine in IIS with anonymous access enabled Integrated Windows Authentication checked. My client is able to reach service1, but when service1 calls service2, the following error is thrown: "The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'." I've tried a slew of different configurations with clientcredetialtype in the web.config (setting it NTML and using the ClientCredentials.Windows.ClientCredential object to pass creden ...Show All

  • Visual Studio Bug in debugger Edit value

    In the process of debugging a VC++ function, viewing the disassembly window, place the cursor on edx (the CPU register). Its value is correctly displayed in a tooltip as 0x00000800. Position the cursor in the tooltip, right click and select Edit Value. The starting value apparently changes to 0x0000080C. Further investigation reveals that what is happening is that the text in the tooltip has increased in length, and the final 0 is being truncated. VS 2005 developers: Either the tooltip length should be increased when the text length is, or the text length should remain unchanged. Thanks for pointing this out. I will add a bug in our database. You can readily do this too by visiting the MSDN Produ ...Show All

©2008 Software Development Network