leimiaomiao's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Microsoft Directx SDK
When I dont have any directx sdk installed, which should I download I noticed that DirectX SDK August has update behind it's name. And it has not all the same examples / tutorials as earlier sdk's. But when I download all sdk's from directx9, I have a lot of double data on my pc :( G'day! Though it says it's an "Update", it is actually a stand-alone package so you don't need to download any other DX SDKs. As things change samples are occasionally removed and new ones added. If you really need an older sample you can unzip the SDK archive that has it and copy out the sample code, you don't need to install it or keep the ...Show All
Visual C# Does the event Collapse in Contextmenu work?
The contextmenu provide event Collapse, but it seems do not work. I can write the eventhandler for it, but the code respond to this event can not be executed no matter which operation is processed. Is it a bug { ..................... ContextMenu buttonMenu = new ContextMenu(menuItems); buttonMenu.Show(button1, new Point(0, button1 .Height ) ); buttonMenu.Collapse += new EventHandler(buttonMenu_Collapse); } void buttonMenu_Collapse(object sender, EventArgs e) { //no chance to see it throw new Exception("The method or operation is not implemented."); } ...Show All
.NET Development datagrid related
Hello all, Plz help to rectify my code, its urgent public class Form1 ///// class 1 { form2.getProjectedtable(); } public class Form2 //// class 2 { getProjectedtable() { -------------- display a table in datagrid ---- } Public class Form3 //// class 3 { writing query like select * from table where abc>100 retrieves a row no result taken passed to form2 to highlight the row } datagrid is displayed when I call from class 1 now datagrid is open . simultaneously, when I am trying to highlight a row in data ...Show All
Visual Studio Team System All Unit Tests abort immediately
I've been using the TestManager extensively in Studio 2005 Team Version for months running dozens of unit tests as I develop. Recently, every time I try to run a unit test *in Debug mode*, it aborts immediately with no message. When I open the test results, all I get is this: Test Name: <test name> Result: Aborted Duration: 00:00:00 Computer Name... Start Time: 1/1/0001 12:00:00 AM End Time: (the real date time) That's it. Not a word more. And ALL unit tests are doing this, even ones that used to run just fine. If I just run them, they run fine, but I absolutely cannot run them in Debug mode! Very bizzarr ...Show All
Windows Forms Trouble drawing theme elements transparently
I'm trying to draw a windows theme element (the window close button, specifically) to an image, and whenever I do, the image has ragged non-transparent bits. I got this code from a sample that didn't do this (it was all owner-drawn, mine draws to an image.) Any idea why it won't draw with full transparency Bitmap output = new Bitmap(closeButton.Width, closeButton.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb); Graphics fx = Graphics.FromImage(output); IntPtr hTheme = OpenThemeData (Handle, "Window"); Rectangle rClose = new Rectang ...Show All
Visual Studio Team System Difference in build log output between VS 2005 Professional and VS 2005 Team Developer
When building with VS2005 Team Developer every line get prefixed with a number and > (below 1>). If a solution includes more projects the number is incremented for each project. What are these numbers for When we build the very same projects in VS2005 Professional we have the same output as in VS2003, without numbers. 1>------ Rebuild All started: Project: pstop, Configuration: Win32 Debug Win32 ------ 1>Deleting intermediate and output files for project 'pstop', configuration 'Win32 Debug|Win32' 1>Compiling... 1>pstopts.c 1>pstop.c 1>Generating Code... 1>Creating library... 1>Project : warning PRJ0018 : The f ...Show All
Smart Device Development Documentation Error or am I doing something wrong?
Hi, I have a PPC app which uses two things - a thread and control.invoke. After takeing the code running on PPC to a smartdevice project it tells me that thread.abort and Control.Invoke(Delegate, Object []) is not available. In the documentation I found for both functions .......Windows Mobile 2003 for Pocket PC, Windows CE, Windows Mobile 2003 for Smartphone So fromt this point it looks like they are available. Now what is wrong The documentation - my code something in the project Thanks in advance Manfred Hi Daniel, thanks for that matrix --- but then how about SQL-Mobile. I think one if the featu ...Show All
Visual Studio Tools for Office Server Data Scenarios
Hi We are going to migrate a windows app to a web app. The legacy win app used unmanaged code with COM interfaces in order to perform process like "MailMerge" on words docs (and other processes but the mailmerge is the main one). Well, with the new web app we are going to analyze a solution for the Office integration issues. We have not decided if to migrate to a server solution or to a client one. Scenarios: 1) Server with Office Primary Interop Assemblies. Advantages: data sources are locally on the server, template can be on the server. Disadvantages: PIA's are anyway COM wrapper, performances and scalability issues. ...Show All
Visual Studio Team System Checking in a "checkout" lock on a branch?
Wow this strikes me as odd. If I want to "lock" a branch, say a checkout lock, I then have to "checkin" that checkout lock. That's a tad confusing. I would have guessed that applying a lock was an immediate action like applying a label. I think we (if I may lump Keith in with myself) already do think of lock as a status on a file, which is exactly why showing a lock as a "pending checkin" is confusing. Every other SCC system I've used shows a "Status" column instead of a "Pending Change" column (current state versus future-state). In the case of VSTF, you're showing the future state in ...Show All
Windows Forms MDI Keystrokes
So I have a MDI application, all MDI child windows extend a MDI base form class so they all have common code. What I want to do is capture keystrokes and look for a special key event from a barcode scanner, when this keystroke is intercepted, I want to cancel the event and focus on a text control in my parent window (always docked on&nbs ...Show All
.NET Development Socket.EndReceive question - in which scenarios does it return 0 (zero)?
Hi, I have an application that works just fine. I am puzzled by the following issue though - in certain scenarios, Socket.EndReceive returns 0 bytes. According to the documentation, this happens when the remote host calls Socket.Shutdown or closes the Socket in another manner. Generally, I observe this to be correct . However, there are several types of apps (remote hosts) for which this does not hold (the code is not mine so I cannot see what these apps are doing). Even though EndReceive returns 0 (zero) bytes, the remote host is still connected (Connected property of the Socket is true). Not only that, but if I call BeginReceive agai ...Show All
Windows Forms System.Net.Sockets.SocketException when using the HttpWebRequest.GetResponse
Hello i keep gettign this error when i use this code Error: An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in system.dll Additional information: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full Code: Dim HTTP_request As HttpWebRequest Dim HTTP_response As HttpWebResponse HTTP_request = HttpWebRequest. ...Show All
Visual C++ help Any assistant for VC 2005
I get used to the assistant X, but found it not avaliable for 2005 version What kind of assist software do you use to program Thx If the Code Snippet Inserter is really important for you, please make sure to log your suggestion at http://lab.msdn.microsoft.com/productfeedback/default.aspx . It is always great to have such feedback! Thanks in advance for your suggestion. Thanks, Ayman Shoukry VC++ Team ...Show All
Software Development for Windows Vista The requested operation requires elevation.
I am connected to wireless network in my city. The problem is that when I want to connect to city wireless I need to add a route in Command prompt. In XP it works fine, but when I type this in Vista: route -p add 10.0.0.0 mask 255.0.0.0 10.46.2.1 I recive this message: The requested operation requires elevation. I realy need to do that, otherwise I can't access any page on wireless except 10.46.2.*. Try to run the Command Prompt with elevated privileges before running the "route" command. Simply right-click the "Command Prompt" and choose to "Run as Administrator". ...Show All
Smart Device Development How to hard reset WinMobile 5.0 device?
Hi Friends, In my application i am hard resetting WinCE4.2 and WinMobile3.0 devices by calling APIs SetCleanRebootFlag and KernelIoControl. It is documented that these APIs call will not work for WinMobile 5.0. For hard reset WinMobile5.0 i am calling ExitWindowsEx API but it only soft reset the device. How to hard reset WinMobile5.0 device . Thanks, Ram Did you take a look here http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=210095&SiteID=1. Thanks ...Show All
