Maartin's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Help on writing text on the screen?
I'm well on my way to finishing my first mini game called planet defender. What I need now is a way to display the score the player has on the screen. How do I draw text onto the screen Here's a quick image of my game so far :): http://www.rocketsoft.gm-school.uni.cc/uploads/Screenshot.JPG Izzy545 wrote: miketuck3r wrote: Izzy545 wrote: I'm well on my way to finishing my first mini game called planet defender. What I need now is a way to display the score the player has on the screen. How do I draw text onto the screen Here's a quick image of my game so far :): http://www.rocketsoft.gm-school.uni.cc/uploads/Screenshot.JPG Slightly off topi ...Show All
Software Development for Windows Vista Truly Dynamic Runtime Activity Property Nirvana
I'd like to acheive "Truly Dynamic Runtime Activity Property Nirvana". My most critical custom workflow activity needs to expose a list of items that is not known at custom activity compile time. Each item in the list can be bound to from other activities - this is a pretty powerful concept for our workflow application that makes it very useful for end users that design their own workflows with my custom activity. I've figured out a solution where this dynamic custom activity is possible but it involves dynamically generating / compiling a brand new custom activity class on the fly - not the prettiest solution and I'm trying to create a better solution. Ghenadie has a neat example of how to create dynamic properties here ...Show All
Windows Forms Why is MyForm derived from Form?
Hi, First of all sorry if this is OT, I didn't know whether to put the question in this or windows forms group. My question is related to the code generated by the designer. When designing the form, the corresponding class is generated. The class is derived from the System.Windows.Forms.Form class. My question: why is the class derived from the System.Windows.Forms.Form The generated code seems to use only public members of the form class and doesn't override any virtual method of the Form class. Is there any way to get explanation from the WinForms development team Thanks in advance, Sasa Hi, Thank you for your response. The reason I ask, is simply because at one point I asked my self the question from the subject. The fact is tha ...Show All
Community Chat Vista Wow, but I got problem with Vista's IE7
I runnning dual OS, XP and Vista, both I running IE7, which on Vista side, is ship together with OS. While the IE7 on my XP behave very good, on Vista, whenever I using IE to download the attachment on Hotmail, Yahoo, or whatever, that normally not using download manager, which using IE's built in downloader, and yes, my IE7 will stop responding, everytime will be like that whenever I try to download some small attachment, what might cause the problem I don't want to reinstall or do restore or something, just hope to fix my IE7 on my Vista, thanks. p.s. Vista really really Wow! Check out the windows vista help and support site, better place to get help about any problems like that. http://windowshelp.m ...Show All
Windows Search Technologies WDS 3.0 Protocol Handler Registration (How to do?)
The process for registering a protocol handler has changed from WDS 2.x to 3.x For WDS 2.x we used the following process: This was a two step process: A protocol handler must be added via the ISearchManager AddProtocol method, as follows: ISearchManager-> AddProtocol(LPCOLESTR pszProtocolName, LPCOLESTR pszProgId); This would show allow WDS to pick our plug-in DLL mapped to the pszProgId . Call ISearchCrawlScopeManager interface to set default crawling rules to include and exclude particular URLs and child URLsThe method is as follows: ISearchCrawlScopeManager->AddDefaultUrl(LPCWSTR pszUrl, BOOL fInclude); This would make our location available as a checkbox in the WDS ...Show All
Visual Studio Team System How to set permissions to specific file types in source control
Hello, I need to set permissions by file types. For example, designers need to get access only to graphic files (jpg, bmp, etc.), programmers to .net files (cs, sln, etc.). I tried to use TF utility: "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\TF.exe" permission /server:servername /deny:PendChange /user:domain\username $"/My Project/WindowsApplication1/*.cs" but I've got the following error: System.Web.Services.Protocols.SoapException: The parameter item may not contain wildcards. at Microsoft.TeamFoundation.VersionControl.Server.Repository.UpdateItemSecuri ty(String workspaceName, String workspaceOwner, SecurityChange[] changes, ArrayList& failures) even when I use the local path instead ...Show All
Visual Studio Express Editions ntdll.dll error only when exe file is ran.
Hi, I have very strange situation with running c++ application. When I build project using debug mode everything is OK, but when I build application in release mode or just run exe file either in debug or release folder I get the following error in ntdll.dll file. "Exception Information Code: 0xc0000005 Flags: 0x00000000 Record: 0x000000...000 Address: 0x000000007c93426d" This is information from windows message. Here is information from building log: 'archiveEditor.exe': Loaded 'C:\Projects\archiveEditor\release\archiveEditor.exe', Symbols loaded. 'archiveEditor.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded. 'archiveEditor.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll ...Show All
.NET Development web service look up
Hi, How do I access a web service method in C# to retrieve a paremeter value Thanks, Can you be a bit more specific Do you want to call a method of a web service Have you got a WSDL definition of the webservice E.g. ASP.Net WebServices can expose their WSDL by adding wsdl after their URL. Add that WSDL as a web reference to your project - see the context menu of your References folder in the solution view. That will create a proxy class. The class has one method for each WebService method. Just create an object of that class and call the methods to invoke the WebService. Does that answer your question -- SvenC ...Show All
Visual Basic nextinstance
hi, i wrote a single instance application - a pic viewer. if i double click on an picture file it opens up my app with that file. now if my program is runnin and i open up one more pic i'd like my program change the shown pic to the new - i know i have to write this in the application events, the StartupNextInstance event but don't know how to get the path of the second pic. any idea thnx That won't work. We're using ClickOnce deployment in our organization. The users always launch the application from a URL to insure they are using the current version. Sometimes, the URL contains additional paramaters so that they are taken directly to an area of the application. When they open the app a second time and they already h ...Show All
Visual Basic StreamWriter
My program creates configuration files based on database records selected. They are created as txt files. The problem is I want to automaticaly create an archive of the last version of the file created and place it in an archive directory. For example... save to c:/knownfolder/newtextfile.txt archive to c:/knownfolder/ARCHIVE/datenewtextfile.txt The problem is I'm getting an error of: An unhandled exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll Additional information: Could not find a part of the path " \\myservername\testfolderarchive\ARCHIVE\10302006 newtextfile .txt ". using: Dim sr As StreamWriter = File.CreateText(strFileName) sr.WriteLine("PROGRAM ...Show All
Visual Basic Calculate the exact differences between 2 given dates
TimeSpan supports only up to Days. How best to get the exact differences between 2 dates in years, months, and days I searched online and most methods only provide the average by assuming number of months or numbers of years and such. Thank you for a very useful post through I haven't tried it yet. Actually with the answers and all the research I done, I decided to write my own code and this is what I came up with: sDay = oDateTime.Day eDay = Now.Day sMonth = oDateTime.Month eMonth = Now.Month sYear = oDateTime.Year eYear = Now.Year tYears = eYear - sYear If eMonth >= sMonth Then tMonths = eMonth - sMonth Else tYears -= 1 tMonths = (12 - sMonth) + eMonth ...Show All
Visual C# Copying Files
Hi Everyone, I needed a little help with copying a certain file type from one folder into another. For instance copying all the .dll files from one folder into another . All help is appreciated I know i can use the System.IO.File.Copy to do it but how do i specify just a certain file type not a file lol uhhhhh doesnt help because it is in vb.net but isnt there a way in VS05 to convert the code Because im a newbie and dont know how to do it ...Show All
Visual Studio Express Editions How to use OpenURL for INET in VB.NET
I am in the process of converting a VB6 app to VB .NET. I was using the following code in VB6, but if I use it now, I get : Overload resolution failed because no accessible 'OpenURL' accepts this number of arguments. Code: HTML = Inet1.OpenURL(" http://www.site.com ") What should I do Thanks for any help Nevermind, I got it. I had to use: HTML = Inet1.OpenURL(" http://www.site.com ", icString) ...Show All
SQL Server Float data
Hello. We have a third party app that's database holds allsorts of info as floats. I have to update records in this database from my source database that stores it's data as decimal(8,2). so when I update a row with 25.00 it goes into the 3rd party app database as 25 because it's a float. Is it possible to put the data in so it reads 25.00 without changing the datatype from a float Thanks. You should not worry about the format of numbers as they come from a query. Use your application to apply any formatting that is needed. ...Show All
SQL Server How to search for a Stored Procedure?
Hi, Could anybody please tell me how I can search for a stored procedure in SQL Server 2005 I know the name of the stored procedure and I want to find in which database that stored proc is located/stored and I want to see the code of it. (I have all the necessaary previleges.) Please tell me how I can I do this. Thanks in advance. Regards, Ram. Hi, you can check for existance of stored procedure as .. declare @name varchar (100) declare @spname varchar(100) declare cu1 cursor for select name from master..sysdatabases open cu1 fetch next from cu1 into @name while @@fetch_status =0 begin exec ('select * from ' + @name + '..sysobjects where xtype = ''P'' and name = ''' + @spname +'''') if @@rowcount> 0 begin select @name as ...Show All
