protovision's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. How can I have resolution independant graphics? ...and how can I create a 2D camera?
Two questions... 1) How can I create resolution inpendant graphics For example, if I draw a box that takes up half of the screen in 640, 480 it should look the EXACT same for somebody using 1024, 768 resolution. 2) How can I create a 2D camera I get the term "viewport" and "camera" confused so let me clarify: Let's say I have a side-scrolling game (or better yet, a Worms / Scorched Earth clone) and the user can only see certain parts of the "world" at once. As you user moves the mouse I'd like the change the player's view (eg. the camera). Thanks for your help! First on question 1...I assume you're talking about 2D graphics using SpriteBatch here, since the 3D c ...Show All
Visual Basic How to develop divided interface to show 3 forms
Previously my program in VB6.0, i am using Activex Dockit to divide the Mdi Form interface into 3 parts. meaning that- left frame, center frame, and right frame. But after migrating to vb.net, the AX Dockit is not compatible with vb.net anymore. So there any way to have the same interface in VB.NET without Dockit Leo Ng wrote: Yes, it is possible to load the form to right or left panel Hi Leo, Yes, you can put a Form into a Panel. I found this example on the MSDN forums... Private Sub LoadForm( ByVal oForm As Form, ByVal Title As String ) 'Change the Caption Text = System.Windows.Forms.Application.ProductName + " " + Title 'Set the form up for display With oForm .TopLe ...Show All
Smart Device Development Using bmp-image files in the PPC Emulator in VS2005
How do you make sure that the bitmap image files gets deployed along with the application, when using the PPC Emulator in VS2005 My file never gets deployed to the application directory. When I open it in the File Explorer it's never there. I added it as a resource in the properties page. I'm programming in C#. There should be 3 types of resources. There should a "Embedded Resource" There should be "deployed/Copied content" and then there is non-deployed content which really isn't a type of resource but it's the default action when you add an image to your project and its not added as an actual "image" in the resource file but it's actually a file in solution explorer ...Show All
SQL Server New Install of Sql server Express fails to restore Master database
Hello, I have a fresh install of sqlExpress and Management Studio Express on my test server. I want to restore my master database from backup. From the command prompt I set the Sqlservr -s SQLEXPRESS -m Then I opened another comand prompt and ran my SQLCMD script to restore the Master Database. here is the sql script: RESTORE DATABASE [Master] FROM DISK = N'E:\COPLEYNEWSDATABASEBACKUP\Master.bak' WITH FILE = 1, MOVE N'mastlog' TO N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\Master_1.ldf', NOUNLOAD, STATS = 10 GO I recieve the following error. Msg 3154, Level 16, State 4, Server COPLEYNEWS\SQLEXPRESS, Line 1 The backup set holds a backup of a database other than the existing 'Master' dat abase. Msg 3013, Level 16, ...Show All
Smart Device Development Superscript and fonts
Hi, Ok, I have been having fun with this current client making demands that I am finding awkward to fulfil. I could do with a good way of telling them no, but I need to be sure of what I am saying first. The client I am working for is demanding Superscript fonts, this works for a number of characters but not for half of the characters they want such as Superscript nine ( ). I have had a good look around today and it would seem that even if I can get the character up in the design view if the device doesn't have the font installed then it just appears as a block. I can see the client coming back and saying "install the font when the application is installed". I am not sure how to do this or if it's feasible. I don't suppose anyo ...Show All
Software Development for Windows Vista Writing workflow Host for SharePoint Portal Server
I just successfully install the WWF , its really rocks! . Now i want to do some experiment , as we are free to Host the WWF Process , what about dping it for SharePoint Portal Server 2003 , and write a simple Document WorkFlow for it guyz and suggesstion on that , ....................... SPS and WF will certainly not work since .Net 2.0 is not supported on SharePoint Portal Server. However WSS does support .Net 2.0 so I'm taking a look at how to integrate these 2 - hosting WF runtime in SharePoint does not seem to work since I already get an error when modifying the web.config Parser Error Message: Unrecognized configuration section WorkflowRuntime. Let me know if you find out more, kind regards, Joris ...Show All
Software Development for Windows Vista Getting exception: retrieve loaderexception property for more information
Hi, I have a statemachine workflow and lately I am getting error mentioned in subject. If i compile my project, and tries to open the WF in design mode, I am getting this error, however, if i close the solution and re-open it, i can see all states in the WF and everything looks good. Even it compiles successfully when I reopen and build the WF project, but after build, if I tries to open the WF in design mode, it throws the error. Any idea what could be wrong Thanks, Hiten I guess you are working with the RTM version of .NET 3.0 Anyways couple of things might be going on here - Do you have any custom activities/types referenced from a different assembly There is an active bug which ou ...Show All
Smart Device Development Tips for GPRS fake network
Is there a trick to getting the fake GPRS network running The WM5 emulator is able to access the network without issue when cradled but I cannot access the network via GPRS/FakeNetwork. Do I need to set a proxy server setting or something even though I'm raw on the internet I have loaded the VM network services provider but there don't appear to be any settings to muck with. Please respond to gregvi@hotmail.com if you have any answers. Thanks Greg I'm having the same problem; using the stand alone emulator I cannot browse the "internet". I've installed the virtual switch and I can see (on our DHCP server) the emulator device gets a seperate IP address; I can even ping it from the ...Show All
.NET Development I am facing "Item has already been added"
I have an appliction created in .Net 2003 using SortedList. And it is working fine with .Net framework 1.1 Now we are analysing the impact of migrating the application to 2005. There we are facing this problem SortedList mySL = new SortedList (); mySL.Add( "First" , "Hello" ); mySL.Add( "Second". , "World" ); mySL.Add( "First" , "!" ); Error message: Item has already been added. Key in dictionary: 'First' Key being added: 'First' IS it only because of Duplicate entry Please any one kindly clarify this. Thanks Moi Hi, Yes, it is because "First" already exists as a key, the sortedlist object can not accept duplicate k ...Show All
Visual C++ porting a traditional dll to vc++.net
Hi, I'm doing the porting work of a traditional dll (which is in c and c++) into vc++.net (2.0 .net). I have resolved all the compilation and linking errors and could get the dll generated, but I'm not able to register it as a com object (by using regsvr32). I have to make use of it in c# web application, i could add it to the refernces but not able to access any methods. even object browset is not showing the methods that are available in the dll. Thanks for any help on this! class CUserPlan : public CBaseClass, public IUserPlan { public : CUserPlan( _Connection *pConnection ); ~CUserPlan() ; static HRESULT CreateInstance( _Connection *pConnection, CBaseClass** pNewComponent ) ; void ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using Bitmapfont for your scoring system
Hey all, I just want to start out saying that I love what microsoft is doing with xna, in the few days that ive had my hands on it ive witnessed several impressive projects pop up! Anyways, on to the point of this post. I searched the forum for a post that explained a simple way to make a scoring system (using the tutorial here: http://blogs.msdn.com/garykac/articles/732007.aspx ) and it came up empty, so I figured I would help people with similar C# skills as my own are somewhat basic. After the tutorial they have you write the text to the screen using: m_font.DrawString(20, 20, Color.DarkBlue, "Sample string"); However, thats a pretty static way to write text to a screen, perfect for some things, but useless for a scoring ...Show All
Visual Basic Print text to a form
IN Vb 6.0, using the Print command would print whatever text you put onto the form. Im wondering how you would do that same thing in VB2005 because apparently the command had changed... thank you For those of you who were looking for a Form.Print or PrintForm feature, here it is! http://msdn.microsoft.com/vbasic/downloads/powerpacks/default.aspx ...Show All
.NET Development State stateinfo error.
I am trying to use ManualResetEvent class. I took a sample from this post by Camoz: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=69213&SiteID=1 I get a compilation error on the last statement: State stateinfo . All references he is using are included in my file. I think they are also in the reference section of the object browser. What am I missing It is a snipped piece of code: using System; using System.IO; using System.Security.Permissions; using System.Threading; class Test { static void Main() { ManualResetEvent[] manualEvents = new ManualResetEvent[numberOfFiles]; State stateInfo ; The error message is: Error 2 The type or namespace name 'State' could not be found (are you missing a using d ...Show All
Visual Studio Team System TFS repair process failed !!
Hi all, i will tell you the whole story ...... Our domain has failed and replaced with a new domain server (named with same previous name and all active directory users have been recreated with the same previous names) ..... of course ... after this replacement i tried to load team foundation server but it fails to load error: a service unable to load .... i tried to repair TFS from add/remove programs but the repair failed as it failed to locate some files like dataacesslayer.dll and other files and it output the path of the files a long path under c:\program files\[vs studio folder name]\[team foundation folder name]\program files\ ...... you can notice that the path is unreasonable and ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Best place to check input
Hello everyone, I'm fairly new to XNA, but not to c#, .net or programming. I've created a couple of Hello World applications using XNA, and I am now working on my first game. The game has a small engine beneath it that has helper classes for textures, resources, sounds and so on .. The only scenario in my game currently implements the one that renders the menu. I'm using the update method to check for keystrokes to be able to select different menuitems. However, this method is called so frequently, it passes through all the menuitems with half a second. I'm going to time-out the keystroke processing, and I'd like to know what my best approach would be. I can't sleep the thread, and keeping the tickcount and check for differenc ...Show All
