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

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

Jameslee20

Member List

benchmarkman
ZopoStyle
nobs411
Hans Preuer
GaryMcC
Handra
CodeButcher
Furtive Networks
wspguy
goPlayer
kangalert
Katarina C.
rod_r
Raja Pratap
chandrala
Joel Alexandre
DaveZJ
SterlingH
tempp
Bluehunter
Only Title

Jameslee20's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Game State Class - Sharing Information

    I'm using the default XNA game template for the time being, as I'm not intimate with C# yet. I'm trying to set up a game state stack, using a class derived from the game class. The GameState class has UpdateMe and DrawMe functions that basically call protected methods Update and Draw in the Game part of the inherited class. I also have a gameState handler class that has a stack of GameState objects that it keeps track of, etc. If I use this encapsulated method of game states, how do I share information between game states. For instance, if I have a menu screen that shows character info, how do I share the character's stats between the main game state and the menu state. I figured using static class members was a bit crude, but I'm unsure o ...Show All

  • .NET Development Error on installion WCF

    Hi the last days I'm hardly trying to get .NET 3.0 running. The Installation of the runtime always fails. I tried to install the MSI manually and I found out the problem lies in the WCF setup. Unfortunately I don't get any informations what the cause is. I use Windows XP SP2, are there any hints what I can do or where I can get further informations on the error that occurs The SDK installs without any problems. In the Event theres the following entry: HttpModules node ServiceModel does not exist in System.Web section group. System.ApplicationException: ServiceModelReg.exe has detected a possible corruption in the IIS metabase that prevents the registration of the ServiceModel IIS scriptmaps. Please either fix the IIS metabase corruption ...Show All

  • Visual Studio Express Editions winsock.h problem...

    Greetings all! Just got Express Edition today and wanted to jump on in heads first into it and see if I couldn't compile some MUD code I've been fiddling with. Before I changed anything though I realized that before I could compile the program I needed to get a hold of a winsock.h file (still can't understand why windows won't include the .libs for most of their networking and programing environments... but heh, what can ya do). So I got a hold of one, put it into the directory it needs to be in, and went ahead with compiling. Well, it went through the entire compile but came up with a LOAD of errors saying that it couldn't open the file or that the file does not exits. A bit confused I ran the compiler through an emulator on a Linux box a ...Show All

  • Visual Studio Crystal Reports: How to make Parameter fields optional

    Hi, Im a newbie at both C# and CR10. Im converting a M/F report to CR10, which actually contained 3 different layouts and selection criteria. I've got the selection criteria working except it needs to be optional. How do I make the CR parm fields optional thxs, drc you mean to say that the user can have the option of entering what to filter instead of choosing from the drop down list i think instead of using a parameter with multiple values in your crystal report, you can just leave it as a parameter discrete value. Then you can create a form in your project that has a combobox containing the field loaded from your column. Remember to set the dropdownstyle of your combobox to DropDown so that t ...Show All

  • Internet Explorer Development Strange memory read error with BHO

    I have a BHO which launches my Explorer Bar. It has been working fine for some time now. But now I am seeing some strange behavior which I am unable to debug or explain. With my BHO enabled and my Explorer Bar in expanded state, when I close the browser it throws some memory read error. If I go to manage addons and disable AcroIEHlprObj BHO and Yahoo IE Services BHO on different combinations, the error doesn't show up. Even with those two BHOs enabled, if I browse to some web site in the main browser or click anywhere in the browser (like minimize and maximize) and then close the browser, then also no error is thrown! If my Explorer Bar is in minimized state then also closing the browser doesn't throw the error. When I debug ...Show All

  • Visual C++ Accessing memory above 2 GB

    Can anyone suggest how to increase the amount of memory available to a Visual C++ 5.0 (32 bit) application, under both XP and XP64   In both cases, on a machine with 4 GB memory, only 2 GB of memory is available to the application. Thanks. jj kaufman wrote: Can anyone suggest how to increase the amount of memory available to a Visual C++ 5.0 (32 bit) application, under both XP and XP64 In both cases, on a machine with 4 GB memory, only 2 GB of memory is available to the application. Thanks. ...Show All

  • SQL Server discrepancy between sys.dm_db_index_usage_stats query result and actual execution plan

    database on Sql Server 2005 SP1 EE. Trying to evaluating a query performance via actual execution plan, I found out 50% cost of PK index seek and 50% cost of nonclustered index seek. It seems to be reasonable. However, it surprises me that the sys.dm_db_index_usage_stats dynamic view shows only the nonclustered index seek occurred (user_seeks=1), while the PK correspondes the results of user_seeks=0, and user_scans=0. I wonder if anyone else hit similar issue. Please note that I perform this study by restart to the process. The results are repetible. Could a bug result in this discrepancy Tahnks, Kefei ...Show All

  • SQL Server Configuration files do not work in CmdExec mode

    I have created an Integration Services package on my development machine. The package contains a configuration file witch let's say is stored in c:\projects\MyIntegrationServicesProject\myConfigfile.dtsConfig (on my dev machine). Then I have another "Production" machine where I import the SSIS package into an SQL database. I then create an sql-job with only one step, to run my SSIS package. This works fine if I configure the step to be an "SQL Integration services package" and configure it to use my configurationfile. However I would like to configure this package as a CmdExec step. In the commandline, I specify /CONFIGFILE "d:\....\myConfigfile.dtsConfig" (the correct path on the prod machine). But it s ...Show All

  • Windows Forms Passing an Object through a webservice

    I'm having some difficulties retrieving an object from a webservice that I have made. The error message (below) mentions that the Authentication.User was not expected... yet I return UserInfo (that's the base class of Authentication.User). Below is the sample code I work with, can anyone help me with this Thank you Here is how I call the Web Service: ----------         private void btnLogin_Click(object sender, EventArgs e)         {             //Call the webservice to autheticate the user. Then do the ninja dance of joy and kill a smurf!              try ...Show All

  • Visual Studio Rdlc Report

    How can i place databound image control in rdlc report page footer.When i did it using hidden textbox , it only works on body.Can u help me as early as possible ...Show All

  • Commerce Server Feedback: reorder CatalogCreate.sql

    Just a bit of feedback here. When i execute \Program Files\Microsoft Commerce Server 2007\CatalogCreate.sql it throws a bunch of warnings along the lines of "Cannot add rows to sysdepends for the current object becuase it depends on the missing object 'dbo.ctlg_GrantPermissionIfExists'. The object will still be created." When I check the db after the script has completed, the missing object is there, it just needs to be moved to an early position in the script so these warnings aren't thrown. Michael. Max, This was on creating a new DB from scratch. The only command executed before this was CREATE DATABASE XYZ_productcatalog; Should I execute CatalogDrop.sql on a blank DB Michael. ...Show All

  • Visual C# check valid path

    Is there away to check a valid DOS path in c# ex: if the user types zzz:\test.txt and the path is invalid, return error message.   using VS2003 .NET1.1   Thank you, If you use System.IO.Directory.Exists it will return true if the directory exists, and false if it does not. If you want to check whether the drive is valid, you can use System.IO.DriveInfo.GetDrives to give you the valid drive names. ...Show All

  • SQL Server Error reading certain numeric values with VFPOLEDB driver

    It appears that the VFPOLEDB driver tries to convert numeric types in VFP to decimal types in .NET. In this case, it's a Numeric 9,3 in VFP and it's trying to put it into a decimal 8,3 in .NET. I know that VFP has this funny quirk where if you don't use all of the decimal places after the decimal point, it allows you to use extras in front of the decimal point. In our case, the number is 104895.83 and yes, VFP is happy storing this in a Numeric 9,3 column. When trying to read this in .NET, you get this message: System.InvalidOperationException The provider could not determine the decimal value. blah, blah, blah... The question then is - is there a work-around I can find no way to force .NET to use greater precision. About a ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Getting multiple errors back from the effect compiler?

    I'm using the effect compiler (specifically the Effect.CompileEffectFromSource method) to compile effects on the fly, and was wondering if anyone knew a trick to getting more than just the first error back. It's kind of annoying to not get them all back at once, but I'm not seeing a way (via CompilerOptions) to have it continue. I'm worried I'll have to build my own yaccer :( And as a sneak peek, here is a screenshot of an early build of the tool I'm writing - it's a minimally invasive drop in shader editor (requires about 4 lines of code in the host project to set up - maybe less if I create a GameComponent wrapper). It will probably go up on CodePlex in a week or two. http://www.hiranipra.com/data/help_attach/ShaderDesigner1.png ...Show All

  • Microsoft ISV Community Center Forums Applying InsertBreak to a style?

    Hi, Using Word 2003 and not fluent in writing macros. I'm trying to write/string together a macro that would insert a page break in front of a style called H1 if H1 is on an even page. I've tried dozens of different pieces of code and can't get it to work. What I've tried is to find all occurences of H1 and when found, applied this: Selection.InsertBreak Type:=wdSectionBreakOddPage Unfortunately I'm not skilled enough to do this fully, and haven't been able to find any example macros that would do even something a little bit similar, so that I could modify that to my needs. Any suggestions/help you can provide will be much appreciated!!! Thanks, Laura Laura - this should do what you w ...Show All

©2008 Software Development Network