Yow-Hann's Q&A profile
Visual C++ Program runs slower when compiled with Visual Studio 2005 (in Release with optimization)
Hey, I have a performance problem with the new Visual Studio 2005. My code (which is a genetic algorithm) is 3 times slower when compiled under Visual Studio 2005 compared to when I was compiling it under Visual Studio 2003. With Visual Studio 2003, it used to run in 3.0639 seconds, and now it runs in 9.0031 seconds. I run both code in Release. I tried every optimization option, and adding the /D_SECURE_SCL=0 compiler command to the project options with only minor differences. Is there any other way to get back to the speed Visual Studio 2003 It is a bit absurd to upgrade to a new compiler and get lesser performances. Thanks a lot!!! Antoine ...Show All
Visual Studio Class not registered - DTSConnection
I have created a number of reports on my local machine which work well. These have been incorporated into our web site. When the reports are run on our development machines they can be seen. When we made the site available on our web server then the error “Class not registered – DTSConnection” is given. I have not been able to solve this problem. Can any one help Server Error in '/' Application. Kencol, Did you ever get this resolved I am getting the same error on a windows app trying to run a crystal report. I would appreciate any info about a solution on this or even things you have tired that have not w ...Show All
Visual Studio Express Editions Debugger & Forms Designer in Beta 2 fails
I was using C# Express Beta 1 for long time, today I installed C# Express Beta 2 but after that I can not create WindowsForms project or open WinForms/Project Settings/Resources When I try to create new WinForms project I get warning as follows Package "Visual studio Settings and Project Designers package" has failed to load properly ( GUID = xxxxx) .... Would you like to disable loading of this package in future ..... <Yes> <No> Ignoring this, Now when I try to open WinForm class (From newly created project) I get following error Could not load type " Microsoft.VisualStudio.Shell.Interop.IVsRunningDocumentTable2 " from ass ...Show All
Windows Forms Invoking a Stored Procedure with a Parameter by SQL String
Invoking a Stored Procedure with a Parameter by SQL String. ----------------------------------------------------------------------- (VB.NET, Windows Forms) How to invoke a Stored Procedure with a Parameter by SQL String In Microsoft Access works this way: Private Sub cmdRunQuery_Click() Dim db As Database Dim qdf As QueryDef Dim strSQL As String Dim i As Integer Set db = Cur ...Show All
Software Development for Windows Vista Page
How can I set the page size and other PageSetup parameters when creating and printing an XpsDocument PrintTicket pt = printQueue.UserPrintTicket; pt.PageMediaSize.PageMediaSizeName = PageMediaSizeName .ISOA5; seemed like the obvious thing but it is readonly. Thanks Michael penny finally dropped. :) PrintTicket pt = queue.UserPrintTicket; pt.PageMediaSize = new PageMediaSize ( PageMediaSizeName .ISOA5); but the following return nulls:- Double printableWidth = pt.PageMediaSize.Width; Double printableHeight = pt.PageMediaSize.Height; Shoul ...Show All
Software Development for Windows Vista Host Workflow in Windows Service
Is it possible to host workflow in windowsService if possible how You can do this just how you'd host it on any other kind of executable. Basically you'd create an instance of the WorkflowRuntime engine in your service as part as your OnStart operation. Any of the basic workflow hosting samples should get you started on this, or even just creating a basic Console Workflow project to see the basic code necessary. You can also configure any necessary workflow services you require on your engine by using the app.config file or by using code (runtime.AddService()). ...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 //put fillers here as the next structure should always //start 300 bytes (absolute) from the base of this structure BYTE filler[100]; ...Show All
Windows Forms png images
cool application. Is it possible to save the images as png images instead of jpg Thanks The code that saves the jpeg image is in the <b>SavePhoto</b> method of the <b>upload\Publish</b> class. This calls <b>JpegQuality.Save(path, image, _quality)</b>, you can replace that call with <b>image.Save(path, Imaging.ImageFormat.Png)</b> to save to the ...Show All
.NET Development Possible to add to a strongly type collection, an item of not the same type?
In 1.1 given a collection w/c accepts only a specific type, is it possible to add an item that isn't of the same type ex. public class myType { public int myField;} public class MyCollection:CollectionBase { public int Add(myType m) {return List.Add(m)} ... } You can add items of that specific type or a derived type. If you have class A {...} class B : A {...} class C {...} and the collection that has the following add method: Add(A a); then you can do the following: A a = new A(); collection.Add(a); B b = new B(); collection.Add(b); but you cannot do C c = new C(); collectio ...Show All
Visual C# foreach loop to loop all the text box in a form
I am new to C#, I am hoping that can anybody teach me how to use the foreach loop to loop throught all the text box in a from. Thanks. Hi, Use following loop. foreach ( Control c in this .Controls) { if (c.GetType().ToString() == "System.Windows.Form.Textbox" ) { ...Show All
Windows Forms Date Time Picker
Hi, Anyone know how to format the Date Time Picker in C# to shows MONTHS only Hi, Sorry, please allow me to ask more, can you guide me more details on how to traverse the list view items and create the loop Thanks. ...Show All
Visual Studio VS2005 Team Suite Beta 2 fails to install on clean SBS 2003 system
I have been trying to install VS2005 Team Suite on my SBS 2003 system for some time without success. Despite having removed almost everything from the system it still says: "A failed installation has been detected. Press OK to uninstall the product. Then retry installing." I ran the VS2005_Beta_Cleanup_tool successfully to no avail. After repeated attempts to cleanse the SBS2003 system of all remnante of previous VS2005 installed, I decided to quick format the hard drive and reinstall SBS (including Share Point) and Exchange. Applied all of the windows updates and ran the VSTS 2005 install. First time installation faile ...Show All
Visual Studio Team System Application types
Is the list of application types and endpoints in Application Designer now the defiinitive list for Version 1 Can I define and add my own types into this Hi Ian, This is the final list for version one. You can define new types in a couple of ways. If you want to customize one of the existing types, you can create a prototype. For more info, see http://msdn2.microsoft.com/library/ms181862(en-us,vs.80).aspx If you want to define a new type, you need the SDM SDK. You can find the download of that here: http://lab.msdn.microsoft.com/teamsystem/workshop/sdm/default.aspx Thanks, Elona Tuomi Team Architect User Education ...Show All
SQL Server duplicated data display
Hi all. i have the following function below,which use to retrieve the order detail from 2 table which are order detail and product. i have many duplicated order id in order detail, and each order id has a unique product id which link to product to display the product information. however when i run the following function below . its duplicated each product info and dsplay in the combo box. May i know whats wrong with my code Public Sub ProductShow() Dim myReader As SqlCeDataReader Dim mySqlCommand As SqlCeCommand & ...Show All
Visual Studio Team System When I get a specific version why does the contents of Source Explorer change?
The objective of the Source Control Explorer is to display the contents of the TFS repository; is that correct Therefore the folders pane should show the current folders in the repository for my Team Project and when I select one of these folders the right pane should show the current contents of that folder in the repository. By 'current' I mean 'latest version'. Given the above, I find the following behaviour strange... I copy a specific version of my Team Project's source code into my workspace (select the Team Project folder in the folders pane, right-click | Get Specific Version). Although this does not change the TFS rep ...Show All
