Uwe Reisewitz's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. slow down sprite animation?
quick question, I have a two textures so far for my character but when moving the character accross the screen the animation is so fast it looks silly do I have to us the system.timer or am I missing something already built into the xna framework Thanks again for the help!! to help you, you can do : private float time_between_frame = 2f; private float time_last_frame = 0f; private int number_of_the_frame = 0; in the update : time_last_frame += (float)gameTime.ElapsedRealTime.Milliseconds / 1000.0f; if (time_last_frame>=time_between_frame){ time_last_frame =0f; if (number_of_the_frame==0){ put your code here for image 2 number_of_the_frame = 1; }else{ put your code here for image 1 number_of_the_f ...Show All
SQL Server Defrag for SQL Servers inside a Virtual Machine?
sorry for asking here, since there's no forum for Virtual Server My question is We have 2 SQL Server instances on 2 Virtual Machine/Servers (say VM1 and VM2), which resides on a real physical machine (say A) Is there point in defragging VM1 or VM2's hard drive at all or should I just defrag on the physical machine A that's what I thought anyway, first time I defragged without shutting VMs down, I got a blue screen on 1 VM second time I defragged still without shutting VMs down, everything went smoothly I guess it's safer to shut down the VMs anyway Thanks for the answer ...Show All
SQL Server Identify the SQL server (is it possible to get the SQL Servers Id)
Is it possible to identify a SQL server I have created an VB application which connects to a SQL database.I keep the licencekey and licence name also in the database. So by copying the database to another server they can use the application unlicenced.As developers we don't want that, do we :) . What i want to do is to get some thing uniquely Identifies the SQL Server, with that Id I will generate another key, and every time the application runs, this key will be checked. So.. Is there a qnique identity for the SQL Servers, or is there a way to get the Idenity of the SQL Server by a query Thank you all. Try this code: Dim srvName as String Dim srv As Server srv = New Server(".") srvName = srv.Name The ...Show All
Visual C++ Language "C"
hello there to all programming people. i no d@t is is not the propper place 2 put it, but are there any apps d@t still us the "C" language as its base form if dere iz can sum1 plz tell me d@t wood b much appreciated and if there is a spot on dis forum where dis post cood be moved d@t'd b awsome 2. Hi, Yes, there are applications that use C as the main language, but why use C when you have C++ As far as I know, there's no section dedicated to the C language in these MSDN forums but I guess that posting in the C++ section would make no harm since the languages (C and C++) have many things in common. PS: before learning any programming language, you should learn to write properly ...Show All
Windows Forms Just-In-Time debugging Windows Forms
Hello, In the MSDN documentation (How to: Enable Just-In-Time Debugging for Windows Forms) it is said: In addition, Windows Forms created with C++ must have the DebuggableAttribute set in a .config file or within their code. It is well ducumented how to put the DebuggableAttributein the code, but I found nowhere how to set it in de .config file. How do you set this attribute in the .config file Or is it an error in the documentation Thank you for your help, JF Hogue Hi, Please go through the below link. This should be what you are looking for. It states how to set it in the New Linker Switches section. http://msdn.microsoft.com/msdnmag/issues/03/03/VisualCNET/ Thank you, bhan ...Show All
Smart Device Development How to Merge *.reg File From Code
Hello, Reg files usually are merged automatically during Cold Boot. Is there a way of merging a reg file from code (Something different than reading the file, parsing it and manually calling Reg functions from API.) The only thing I was able to find out about the issue was information about existance of RegMerge.dll. Thanks, Artur Ilya, It is enough to put a *.reg file (registry editor file:)) in /Application folder and perform Cold Boot to have all registry entries merged. Unless this is something specific to my device, your statement "there's nothing to process or parse them files on device" is not true. Also, I didn't use "merger" term in my post, therefore I don't get y ...Show All
Visual C# C# property with parameters?
Is there anyway to pass a parameter to a property in C# like you would in vb.net I have some old VB code that wraps an XPath search to "touch" the path and then set or return the value. So you can have an xml object with just "<ROOT_NODE />" and call: xmlObject.E("ROOT_NODE/CHILD/VALUE") = "1" The above would create the "CHILD" node and the "VALUE" node and give the "VALUE" node a text of "1". The XPath is passed as a parameter of the property. So now I need to see if I can make a backwards compatible version in C#. I have the "touch" logic working I just do not know how to make the syntax work the same. Does anyone know how to do this ...Show All
Visual J# Trusted Applets
Hi friends, I heard that the concept on Applets in Sun's Java is migrated to Browser Controls in J#. Please let me know the basic programming concepts of it in J#. I even want the basics of .NET. Can u please help me. Hi, To start with J# Browser Controls (JBC), here are few links... http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_vstechart/html/vjtskMigratingJavaAppletsToMicrosoftJBrowserControls.asp http://msdn2.microsoft.com/en-us/library/620z3wc9(VS.80).aspx http://www.codeproject.com/dotnet/JBrowserControl.asp You can also search this forum as well. It is full of posts around JBC. For .net, you can start with following link... http://msdn2.microsoft.com/en- ...Show All
Software Development for Windows Vista MessageBox MB_ICONQUESTION in Vista RC1?
what happened with MB_ICONQUESTION in Vista RC1 No icon appears at all (an ugly blank space appears instead) In the documentation it states that the OS will continue to support this icon for backwards compatibility: http://windowssdk.msdn.microsoft.com/en-us/library/ms645505.aspx Thanks The bug was filed on connect.microsoft.com and is now marked as Fixed, so I'll have to wait for the next build to see if that's correct. ...Show All
Visual Basic TabControls
Is there a way to hide a tab on a tab control. I am trying to hide a tab if a certain condition is meet. Davids Learning You could put all the pages in some kind of list at startup: 'Form level declaration Dim allPages As New List( Of TabPage) 'On startup - Form_Load For Each page As TabPage In TabControl1.TabPages allPages.Add(page) Next 'Then... TabControl1.TabPages.Remove(allPages(5)); ... TabControl1.TabPages.Insert(0, allPages(5)) Andrej ...Show All
Game Technologies: DirectX, XNA, XACT, etc. FragmentLinker and shader model
Hi there, I'm just getting started with shaders and the FragmentLinker. My pixel shader fragment is just a simple passthrough shader declared with ps_3_0: struct VS_OUTPUT { float4 Position : POSITION; float4 texCoord : TEXCOORD0; float4 Diffuse : COLOR0; }; struct PS_OUTPUT { float4 RGBColor : COLOR0; // Pixel color }; PS_OUTPUT RenderScenePS( VS_OUTPUT In ) { PS_OUTPUT Output; Output.RGBColor = In.Diffuse; return Output; } pixelfragment PixelFragment = compile_fragment ps_3_0 RenderScenePS(); Now when I link the pixel shader with PixelShader = FragmentLinker.LinkPixelShader( "ps_3_0", ShaderFlags.None, ph, out errors ); the shader has no effect on the scene and when I close the application I get an AccessVio ...Show All
Architecture Data Provider Design Pattern
i am currently developing a data access layer. my aim is to separate the entities from their data access logic. this way i will be able to work with different data sources with the minimum of fuss. i am trying to implement a kind of provider pattern in order to achieve this aim. please let me explain with a simple example. let's say i have a class called Client which has fields and properties for name and department. my proposed solution is to make my entity a simple object with just these fields and properties (CDO object so good for serialization over web service) then i can have an external Provider class which fills my entity like this: ClientProviderSqlServer ... while (rdr.Read) { client = new Client(); if (r ...Show All
Smart Device Development Deploying Multiple cab files at once
I have developed my application and created the .cab file for this application. I followed the tutorial on creating an MSI file and custominstaller and this works fine. My problem comes from the fact that my application must also install .NET framework 2.0 and the SQLMobile .Cab file. I am wanting to package all of these together and be able to deploy them at one time from a users PC. I am not wanting to make the user click on each cab file to execute them. Can anyone point me in the direction of a good tutorial to accomplish this, or give me a good idea on how to do it. Thanks for any help Can I use installer.dll to do what I am wanting to do. If I create different .cab projects and diff ...Show All
Visual Basic TImer w/ call fx
i need 2 call 2/4 fx in a loop at the same time, add a timer/delay b4 every fx is executed code is sumtink likie this Private Sub Walk_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Walk.Click Dim a As String Dim b As Integer Dim c As String Dim d As String a = &HFF b = &H5F c = &H11 Do Until Timer2.Enabled Call RLeg_Up() Loop Call LLeg_Up() d = (SendWalk(0) Xor SendWalk(1) Xor SendWalk(2) Xor SendWalk(3) Xor SendWalk(4) Xor SendWalk(5) Xor SendWalk(6) Xor SendWalk(7) Xor SendWalk(8) Xor SendWalk(9) Xor SendWalk(10) Xor SendWalk(11) Xor SendWalk(12) Xor SendWalk(13) Xor SendWalk(14 ...Show All
.NET Development WebService works on web but not on windows-forms
Hi. I'm trying to create a simple web-service on one of my clients' intranet. The service is located in a site and accessing it using web-page works fine. When trying to access it using windows-forms, it returns error: 'request returned with no response' or something like that. Moreover, when trying to add the service via the 'add web reference' I can see the page, but I can not add the reference (the button is disabled and it says that an error occurred on the page, without additional details). The intranet has SSO enabled and I think the problem is related to that (the browser handles the authentication so it works, the windows-forms does not). Any suggestions 1. The message in the 'web refference' is just ' ...Show All
