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

Software Development Network >> Ashish Sh's Q&A profile

Ashish Sh

Member List

Jalf
m.eisenstein
TerriM
Barron Gillon
Thomas Aylesworth
Jazz4sale
redneon
Heikki-Pekka Noronen
Walter Luszczyk
ManishaPatil
Codeninja
Spangltk
Frantic74
Wiindows
Martin Moe
frice
l33t
zwp
MillBear
jortiz
Only Title

Ashish Sh's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. The Unofficial "Hooray I'm Done With my DBP Game" Thread

    When you get done with you game and sumbit it, crow about it here. A little over 24 hours left until the deadline and I'm so amazed I'm done, so much better than college Thanks to ZMan for his help, good luck all. I'll post the source code for my submission once the deadline hits. Bill Well, I've just finished uploading Space Fortress - a remake of Space Zap! from the early 80's.  I've still got a list of things I wanted to add, but that I ran out of time for. The quote about adding people to a late project will make it later is very true.  I'd started with a team size of three - Me, my wife, and my 3.5 year old playtester, Katrina. Feb 27th we added a new team member - Naomi. I'm just happy my wif ...Show All

  • Visual C# HowTo: Synchronize the local system time with server time?

    What is the easiest way to synchronize the local time with a server time I tried to find a thread, but unfortunatly I only get results in Visual FoxPro forum. Is there some sample code avaible please Thanks, Andreas Here is the answer, feel free to use the code. If you find errors or if you have suggestions how to make it better please answer my post (I'm not experienced in Interop). using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.ComponentModel; namespace GF.Clock {  /// <summary>  /// Statische Klasse zur Behandlung der lokalen Systemuhr  /// </summary>  internal static class NativeMethods ...Show All

  • Software Development for Windows Vista Single-instance DCOM server problems with high/low integrity levels

    I am working on an application that employs a single-instance DCOM server. The application works fine on all other versions of Windows except Vista. There is a strange behavior that I observe on Vista in regards of the instantiation of the singleton COM interface if there is a difference between integrity levels of the server and client applications. The single instance is accomplished by having the singleton interfaces declared with DECLARE_CLASSFACTORY_SINGLETON ATL macro. Additionally, there is a code in the application that ensures only one instance of application is running by utilizing a named mutex. The application checks if the mutex exists, exits if it does and stays running otherwise. The scenario of the problem I pbserve is the ...Show All

  • Visual Studio 2008 (Pre-release) "The connection was closed unexpectedly" errors when trying to return System.Object from WCF remote method

    Hi, (Please bear with me - WCF is still all very new and exciting, and I'm not sure I completely understand either the technology or the terminology yet - sorry!) I'm trying to build a "data pipe" - a class that basically acts as its own proxy, so you can invoke a method on the client instance which will pass the invocation to the server, but both client and server are running the same code. (This is based on some ideas from Rockford Lhotka's CSLA if that helps ) I should add that, ideally, I want to do this using "traditional" serialization, rather than the DataContract/DataMember attributes in WCF - I have existing code the relies on binary serializers that I'm reluctant to change. I have an implementation ...Show All

  • Visual Studio Express Editions Please help

    i am using visual c# expres edition and after devoloping my project, now, when i change a parameter, ex: label's text, and compiling project, the label's name doesn't change..it keeps the old text..what can i do what is wrong Make sure after each compilation you have a new build, Check the Creation date time of exe after you compile, The behavior you are telling is not normal and it should not happen like this. Double check the things I have told you. ...Show All

  • Visual Basic Windows Service - Out of Memory Exception

    I have created a windows service using vb.net which uses a filesystemwatcher to monitoe files in a specifc directory, if images are added to the directory they are resized and saved in a remote directory. The original file is then backed up and deleted from the image directory. The code is as follows Friend Shared Sub ResizeImage(ByVal path As String, ByVal filename As String) Dim asr As AppSettingsReader = New AppSettingsReader Dim sRemoteDirectory As String = CType(asr.GetValue("RemoteDirectory", GetType(String)), String) Dim sBackupDirectory As String = CType(asr.GetValue("BackupDirectory", GetType(String)), String) ' Dim img As Image = ImageFromFile(path) (This was put in as an alternative but p ...Show All

  • SQL Server SSIS not recognizing {CR}{LF}

    Hi I am having a major problem with an SSIS package I am trying to write at the moment. The SSIS package is supposed to read a csv file and import it into a table. The issue I am having is that the file comes to me where the first 15 or so lines are terminated with a ,{CR}{LF}. 1,123,11,0,0,0,0,,,0000-00-00, 2,123,11,0,0,0,0,,,0000-00-00, Then after the first 15 lines the row termination becomes a simple {CR}{LF}. 16,123,11,12,0,0,0,,,0000-00-00 The problem I am having is that at row 16 SSIS fails to recognize the {CR}{LF} and starts merging rows together so that row 16 and 17 appear as one row, row 18 and 19 appear as one row and so forth. As far as I can determine is that it does not recognize the {CR}{LF} at the end of r ...Show All

  • Software Development for Windows Vista Bound Dynamic properties not retained after save - Using Vihang Dalal's Designer Rehosting

    I am using Designer Rehosting code posted by Vihang Dalal. I am also using DynamicPropertiesActivity from Ghenadie's blog. I create a workflow with DynamicPropertyActivity as one of the activities. Added 'strTest' to DynamicProperties collection. In order to be able to use this attribute in the rest of the workflow to bing to other activities, I believe I have to bind 'strTest' to a new member. So created a new Property member say dynProp_strTest. I can now use dynProp_strTest to bind to other activities. So far so good. The issue comes up when I try to save this workflow and then reopen it again in Designer. I can no longer see the new member 'dynProp_strTest' that I created. I understand it is getting lost during Save, but do not exactly ...Show All

  • Visual Basic listview to richtext drag / drop problem

    I have a vb.net app coded up with drag drop from a listview to a richtext box. Here is the relevant code: Hey there, This is because in ListViewItemDrag, the code "e.Item.ToString" is returning "ListViewItem: {tim}". Instead, use e.Item.Text: DoDragDrop(e.Item.Text, DragDropEffects.Copy) If you have option strict on, you will need to cast e.Item to Forms.ListViewItem first. ...Show All

  • Windows Forms How proctect my application with a key like Windows xp

    How i can protect my application with a key like in Windows xp .... with a serial Securing your application is always difficult. 1st problem, how do you verify that the key the user enters is correct. 2nd problem, how do you make sure this key is only used once by one user and not given to their mates to use on a pirated copy of your app You might want to consider using a website to store the valid keys that then issue a machine specific activation key. When the app is uninstalled, add a custom action to unregister this key so it can be transfered to another user. That way when a user buys a copy (say off the web), you can email them their product key (which you can generate yourself) and the ...Show All

  • .NET Development Why not implementing virtual Dispose() method?

    In the docs about Dispose() method it is said that we should not make Dispose() method virtual. Could you please explain why I used the following code as an illustration: using System; class A : IDisposable { public A() { Console.WriteLine("A created"); } public virtual void Dispose() { Console.WriteLine("A disposed"); GC.SuppressFinalize( this ); } ~A() { Dispose(); } } class B : A { public B() { Console.WriteLine("B created"); } public override void Dispose() { base .Dispose (); Console.WriteLine("B disposed"); } } class Client { public static void Main() { using ...Show All

  • .NET Development C# Com Interop problem - should be simple!

    I have some trivial vb6 sample code that uses a com dll to interface to talk to some hardware but I can't seem to port it over to C# Interop successfully. I have tried many permutation of marshalling attributes but I get a "Attempted to read or write protected memory..." exception with types I believe will work and DataTypeError returned from the com interface function if I am deliberately incorrect with the types.   The com interface declaration in OLE Viewer: long RpcCall(long iJobCode, VARIANT SendData, [in, out] VARIANT * RecvData);   The sample in vb6: Dim n() as Byte Dim r() as Long n = StrConv("Time_s" & vbNullChar, vbFromUnicode) conn.RpcCall(10012, n, r)   The intero ...Show All

  • SQL Server How to set the parameter's default value dynamically?

    Hi all, Does anybody know how to set the parameter's default value dynamically I'm working on a report with some parameters against datacube, and I hope the default value of one of the parameters could be set dynamically based on the user's login. Thanks, Jone Jone, In your Report Parameter - Default Values - Non-Queries you can place an expression like so: =IIf(User!UserID = "Bob" , "USA" , "Canada" ) I hope this is what you were looking for. Ham ...Show All

  • SharePoint Products and Technologies Customise "My Site" link text

    My client wishes to change the "My Site" link in the top right of the MOSS portal intranet page to read "My Wanaga" which is in the local language. I've modified all the occurences of "My Site" in the Resources files but this has not changed the text on this link. It uses a control template called MySiteLink.ascx to which I added a Text property in the asp:hyperlink but this had no effect. Using reflector, I found that the MySiteLinkUserControl does use a locale string enumeration entry MultPages_MySite_Label but I then can't find which file the value is set in. Can you modify the My Site link or, will I have to create a new control The control is delegated to GlobalSiteLink1 which is specifie ...Show All

  • SQL Server Avoiding Empty Tags using XML Explicit..

    Hey all, a nice little challenge for you as I've searched all over.. Here is some very simple XML Explicit code: SELECT 1 AS TAG,     NULL AS Parent,      product AS [ParentTag!1!AProduct!Element]     FROM tblTable WHERE X = Y FOR XML EXPLICIT When there is no results, I get an empty tag. <ParentTag/> This I do not want. Insted I would like nothing. Is there a simple way to achieve this Using SQL Server 2000 Looking forward to your responses! Roqs Dunno if its just my SQL Server but mine is working fine. I get a blank when no data is returned (Not the <ParentTag/> ) Tried this with northwind. ...Show All

©2008 Software Development Network