wadnerk's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. IMO IUpdateable.Update() shouldnt pass game time
Normally a game will not have one specific game time - but have multiple timers running that can be controlled independently. Its a very helpfull to have special timer for e.g. menu, HUD and at least one for ingame components. Problem with the current interface is that update ordering AND gametime are linked together in one interface. I can see why the gametime property is helpfull in the very simple scenarioes where there is one specific game time - but as soons as you move beyond that its just a nuisance imo. I will always use globally defined timers anyway. So - kill the gametime property and add a timer class to the framework . ...Show All
Visual C# Documentation Help
I'm going through an Apress book on C# for beginners. I've found things in the first few chapters, that work differently when executing. This makes it difficult, for a beginner; like me, to follow and get a clear understanding. If you had to give a beginner one reference book or training link....what would it be Here is some Bigenner Turorials C #Tutorial: http://www.softsteel.co.uk/tutorials/cSharp/cIndex.html http://www.csharp-station.com/Tutorial.aspx http://csharpcomputing.com/Tutorials/TOC.htm and this also a good Book Programming C# ...Show All
Visual Studio 2008 (Pre-release) How to use resource in dll ?
I want use MeshGeometry3D resource in dll project ,but can not run below is my code and resource . //resource myDictionary.xaml <ResourceDictionary xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " > <MeshGeometry3D x:Key="SphereMesh" TriangleIndices="0 1 2 3 2 4 5 4 6... <MeshGeometry3D.Positions> <Point3DCollection> 0,42.529461,0 0,41.712269,-8.2970867 -1.618682,... </Point3DCollection> </MeshGeometry3D.Positions> <MeshGeometry3D.Normals> <Vector3DCollection> 0,1,0 0,0.97959799,-0.200969 -0.039207, ... </Vector3DCollection> </MeshGeo ...Show All
SQL Server need advise of basic knowledge
I dont know where to put this thread, I just wanna ask a question..actually what is happen when subscription synchronized the publications among IIS process.. (SQLMobile) could you guys give me a diagram/schema of it thanks before If the subscriber updates data and there are no conflicting publisher updates, the subscribers updates will be propagated to the publisher. If there are conflicts (publisher and subscriber update the same row or same column -- depending on row or column tracking) there could be conflicts and one of them may lose. Also the winning row is governed by the type of article resolver you choose. ...Show All
Microsoft ISV Community Center Forums Left, Mid and Right functions not working on Office 2003
Hi, VB in office 2003 does not seem to recognise the Left, Mid and Right functions. I've been using the code below to convert dates in excel like "20060123" to an actual date (i.e. 23/01/2006) in previous versions with no problem. Sub DCDecToKhanya() Dim mycell For Each mycell In Selection 'For each cell in the range selected mycell = DateValue(Left(mycell, 4) & "/" & Mid(mycell, 5, 2) & "/" & Right(mycell, 2)) 'Convert the contents to a date Next mycell End Sub I get a Compile Error " Can't find project or library" Thanks Hi I ran your code in my version of 2003, and it worked OK I changed mycell = DateValue(Left(mycell, 4) & &qu ...Show All
SQL Server SSIS loses layout of precedence constraints when saving.
This is more a medium level annoyance than a problem. When I save a package, close it and later re-open it, the precendence constraints end up all over the place making my neatly layed out diagram a shambles. Call me anally retentive if you like (you wont be the first ), but I find this extremely annoying. Does anybody else have this problem Does anyone have a solution I have the same problem. From the whole team only me. I think it's because I was the only guy from our team who installed SQL Server 2005 SP1. By the way what SQL Server Integration Services version you're using mine syas: Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Installed Edition: ...Show All
Visual Studio Express Editions coding textbox control back colour
Hi, I have a textbox with the backcolor property set to 192,255,255, light cyan clour What is the syntax to set this value in code eg: me.textbox1.backcolor= Ron Hi Thanks for the reply, The options in the .BackColor = Color.LightCyan does not give me the color required. The colour is not a system colour. The following does the trick: .BackColor = Color.FromArgb(192, 255, 255) '\\ set back colour back http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=733421&SiteID=1 ron ...Show All
Software Development for Windows Vista listening to internal events
Hi! I have a little problem handlig some events raised by activities within a workflow. This s the code: public partial class Activity1 : RaiseExternalEventActivity, IEvents { public Activity1() { InitializeComponent(); evento += this.eventoRaised; } protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext) { OnEvento(this, new ExternalDataEventArgs(this.WorkflowInstanceId)); return ActivityExecutionStatus.Closed; } #region IEvents Members public event EventHandler<ExternalDataEventArgs> evento; private void OnEvento(object sender, ExternalDataEventArgs ea) { if (evento.GetInvocationList() != null) evento(sender, ea) ...Show All
Visual C# learning to live w/o pointers (C++ programmer here)
Good evening- What I'm trying to do is take a variable, place a reference to it in a container, have some math operations act on the whole container (which might have any number of references to variables) and then be able to access the original data in the original variable. Hope that wasn't too confusing. In C++ this was performed by using references and pointers - I'd pass the variable to a function by reference, make a pointer, place the pointer into a container, do my operations, and at any time I could query the original variable and get the updated results since the pointer pointed back to it. How is this accomplished in C# I banged my head up against the wall for a few hours this evening trying a few things but I don't quite see ho ...Show All
.NET Development FileStream doesn't release resources
I have an application that is creating a number of images. After they have been created I try to FTP them to my webserver. This is done essentially by: Each image is saved by: 1. Create a filestream System.IO.FileStream fs = new System.IO.FileStream(Path + FileName, System.IO.FileMode.Create, System.IO.FileAccess.Write); 2. Save the image Image.Save(fs, System.Drawing.Imaging.ImageFormat.Jpeg); 3. Close the filestream fs.Dispose() fs.Close(); Now, when i try to send them to my webserver, i use a class that opens a filestream by input = New FileStream(FileName, FileMode.Open) But this produces an exception: IOException The process cannot access the file '<filename>' because it is being used by another process. If i create the images, ...Show All
.NET Development Add attribute to machinesettings in the Machine.config configuration
I need to add the following enableLoggingKnownPii attribute in the machine.config to allow me to view complete message logs < system.ServiceModel > < add name = " machineSettings " enableLoggingKnownPii = " true " /> </ system.ServiceModel > but the Machine.config on my XP PC looks like this < section name = " machineSettings " type = " System.ServiceModel.Configuration.MachineSettingsSection, SMDiagnostics, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 " allowDefinition = " MachineOnly " allowExeDefinition = " MachineOnly " /> iIf I add the Attribute anyway, I get an error. Can some explain whats ...Show All
Visual Studio Express Editions ListView items Selection C#
i made listview detail view and it working good but i get some data from directory folder and i change name and when i select this data from names i want to know thier original path or name to get the subdirectory from them so lets make it more simple i have listview detail view getting data from folders on my hard i change thier names and add them on the listview in change selected indecies event i want when i click on the row i want to get the original path of my file or folder thanks well if you change the names how can you expect to get the original path :-) I would probably suggest to: get a list of folders and put it into an array add these items from array into the listview (an ...Show All
Windows Live Developer Forums Required / Optional Fields for AdCenter API
I'm a bit new to using MSDN documentation, but looking through the " AdCenter API Programming Reference ", I do not see where it defines which fields are required and which are optional. For example, is AdCenterOrderItem.SubstParam2 required for a new OrderItem What about AdCenterOrderItem.BroadMatchAmt Is this documented anywhere, or do I just need to use trial and error to see which service calls are rejected (I hope not.) Also, If I do not set AdCenterCampaign.CampaignDesc on addCampaigns() I get an error code: "-600029: The campaign description is invalid or missing," but in the MSDN documentation for this property is one of the few cases where it says: "This field does not need to be set." AdCenterOrder.Status is documented as "a rea ...Show All
Visual C++ IA64 VC8 merge module download
I'm trying to locate the following two merge modules for IA64: Microsoft_VC80_CRT_x64_ia64.msm and policy_8_0_Microsoft_VC80_CRT_x86_ia64.msm. Can anyone tell me where to get them I got the impression that I would get them with Visual Studio 2005 Professional. I installed it (English version onto a Windows XP system) but no luck. I've spent days looking for the silly things -- help, please! They should be only with VS8 Team. Pro only has the x64 compiler. They should also be with the Windows SDK too, since that has the IA64 compiler with it, but its a 1GB download. If you need the runtime but can't find the merge modules, the following link will give you the full release libraries for the CRT, MFC ...Show All
SQL Server Auto-Increasement field?
Hi! I'm using Microsoft SQL Server Management Studio to design a table with two fields: id (int) file (text) I set 'id' to be primary. I try to add a row to this table but it asks me for a custom value for 'id'. I want it simply to auto-assign a uniqe value for it. How to do this please In the table designer, set the Identity Specification to Is_Identity = Yes. Also, I recommend NOT using [ID] as the column name. A good standard is to use the TableName and ID, so a table named MyTable would have it's IDENTITY column named MyTableID. ...Show All
