Mystagogue's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Where to upload demos?
Ok so I have an XNA demo game I want to upload but I don't want my web site to get slammed. Is there a good site to upload the demo to or something like a blog/dowload site that I can start I would like something XNA or MSFT based if possible. Thanks. I wouldn't be worried about being slammed in the XNA community, most of us are beginners here and even the experience joe blogs are very helpfull and almost never negative. Good to you puting your demo game out, I also would suggest if you intend to develop the game further, put it Codeplex , great place and you dont have to release the source if you dont want to, until your ready. One you've put it somewhere put a sticky in this forum, I think Dav ...Show All
Visual Basic Setting control focus on an MDI child form
Hi, I have an MDI application with child forms that contain a DataGridView control. Only certain columns in the grid are modifiable and in the CellEnter event I set the EditMode to EditOnEnter so that the user doesn't have to double-click the cell in order to edit. In my main MDI parent form I am trying to write the code that occurs when the Save and Save All buttons on the toolbar are clicked. I currently have this code in mySave routine: Try activeChild = Me.ActiveMdiChild theGrid = CType(activeChild.ActiveControl, DataGridView) Call SaveWorksheet(theGrid) Catch ex As System.InvalidCastException MessageBox.Show("The datagrid was not the active control", "Cast Error", MessageBoxButtons.OK ...Show All
Windows Forms Drag and Drop Derived Objects
Hi there. I have a .Net 2.0 Windows Forms C# app and I am trying to implement drag and drop between 2 datagridview controls. In the MouseDown on Control#1 I have set the data to be as follows: DragDropEffects dde = DoDragDrop(( ClosingStmt_LineItems )selectedLineItem, DragDropEffects .Move); Note the selectedLineItem is of the derived type ClosingStmt_LineItems. How can I get the data back out in Control#2's DoDragDrop method It looks like the GetData method only handles basic types. I have tried various attempts at something like this with no luck: ClosingStmt_LineItems tempLineItem; tempLineItem = ( ClosingStmt_LineItems )e.Data.GetData( "" ); I always get tempLineItem = null. Thank ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Fullscreen problems....
EDIT: I am using Beta 2. I use this as the constructor method... public Game1() { graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferWidth = 640; graphics.PreferredBackBufferHeight = 480; graphics.PreferMultiSampling = true; graphics.ToggleFullScreen(); content = new ContentManager(Services); } Works great. But when I change the resolution to 800x600, all I get is a black screen. The loop is still running because I can still quit the program. I have also tried 1024x768, that works too. Thought maybe it was an aspect ratio problem, but they are all the same, 1.3333... I have tried turning the multisampling off to no avail. Didnt think that would be it anyways, I play World of Warcraft at 800x60 ...Show All
Visual C++ place for code
maybe this is a stupid question, but I have started microsoft visual C++ today (c++ itself also for the first time) and i dont know where to put the code. i'm making the program hello world, but it doesnt work it asks if i want to 'build' the programm and i dont know what it means. i named the program hello and i put the code in the place where it says: hello.cpp is this the right place if so, what am i doing wrong this is the code: // hello.cpp : Defines the entry point for the console application. // #include "stdafx.h" int _tmain( int argc, _TCHAR* argv[]) { return 0; } #include <iostream.h> int main() { cout << "Hello World!\n" ; return 0; } ...Show All
.NET Development Download code
Does anyone have a demo code to download any file from a FTP or HTTP server Thanks You can download from an FTP Server with the FtpWebRequest class: public static void DownloadFromFtp() { FtpWebRequest request = (FtpWebRequest)WebRequest.Create(" ftp://myftpserver.com/dir1/wickymusic.wma "); request.Credentials = new NetworkCredential("username", "password"); WebResponse response = request.GetResponse(); Stream dataStream = response.GetResponseStream(); FileStream fileStream = File.Create( "c:\\wickymusic.wma" ); byte[] buffer = new byte[ 8192 ]; int bytesReaded = dataStream.Read( buffer, 0, buffer.Length ); while( bytesReaded > 0 ) { fileStream.Write( b ...Show All
Visual Studio 2008 (Pre-release) GridViewColumnHeader: Prevent column reorder for one column
I have a ListView control whose View is a GridView object. I've set the AllowsColumnReorder property to "True" on the GridView object, thus allowing the user to reorder the columns within the Grid. My problem is I would like to prevent the user from reordering just the first column. The other column headers should allow reordering. All attempts to prevent column reordering of the first column thus far have been unsuccessful. Thanks for any suggestions. ...Show All
Visual Studio Express Editions Read some text
Hello guys .. I am making a kind of calender/note/remember ting. I want to place a date in the top of the my text i wright in my richtextbox. Thats not the problem, the problem is that it is adding an date every time i save it. My.Computer.FileSystem.WriteAllText(path & "Calender", "To the:" & datepicker.Text & Environment.NewLine & hehe12.Text, False) It will look like To the: XX-XX-XXXX So what i want to do is to make it read the first few charterers so that if it finds fx "to the:" in the first line it will not apply the date - i have tried with the steamreader, but i just cant figure out how to make it only read the first part of the text. Right now my code ...Show All
Visual Studio Express Editions Breaking a long code line?
How can I break a long code line all you need to do is terminate each line with " _". For example: Dim newConnection As System.Data.SqlClient.SqlConnection = _ New System.Data.SqlClient.SqlConnection( _ "some connection string here") ...Show All
SQL Server Earlier question on ODBC compatibility
Hi Chris: I am sure as you are aware only data adpaters in SQL 2005 out of the box are .NET Frameworks, in your answer to Stoobs, you state the ADO.Net framework does not have all the APIs. We're experiencing the same problem with the product and ODBC. Unfortunately we have a legacy MUMPs DB (that KBSQLODBC layer sits on top of, its a flavor of SQL from Knowledge Based systems) that our vendor is not going to update. Given that, how can we address the ODBC driver problem with SQL 2005 Is there going to be an update to ADO.NET Thanks, dfreshman The trick to this was knowing not to use the Data Source View. I had to create the Data Sources, add them to the connection manager make sure their ...Show All
SQL Server Performance difference
Hello, i'm running 7 same HW&SW configured servers with the same load with SQL Ex 2005 SP1 installed. I'm executing SP over 200.000 times a day. And here comes the problem, every server got different average response time, the quickest executes the SP in 1 ms, the slowlest in 50 ms, that's 50x slower! Have you any performance hint, please Thank you. Is there any chance how to set this statistics in app or server side, not via sqlcmd, because i'm executing stored procedures with a lot of parameters, please Thank you Jerome for kind help. ...Show All
Visual Studio Help With Installing Visual Studio 2005 Professional
Could someone please tell me step by step what I need to do in order to install Visual Studio 2005 Professional. I have downloaded the En_vs_2005_Pro_90_Trial.img file but from here I am completely lost. I am looking for some way to install this program into my computer without having to purchase the ISOBuster software or possibly any other software for that matter. I am a total newbie to any sort of file like this (.img) and just about everything I have read concerning it confuses me. I do have a CD burner but I don't even know how to use it, so when I read about burning the VS2005 file to a CD I am lost here also. If someone could explain in laymen's terms how I can install this file into my machine I would greatly appreciate it ...Show All
Software Development for Windows Vista security of PPI
How secure is the Private Personal Identifier (PPI) of a self-issued InfoCard Anyone who knows the PPI can use it to clone a new card and steal my identity. Let's say I make a self-issued card and lock it with a PIN so nobody else can use it. Can the PPI of a locked InfoCard be learned by examining the contents of the CardSpace database file (CradSpace.db) If not, then can the PPI be derived from the contents of an exported backup (.crds) file Thanks Caleb, exactly the information I was looking for. However, I'd say that's not "just" a second line of defense -- just about anyone with physical access to the PC can generate (and of course decrypt, since they are choosing the password) an export fil ...Show All
Software Development for Windows Vista Custom activities and the propertyGrid
hi, I'm customizing a stateActivity and I experience problems with the propertyGrid (both when rehosting the workflow designer and in Visual Studio). The code for my custom activity is as follows: public class MutationStateActivity : System.Workflow.Activities.StateActivity { private string _name = ""; public MutationStateActivity() { this.Name = "TEST2"; } public string Name2 { get { return this._name; } set { this._name = value; this.Name="State"+value;} } } In the visual studio WF designer I can now drag and drop my MutationStateActivity. When I set the Name2 propery to "First", the property for Name automatically changes to "S ...Show All
SQL Server Send Mail Task - Log
Hi, Does Send Mail Task using db mail to send email Also where can I check the log history to see if the message delivered properly. My send mail task is working fine without any errors but I am not getting the email Please guide where to check. ...Show All
