Yuriy D's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Decompilable?
How easily can the games compiled with XNA be decompiled I know .NET and C# can be easily decompiled, so I'm just wondering. You could also take your sourcecode and obfuscate it right there. I bet there are some nasty tools out there ^^ Anyways, in this early stage of XNA its not like you going to code your little game and then tell every player "download XNA Game Studio Express and compile my game". Only developers are going to do that. ...Show All
Visual Basic Int32 and Integer
Hi, I am curious about if anything could go wrong if I send an Int32 to a function expecting an Integer Even though both are 32 bits they are separate classes. Best, /M Mortsdeh, Int32 is defined in CLR (Common Language Runtime) which is defined in Visual Basic.NET as Integer. If you use integer in Visual Bisic.NET, the CLR considers that you are using a value type in your program and the data is processed as a value type. However, in future, the integer type in VB.NET will be increased to 64-bit, and a related definition will appear in the CLR. Int32 will be still 32-bit operator forever even if in the next edtion of .NET Framework. Hope to help you understand the difference between Int32 ...Show All
Visual Basic How to Open Outlook Express through Vb.Net Code
Hi, I want to open Outlook Express / Outlook ( Depends on availability) on button click of a Vb.Net form Can any one provide me the sample code Thanks in Advance The following will open outlook express. Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Process.Start("msimn.exe") End Sub End Class Otherwise if you just want to open the default email client on the machine to send a message - something like the following should work. System.Diagnostics.Process.Start(" mailto:your@emailAddress.com ") ...Show All
Visual Studio 2008 (Pre-release) Linq to MySql prototype - looking for developers
Anyone out there who uses MySql Am looking for contributors for the Linq to MySql project. Question to Microsoft: I have called the generator 'MySqlMetal.exe', so that Linq users would know, what it does. Do you have any problems with the blatant copying of SqlMetal name I can rename it, if you want. Thanks, Jiri George Moudry This sounds interesting :) Maybe in the future it would be possible to write DLinq within php environment against mysql. ...Show All
Windows Live Developer Forums How can i restrict pushpins displaying after searching?
Hi, Here i am using Version4. i am using the method find(what,where,...) after searching i found out that pushpins are placed automatically by this method in the map. I dont want these pushpins displaying. Can any one know how to restrict these pushpins displaying after each search. Thanks Sarath. Hi, No jeff, after finding the results i want those results to be displayed in a panel like in local.live.com and the user if required can add those pushpins into the scratchpad. At that time only i need that pushpin to be displayed in the map. else the other thing i can do is. When pushpin is added i cant able to catch the event of mousehover over those find results pushpins in ...Show All
.NET Development System.Net.CredentialCache.DefaultCredentials returns empty credentials
Hello! I'm not sure if this is a the right forum for my question, but it has to do with System.Net namespace. So... What should configuration be in order for the System.Net.CredentialCache.DefaultCredentials not to return empty credentials From MSDN: The ICredentials instance returned by DefaultCredentials cannot be used to view the user name, password, or domain of the current security context. They are actually some marker credentials. When the system sees this marker knows that it has to pass the credentials of the curent windows user (WindowsIdentity.GetCurrent). ...Show All
.NET Development my forms will not work
i must be doing something... wrong; < form action ="http://www.biblegateway.com/quicksearch/" method ="post"> < table border ="1" cellspacing ="0" cellpadding ="2" style ="border-color: #600;"> < tr >< th style ="background-color: #600; color:#fff; text-align: center; padding: 0 10px;"> Lookup a word or passage in the Bible </ th ></ tr > < tr >< td style ="background-color: #fff; text-align: center; padding: 0 10px;"> < p style ="margin-bottom: 0;"> < input type ="text" name ="quicksearch" />< br /> < input ...Show All
Visual C# BackgroundWorker & Mutex
Hi, I am converting some old dotNet 1.1 C# code to dotNet 2.0 C#. He used a number of mutexs to prevent threads from simultaneously accessing a single variable. I am changing all those programaticaly contructed threads into BackgroundWorkers. The question is this: Does the BackgroundWorker need to use the mutex method, or do they automatically lock the variable they are accessing I have spent hours scouring the Internet for an answer to no avail. So now you experts get a chance at it. By the way, I like C# so much I broke (pun intented) the bank and bought the Pro version. It is quite a bit better and nicer then the express version. The BackgroundWorker's DoWork event is called with a new thread. It does nothing wi ...Show All
SQL Server Transpose of Data
I want to take transpose of data using single SQl statement. For example, empno Name 1 a 2 b 3 c 4 d . . . . as empno 1 2 3 4 .......... name a b c d......... Thanks in advance Mandip You can use PIVOT operator in SQL Server 2005. select pt.[1], pt.[2].... from t pivot (max(name) for empno in ([1], [2], [3], [4] .... )) as pt In older versions of SQL Server, you can use a standard SQL statement like: select max(case t.empno when 1 then t.name end) as [1] , max(case t.empno when 2 then t.name end) as [2] , max(case t.empno when 3 then t.name end) as [3] ... from t Please note t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Not Understanding Game Components
I'm new to XNA - I'm making a 2d version of pong (nothing exciting, but it's a start). I'd like to be able to do something like.... foreach(gameObject myObject in AllObjects) Sprites.Draw(myObject.Texture,myObject.Vector,myObject.color) It seems resonable. I was going to create my own 'gameObject' class to encapsulate all of the logic and drawing and what not for every sprite in the game. Isn't that what a gameComponent is supposed to do From my broad understanding, you just add a gamecomponent into your collection and the Draw and Update will be called automatically. Is that what I should be using here; if not when do I use the gamecompoent Any help would be greatly appreciated. Heres a few good ...Show All
Visual Studio Properties.settings as a reportdatasource????
I have a report that only uses the properties and system settings and some parameters, and I cannot make it print...is there a way to use the properties.settings or systemsettings as a data collection that I can assign to the value of the reportdatasource Does my reportviewer report have to have a data source to print, can I just use the properties I assigned in my report and the params I am passing in ...Show All
SQL Server Bulk Insert -- Access denied issues
Problem: Insert a network file in the DB using BULK Insert Works for a local sqlcmd connection. Does not work for a remote sqlcmd connection. SQL Server is running on Machine 'WalRepTest'. User account for SQL Server Service: 'Domain\vivek_uppal'. This has admin privilieges on SQL Server machine and the machine hosting the file. I have 2 scenarios. Scenario 1 behaves as expected, Scenario 2 causes error. Scenario 1. Connect using sqlcmd from local machine Machine: WalRepTest Windows user: Domain\vivek_uppal Sql login using the cmd ...Show All
Visual Basic Icons with VB 2005 Express
All icons I use in VB 2005 appear on a small white rectangular area. The same icons used in VB 6 did not show this behaviour, which I feel to be undesirable. Is there anything I can do to get rid of this white area No, did not try that because my icons sit on the title bars of several windows, inside a MDI container window. Does not have anything to do with toolstrips. Thanks anyway. ...Show All
SQL Server Using calculated members in RS 2005
Hi everyone... This is my first post here... Well, I got a problem with a calculated member I have created in a cube.Its based on "Percentage of Parent" template. I'm trying to build some reports for a survey and I have data about the profiles of the users (that is I know the answers of each user and I have data about their living region and prefecture). FactAnswers : AnswerKey, PrefectureKey DimAnswerKey: AnswerKey, AnswerName, QuestionKey, QuestionName, SurveyKey, SurveyName DimPrefecture: PrefectureKey, PrefectureName, RegionKey, RegionName Measure: Surveys Count Actually i use snowflake schema but for simplicity's shake I'll describe the problem using the above star schema. In order to get the percent of Answers for eac ...Show All
Visual C# MapPoint Interop for 2004 and 2006
I have an application written in C# 2.0 that uses MapPoint 2004. Since 2006 has been released, I tried running my app on a system with 2006 installed, but get a crash when it tries to map. I created an interop for the 2006 dll, but it doesn't work with 2004. Is there a way to get my app working with both versions without having to branch my development Thanks for any help you can give. With the searching I've done, it seems like I'm the only one having this problem. :( I found out what the problem was. I have a function that is executed during the creation of the map form that gets a pointer for the MapPoint control's handle. The Interop turns out to not be a problem at all, it was working brilliantly. No ...Show All
