prk's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Unable to share a windows game - Followed the instructions on the manual
Okay, so I finished my first game using XNA Game Studio Express, it has been only a few days since I installed it, and it has been quite easy, having experience at making games. Now, I want to show this game to my friends, so I send it to a couple of them (both of them have XNA Game Studio Express installed), and it works great. Now I want to show it to some other friends, these who do not know what making games is about, these who do not have XNA Game Studio Express. I ensure they follow these instructions, from the manual: Sharing a Windows game On Windows you need to distribute your game executable and any content required by your game. In addition you need to ensure that the user has the following redistributables installed ...Show All
Visual Basic How to store a password?
Hi, I'm currently creating a .Net (windows application) in Visual Basic. In order to sign up a new user I'll ask for a password. But how should I save this (store it for the next logon) password I do have a mdb database where I could create a table to hold the passwords, but how is this solved if no database is to be used Is the password string saved to a standard txt.file If so, I guess some form of securing the string is done. Please respond with other possible solutions for storing a user password. Thank you, I created a method based on the registry to save the password associated with a user. Works fine. However, the password is 'dead easy' to find if you look in the registry. Is there a quick ...Show All
Visual C# Simple Computer
I'm trying to create a Simple Computer simulator in C#. Its been going well up until ive reached a point where i need to have actions performed step by step when a button is clicked. A little background: The simple computer is a simulator that helps show students how lower level languages interpret commands. In the program: I have 99 Text boxes representing memory cells, 99 Text boxes representing input cards, 99 Text boxes representing output cards, a text box representing the accumulator (basic arithmatic portion of the simple computer), a text box representing the Instruction Register, a text box representing the Program Counter, a button that manually steps through the program entered in to the memory cells, and a button that should s ...Show All
Windows Live Developer Forums File Does Not Exist Exception on Zoom and/or Pan
I get a File Does Not Exist Exception on Zoom and/or Pan randomally on the VEMap control. To reproduce add the following html to an asp.net project and catch the exception in a global.asx file. <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> < html xmlns ="http://www.w3.org/1999/xhtml" > < head > < title ></ title > < meta http-equiv ="Content-Type" content ="text/html; charset=utf-8"/> < script type ="text/javascript" src ="http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></ script > ...Show All
Visual Studio 2008 (Pre-release) Generate Proxy classes
Hey! I are building a chat client/server with WCD and it works grate. But when i Added A Datacontract(chatMessage)(Instead of simple string) i cand generate the proxy class to the client This is how my Contracts looks like: [DataContract] public class chatMessage { [DataMember] private DateTime mSent; [DataMember] private string mSentBy = ""; [DataMember] private string mMessage = ""; public DateTime sent { get { return mSent; } set { mSent = value; } } public string sentBy { get { return mSentBy; } set { mSentBy = value; } } public string message { get { return mMessage; } set { mMessage = value; } } } //The interface the service expose ...Show All
SQL Server Unable to open MSDB node
I'm sure there is a simple answer to this but it eludes me at the moment. I’m using the Developer Edition of SQL Server 2005. The MSDB node under Integration Services->Stored Packages refuses to open. It always fails with a login timeout message and that the connection was actively refused. I’ve run the SQL Server Surface Area Configuration tool and allowed remote and local access, even though it’s all installed on the local machine. This didn’t help. The next thing I did was to turn off all my firewalls and internet access control software and it’s still not working. I’m using integrated authentication and the user is part of the administrators group, a ...Show All
Visual C# using sockets in a dll?
Hi, Can I use sockets in a dll (any dll for that matter) If so, how can I use sockets in VC# dll . The Class Library does not allow creation of sockets Would appreciate any help. Thanks in advance. Saania Who said Sockets cannont work from DLL I'm working on project and Sockets is every where, In dll, exe etc. What actually problem arises Best Regards, ...Show All
Smart Device Development UDP Client mobile Client For Communicating to desktop pc
Hi, I developed the socket client application on mobile and socket server application on the desktop pc using the SOCK_STREAM both application commnunicating through active sync . But when i am creating same application for UDP using SOCK_DGRAM the application can not communicate through active sync . in client app sendto function of the winsock is succeeded (not returning any error ) but data not receive at the server end . Whats reasons is active sync not supporting the UDP socket communication how this can achieve Give me any details to make this possible . Thanks in advance You can download the Virtual Switch driver from http://www.microsoft.com/downloa ...Show All
Visual C# Inheritance Bugs in Windows Forms
I'm using the Visual Studio 2005 to do WinForms development and have been repeatedly running into problems with inheritance. What happens is that sometimes when I override methods in a base class the override isn't called - but the base class method is called instead. I've verified repeatedly that the code is correct, the method signatures match, and the override should be called (polymorphically) rather than the base class method - and yet it calls the base method instead. I haven't seen in in none Form-based classes so far, but I've seen it several times in specialized Forms that I've created. In each case, the problem is the same. The base class method is invoked rather than the override method. It appears to be a bug in the compiler. N ...Show All
Visual Basic Regression Equation / Statistics in VS 2005
Is there an easy way to create a regression equation based on certain data located in variables Or do I have to get out the 'ole stats book and write the code manually I couldn't find anything in the help file about this, so I may be out of luck! Thank you! -Corey Hello again, Not that i can think of but you could maybe use the method of simutaneoues equation to find your multipliers Add x and y. Say x1+y1= 6 <---formula 1 x1+y2=12 <---formula2 Cancel or make equal one formula with the other.>> (x1+y1) * (12/6) = 6 * (12/6) <--- I have multiplied both sides by ( 12 / 6 ) on formula1. ---> (x1+y1)*2=6*2 ---> Substitute x for x1 and y for y1 you the get 2x+2 ...Show All
.NET Development How to dispose TcpListener's holding port?
I am developing a chat programme using TcpListener and TcpClient.. In the server side form, I have two buttons one is "Start Listening",the other is "Stop Listening".. Now the problem is : when I re-enter the "Start Listening" button after stop listening ,i will get this error : the same port can only be used once, but i 've stop the Tcplistener after I enter the "Stop Listening" button, i don't know why who can help me thanks Hi, Stop Listening button event handler code must have the line similar to the following, objTcpListener.Stop() - this will stop the listener and close the underlaying socket. If you still get the error, please post that code snippet ...Show All
Visual Studio Express Editions Use forms and build windows application?
Hallo I'm new to VS2005. I have found that it is possbile to use windows SDK, but I couldn't found an answer that I'm interested in: If I install SDK, is it possible to use forms and to build a windows native application It is for sure possbile to build forms using the PSDK and hence your code will be native. But if you meant winforms, winforms is a managed technology and hence the code generate will be managed. Thanks, Ayman Shoukry VC++ Team ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Delete a picture file after Bitmap.FromFile call.
Hello, I'm loading a bitmap from a temp file using Bitmap.FromFile. After this I want to delete the file, but get an IO exception "... this file is used by a process ...". The file is used from my C# process (found with the processexplorer), so my guess is the Bitmap.FromFile call. How do I release the file lock to delete the file Thanks for help. BerW Hmm, sound like overkill to create a Bitmap twice, only to get rid of the file lock. Is this a bug in the Bitmap.FromFile() function ...Show All
Visual C# How to hide class
I'm trying to hide class to the object browser, trying using the attribute : EditorBrowsable(EditorBrowsableState.Advanced)] but it seems run right only with properties and method. Is there any way to hide a class I have created a C# assembly to wrap a number of webservices and related RFP calls. The whole point is that I want my component to be used by .Net and COM developers without them having to learn the complexities of the webservices I am calling. But all the web service classes, methods and types I am referencing are being exposed through my assembly. If I edit the reference.cs file and replace "Public" with "Internal" I solve this problem as far as intellisense, but then th ...Show All
Visual Studio Express Editions Publish --- Won't
I seem to have "lost" the CLR Well, that's what the message says when I try to Publish: "Error 1 Could not find file 'Microsoft.Windows.CommonLanguageRuntime, Version=2.0.50727.0'. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets 2071 9 " The message ISN'T wrong !! "CommonLanguageRuntime" is not in 'Microsoft.Windows'. I cant find it under that name in Program Files either. (Maybe I'm running on a 'virtual' copy) Since the IDE and my app run just fine locally, I guess it's just Publish that can't find it. Any thoughts on giving Publish a hint on where to find the CLR Roger Ensure that the database file in the solution explorer for the project being published ha ...Show All
