Awanti's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Basic pixel, pen, circle on screen?
I was reading some C# examples and some were using Pen and basic Draw functions which I can't find in XNA. Do these exists, is there another way of drawing simple shapes Quick example detzX wrote: I was reading some C# examples and some were using Pen and basic Draw functions which I can't find in XNA. Do these exists, is there another way of drawing simple shapes Quick example There are pen, brush, and draw functions in GDI+ (managed version of GDI) of .NET framework under System.Drawing namespace. I haven't played with the examples yet, just a guess. ...Show All
Software Development for Windows Vista Unexpected termination of state machine workflow
I have recently encountered an issue with my statemachine workflow, where the workflow is terminating. I have enabled tracing for the workflow. My workflow is signed. My workflow is exposed via web services. The interface and messages used by the WsInputActivity is located in another assembly, which is also signed with the same key. Here is the output of the error information. Does anyone have any idea what might be going wrong Obviously something is throwing an argument null exception, but the where and the why is very puzzling to me. I havent been able to find any information on the objects in this set of exception details: Description: An unhandled exception occurred during the execution of the current web request. Plea ...Show All
Visual Basic Lock And Unlock Form
I have one form and i call out another form from there, i am able to set focus on that form but i want to lock the other form. Only user close the second form then only the previous form can be unlocked. May i know how to do it Thank you use a modal form. see http://msdn2.microsoft.com/en-us/library/c7ykbedk.aspx ...Show All
.NET Development Virtual Path Problem?
Pretty much what I'm trying to accomplish is a data backup utility. First I have a treeview on the left, pretty much like Folder Explorer, that lists the drives and so forth. You then can dive down into different directories from there. The files and directories are then put into a listview on the right, after you select one of the nodes. This is where the problems start occuring. I'm including a piece of code here, just as an example to give you a visual understanding of what I'm about to ask. First make your basic windows form app. Add System.IO namespace Add a button Add listview control In your button1_Click event add the following DirectoryInfo tempDir = new DirectoryInfo ( "C:\\WINDOWS\\Downloaded Pr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Ship Upgrade Screen is being skipped in Space Wars...
Hello, I have been able to build and run the Space War game with a keyboard configuration (thanks to www.xnaspot.com). But when I play the game the ship upgrade screen gets skipped over. When I start a new game, it briefly shows the upgrade screen and then skips right to the game. After each round in the game, it briefly shows the screen again, but then jumps back to the game. Is anyone else having this problem Can anyone help me debug this problem Also, after the first round ends, I get a buzzing sound that doesn't stop. The sound just gets multiplied after every round. Any help with this would be great. Thanks! Thanks for all the great input everyone. I was able to view the upgrade and selection scr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Xbox 360 Official Dev Kit vs. "the XNA thing"
Here goes, The official dev kits intergrate within Visual Studio and compile on PC and send the executable to the machine and launch it via remote debugging. This also allows for breakpoints, steping thru code, etc. Will this new XNA subscription and Game Studio Express be similar to this idea I'm dreading things like relying on Windows support and burning it to a CD to play it on the 360. (For example) I guess what I was asking was more detailed information on what "remote debugging" means on this platform. Will it have, watch windows, breakpoints, stepping thru code, etc If it does than i'm uber excited for this. :) ...Show All
Visual Basic Saved and used again?
How do i do this I want to play the file selected by the user from the list box. Which is saved to My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData. sUserSelected not sure if this is right or not. The way I have it is not working, I've also tried using & instead of + but no luck. Dim sUserSelected as String Player.URL = "C:\" + sUserSelected + "\ThemeTune.mp3" This works OK Player.URL = "C:\ FolderName \ThemeTune.mp3" pbPicture.Image = Image.FromFile( String .Format( "C:\ FolderName \" & "Pic" & intNumber & ".gif" )) What I want is for the user to pick the name of a folder from the lstTheme ListBox, then have i ...Show All
Visual Studio Team System switch between TFS and TFS proxy
Hello, I'm not sure if this is the right forum. But i wonder if there is an easy way to switch between our configuration for TFS and that for TFS Proxy. We have 2 offices and I would like something that allows our developers to startup the vs.net using the correct settings taking into account the location they are. I was thinking of 2 shortcuts 1 which starts the vs.net without the proxy settings and than a second one that starts with the proxy settings. i really don't my developers to need to change the settings everytime they change office. Does any one have an idea on how to do this You can do this via a registry script. Under HKCU\Software\Microsoft\VisualStudio\8.0\TeamFoundation\SourceControl\Proxy ...Show All
Visual Studio Express Editions How do I send data from my application to a database?
I am just learning how to use Visual Studio and I was wondering if someone could help me out with a problem I cannot figure out. I am working on an application, composed of drop-down boxes that are from various tables, and I can not figure out how to send the selected data from the drop-down boxes to a database. I have been playing around with the BindingSource and BindingNavigator which has not gotten me anywhere. If someone could help me out with this problem I would much appreciate it. Anthony First of all if you take a look at the feature comparison you wil find that there is a limitation of working with local databases only form the designers.... http://msdn2.microsoft.com/en-us/vstudio/aa700921.a ...Show All
Visual C# Convert .txt file data into a .mdb file data
Hi... I want to convert a text file data into a access file(.mdb format). Data will be already there in .txt file in a perticular format so i just have to read the data from that text file & i have to make a .mdb file with same data. Can anybody guide me how i can do this... Thanks in adavance, Vinay Thanks for the reaply, Actually i have to read the complete .txt file & then i have to remove the unnecessary data from that text fle to make a .mdb file. Also i have to add some extra comments which are actually not there in text file & at the end i have to make a setup program with my application. So can you suggest anything else... Thanks once again, ...Show All
.NET Development Naming conventions and Microsoft recommendations
Hello, What is naming convention for different toolbox items you put on a form If I say I have a DataGridView on my form do I call it dgvCustomers or DataGridViewCustomers or CustomerDataGrid or ... Thanks CG. I guess its up to you really, there is no "set" rule you must follow. I know some of my colleagues/friends at Microsoft still use Hungarian notation...and well, I've seen them get a slap now and again for using it but they still do it It is correct that its being phased out or should be already...Again, personal preference. ...Show All
Visual Studio Express Editions Question about database and C# commands
I’m making a program that uses a SQL Express database and i have a table called Utilizador (user) and it’s primary key ID_Utilizador wich is an automatic int counter (1-2-3....etc), and i cant alter its value. What i need is to find a way in C# 2005 Express to know the next ID number that the next row to be inserted will have without knowing the ID number of the last row to be inserted. Maybe there is a command for this but i cant find it. Regards Rui Humm, ok, thanks. Then is there a way to reset the counter back to the first number (1 in my case), because the table in my database (SQL Server Express) has no rows but everytime i add one, the ID counter continues from the last number in ...Show All
Visual C# How to use the custom assembly deployed it in the GAC
Sorry to ask a very basic question here. I have created an assebly and deployed it in the GAC. Now how can I use that assembly I deployed in any type projects, I mean how to add reference to that assmbly just like we add reference to System.Windows.Forms.dll. How can I do that Given below are the steps I done to deploy an assembly 1. Created an SN Key . sn -k "c:\Keys\ver1.snk" 2. Create a dll, and in the assemblyinfo.cs, I have given [assembly: AssemblyKeyFile("c:\Keys\ver1.snk")] 3. Deployed the assembly using gacutil -i <Mylocalpath of assembly> . I checked for this assebly name in c:\windows\assembly, its present there, so the deployment is successful oops !! I am sorry. Please give rep ...Show All
Visual Studio Express Editions wide characters in program
#include "stdafx.h" #include <iostream> #include <string> int main() { std::cout << "Please enter your first name: "; std::string name; std::cin >> name; std::cout << "Hello, " << name << "!" << std::endl; return 0; } wchar_t where do i put this in for wide characters like japanese thanx orcmid wrote: 1. First Steps The first thing to do is experiment with getting your console application to display Japanese characters on the console. Are you able to do that Make sure of the following things: Use wcin and wcout for all console input-output. Do not use cout or cin at any time. ...Show All
Windows Forms EventsTab disappear in Collection Editor
hello, I have trouble with the collection editor , using Event tabs I have a component as follow: [ PropertyTab ( typeof (System.Windows.Forms.Design. EventsTab ), PropertyTabScope .Component)] [ DesignTimeVisibleAttribute ( false )] [ DefaultEvent ( "Myevent" )] public class Binding : Component { ...................... public event EventHandler Myevent; } in an other component I have declared: private List < Binding > bindings; [ DesignerSerializationVisibility ( DesignerSerializationVisibility .Content)] public List < Binding > Bindings { get { return bindings; } } this would open the collection editor to build a Binding object the first ti ...Show All
