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

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

John12312

Member List

Ronan PB 2006
BSolveIT
Dan0001
NeW2VB
Alx_it
nop
Here2Play
binteron
RizwanSharp
ahmedilyas
Nathan R
DevDells
DragonWolfZ
Sarah Cartwright
sunrunner
bluebunny
Matt Lin
gra67
CLR_cn
RizwanSharp
Only Title

John12312's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Difference between Update() and Draw()?

    This may sound a little basic. Fundamentally, I'd like to know why there are two methods and not just one What would happen if you put all your logic code into the Draw() method for example, or all your drawing code into the Update() method Because GameComponents can change things in each other, and it would be annoying if a component changes something in another gamecomponent that has already drawn what it just changed. ...Show All

  • .NET Development [C#]Binary registry values to file...

    Hello, and thanks for taking the time to look at this post... I would like to know if anyone has any suggestions for me as to how I could write the values I pull from the registry, of type binary, to a file using C#. To explain what I am doing, the program creates a file in which it writes all data it pulls from the registry, the keys and the values, in order to create a valid *.reg file that can be kept as a backup for the user. No problems with any other value types so far, the problem with the binary is that it needs to be correctly written in the following format... 00, 00, 00, 01, 00, 00, 00, 01,\ ...adding the comma's and backslash for each line doesnt really come into it, its how do I break down the bytes from the returned byte arra ...Show All

  • Visual Studio Team System Mapping a new Team Project to a non-root source control folder

    There are three source control binding options when creating a new Team Project: Create a new root folder $/MyTeamProject Create a new root folder $/MyTeamProject from a branch Do not map source control yet However, if you pick option #3, when you double-click on the Source Control node you're prompted to create, you guessed it, a root folder $/MyTeamProject. Is it possible to map a new Team Project to an existing, non-root source control folder One of our potential customers has a lot of existing source with a specific folder layout, and they aren't very happy about having to change their source layout to this "every team project has a root folder" arrangement. Any comments or suggestions on how to h ...Show All

  • .NET Development Creating a C# class to upload images into SQL Server 2005

    I am new to C#. I am trying to create a property for a SQL Server 2005 image data type. Then use that property in a method to load images. The images will be loaded through a web form. I am using Visual Studio 2005, I have tried to create the property as follows: public image VehPhoto{ get { return VehPhoto;} set { VehPhoto = value;} } Using the IntelliSense feature there is no data type of image. I am using the following references: using System; using System.Data; using System.Data.SqlClient; using System.Data.SqlTypes; using System.Web; using System.Web.Configuration; using System.Web.Services; using System.Web.Services.Protocols; I have tried type casting ...Show All

  • SQL Server SQLServerProvider retrive all rows

    Hi all, I'm trying to use SQLServerProvider to looking for new or changed records but it always retrive all the rows. How could I use this provider to retrive only new or changed records <HostedProvider> <ProviderName>SQLActionItemProvider</ProviderName> <ClassName>SQLProvider</ClassName> <SystemName>%_NSSystem_%</SystemName> <Schedule> <Interval>P0DT00H00M60S</Interval> </Schedule> <Arguments> <Argument> <Name>EventsQuery</Name> <Value>SELECT ActionItemOwner, ActionitemDesc, StatusNm FROM [QA_DEV].dbo.ACTIONITEMS_QA_VW</Value> </Argument> <Argument& ...Show All

  • SQL Server how to set column name dynamically?

    HI chaps my scenario is that, i have a table in which i have column such as col01,col02,col03....col31 i want to retrieve the records related to that column by specifying the name dynamically (by using loop) as fist three character are same ( 'col ' ) and i have to do integer increment in last two character ( 01... 31). Is it possible that I can use variable for column name , if yes how or is there any other way to achieve this task waiting for your reply regards   fafnir wrote: Something like the following will work for you: create table DynCols (col01 int, col02 int, col11 int, col12 int) -- and so on, fo all 30 columns declare @query varchar(255) set @query = 'select ' declare @counter int ...Show All

  • Visual Studio Team System Team Foundation could not update the work item because it was already updated by another user

    I am using a web service event subscription to assign an internal id to new workitems by type and project as mentioned here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=677833&SiteID=1 The web service works properly and I do not receive errors when copying a requirement to another WI type either on the server, or from my desktop, but other users report receiving the following error message: Team Foundation could not update the work item because it was already updated by another user, it does not exist, or you do not have permission to update it. Any suggestions I now understand what is happening and yes they have to revert manually to save their change if the workitem was modified in your webservice meanwhile. The even ...Show All

  • Software Development for Windows Vista problems with enterprise library and com+

    Hello comunity i have a problem with enterprise library. u know tha the enterprise library for use in com+ had have a strong name. and for this case are a one merge module that yupu can find in http://www.gotdotnet.com/Community/UserSamples/Details.aspx SampleGuid=E14336D7-1B7B-4287-8E20-51FE07CB12AA ok i donload the merge module an add to mi installer with de enterprise dlls comon, data, and object builder. intall the aplication and go to his directory where is intalled and copy the dlls what have the strong name. i copy to c:\Enterprise_library_dll_with_strong_name and reference to mi proyect that haver to used and one problem ocurred. Se ha producido un error al crear el controlador de seccion de configuracion para dataConfiguration: No ...Show All

  • Visual Studio Modify WCF Guidance Package

    I need to modify some custom pages in WCF service factory. I installed a copy of service factory code from the installer in sourcecode directory. From other posts in this forum, I understand that I need to change the GUID and manifest file. This may be a stupid question, but do I still need to change the GUID in WCF Guidance Package.xml It looks like the name there is already changed to "CustomWCFGuidancePackage". And besides that, anything else I need to change I just want to make sure my custom package won't corrupt anything in the original one. Thanks! Thanks for the link. I read from Don Smith's blog about recipe runner and he confirmed on Service Factory's forum that it will be available ...Show All

  • Visual C# Connection and Reading a USB Port using ICSharpCode.USBlib????

    Anyone have experience with using ICSharpCode.USBlib code to read a USB port http://www.icsharpcode.net/OpenSource/SharpUSBLib/default.aspx I am having trouble getting the code correct to read the USB. I have connection but not sure of the correct way to code to get the BulkRead() to read the data from the port and put into a string. using ICSharpCode.USBlib; const int VENDOR_ID = 4505; const int PRODUCT_ID = 25703; Device device; private void gpsUSB() { foreach ( Bus bus in Bus .Busses) { foreach ( Descriptor descriptor in bus.Descriptors) { if (descriptor.VendorId == VENDOR_ID && descriptor.ProductId == PRODUCT_ID) { ...Show All

  • SQL Server how to show columns with two decimal places

    HI , I've table whose output is some coumns. The colums show 6 digits after decimal point . My problem is i want to show only two digits after decimal point .. How to do using query.. Thanks From your question i seem that you are having the FLOAT datatype. You can do this in two ways 1) Modify the table column to DECIMAL(10,2), if you always want to have results in the 2 deciaml place or 2) SELECT cast ( 2.456576 AS decimal ( 10 , 2 )), if you want temp. solution. Note: This will Round-off the values. Gurpreet S. Gill ...Show All

  • Windows Forms using .Net component in unmanaged(not COM) component

    Hi Is it possible to use .Net component in unmanaged component not in COM component Regards ...Show All

  • .NET Development BaseStream.Close

    I have a method that creates a StreamReader of a file and returns it's BaseStream. The calling method will be closing that Stream. Is that enough and safe, or the StreamReader must be Closed too I'd appreciate any help! Thank you, Luis Both StreamReader and Stream implement IDispose, so both should be disposed. You ca use the using construct to accomplish this automatically. The both effectively just call Close in thir Dispose. ...Show All

  • Visual C++ VC8 CRT merge modules with instanced MSI install

    I've got a unique situation: the installer for our product is MSI based. Having recently switched to VC8, I've been tasked with getting the runtime DLLs included with our install. I've successfully applied the CRT merge modules, however I am having a problem... Our installer is capable of installing multiple instances of our product on the same machine. Suppose I install two instances of the product. Everything works great. As soon as I uninstall the second instance, the first instance is broken because the VC8 CRT was removed from the GAC -- it appears that it wasn't reference counted. I'm wondering what (if any) comments the MSFT folks have on this. Thanks, Aaron Klotz Our problem turned out to be overwr ...Show All

  • SQL Server running ssis package with ssis run time compoenents and sql server 2000...

    running ssis package with ssis run time compoenents and sql server 2000... Is it possible to run ssis packages that point to servers on sql server 2000 without installing sql server 2005 Can we just install runtime for ssis and run the packages Please explian with links if possible thanks a lot spattewar wrote: This is great. So to just summarize. 1) On the production machine that I have SQL 2000 server installed, I will install SSIS component only. 2) Develop the SSIS packages on my machine using VS 2.0 and SSIS. 3) Save the packages in files with *.dtsx and configuration files *.xml 4) Move the files to the production machine and execute the files using DTExec. IS this correct Thanks aga ...Show All

©2008 Software Development Network