dni's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Host you tutorials and downloads with us!!!
Hey everyone!!! I just want to let everyone know that we have a new resource site at http://www.xnaresources.com and we would be happy to host any tutorials people have written or any file downloads for source code and projects... Just drop us an email at contact@xnaresources.com and we will post whatever you need posted. Thanks, I posted a link to your tutorial this morning... I also wrote up a little blog article about it... The link is in our links directory under the games section and tutorials section. Thanks for the heads up! Jason Jaegers www.XNAResources.com ...Show All
Windows Forms Drawing multiple circles
Hi, I want to draw more than one circle say for example 8 I know i can draw circles with the use of the following code Graphics g = this .CreateGraphics(); int x = 100; int y = 100; int r = 10; g.DrawEllipse( new Pen ( Color .Lime, 5), x - r, y - r, r, r); g.Flush(); g.Dispose(); but what i want is more than one circle. Also after i have drawn them how can i make say 7 hide and one visible with the timer set. would i have to use another interger or a string and assing it to graphics g=this.CreateGraphics() function and then on form load say that the interger has to be hidden. Could someone please help. Also please bear in mind i am a begginer so could you direct me step by step please Th ...Show All
Visual C++ fatal error C1189: #error : WINDOWS.H already included
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxv_w32.h(18) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h> Any suggestions Thank you. There is explicitly the answer in the error message: Remove any include of windows.h before you include MFC the headers (starting with afx). Best practice: include the MFC headers first. Than you don't need the windows include file. ...Show All
Smart Device Development Unable to play video files in WinCE 5.0 device using IGraphBuilder and IMediaControl
Hi all, Happy new year to all. I am trying to a play video file on my WinCE 5.0 PocketPC device using IGraphBuilder and IMediaControl interfaces, Using there interfaces i am able to play only avi files on emulator but not in my device(IMate KJAM with Windows CE 5.0). When i tried it on device for wmv file i got 'VFW_E_CANNOT_RENDER' error code on calling RenderFile(). Please tell me how to play other video formats like wmv, mpeg etc. Should i use different filters to play them, if so what are they thanks in advance , Mahesh. :-) ...Show All
Visual C# Fast searching of a byte array
Can anyone provide guidance on what would be the fastest method of searching a large byte array for some particular sequence of bytes I know I could convert it to a string and do an IndexOf but I would like to avoid that. Any ideas if you were looking for the bytes 03 02 01 in the following array: 01 01 02 02 03 03 03 02 01 01 01 02 02 02 03 03, if you sorted that array looking for (also sorted) 01 02 03 you'd now not find any matches in: 01 01 01 01 01 02 02 02 02 02 02 03 03 03 03 03 ...Show All
Visual C# Application no longer starts up.
Having problems starting my application in C# VS2005 - All the projects in my solution compile OK but when I start Debugging (F5) the application exits before starting up. 'VICTER4.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'VICTER4.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'VICTER4.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GA ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Are multiple SpriteBatches necessary?
I"m currently working on a tile-engine demo, and a single spritebatch all of my drawing. Are there any advantages to using multiple spritebatch objects If yes, what is the criteria for determining how to break it down Using a single spritebatch should generally be fine. The main issue to do with sprite performance is how many times you call begin and end on the batch, and the sorting of your sprites within each batch. For optimal speed you should use a single begin/end pair for as much drawing as possible, and within that block, draw sprites ordered by their texture. If that's hard for you to achieve, you can tell the sprite batch to sort them by texture for you (but that might be slower ...Show All
Windows Live Developer Forums Virtual Earth 3d install
This may not be the place, but I can not find help anywhere for my problem. The Live.Mail group referred me here. My problem is that when I open and select the 3d map, the 3d objects are represented by a blue silhouette and never fill in the object. I went through the acceleration settings, FAQs, etc. to no avail. I am running XP Pro, IE7, 3.2 GHz P4 CPU, 1 mb ram. When I originally installed VE, I had my default browser set to Firefox 2.0. I reset my browser to IE7, uninstalled and reinstalled VE. I saved it to disk, also ran it from the site all to no avail. During the original installation, I also installed Live Local for Outlook. This seems to be OK so I left it as is. I noticed the map was taking a minute to load ( I have 768 kbps DS ...Show All
SQL Server Merge agent login problem
I have a push merge replication up and working in development SQL Server 2005 (publisher) and SQL Express (subscriber). Because the upgrade from 2000 to 2005 for our production servers has been delayed for who knows how long, I am working to set the same replication up with 2000 and MSDE. The merge agent is failing in 2000 with the error: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. (Source: MSSQLServer, Error number: 18452) The 2005 merge agent runs fine. I think it is because the 2005 subscription wizard allowed me to set the 'Run as: SQL Agent Service Account' option, instead of a windows authentication uid. There is no opportunity to set this in the 2000 subscription wizard nor o ...Show All
Visual Studio Express Editions About Mutex veriable
Hi, I have a problem in mutex veriables Actually I want to create a mutex variable and use it in another aplliaction which I have to run from current application. So How should I create the mutex variable and use that in other application and also how should I run another exe from a current application Pls help me out waiting for reply Thanks, Nilesh Hi, I just tried whatever u told me. but when I am trying to use hmtx = OpenMutex(NULL,FALSE,conMTXNAME); the hmtx gets null value can u pls suggest me for this and one more thing to ask u... how should I get the actual value of conMTXNAME in other application its not clear to me ...Show All
SQL Server datatype map - Native ODBC driver
Hi, Our software uses native ODBC driver and Visual C++ 2003 to communicate with SQL Server 2005. SELECT xml_schema_namespace(SCHEMA_NAME(schema_id) ,name) FROM sys.xml_schema_collections. SQLDescribeColW returns -152 as the datatype for the column in the above select statement. However, I’m unable to find a preprocessor definition for -152. The datatype looks like an nvarchar. Is it an nvarchar Where can I find the definition for this datatype I have discovered similar problems while bringing back SQL_VARIANT types. The returned subtype of a SQLVariant comes up with -16 and -25. I cannot find definitions for these sub types either. Any help is appreciated. Regards, Venkat ...Show All
Microsoft ISV Community Center Forums API Used in VBA
Hi Friends, I want to know what APIs acn be used in VBA Programming. Can U help me Thnaks You can use any APIs in VBA that you could use in VB6. If you know which one you want, search google using the API name and VBA or VB6. I'm not sure if .Net versions are compatible, but those are worth a trip to google too. (Google is one of my favorite programming tools, BTW.) ...Show All
Visual Studio Express Editions ContextMenu Question
hello, Assume i have a contextMenu (pops when i click a notifyIcon) wich shows a submenu. Inside the submenu it parse some files from a directory. Now i'm looking to make a event for when i click on of those items inside the submenu (names of some files) and shows the index number. Anyway to do this thnx kevin Hi, Add SubmenuNameToolStripMenuItem.Click += new System.EventHandler(this.SubmenuNameToolStripMenuItem_Click); And then program in this event to do whatever you like. (SubmenuName is the name of specific item in the menu) Thanks ...Show All
Visual C# Mathematical question !!
Hello, Can any one sort this complexity from worst to good O(k) O(k n) O(k n2) O(k 2 n ) O(k log n) O(k (log n) 2 ) Thanks a lot Why does this sound a lot like a homework question The best way to handle this is to substitue real values for K and N, and see what numbers you get. K is a "Konstant" and for large values of N, becomes irrelevant, so we can use 1 for K. N will vary depending on the data the algorithm is to process, so just pick a suitably high number of N. 100 should do. THen just order the list. "Worst to best" would be Highest to lowest. O(k) = O(1) = 1 O(k n) = O(1 * 100) = 100 You are on your own for the rest. ...Show All
Visual Studio Express Editions Order Tables Ascending in DataSet
Hey there, I have a problem cause I don't know how to order tables ascending within a dataset, so I need to know how can I do that, I have for example these tablenames within a dataset in this order: "0050Colors" "0021Cars" "0120Symbols" "1008Field" "0215Country" that's the order in what the tables are added into the dataset, and I need them in the next order: "0021Cars" "0050Colors" "0120Symbols" "0215Country" "1008Field" So what would be the code, to order the tables in that way, please help, thanks!!!. Do the tables have to be in an alphabetical order in the da ...Show All
