amendez's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. DirectDraw Deprication
What exactly do Microsoft mean by depricating DirectDraw Do they mean DirectDraw will be completely removed in the next DirectX release If so, what are the alternatives That's a kick-a$$ book for 2D game programming. Microsoft will always care about backward compatability with games, so you can expect previous dlls to be there. It just may not run as fast as it use to on OSes past Vista. As the book expects you to do after you read, do move your foundation to either Direct3D/OpenGL. ...Show All
.NET Development CLR and thread deadlocks
Hello, I'm hosting the CLR (.NET 2.0) in an unmanaged C++ app. The CLR is used for calling C# plugin functions through IDispatch. The C# plugins are COM visible classes and are created from the app main UI thread. They are mostly used for accessing the app through a COM primary interop assembly generated with TLBIMP.EXE. The interop between C# and the app is achieved through the default Microsoft COM wrappers. This is all working fine but I'm having a problem when the C# functions are called by the app from a worker thread. At this point the CLR attempts to interop with the app via the UI main thread which is causing a deadlock because that thread is locked while the worker thread is executing. From what I see in the call stack (b ...Show All
Visual Studio 2008 (Pre-release) August CTP of ADO vNext
Pablo Castro just annouced the August CTP for Ado vNext. You can read about it at http://blogs.msdn.com/adonet/archive/2006/08/15/701479.aspx or download it at http://www.microsoft.com/downloads/details.aspx FamilyId=B68F6F53-EC87-4122-B1C8-EE24A043BF72&displaylang=en . The initial documents do indicate that LINQ to Entities is supported in the CTP. Give it a try and let the teams know what you think. Jim Wooley http://devauthority.com/blogs/jwooley Anytime I try and install anything from the links posted or the ones I find they all say they need ADO.Net vNext August 2006 CTP. See screenshot below. Can someone please send me the file or provide a link. Email = darren_dugan@hotmail.com Many Than ...Show All
Visual C# Exclude element from foreach index (MenuStripItem) HELP!
Hello! I have a foreach loop. How can I exclude one of the elements from being indexed: I have a foreach loop setting a property for each of the items in a ToolStripMenuItem category, but one of the items is a ToolStripSeperator, and I would like to exclude it so the foreach loop would set the property for all of the items EXCEPT the toolstripseperator. How can I do that Matt No, it will not throw an exception (that's the whole point of using the as operator) and it will not add any extra overhead compared to calling GetType for example. As a bonus, it will work for classes derived from ToolStripMenuItem too, whereas your solution does not. ...Show All
Windows Forms Datagridview dynamically added cell contents removed after sorting
Hi all, I just started a very simple tool which should create some resource files for me. For the moment it is just a form with a datagridview and only this code: private void Form1_Load(object sender, EventArgs e) { DataSet bitmapSet = new DataSet(); bitmapSet.ReadXml("bitmaps.xml"); dataGridView.DataSource = bitmapSet; dataGridView.DataMember = "bitmap"; DataGridViewImageColumn bitmapColumn = new DataGridViewImageColumn(); bitmapColumn.Name = "bitmapColumn"; bitmapColumn.HeaderText = "Bitmap"; dataGridView.Columns.Add(bitmapColumn); dataGridView.Columns.Add("widthColumn", "Width"); dataGridView.Columns.Add("heightColumn", "Height"); for (int i = 0; i &l ...Show All
Visual Studio 2008 (Pre-release) What is Indices attribute in Glyphs tag in XPS document
The XPS specification says Glyphs tag is used for displaying the text, and it has a attribute called Indices which holds a encoded string. Is this tag mandatory Does this string directly maps to the text in the Glyphs tag If yes how is this string generated Is it UTF16 representation of the text -Parag The <Glyphs> element provides both the UnicodeString and Indices attributes. These are described in sections 5.1.3 and 5.1.4 of the XPS spec, available here . You should always specify the UnicodeString, but you may also (optionally) specify the Indices attribute. This string is a semicolon-delimited list of GlyphMapping entries that map one-to-one to the UTF-16 code units in the ...Show All
Visual Studio Team System Multiple vsmdi files
Hi, We are getting multiple vsmdi files.Everytime someone runs a unit test the solution is automatically checked out and a new vsmdi file is created using the naming pattern MySolutionName1.vsmdi, MySolutionName2.vsmdi, etc. I've compared the files and they are the same. They live in the solution root and always have. The workaround that we have is to undo checkout on the files in question and then it works fine unti one next restarts the IDE. Any ideas anyone else getting odd behaviour with vsmdi files I've C&P'd the XML contents below: < xml version="1.0" encoding="utf-8" > - < Tests > < edtdocversion branch =" retail " build =" 50727 " ...Show All
Office Live Development Web site user authentication and Data Sharing
I'm building a workspace application for my client base to use in their own Office Live sites. It holds extra data for my clients' projects that are associated with particular opportunities. For example, the workspace includes XML parts lists and JPG design images, each referencing an Opportunity ID in the WebBCM. This works nicely in-situ - I have a Dashboard for this workspace that allows me to select the relevant Opportunity and show the associated design images and renders the XML parts list through XLST. What I'd now like to do though, is for my clients to be able to share the images with each customer. The customer should only be able to see the images that are relevant to them. I may want to add other data from other lists too ...Show All
.NET Development Sending an activation code to validate email
Hi all, I have searched the internet for help on how to set up an activation link via email that will change a validated field in a newsletter table. I understand two fields will be required in the members table (validated & GUID). I understand that the guid would have to be sent via a hypertext link pointing to a page on my web site whose sole purpose is to validate accounts. How would I go about retrieving the GUID per account, send the email (know how to do) with the GUID in the link to the verification page. How would I handle the GUID (which is now a link a presume - www. blablahblah.com/verify.aspx 12341234 ) as link to change the Validated Field to true. Help would be most appreciated Eric Cann ...Show All
Windows Forms BackgroundWorker
I am not sure how I need to procede. I am using BackgroundWorkers to handle some long running tasks. I have a button that allows the user to stop the form. The stop button disposes of the timer. I use cancelasync with the BackgroundWorker, but the RunWorkerCompleted still fires. I tried using BackgroundWorker.CancellationPending to prevent the RunWorkerCompleted code from firing and it doesn't register that the BackgroundWorker has been cancelled. Is it possible to solve this problem The RunWorkerCompleted will still fire. Just use e.Cancelled to determine whether the run was cancelled. ...Show All
SQL Server may i plz know about to transfer excel data to SqlServer2000
may i plz know about to transfer excel data to SqlServer2000 ...Show All
SQL Server SQL Buffer Cache empty -- SQL 2005 Dev Edition
Can anyone tell me how and why my buffer cache would contain 0 items in it Same query similar database different hardware but same scheme as SQL 2000 equivalent is peforming 10X faster than index optimized version on SQL 2005 and using database snapshot. Is this possibly a configuration problem on my end I did not completely review the undocumented DBCC CACHESTATUS command result. I reverted back to using good old syscacheobjects. However I still don't know why select statements especially those using TOP clause performs much slower in 2005 than in 2000. ...Show All
Internet Explorer Development windows xp temporary files
I have 2 machines - one runs xp professional and one runs xp home. Both have 1gb of memory. Why does the xp home machine create over 18mb of temporary files with names like chm109.tmp/2430.htm in the windows temp directory but the xp professional machine either clears or does not create them. Tried deleting files from previous days (thousands are created) and running norton cleanup but getting frustrated at having to do so. Is there a configuration error or corrupted file on xp home based machine. For information machine is p4 3.4Ghz with 500gb disc space. Any advice or explanations helpful. ...Show All
Microsoft ISV Community Center Forums Refer to another module tag
I have a small problem that is of greate importance to me and seem to have a hard time getting any help. I have two modules. in the first module i have code that creates buttons. if a button is pressed then a sub in ANOTHER module is called. that works fine. in that sub i want to check which button has been pressed. therefore i need to look at the tag for the button. it is here that my code fails. i do not know how to do this when the button is created in another module than the sub. that is all i am asking. My code for the first module: Public Sub Create_Menu() Dim MyBar As CommandBar Dim MyPopup As CommandBarPopup Dim linjeDiagramKnapp As CommandBarButton Dim stapelDiagramKnapp As CommandBarButton 'stapeldiagramknapp Set s ...Show All
Game Technologies: DirectX, XNA, XACT, etc. ID3D10Counter usage
I'm trying to test Counters, with some problems. Here is a code snippet: const int nCounters = 5; const D3D10_COUNTER type[ nCounters ] = { D3D10_COUNTER_GPU_IDLE, D3D10_COUNTER_VERTEX_PROCESSING, D3D10_COUNTER_GEOMETRY_PROCESSING, D3D10_COUNTER_PIXEL_PROCESSING, D3D10_COUNTER_OTHER_GPU_PROCESSING }; int Value[ nCounters ]; ID3D10Counter *Counter[ nCounters ]; for ( int i=0;i< nCounters ;i++) { D3D10_COUNTER_DESC d = { type[ i ], 0 }; HRESULT h = pDevice->CreateCounter( &d, &(Counter[ i ]) ); if (FAILED(h)) throw i; } The counter creation failed when the third counter is created (I tried permutations) with the following error: First-chance exception at 0x767edde0 in ezDXUT2console.exe: Microsoft C++ ex ...Show All
