DMAR330's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Not repeating Keys
Hi, i'm just messing with Xna here. But what i'm trying to do is the following. There is a series of buttons the player must press in correct order to get points. So what I do in the update method is the following; if (this.currentChar() == "X") { if (keyboardstate.IsKeyDown(Keys.X)) m_monk.IncreaseConcentrationLevel(.01f); else m_monk.DecreaseConcentrationLevel(.1f); this is the snippet for the X keys, there are also Y,A,B keys The problems is that if the player keep pressing the button the function m_monk.IncreaseConcentrationLevel keeps to be calling. The same for m_monk.DecreaseConcentrationLevel. So, is there anyway to make sure that a certain function is called only 1 time , say, per second instead ...Show All
Visual Studio Team System Creating different versions of the same project
Is it possible to create different versions of the same project without having to save the entire project with a different name every time For instance, if i have a file called Main.aspx, is there a way to have Main.aspx version 1 and Main.aspx version 2 Thank you! Like Luis said, this can be achieved through source control functionality. Take advantage of the branching capabilities if you want separate versions of the same project/file(s). ...Show All
Game Technologies: DirectX, XNA, XACT, etc. IDE problem
I downloaded XNA today from microsoft after installing the VS 2005 express edition. I then watched a tutorial on how to develop pong and noticed a difference in my IDE. when i go to create a new project, i do not have the option to create "Game(XNA)". Mine says: "Game". the text below the project type window says it's an XNA 1.0 game so i clicked it. I then noticed my default game1.cs class has no designer to it. There is supposed to be an expand option on the class so i can set properties such as height, width, etc. My game1.cs is simply a class with no way to view it in design time. Has anyone else experienced this Thanks. Perhaps the tutorial was made with the first Beta release of ...Show All
Visual Basic RaiseEvent Statement not notifiying event handlers when called from within New Sub
Hello - The following issue involves code from MSDN which does not work properly. I have tried the code in VS 2005 SP1 and VS 2003. Here is the msdn link. http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbls7/html/vblrfVBSpec8_6_1.asp The problem is that the Constructed Event Handler does not fire when RaiseEvent Constructed is called from the Raiser Class's Sub New (See Following Code): Imports System Class Raiser Public Event Constructed(ByVal Count As Integer) Public Sub New() Static CreationCount As Integer = 0 CreationCount += 1 RaiseEvent Constructed(CreationCount) End Sub End Class Module Test Private WithEvents x As Raiser Private Sub Constructed(ByVal Count As Integer) Handles x.Co ...Show All
Visual Studio 2008 (Pre-release) Forcing Update of UI before my function exits
I know this question has been asked before, but none of the answers given work for me. I have a function that performs a long operation. Before that function does all its work, I want to set a Status message in my Status bar. The problem is that UI updates don't seem to occur until the function has exited, by which time the Status Message is no longer relevant. What can I do to force the UI to update I've tried calling UpdateLayout(). I've tried calling InvalidateRender(); I've tried setting the Status Bar properties within a delegate passed to Dispatcher.Invoke with DispatcherPriority.Render. None of these work. I have, elsewhere in my App succesfully used Background worker to perform longer running operations asynchronusly. I ju ...Show All
.NET Development Binary Serialization of CollectionBase
I have just hit a brick wall whilst building custom binary serialization for my object graph. The issue I am having relates to the Deserialization of a collection. The "Designs" collection inherits from CollectionBase. The items stored in the Collection of the type "Design" The class "Design" Inhertis "PhysicalJobEntity" which Inherits "JobEntity" I inherit the class "Design" to create any type of object whether it be a truck, house or can of drink. So to paint a clear picture I will use an example. I create three classes "Truck", "House" and "Drink". All of these inherit from design. I run the app and create 1 instance of each of these cl ...Show All
Visual Studio Express Editions Confused about two versions of my data in my project and my ability to save data
I'm having problems saving my data when I'm testing my application. I've read some threads on the subject and as I understand it, I actually have two copies of my data in my project. I'm using an MSAccess database for my data. I don't know if I made a mistake when I attached the data to my project (or imported it ) that is causing me not to be able to save data or not. I tried changing the 'Copy Output to Directory' property of the dataset and even the form that contains a datagridview that I'm trying to add data to from 'Do Not Copy' to 'Copy if Newer' and that did not solve my problem. I guess my questions are: 1. What do I need to do with my dataset to allow me to save changes as I test my application If it involves me deletin ...Show All
Visual Basic Windows Service Monitoring Problem On Vista
I've built a small utility to monitor the status of SQL Server Express and start/stop it and it works nicely on Windows XP SP2 and fuctioning great but when I've tested it on windows vista it monitors the service ok but I can't start/stop the service any more unless I use the Run as administrator command to start my tool I've used the folowing code to test my rights on windows My .User.IsInRole(Microsoft.VisualBasic.ApplicationServices.BuiltInRole.Administrator) but it gives me false - note that I've logged as an administrator to windows - is there is any way programtically make the program have administrator rights on windows so I can use all functionality of my little tool Yes. You may ...Show All
SQL Server Empty Measures
Hi, I have a problem that confused me and I hope anybody can help me. I have create a Data Warehouse on SQL Server 2005. Then I built a cube with Analysis Services and deployed them. There are no errors during the processing. But when I start to browse, there are no data in my Measures. My dimensions are correct an have all data from the data warehouse but every measure are empty. Maybe, is the number of dimensions restricted I have 88 dimensions and 1 fact table. I hope anybody understand my description and can help me. The number of dimensions is not restricted, although 88 is quite a lot simply from the logical model perspective. You might want to look and see if some of these dimensions should really ...Show All
Visual Studio Brew Development in VS2005
I have VS2005 team system.I have done application development in windows mobile 5.0 smartphone and pocket PC. Now I have to do some Brew Development. Is any body have done brew application development in VS2005 Is there any addin I have to install so that I can have brew arm complilation ,linking and emulator for brew in VS2005 Hi Kamii, Since it seems that you are looking to find an addin and not write a BREW addin for Visual Studio yourself, your question might be better addressed in the Qualcomm forums. This thread seems to indicate that an addin is available and can be made to run in Visual Studio 2005: http://brewforums.qualcomm.com/showthread.php s=2cf3261284674897a273ccca60ca6cd9&t=14097 Hope that help ...Show All
.NET Development how to pack dataTable? zip?
Hello!! I would like to put data in record size of 100B (name, surname, phone number, id etc). Now there would be about 10 000 records of 100B each. I would put them in the dataTable. My question is : How much this dataTable would take 1 MB or much more Can I zip it or rar or tar, i mean pack somehow to file that i could send it trhough internet It is very important for me, to pack is as much as its possible to improve my application performance in network Please, can anybody help me Best regards, Hi, what do you mean by selfhost service If you are deploying through a hosting company then you will have enquire them to find if http compression is enabled. ...Show All
SQL Server Reinitializing Push subscription after it expired in Transactional Replication
I am using SQL 2000. How can I get my transactional replication reinitialized after it has failed with several attempts. I know one way of doing it through enterprise manager and specifying the subscription to reinitialize. But this will apply the snapshot and will take long time. Is there a fast way of doing it -Nipul A reinitialize requires reapplying the snapshot. Can you be more clear what you're trying to accomplish I think what you want to do is just restart the distribution agent, does this work ...Show All
Visual FoxPro VFP7 COM+ error while calling from ASP.Net 2.0 on IIS6
Hi, I have an ASP.Net 2.0 application which interop with VFP7 COM+ (using DCOM). It was running fine on IIS5, WIndows 2000. Recently I migrated the server to Win2003 and IIS6 is running on native mode, and I couldn't get the COM+ running, below is the information and hope someone here could help: 1. If the application pool identify set to 'Network Service', I can't even create the COM+ object in the ASP page even though I have granted the 'Network Service' account with neccessary NTFS folder permission. 2. If I change the identify to let say Local System or Administrator, I have no problem to create the COM+ object in ASP page, and VFP codes in the OLEPUBLIC class Init event has actually being processed as well (for example I put a Create ...Show All
SQL Server fill up spaces with dots in a column
Hi, I currently have a column in a table with data type char and length 500. However, not every column fills up the entire 500 length, and I would like to fill up the rest of the spaces with dots. Is there a setting in SQL to do this I do not want to use varchar since I want a fixed length with dots at the end. Any ideas Thanks, Alan I can't really imagine why you would have that requirement, it is kinda backwards. If your goal is to display the data padded with dots up to a total length of 500, then I'd suggest that you do use a varchar for storage of your data (without dots). When you want to retrieve it, then you pad it. Something like this; create table #x (mystring varchar(50) not null) inser ...Show All
SQL Server one package running with different connection strings?
I have a SSIS package which needs to connect to 5 different servers to import data. I want to schedule one task to run this one .dtsx but run once for each server connection( 5 different servers). Is it possible how can i accomplish it Is Package configuration possible How to go about it if so thanks, kushpaw So, are you planning to run the same package n times but connecting to a different data source each time On a previous project I accomplished that by creating a parent package with multiple sequence containers in it; in your case it would have 5. Each sequence container had 2 things a variable, e.g. @User::SourceConnectionString, that hold the proper connection string for ...Show All
