b0bd0gz's Q&A profile
Visual Basic Using the LAN to communicate scores
I have finished creating my game, but out of curiosity is it possible to somehow use the LAN (local area network) to communicate high scores between the computers that i plan to use this on I would just save it to something on the shared folder or network places but the some of the networks i plan to use this on do not allow access to those places, any ideas You can use the network to communicate high scores, but designing something like this is tricky. There are several options: 1. You can have a "master" that keeps track of the high scores. Each game that completes will send its scores to the master. Each game also asks the master for the current score. The advantage for this type of solution i ...Show All
Visual Studio Team System Making Area and Iteration Read-Only
I would like to make the fields Area and Iteration appear as readonly to every group except 1. We have our product management team enter these values, so we do not want anyone else to have access to these fields. How would I go about adding this functionality I tried adding the "Read-Only" field for "Not" the Product Management group, and it worked on other fields but did not allow me to do it for these ones. Here is what can be done it's not bullet proof but is likely acceptable: In the <FORM> section of the workitem find: < Control Type =" WorkItemClassificationControl " FieldName =" System.AreaPath " Label =" &Area ...Show All
Smart Device Development Question on compiling _vstprintf_s(i.e. vswprintf_s)
Hi there everyone I am using the _vstprintf_s function in my Smartphone C++ app, and this is the region where it is used: void Add2List (HWND hWnd, LPTSTR lpszFormat, ...) { int nBuf, nLen; TCHAR szBuffer[512]; va_list args; if (hWnd == 0) hWnd = hMain; EnterCriticalSection (&csPrintf); va_start(args, lpszFormat); nBuf = _vswprintf(szBuffer, lpszFormat, args); va_end(args); nLen = (lstrlen (szBuffer)+1) * sizeof (TCHAR); WriteMsgQueue (hQWrite, (LPBYTE)szBuffer, nLen, 0, 0); PostMessage (hWnd, MYMSG_PRINTF, 0, 0); LeaveCriticalSection (&csPrintf); } but when I try to compile, I get this linker error : 1>Linking... 1>BTHello.obj : error LNK2019: unresolved ext ...Show All
.NET Development uploading file to Apache
I try try { client.UploadData( http://www.myapacheserver.com/myuploadfolder , UploadImage); } catch ( WebException Ex) { MessageBox .Show(Ex.Message); } The UploadImage pass in data correctly. But somehow, it doesn't create any image on the apache server. Any idea Regards, Leo Sadly there's no exception thrown. =( It just not appear on my server. When I check server error log it said "An unknown filter was not added:PHP" though. ...Show All
SQL Server The return of Problem Assigning Value to Package Variable From Data Flow Script Component
I have a Data Flow Script Component(Destination Type) and in the properties I have a read/write variable called User::giRowCount User::giRowCount is populated by a Row Count Component previously in the Data Flow. After reading http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=97494&SiteID=1 it is very clear that you can actually only use variables in the PostExecute of a Data Flow Script Component or you will get an error "Microsoft.SqlServer.Dts.Pipeline.ReadWriteVariablesNotAvailableException: The collection of variables locked for read and write access is not available outside of PostExecute." What I need to do is actually create a file in the PreExecute and write the number of records = User::giRowCount as&nbs ...Show All
Game Technologies: DirectX, XNA, XACT, etc. End users shouldn't have to rewrite XNA math functions in order to improve performance.
The overhead of passing a 64 byte Matrix by value is significant. Most especially when you are comparing two matrices for equivalency (==), or performing a Vector*Matrix multiplication (Vector3.Transform(Matrix)). The following matrix comparison function performs 5-10 times better than your built in == comparison. If the matrices are equal, then it is about 5 times faster. If they are unequal then it fails fast, and is about 10 times faster. public static bool Equals(ref Matrix a, ref Matrix b) { // i check the diagonal first for quick fails return a.M11 == b.M11 && a.M22 == b.M22 && a.M33 == b.M33 && a.M44 == b.M44 && a.M12 == b.M12 && a.M13 == b.M13 && a.M1 ...Show All
.NET Development How to parse invalid characters
I am downloading an xml file.It have some invalid characters.In valid characters could be changed. I have an xml file for my custom setting.I will replace the invalid characters with the valid one. so I have added a node named InvalidCharacters in which i provide the invalid characters. 1, Now I want's to load these invalid characters in an array [ i will split the string by ',' and load in an array] but How can I load the string in the cdata area. 2, I am getting an erro [Character '', hexadecimal value 0x1a is illegal in xml document] when i try to put the character in my xml file for setting. <InvalidCharacters><![CDATA[ ,&,</a <,</a<,</< ]]></InvalidCharacters> Generally ...Show All
.NET Development Multiple ExecuteReader()
In the code that follows, the first data connectionn and Read command work fine, the second attempt creates the following error: "IErrorInfo.GetDescription failed with E_FAIL(0x80004005)" Does anyone know why How to fix I need to load a bunch of different tables into a bunch of different arrays within the same Sub routine. Dim strConnectionString As String = .MySettings.Default.dbOptionsDataConnectionString Dim objConnection As New OleDbConnection(strConnectionString) Dim objCommandRead As New OleDbCommand() Dim objReader As OleDbDataReader objConnection.Open() Dim strSqlRead As String strSqlRead = "SELECT InputID, InputValue, MinValue, MaxValue, Increment FROM tblSimulationIn ...Show All
Visual Basic Welcome to the Visual Basic IDE forum!
Hi all, and welcome to the Visual Basic IDE forum . I'm Paul Yuknewicz - I'm one of the Program Managers on the Visual Basic product team, and starting today, I'll be moderating these forums. For more info about me, check out my blog . Note there is a VB Team blog as well. In this forum we will cover questions and discussions regarding the all things in the Visual Basic IDE (integrated development environment). This covers Intellisense, debugging, ErrorCorrect, ClickOnce deployment, code snippets, colorization, smart tags, key bindings, Object Browser, Refactor! for Visual Basic 2005 , etc. The team and I look forward to joining you in discussions about VB. Best, Paul ...Show All
Windows Live Developer Forums Version 3 Issues
Is anyone else having version 3 issues today -Erick_the_Redd ...Show All
SQL Server restore back up from sql 2005 beta 2 to sql 2005 original
hai, When i try to restore the backup which has been taken in sql2005 beta 2 and restore it in sql2005 original it is displaying the following error message. System.Data.SqlClient.SqlError: The database was backed up on a server running version 9.00.0852. That version is incompatible with this server, which is running version 9.00.1399. Either restore the database on a server that supports the backup, or use a backup that is compatible with this server. (Microsoft.SqlServer.Smo) please let me know how i can restore the back. You may have to script out the schema and then copy the data from the Beta2 database to the RTM (1399) version database. You might be able to use Visual Studio fo ...Show All
Smart Device Development Send MMS via PC to Mobile
Hi! Does anyone knows how to send MMS cia PC to mobile using C# I need to create the MMS from the PC and use the mobile connected to the PC to send MMS to my mobile. Any ideas how to do it Hello! Kihat, Did you found an apllication for sending mms to mobile from the pc If you get it, i would like to kow if you can explain me or send me it Thanks ...Show All
.NET Development Dynamic SQL generation is not supported against multiple base tables solution
I'm newbie in vb.net. I have the problem with updating join tables in datagrid with using dataadapter, the errors message "Dynamic SQL generation is not supported against multiple base tables" occured while i tyring to save the modified records. How should i code with update multiple records at once time thru datagrid in bindingcontext dataset Thanks in advance!! Thian ...Show All
Visual Studio Tools for Office deploying vsto 2003 excel application
Hi, I am trying to install VSTO 2003 application for excel. I copied all dlls and .xls on user machine and now I am trying to give full trust to folder containing .dll and .xls. I went to .net configuration + runtime security policy + code gourps + All_code now in All_code it does'nt show me office_projects where my .net vsto project should be listed... What should I do / How do I give full trust permission to my dll on user machine On user machine I have following installed.. office 2003 framework 1.1 Do I also need to install vsto runtime Where to get it On microsoft download center I can only see vstor2005 and not vstor 2003... Thanks, ...Show All
Architecture "CallResult" class for non-query RPC
In my application I have a service layer which is remoted. There are some functions that are "non-query" methods, that is they do not return a domain entity or collection but perform some action on the server. I would like to get back the result of these calls and possibly any error messages. I am thinking of using a serializable "CallResult" object which has two properties: a boolean "Successful" property indicating if the function executed sucessfully and a "Message" string property containing the message from any exceptions that occured while executing the method. The client would only look at the Message property if the Successful property is false. I am wondering if this is a good design or not ...Show All
