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

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

Guostong

Member List

Eng. Habeeli
jackline
TechSupportV
thukralz
jena
Scott Coffey
baswegan
Smoc
hayward_ke
IamHuM
RickKr
huysmans
Geeee
ajcanable
dotnetscot
Kraichgau
just david
Michael Reynolds
MA2005
howard dierking - MSFT
Only Title

Guostong's Q&A profile

  • Visual Studio Express Editions why this expression is invalid?

    hi when i write Dim buff As Byte() = New Byte(fsin.Length) it says that byte has no contructors and when i put square brackets at the end like that Dim buff As Byte() = New Byte(fsin.Length) {} no complain any explain for this thanks in advance. Usually that implies an initialization Array. For example, you may see this at times: Dim S() as bye = {1,2,3} That will create a three byte array and fill in the values 1,2,3 ...Show All

  • .NET Development Inconsistent behavior of StreamReader

    I have written a function to check if the SMTP Server is active or not using TCPClient. When I stop the SMTP Service, the function very well returns me its status as inactive, but when the SMTP service is running, then "occassionally" the Peek() method throws an exception, that falsely return the status of SMTP server as inactive. Can anybody tell me why is the behavior of these function so inconsistent and any ideas on how to get rid of this problem.. private bool IsSMTPActive() { try { client = new TcpClient("10.135.158.97", 25); ns = client.GetStream(); stdIn = new StreamReader(ns); stdOut = new StreamWriter(ns); stdOut.WriteLine("HELO " + Dns.G ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA vs Intel 915G

    I was wondering if anyone has had any success with the XNA framework on a pc with the Intel 915G chipset. I have a user reporting an XNA-based program of mine is failing to start up due to it being unable to find a suitable graphics device. Reading around on various forums, I gather the shader support offered by the Intel 915G is somewhat non-standard, which may explain why XNA can't or won't use it. Unfortunately, I have no access to a pc with this chipset, so there's not much I can do in the way of testing. Has anyone got XNA up and running with the 915g, and if so, how Thanks! That pretty much confirms what I've read elsewhere. The Intel web site actually claims that the 915 has "hardware acceler ...Show All

  • Visual C# Stopping action when user clicks tabPage/tabControl

    Hi, Can't quite find the answer to what I want so... I have designed a Web Form with a number of tabs. Each tab has buttons etc... that do various actions. However on occasions I need to ensure that actions on one tab have been completed before the user can go to a different tab. Until such an action is complete the button used to start it remains enabled - once complete the button becomes disabled. I can check to see if one of these buttons is enabled and show a warning message using tabControl.Click. However that does not stop the new tab being shown. I need to show the warning message and keep displayed the original tab with the button that needs actioning. Hope that makes sense. Thanks for any help Andrew ...Show All

  • Visual Basic Print graphics that are on the form into PDF

    I have placed many objects into the form ,like circle, square, images, etc etc directly on the forms background. Now i want to know how to take printout of them directly into printer or PDF in particular Here is what I think you are looking for: http://www.knowdotnet.com/articles/printform.html ...Show All

  • Visual Studio 2008 (Pre-release) XBAP, Webclient and the Current Credentials?

    Hi everybody! I’m wondering if it is possible to supply the WebClient with the current windows user information I am trying to webclient my way to a page inside a web publication system that authenticates via the current windowsuser. Using the WebClient.UseDefaultCredentials = true does not work, i still get an exception which says that a request for a System.Security.Permissions.EnviromentPermission failed. Is it possible to do this witin an XBAP, or is this not available in the sandbox many thanks /Simon Hi Simon, Unfortunately yes, that functionality is not currently available for .xbaps. One is granted a certain level of EnvironmentPermission for the Intranet zone, so if you can deploy your .xba ...Show All

  • .NET Development CLR Debugger command line arguments

    How can I attach the Clr Debugger to a process When I issue a Debugger .Launch() or Break; I am presented with a dialog to select a debugger. Selecting the Clr debugger brings up the debugger on my process. I want a way to bypass the dialog. I see I can set this up in the registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework - DbgManagedDebugger but have not found how to setup the command arguments. Also can I do this programaticlly For example create a process and pass the arguments so I do not have to play with the registry. It is c:\windows\system32\vsjitdebugger.exe that presents the dialog. You can replace the DbgManagedDebugger registry value to launch your debugger of choice. ...Show All

  • SQL Server error: the publication does not exist

    I had a publication that I removed from the Local Publications folder but it still shows up in Replication Monitor (with a red 'X'). No jobs exist related to this publication either. Everything is working ok, but I can't get rid of this from the Replication monitor. Any help would be appreciated. Thanks. Yes, that did it! However, the problematic data was in another set of tables... There was a record in the MSReplication_monitordata table and an associated record in the MSSnapshot_agents and MSSnapshot_history that were associated with the publication that no longer existed. Not sure why this data was still in these tables but once I deleted these records, the error in Replication Monitor dissap ...Show All

  • SQL Server Append current date in exported report file name in PDF format in sql report server 2000

    HI All I want to append current date in exported reported file name. I am using report viewer to diplay report . when i exported report in pdf format it ask me to save file at this time file name is same what ever i uploaded in report server. when it ask me to save i want append current date to the file name. like report file name is "testingdetail" then i want "testingdetail-November-27-2006.pdf" Please help me in this Thanks Alpesh   Hi All I found another way to append current date to Expoting report file name. We have to overide the Reder method of reporting service first we have to add web reference of reporting service then put below code in button click event private void ...Show All

  • .NET Development Need help with hashtable

    Hello, I am using managed c++ with VS2003.I have a hashtable,that is accessed by multiple threads.How can I put a lock around the hashtable Is hashtable value or reference type Any help will be appreciated. Thanks 1) You don't say which hashtable you are using - some implementations of a hashtable may provided the kind of locking you require; others may not - in which case you need to provide the necessary safe-guards yourself. 2) I don't understand this question. ...Show All

  • SQL Server Delete's Value

    Has anyone ever had an issue when they try to commit changes back to the database based on a value they enter in a application...the value that u would use (i.e Select * From Customers Where CustomerID = 'value') to get the rest of the value's pertaining to that value you enter gets deleted from the database....its really wierd but i have that problem "My form" is not really descriptive enough. Is this a tool issue Or a SQL issue with code you have written to support a form If it is SQL, can you post some of the table structures If it is the former, I would probably suggest you use profiler to get a view of the queries being sent and try to match that to what you expect to happen. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Creating objects 'by name' read from level data

    Hi, Firstly sorry for the confused subject line ;) Ok, I'll try and explain - suppose I have a class called Enemy1 and a text file that lists level data and in there I have the text "Enemy1" listed also. Can I somehow create a new instance of an Enemy1 object by only knowing 'Enemy1' as the string that I have read from the level text file This would mean I would avoid alot of code such as 'if blah = "Enemy1" then... Enemy1 myEnemy = New Enemy1' etc. Hope that makes sense, sure there is a 'correct' name for this. Cheers :) Check out serialization  and  reflection Actually, the SpaceWar startup kit reads it's data from an xml config file. ...Show All

  • Software Development for Windows Vista Installing on a Partitioned HDD

    I have a Vista RC1 dvd and i was wondering if it was possible to install it to my D drive on my hard drive...i would still have xp pro on the c drive..would it possible to have both and when u turn on the computer select which drive u want to boot off of Hello Streetlightman, This forum is for developers who have questions about appcompat. However y es you are able to dual boot Vista and XP. http://forums.microsoft.com/TechNet/ShowPost.aspx PostID=816702&SiteID=17 Thanks, Louis Shanks AppCompat ...Show All

  • Software Development for Windows Vista Vista Explorer Grid

    There is a way to use the vista explorer grid http://www.flickr.com/photos/29673390@N00/403700789/ ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Upcoming Starter Kits

    From yesterday's webcast (where was everyone ), it was mentioned that a puzzle starter kit would be included in the RTM version and that the XNA Racer starter kit would come with the Creator's Club membership. I didn't get a chance to confirm this. Is this the case Also, are there any plans for other starter kits down the road There was a webcast thems XNA people are slackin' with the blog posts then ... because I think I've got just about everyone involved in xna on my rss reader :-P or are you talking about the channel9 video btw, I'm terribly excited about what was shown in the c9 video ... very cool stuff. I was however disappointed to find out that XNA won't work with the 360 wireless adapter. Now I'll have to do some rewirin ...Show All

©2008 Software Development Network