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

Software Development Network >> David Murray's Q&A profile

David Murray

Member List

brohans
sam-pan
step
naruto uzumaki
Paul B Walker
SCRunner
soulmate75
search and deploy
TheMaj0r
Mr. Eric Smith
Larry OBrien
mrbelk
Roman S.
Juergen Lorenz
Kur Lan
arooni
Stephen S.
GraemeH
Stonemeel
Jim7
Only Title

David Murray's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. loading textures "in game"

    Hi I know how to load a texture when the game starts, but how to load a texture when the game has already startede ex. 10 min in the game You can call content.Load<>() anytime, and anywhere, in your code. Say you want to load a texture after the player has passed a certain position: if(player.Position.Y > 1000) content.Load<Texture2d>("JustAnotherWall"); You aren't required to load all your assets inside LoadGraphicsContent; it's just good design/habit. There are two types of loading resources - automatic and manual. Automatic is through content.Load<>(), and whenever you call content.Unload(), it will dispose of everything properly for you. Manual texture loading i ...Show All

  • Windows Forms Multiple Publishing Locations?

    I have a project in Visual Studio 2005 that I want to push out to our two sites. It's going to be much more efficient if I can transfer the necessary files to two separate network folders, each on a PC in a different office. Is there an easy way to do this or will I just have to publish it to one and then publish it to the other one Can I get VS2005 to remember both destinations I assume I won't be able to publish it to one place and copy the files to the other manually as the application will look in a certain folder for its updates... Any thoughts on this from anyone Cheers James, There are a couple options for publishing an application to multiple locations. The first is to use VS for both ...Show All

  • Visual Studio Team System How to check if a build (in a team project) is currently processing?

    I'm having some trouble with how to check if a build is currently working within a specific team project. The Team Foundation Build Server can only build a single team build at any given moment, for each of the team projects. Right now I'm using the following code to see if I'm allowed to start a new build or not: try {      buildUri = BuildController.StartBuild(buildParams); } catch ( Exception ex) {      if (ex.Message.StartsWith( "TF42045" )) If this happens, I schedule up the build so it will run when the current build is done processing. At the end of a build process, I'm sleeping the thread for 1 second, even though the build is completed, it sometimes throws exce ...Show All

  • SQL Server Report Model Generating Out of Memory Error

    I am creating a report model of a large database with a few hundred tables, the idea being that the users can report on any part of the database and create perspectives for the areas they want users to have access to (In the past the users have moaned about report models in a CA product called Eureka as the models are too small, perspectives seemed a way of allowing one large model but limiting each perspective to a set of users ). Unfortunately presumably due to the size of the model visual studio is giving me an out of memory error when adding new tables. I have a two dual core xeons with 4Gig of ram and I'm running XP Pro 64bit with the developer edition of 2005 with service pack 1 and VS2005 is using around 1/2 a Gb. Is this a known i ...Show All

  • Windows Forms How to make currently selected row invisible ?

    This the message I get when I try to make currently Selected Row invisible. "row associated with the currency manager's position cannot be made invisible". I want to make all the rows in the dataviewgrid to be invisible.Any help My Code: if (dataGridMain.SelectedRows.Count > 0) { dataGridMain.Rows[0].Selected = false; } for (int nIndex = 0; nIndex < dataGridMain.SelectedCells.Count; nIndex++) { dataGridMain.SelectedCells[nIndex].Selected = false; } for (int nIndex = 0; nIndex < dataGridMain.RowCount; nIndex++) { dataGridMain.Rows[nIndex].Visible = false; } No this is what I want. I want to make only few visible rows in the grid based on some searching. It ...Show All

  • Visual C++ Instantiantion of abstract class

    I am not sure where I went wrong. I have extracted the additions in the *.cpp and *.h files. : error C2259: 'PathDependentUpAndOutC' : cannot instantiate abstract class In the cpp file: " //second one, Q2 PathDependentUpAndOutC::PathDependentUpAndOutC( const MJArray& LookAtTimes_, double DeliveryTime_, double Barrier_, double Rebate_, const PayOffBridge& ThePayOff_) : PathDependent(LookAtTimes_), DeliveryTime(DeliveryTime_), Barrier(Barrier_), Rebate(Rebate_), ThePayOff(ThePayOff_), NumberOfTimes(LookAtTimes_.size()) { } unsigned long PathDependentUpAndOutC::MaxNumberOfCashFlows() const { return 1UL; } MJArray PathDependentUpAndOutC::Pos ...Show All

  • Visual Studio Express Editions Quick problem.

    Well this is what im trying to do, im trying to create a kind of members form, where you type someones name in one box and there email in the other, then you hit save and it saves it as a .txt file, and when i re open this file it shows it in a rich text box above, But i just cant do the coding for the part where you put the names in the 2 boxes, then when you save it saves them names, and when i re-open the txt file the names show in my rich text box. ive coded the save button and the open button so they're ok. Hi im not that advanced really but I have some code I kinda got working, it needs modifying abit to make it work correctly but the basic workings is there, im sure a more advanced develop ...Show All

  • SQL Server Application roles and Module signing

    Hi, Am migrating my SQL 2000 legacy app to SQL2005 and am dealing with restrictions on the underlying system tables. Have taken advice that Granting VIEW state to all users is heavy handed (especially meta data access at SERVER level). Now looking at Module signing which is great. I can supply SP's which target the few System table/ information schema fields that I require. Now I Sign the Sp's cool, now I grant exec rights to the application role (doesn't work). Create a db role and put my users in it, okay grant role exec on Sp's (fine they work). However my application runs under an application role always, so my users rights are ignored and it appears that its only the users not the approles who can benefit from the module signing I ...Show All

  • Visual Basic Creating MSSQL Tables from DataTables

    Hey everyone, quick question, I'm populating a datatable on a client based on data out of a local database on the client systems, it than pushes that datatable to a webservice where I would like to recreate that table on the server. Originally I was going to push generic lists to the server to track column names, column types, column lengths etc. but than I figured the datatable has all that information in it already, problem I have is actually creating a MSSQL table based on this datatable. If you query the column datatype properties from the datatable the types come out different than the types that MSSQL requires such as the datatable pumps out "system.int32" for what the database considers simply a "real" number. I ...Show All

  • .NET Development Question for DataTables Replation in a DataSet?

    Can anyone explain what the relations in DataSet do and what it for I have run the code below with and without the relation snippet, and I see not different. Can you tell me what the relation in a DataSet doing   protected void Page_Load( object sender, EventArgs e) { //1. Db Connection string myConnString = "Data Source=localhost;Initial Catalog=Northwind;Integrated Security= SSPI " ; SqlConnection myConn = new SqlConnection (myConnString); myConn.Open(); //2. DataSet DataSet ds = new DataSet (); //3. Adapter command and fillin dataSet //--1). Customer SQL Adapter-- string sSQL = "Select CustomerID, Phone From Customers Where CustomerID ='VINET'" ; SqlDa ...Show All

  • Visual Basic Num Lock. This doesn't work on my PC. :-(

    I have a button in my program called NumLockBTN and I want to give it the ability to turn the Num Lock on the keyboard 'ON' or 'OFF'. Can this happen Thanks, QWERTYtech Hi, Sendkeys.Send("{NUMLOCK}") is supposed to work, but for some reason doesn't on my PC otherwise i would get the NumPad values instead of the other ones. Regards, S_DS ...Show All

  • Visual Studio Team System How to ignore compiler-generated members?

    Our company has rule to prefix all class member variables with ‘m_’. When I try to make a custom FxCop rule, it will pick up all compiler-generated controls’ names (starting with underscore) in the web application (VB). How can I make it so custom rule will ignore them Thanks... Hello Alex, You are right. RuleUtilities.IsCompilerGenerated(Local) will help only by locals which were generated by compiler while compiling the source code. In your case the variables/fields are generated on the source code level, so they will remain with the same names on the IL-Code level and RuleUtilities.IsCompilerGenerated(Local) method will not work.  You could search for all fields which start with p ...Show All

  • Visual C# Process class used from Windows Service fails

    I'm having trouble with the Process class. I have a Windows Service running as SYSTEM and I want it to spawn processes on behalf of users. I get the user's password there securely and create a SecureString. I get a Win32Exception "Access Denied" on Process.Start. If I run the service under the same account as the user I want to start for, I still get the exception except it says "The handle is invalid". I've checked and checked the SecureString and I've made it read-only so I don't think that's it. I actually had gotten it to work some time ago if I impersonate the client but this isn't really practical since the job can be queued up waiting for some time. I've signed all the assemblies involved and I've given the ...Show All

  • Visual Studio Team System Security Problem with Importing a New Work Item Type

    I have a security problem with importing a new work item type: C:\Program Files\Microsoft Visual Studio 8\Common7\IDE>witimport.exe /f Task.xml /t MyServer /p MyProject Warning: TF26171: User/group '8bf66fb8-4812-4ee3-86f6-1d610dac52fb\Developers and Testers' is not found. TF26204: The account you entered is not recognized. Contact your Team Foundation Server administrator to add your account. The work item type definition file, Task.xml , does exist in the appropriate location. The Team Foundation Server, MyServer , does work and is accessible. The team project, MyProject , does exist. The project group, "Developers and Testers" , does exist, though it was added manually today. What should I do ...Show All

  • SharePoint Products and Technologies Problem to add item in a list through the code when the user is not allowed to add in that list ??

    I am writing a piece of code which allows the user to add an element in the list by cliking on a boutton i create specialy for that. the user is just a viewer and a reader. So when my piece of code try to add an element, that come up with a error message "access denied". What I need to do to force the adding in my code. is it possible to specify in the code to sharepoint that the administrator perform this action rather than the viewer use Thanks a lot for your help. My code is that : SPListItem newItem = list.Items.Add(); newItem[ "Reservation reference" ] = LeRendezVous.Reservation_ID; newItem[ "ReservationID" ] = LeRendezVous.Reservation_ID; newItem[ "ClientName" ...Show All

©2008 Software Development Network