Gus Crawford's Q&A profile
Visual C++ Cannot make cyclic reference to value classes through arrays (C++/CLI)
Here is an example: ----------------------------------------------- value class Class2; value class Class1 { public: void method(array<Class2>^ arr); // Error (use of undefined type) }; value class Class2 { public: void method(array<Class1>^ arr); }; ------------------------------------------------ Although Class2 is pre-declared, the compiler throws a "use of undefined type 'Class ...Show All
Visual Basic How to pause execution in a Form?
DOes anyone know how to pause execution in one form/method until another form/method is through then finish its own program. I want to be able to switch to another form, run some execution, then take the results to pass back to the original form and let it finish execution. WHen I try it, it will switch over and even pass info back, but the original form will fishish its sub-routine with out waiting for the results. Know it sounds confusiong. ...Show All
Visual Basic shDocVw.dll in VB.Net 2003
Hello in there... I'm having a small problem that's eluding attempts to resolve. I'm creating HTML in BuildCreateExportFilesResults(), which I'm writing to a file on the local hard drive. I want to display it in the shDocVw.webBrowser, but I can't make it work. Here's the code: Public Sub DisplayCreateFilesResults() Try m_strMsg = "" m_strMsg = BuildCreateExportFilesResults() '<-- creates a HTML page ...Show All
Visual Studio Team System schedule "Get Latest version"
Hi! Is there any way to schedule "Get latest Version" using Scheduled Task in Control Panel or some other tool in VSTS You could write a batch file which called the command line client (tf.exe) and then run this as a scheduled task For more information on the "tf get" command, see http://msdn2.microsoft.com/en-us/library/cc31bk2e.aspx . Another alternative would be to install CruiseControl.NET with the TFS Plugin ...Show All
Visual C# How to convert Image files to stream...
Hi, How to conver an image files like bmp, jpg, gif, tiff, etc into Stream or MemoryStream. The image may be from local disk or database like Northwind. Cheer. Image image = Image.FromFile( @"c:\image.bmp" ); using (MemoryStream stream = new MemoryStream()) { // Save image to stream. image.Save( stream, ImageFormat.Bmp ); } ...Show All
Windows Forms Drawing too slowly
So, I may just be overlooking something simple here, as I am pretty new to GDI+. But I basically have a form, with a panel, and on the panel I'm drawing simple black and white squares, etc. The squares represent the result of s ...Show All
Visual C++ Need construct for member relative location placement in huge structures
Here is the problem : I have this huge structure whose members have address restrictions (e.g. member x starts from relative address y from the base pointer B). The address restricted members(from base) are needed to satisfy the hardware device register specification of the device. For example, typedef struct _DeviceRegMap { struct PCIDeviceHeader PDH; // Bytes 0 - 199 &n ...Show All
Visual C# Question about objects behavior
I have a Class called animation. This Animation has a member of type Bitmap. It also has an arraylist member that holds objects of Frame type. When creating a frame object, a parameter of the constructor is the bitmap which is passed in as the Bitmap object that is part of the Animation class. Some operations need to be done on the Bitmap for the entire animation and thus these are performed by the Animation class. ...Show All
Visual Studio MS SCC API v1.2
We are a 1.1 licensee of this API and use it in our IDE for embedded system development. We recently encountered a SCC provider using the newer version 1.2 version of the API and would like to able to support it. Can you provide some information or a contact at MS that we could use to get this newer version of the version control integration API Thanks and best regards. Rick Paradigm Systems rick_at_devtools_dot_com ...Show All
Visual Studio Express Editions No joy
Before running the latest version of the Express Cleanup Tool my VB Express Beta 2 install would fail with a message saying I had to uninstall previous versions of VB Express and MSDN. It gave this same message after de-installing everything and running previous version of the Cleanup Tool. Now, after running the latest Cleanup Tool the VB Express Express Beta 2 still fails, but it lists only a previous version of VB Express as needing to ...Show All
Visual Studio Express Editions Not a member
Results' is not a member of 'Working_Week_2_Coding_Assignment.Form1'. Why would I get the error message madref I would recommend scrapping this project and reading a basic, beginner book. It seems to me that you're not yet at a level of being able to read this code, if you were, you'd be able to see that you're creating a number, and using it without ever giving it a value apart from the default, which is 0. You certainly did ...Show All
Smart Device Development USB CDROM on Windows Mobile 5.0?
Does anyone know if it is possible to connect a USB CDROM to a PDA running windows mobile 5.0 I can see it supports ATAPI drivers for a CDROM (but that's not via USB) Not sure for a CDROM mass storage device Thanks Chunda This forum is dedicated to device emulator. Please post to relevant news group instead: http://support.microsoft.com/newsgroups/default.aspx Closing as off topic. ...Show All
Visual Studio Team System FxCop 1.35 and static class methods
First let me say that I really appreciate all the work done on FxCop. Its a very helpful tool. However, the integration into VS2005 needs to be back-ported to VS2003. it does not have to be "exactly" like 2005, but it can come close. Here are a few ideas on how this can be accomplished. 1) Provide an AddIn that gives the user a context menu for the projects so code analysis can be run. Sure, you can put it on the "Tools" menu, but that is ...Show All
Windows Forms OnPaintBackground method
I have a form with a panel. I want to control the back ground painting of the panel, but I don't want to create a custom control to do this. So how do I override the OnPaintBackground of the panel Thanks for your help!... Derive a class from Panel and then override the virtual method. public class MyPanel : Panel { public override void OnPaintBackground(...) { ... } } Phil Wright http://www.co ...Show All
Windows Forms Implementing copy and paste for multiple cells in datagrid
Is there a way to implement copy and paste for multiple cells ie. like excel, where I can select a group of cells and paste it into another spreadsheet. I'm looking for some way to maybe copy a set of data from an excel spreadsheet then pasting it into my datagrid in my form. When I do that now, it pastes all the data into one cell and not over the required number of cells. Any help would be greatly appreciated. Thank you. ...Show All
