Minherz's Q&A profile
Visual C++ Problem compiling an ADT using istream &operator>>
I keep getting a "error C2143: syntax error : missing ';' before '&'" error for the following code fraction.h..... #ifndef FRACTION_H #define FRACTION_H #include <iostream> #include <cstdlib> //for abs() //#include <iostream.h> #include "fraction.h" using namespace std; using std::istream; using std::ostream; using std::cin; using std::cout; /************ Type definitions for ADT Fraction ************/ typedef enum { POS, NEG } SignType; class Fraction { public : int numerator; /* numerator and denominator are declared as */ int denominator; /* int to simplify the algorithms, but they */ SignType si ...Show All
Visual Basic Webpages Not Linking Up
I cannot link up the webpages from various websites. While i'm on a webpage I press the back button to go back to the main webpage or any other previous webpage and it won't go back it get's stuck and also the back button isn't shaded-in on the toolbar. Any ideas what's wrong ...Show All
Visual Basic Dynamic drawings in VB.Net
Hi, Is there any VB.Net equivalent to the vbXorPen and vbNotXorPen options of the DrawMode property in VB6 These options were very usefull to create dynamic drawings. Thanks by advance, Pierre Your drawing routine makes sense, you're just doing it in the wrong place. If you draw the contents of the array first in the PictureBox.Paint event handler, then do the blue elipse code, you'll get the elipse floating above your other drawing. To get a Graphics object for a bitmap, use: System.Drawing.Graphics.FromImage( myBitmap ) where myBitmap is an initialized bitmap variable (e.g. Dim myBitMap As New BitMap(48, 48)). ...Show All
SQL Server Spurious Errors With Package Execution on Local Machine
I am having strange errors with a package when running locally that has not been an issue before. The main symtom is that several Data Flow Tasks are either not inserting records on the destination or are only inserting 1 single record before the package errors with the error shown below. Strangely, the debugger will show X # of records from source and destination, but either no records are actually written or, again, in many cases, only 1 single record is written. This is very strange. App, System and Security logs yield no indication of security or other errors. All I have to go on is the above anomolies and the error message provided below. Below is the error message, can someone help me decrypt it Many thanks, Rick ...Show All
.NET Development Can threads programatically be targeted/scheduled/preferenced to specific CPUs in .NET?
I have not so far been able to dig up anything on whether it is possible to create and start a thread on a specific CPU (on a multi-CPU/Dual Core type system), via .NET's system libraries. I just obtained a machine with a dual core processor, and, well, cool, Windows task manager now provides dual performance gauges for the 'twins' and has a new context menu item...for setting the 'affinity' of any given application for an available CPU...Since windows provides such services, I was thinking probably there are system calls that programs can utilize to obtain comparable funtionality, but within a single app domain (seperate threads within the app). Maybe the individual targeting of a CPU is only supported on an application wide basis...but i ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How can we edit the .wav file by using XACT
Can we using XACT do a sound editting for example like just select a period of sound in the .wav file or can we create a new .wav and edit it ...Show All
Visual Studio Express Editions Different Coloured Brushes
How do I change the brush colour so that each square is different I was thinking of using an array, Dim arrCol() As String = {"Red", "Yellow", "Green"} but string can't be converted to system.brush. I tried Dim arrCol as System.Brushes, but that doesn't work either. So any ideas please. Here's the code, Dim B1 As New Bitmap(146, 92) Dim G1 As Graphics = Graphics.FromImage(B1) Dim PB As New PictureBox Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim X, Y, W, i As Integer X = 0 Y = 0 W = 128 For i = 1 To 40 G1.FillRectangle(Brushes.Blue, X, Y, 16, 16) X += 18 If X > W Then X = 0 ...Show All
Windows Forms Suppressing Checkboxes for some nodes in a TreeView
The web version of the TreeNode class has a ShowCheckBox property. The Windows version does not. Is there a workaround to hiding checkboxes for some items in a TreeView I need to suppress showing the checkbox for the root nodes in the tree. Thanks, Paul Whitaker Technically, it is possible by setting the DrawMode to OwnerDrawAll. Practically, it is not; you have to draw the nodes as well as the checkboxes, a large undertaking. As an alternative, consider using the checkbox for the parent node to indicate the state of the child nodes. A tri-state checkbox would be useful for this, check out this project . ...Show All
SQL Server SSIS Performance 32 Bit V 64 Bit
I have been working on a project last few months. I have developed the project on my laptop, which is resonably powerful. It runs through fine within 9 mins with sample data set. If I replicate the same environment on a 64 Bit machine with 32 Bit Win 2003 and SP1, it takes just over 7 mins. If I rerun it on a 64 Bit machine with 64 Bit Win 2003, it takes between 21 and 24 mins. We are executing the packages via dtexec on a command prompt. Has anyone seen same behaviour Thanks Sutha > If I rerun it on a 64 Bit machine with 64 Bit Win 2003, it takes between 21 and 24 mins. Try running it on same machine under 64-bit Windows, once using 64-bit dtexec.exe from "C:\Pr ...Show All
.NET Development httpwebresponse.getresponsestream() not working :(
I have a problem using HttpWebRequest/Response, GetResponseStream() will never return a readable response, even though the complete response came through to the client side. Content-Length, encoding etc are all set in the response, but when i put the contents of GetResponseStream() in a stream or a streamreader, they are non-readable and return the error "Stream was not readable". Here is the code i use: HttpWebRequest web1 = ( HttpWebRequest ) WebRequest .Create( http://my.test.server/data ); web1.ContentType = "application/x-www-form-urlencoded" ; web1.UserAgent = "Mozilla/4.0 (Windows XP 5.1) Java/1.5.0_07" ; HttpWebResponse resp1 = ( HttpWebResponse )web1.GetResponse(); Stre ...Show All
SQL Server update 2 servers same database....
I have 2 servers using same database, Example: SERVER1\MSDN and SERVER2\MSDN I need to update msdn database customer table. When I add 1 customer server1, msdn databases then same customer have to automatically update server2 msdn database customer table. Is that possible to do that How can I do that I need to do that with out using sp, triggers... If you don’t want to use sp or triggers you will have to setup replication between the instances / servers. HTH; Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server Parent Child hierarchy
I have a standard P/C hierarchy that works fine when used in AS2005 and in Pivot tables. When I try to use it in a report, the hierarchy is automatically expanded. I tried using a calculated member: [Customer].[Parent Company].CurrentMember.Parent.MEMBER_CAPTION This returns the parent name but how do I change the 'ALL' to the Customer names that don't have a P/C relationship TIA ...Show All
Visual Studio Team System Running the load agent at remote sites
Hi, I'm currently evaluating Visual Studio Tester edition and have a question about licensing. Quite often I need to run load tests at client sites on their hardware. If I get a couple load test agents, can I uninstall from my local setup and install at client sites for testing Thanks, Cliff Thanks for getting back to me David. I've actually already gone through this document and cannot find an answer to my question. Do you have any other ideas as to where I might find more info on this Thanks, Cliff ...Show All
Visual Basic Printer Compatibility Library
The Print Method offers no provision for the ';' syntax of VB. While I understand that adding new syntax is not possible what can work is the ability to print lines without a carriage return. For example Object.PrintNoReturn("Hello") Object.PrintNoReturn(" ") Object.PrintNoReturn("World") Object.Print("") Would work the same as the VB6 code Object.Print "Hello"; Object.Print " "; Object.Print "World"; Object.Print In addition look at the IL of the library I notice you are using stringbuilder The original procedure looks something like this If you made builder1 a private member of the class called PrintBuilder (or whatever your team chooses) Then PrintNoReturn can work like this. ...Show All
Smart Device Development Supplying name for incoming call
Hi, when a call comes in, the device's phone application will - somehow - try to display the name of the caller by using the addressbook. How could I add my application as a primary resource for that, i.e. how can I supply the caller's name for an incoming call (WM2003/WM5 both PPC and SmartPhone) I've been looking at the RTC documentation, but it is unclear whether this will work. Thanks in advance for any pointers, Daniel Michael Koster wrote: The registry notification APIs are new to Windows Mobile 5.0. To support Windows Mobile 2003 as well you'd need to monitor the GSM TAPI line directly.There are a bunch of forum thread dealing with this. Quick question: if I use the 2003 approach to mon ...Show All
