R Raghu's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. 3d tools using mfc+Directx
hi all, Basically am a entry level game programmer now i had started my path on tool development, presently i am developing a software like motion editor for that i need to write code for the basic setup so i want to know is there any article of tutorial for creating the basic setup using MFC + directx. ie multiple viewport (you know what a editor needs) please help... KissPsycho thats great me too from chennai, are you a game programmer, which company its nice to hear that gaming peoples here around chennai. ...Show All
.NET Development Using Regex/Match to find decimal Index location from RightToLeft.
I am trying to find the decimal index location from RightToLeft using Regex/Match. When the code below runs, I keep getting the index value from LeftToRight even though I specified RegexOptions .RightToLeft . What am I missing here Regex r = new Regex ( @"[.]" , RegexOptions .RightToLeft); Match m = r.Match(tbMainInput.Text); if (m.Success) { m.Index.ToString(); } Thanks for your help... cablehead wrote: Why would you want to add an extra line of code You are absolutely correct. I posted the my last post prior to seeing your solution. Thanks cablehead :) ...Show All
Visual C++ Problem compiling an ADT using istream &operator>>
I keep getting a "error C2143: syntax error : missing ';' before '&'" error for the following code fraction.h..... #ifndef FRACTION_H #define FRACTION_H #include <iostream> #include <cstdlib> //for abs() //#include <iostream.h> #include "fraction.h" using namespace std; using std::istream; using std::ostream; using std::cin; using std::cout; /************ Type definitions for ADT Fraction ************/ typedef enum { POS, NEG } SignType; class Fraction { public : int numerator; /* numerator and denominator are declared as */ int denominator; /* int to simplify the algorithms, but they */ SignType si ...Show All
Smart Device Development Emulator does not launch Activesync
I have no problem cradling the Windows Mobile Pocket PC 5.0 Emulator, but when have done so, ActiveSync (4.2.0) does not launch. It wakes up fine when I plug a real device into the USB port. Any thoughts on what I did wrong Can you please enable "DMA" in activesync File->Connection Settings->"Allow connections to..." Please note that if it is Vista, then it will not work as the fix for this is available on Device Emulator V2 which is going to be soon available as Web Download (however if you have PB6.0 then it should be available to you already). -Thanks, Mohit ...Show All
Visual Studio 2008 (Pre-release) Starting new project => should I use WPF or Windows Forms?
I am just about to start with developing new standalone application that I expect to be ready in year and half. It should replace existing old version written in C++ using MFC. My first idea and reason to start was to improve mainly UI and to use C# .Net 2.0 and Windows Forms to achieve this. But now I found that there is something like WPF in .Net 3.0 and it seems like soon future. So I am really confused. Do you expect .Net 3.0 to be RTM sooner then in one year Is current state (June CTP) ready to start application development that would make sense or is it just for “playing around” and API changes in future will be too big I would like to use new technology but I don’t want to loose all my hair. ...Show All
Visual Basic VB.NET console application doesn't want to work as a scheduled task??!!
Hi all experts, I'm experencing a very strange error. I created a windows console application to check all the process on server and if there is one or more process doesn't work, the application sends out an email. I deployed the application on the server and when I run it by double click the .exe, it works fine. If I add it as a scheduled task, it never gets the list of process correctly. Could anybody help me out Below is the code piece of get process list. ' GetProcesses For Each proc As Process In Process.GetProcesses() Try If proc.MainWindowTitle.Length > 0 Then Console.WriteLine(proc.MainWindowTitle.ToUpper().Trim()) procs.Add(proc.MainWindowTitle.ToUpper().Trim(), pro ...Show All
.NET Development Generic performance... benefit?
Hi, in every article about generics is written that they improve performance because no boxing, etc. occurs. So I wrote this simple test code and was astonished that the non generic part actually performs a couple milliseconds faster than the generic part About 59.8 seconds for the generic and 59.1 seconds for the non generic (avg. of 10 runs). Am I missing something here [code] using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.Collections; namespace ConsoleApplication6 { class Program { static void Main(string[] args) { string s = ""; Test<string> test = new Test<string>("hi"); DateTime start = DateTime.Now; for (int j = 0; j < 1000000; j++) { foreac ...Show All
Visual C++ Searching for function to use??
Hi all, Could someone please guide me in the right direction I'm looking for a function that performs the same action as the GlobalMemoryStatus() but instead of memory, hard drive status i.e. virtual memory, swap memory and so. Thanx The win32 dev newsgroups at http://msdn.microsoft.com/newsgroups is a better location for such questions. OTP Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio Express Editions Zip Files
Are there any free zip libraries for c++ Other wise I was just thinking of using a system command and use a dos zipper like pkzip to zip files, but I would like to have more programtic control and so a library would fit much nicer. Any clues from anyone If this is a native C++ application you make want to look into zlib or zlib for Windows . If on the otherhand this is a .NET app written in C++, #ziplib would be your best bet. ...Show All
Windows Forms [solved] DataGridView.Sort explodes after modifying/adding row(s)...
I am creating a little app that has a DataGridView to keep track of tasks. In the DataGridView I have several columns - an id (a textbox column set with the ValueType of Type.GetType("System.Int32")), a priority, an image column (representing the priority with an image), and a few other text, date, and checkbox columns. When I first load my application, I read in the data from a DataTable in a DataSet, and create a new row in the DataGridView for each row in the DataSet. This allows me to select the right image for the image column based on the value of the Priority column. When the application shuts down, it does something similar - for each DataGridViewRow in the DataGridView, it extracts the data that needs to be written to the disk, ...Show All
SQL Server Bug in UPDATE statement and 1 : n cardinality ?
The problem is in one-to-many cardinality and UPDATE statement : ( SQL server 2005 developer edition ) create table #table1( id int, firstCol int) insert #table1 values ( 1,0) insert #table1 values ( 2,0) go create table #table2( id int, secondCol int) insert #table2 values ( 1,10) insert #table2 values ( 1,20) insert #table2 values ( 1,30) insert #table2 values ( 3,100) go ----------------------------------------------------------------------------- 1. shape UPDATE update #table1 set firstCol = firstCol +( select secondCol from #table2 where #table1.id = #table2.id ) return error message : Msg 512, Level 16, State 1, Line 1 Subquery returned more than 1 value. This is not permitted when the subquery follows =, ...Show All
Visual Basic Help again...need help with a code i do not know how to make
Hello,everyone again. I need help with a code i need to add the final touches to my lights out app,this is my problem I need to make a If then with all of these in it Button1.backcolor = color.black button2.backcolor = color.black AND SO ON TILL Button25.backcolor = color.black So i can make it If button1-25.backcolor = color.black then msgbox ("Congrats You have Passed the level,Please click on next to continue to the next level") End If But since button1-25 does not work,could anyone help me Thanks In Advance! yes that wont work because you are trying to take 25 away from button1 but thats invalid as you are dealing with a control object, not a numeric v ...Show All
Visual Studio VS 2005 Unable to start debugging. COM+ registry db detected system error
System information: Windows XP Pro, VS 2003 & VS 2005, Framework 1.1 & 2.0. When I try to run an ASP.NET applicaiton in debug mode, I get the following error message. "Unable to start debugging on the web server. The COM+ registry database detected a system error." Anyone else have this problem and found a solution for it I had the same problem. And i tried : " add ASPNET to the local administrators account and restart IIS. Problem went away. Removed ASPNET from the local administrators account, restarted IIS and problem did not reoccur" It works! Thanks a lot! ...Show All
Visual C++ Problems with SendInput(): clicking somewhere without moving the cursor
I'm having problems with emulating a click without moving the mouse cursor. I call SendInput() with the proper parameters, but the click only seems to be executed if I first move the mouse cursor to the click point. Is there any way to send a click message to an arbitrary point and have Windows execute it, or is clicking hardwired to the mouse cursor position Maybe you have to add an additional item to your SendInput parameter which will simulate the mouse movement to the old cursor position after performing the click ...Show All
SQL Server SQL Server Mobile 2005 Merge Replication Problem on Windows Mobile 5.0
Dear ppl, I am writing an application for a device (MDA Pro T-Mobile) having Windows Mobile 5.0 using -MS .NET Compact Framework 2.0 SP-1 -SQL Mobile 2005. -VS 2005 .NET The application uses Merge Replication. The error occurs in the Synchronise() Method of the SqlCeReplication object. " SQL Server Mobile encountered problems when opening the database." repl.AddSubscription( AddOption .CreateDatabase); repl.Synchronize(); I don't understand why I am having this error. It does create the database on AddSubscription() method but it is failing opening the database on Synchronise(). I have also tried uninstalling and then reinstalling all the SQL Mobile components in the following order. -sqlce30.wce5.armv4i.ca ...Show All
