Kallex's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Anyway to reset Game.GameTime?
So when it's game over I want to reset my game to start a new one. Well my game has scripted events using Game.GameTime.TotalSeconds to trigger certian events. I need to reset that to 0. Anyway to do that since GameTime is readonly I guess I can just create my own variable to track time since last reset but was wondering if there was a better way. arogan wrote: I guess I can just create my own variable to track time since last reset but was wondering if there was a better way. i think you have to do that, like you said Game.GameTime is read-only. ...Show All
Visual Basic How to replace a folder icon
Hello, I am trying to figure out how I can programatically replace a folder's icon by clicking a button. i want to change it to an image I have created (type *.ico). Can anyone please help me Thanks! Thanks for that Johan - I think this would be more specific: http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/custom.asp ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectDraw Deprication
What exactly do Microsoft mean by depricating DirectDraw Do they mean DirectDraw will be completely removed in the next DirectX release If so, what are the alternatives That's a kick-a$$ book for 2D game programming. Microsoft will always care about backward compatability with games, so you can expect previous dlls to be there. It just may not run as fast as it use to on OSes past Vista. As the book expects you to do after you read, do move your foundation to either Direct3D/OpenGL. ...Show All
Visual C++ How to make a compiler link with __CxxFrameHandler instead of __CxxFrameHandler3
How to make a compiler link with __CxxFrameHandler instead of __CxxFrameHandler3. Is there is any option available. We are developing printer drivers for Vista Operating system, for the XPS print path, using PT/PC support. Problem: Though we could install the binaries on the Vista OS, we were not able to install the Vista binary set on a XP operating system. We have installed the .Net3.0 on XP Operating system. Issue: On investigation, we found that one of our DLL was referring to some functions like : * strcat_s, * _itow_s, * __CxxFrameHandler3, * _except_handler4_common The issue is that the above functions "are not" exported by MSVCRT.DLL available on XP SP2 OS. Build Setup: We are currently building the dll ...Show All
.NET Development Error dynamically creating instance of "System.String"
Hi, Im dynamically creating objects by their type with the following code: object myNewObject = myType.GetType().Assembley.CreateInstance(myType.ToString()); For Example: When myType is Int32 it works great and myNewObject is an Integer. The problem came when i tried to create instance from type s tring . The exception i get is: "Constructor on type "System.String" not found" . How can it be Please help me create a string..... ...Show All
SQL Server Next Measure
Lets say I have a set of measures that go like this: Date, Payment October 3, $3 October 6, $4 December 6, $5 December 8, $4 My problem is that I need to get the next payment date and amount. So if for example I am standing in October 3, I would have to get (October 4, $4). If I was standing in october I would have to get (December, $9). Assuming I have a measure called [Payment] and a [Date] dimension ([Year], [Month], [Day]), How can I do this with MDX Thanks in advance Thanks for your response, these formulas works fine when the year is selected, eg. [Year].&[2006] but in the real report the year and month are going to be selected, thats mean that the query is going to sear ...Show All
Visual Basic Error in Using API functions... help
When i use a API function, it raises an error regarding protected memory.... Need help... Im new to vb.Net programming. Thanks... My API is Public Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" ( ByVal lpApplicationName As String , ByVal lpKeyName As Object , ByVal lpDefault As String , ByVal lpReturnedString As String , ByVal nSize As Long , ByVal lpFileName As String ) As Long ======================================== Here is my code... Try strPathName = Trim(strPathName) lvalue = GetPrivateProfileString( "WINPATH" , "PATH" , "" , strReturnValue, 255, My .Application.Info.DirectoryPath & "\SYSINI.INI" ) If lv ...Show All
SQL Server Data Mining : Drug Trial Question
I have a a simple situation. I am trying to determine for how long (in months) two drugs should be given to a patient. Both the drugs are administered at frequent intervals and their dosage and the condition of the patient is recorded. How do I determine for how long should I continue to adminster the drugs,at what point should I stop I am dealing with the following variables : Drug 1 dosage,Drug 2 dosage, Period of medication (in months). Can I use SQL Server 2005 data mining capabilites to get the answer Please let me know. No you cannot. An MD should evaluate the patient and decide to stop or increase/decrease dosage. Technology is yet far from of replacing an MD. ...Show All
Visual Basic force menu dropdown
Hello, Can someone tell me how to programaticaly (wow) force a top level menu item to drop down For example: Like when you click the standard 'File' menu and you get the lower menu items to drop down. I need to be able to do that by code. Thanks ahead, Aaron Oh I see, the solution I gave was for VB 2005. If you're using VB6 you'll either have to use a Windows API call, or use SendKeys to send Alt+<accelerator key letter> to the menu to drop it down. ...Show All
Visual Studio Tools for Office Outlook Contact Integration.
I am working on a application that will need to view contacts from Outlook. The user would like to be able to create and delete contact from the custom application so that they don't have to switch back from app to app. I am not familiar with the Outlook API and I don't know if VSTO is required to do this. Thanks for your help Hi, Since you're working on an application that only needs to view contacts from Outlook you can simply use Outlook automation to get the contacts. For example on how to automate Outlook, I suggest you take a look at OutlookCode.com site . With VSTO you can create an Outlook addin. ...Show All
Visual C# Process.start() how to
Hi All, I'm using process.start() to execute msbuild.exe. Is there any properties or method that I could set or call to wait until it completely finished before the next line of code get executed Best Regards, Hi, I am using the following lines, but the process does not wait untill it closed. foreach (FileInfo file in dir.GetFiles("*.csproj")) { Process theProcess = new Process(); theProcess.StartInfo = new ProcessStartInfo(file.FullName); theProcess.StartInfo.Arguments = ""; theProcess.Start(); theProcess.WaitForExit(); } Please let me know what should I did wrong. Cheer. ...Show All
SQL Server How to determine if a database is in use
I have a VB application that uses SQL Server 2000. I am adapting it to support both 2000 and 2005. I connect to the database using ODBC. My application has the typical backup/restore functionality. Before I do a backup or restore, I check to see if the database is currently being used by another application. In SQL Server 2000, I did this by connecting to the 'master database' and running the following query: SELECT COUNT(*) FROM SYSDATABASES WHERE DBID IN (SELECT DBID FROM SYSLOCKS) AND NAME = 'MyDatabase' If I get a count greater than 0, someone else is using the database. This of course does not work on SQL Server 2005. I have come up with an alternative. For SQL Server 2005, I connect to the database I want to backup or restore ...Show All
Visual Basic VB.Net String Pattern Matching
Hi, I created a post here yesterday about copying/searching, now there's another part. I need to know when I perform a search how to invoke string pattern matching, if i was to type any specific data, i.e. A12345 or B54673 and so on. Can anyone help well you can make a method to do the pattern searching (I can't remember if it was myself that responded to your query) and "invoke" it (call it) when you need to call it say, from a button click or from a textchanged event from a textbox when the text length entered is to the length you expect the input to be. example: private function DoMatch(ByVal theString as String) as Boolean 'do match end function butt ...Show All
SQL Server Table Partioning with Computed Column
This full version of this reporting table will have about 12 million row for each of three years. Prior years will be in separate partitions and frozen but the current year will be reloaded each night by source_key, probably in parallel. I am trying to do this with a computed column but I can't slide the partition back into the main table due to an apparent problem with the Check constraint. I have tried everything I can think of and still can't get it to work. I hope I am missing something simple. Anyone know why this does not work or how to fix it ALTER TABLE SWITCH statement failed. Check constraints or partition function of source table 'db_template.dbo.foo_year_source_partition_test_stage' allows values that are not allowed ...Show All
Visual Studio Express Editions Webbrowser problem
I want it to check url and url is from a string variable but...it dont let me ....i tryed lots of ways and still.. this is the code. *variables are at form_Load private void timer3_Tick(object sender, EventArgs e) { if (webBrowser1.Url = (one)//one is the string variable name { button1.Enabled = false; } else if { if (webBrowser1.Url = (two)//two is the string variable name } else if { if (webBrowser1.Url = (three)//three is the string variable name } else { button1.Enabled = true; } } if its the URL is one of the variables name it will make button enbaled = false if its not then enable the button ...Show All
