That's EXACTLY why I wanted to work with vectors. The user will not be able to delete elements (which themselves are arrays of strings), but they will be able to insert new elements, and write into...
I've been hearing about MFC being legacy for years now. I'm thinking that that rap is more urban legend and MSFT wishful thinking than anything else. The other day I downloaded and installed...
This is a c program that is failing to compile. The error occurs in the calcLabs() function. The error called out is (btw, I'm using VS 2010): Error 4 error C2143: syntax error : missing ';' before...
I ended up like that by luck because I hadn't done any real programming since around 2002 but had still kept up with the Visual Studio versions, just not installing the service packs because I wasn't...
It just so happens that I also have VS 2005 and VS 2008, so I did a comparison between the three. The conditions: Console program with MFC with static linking, no additional code to what was...
One thing you could do is start off the line of code with just _tprintf, and add the VERIFY wrapper after you've coded the string. However, all you'll get for popup help for _tprintf is: (const...
If the literature on the site you get explicitly mentions that you can upgrade to VS2010 professional from an Express edition of Visual Studio, and if you have none of the recent versions of VS and...
The online microsoft store is selling the upgrade version of VS2010 professional for $299. To see what's available in Germany, you could select the Germany as the country, and you'll be shown the...
I'm using Visual Studio 2010, so technically this seems the best forum to ask my question. If I run a console app from the dos command line, I can redirect the input to come from a text file, which...
Hmm ... using Spy++ shows that the the framework is .NET (WindowsForms10 is the top namespace for the controls). Yet the only requirements listed on the site's web page is: "System Requirements: Any...
I downloaded an application for my own personal use, and am quite impressed by the GUI associated with it. I don't know if it was written in a .NET language or native C++. If the former, I don't know...
I've got Window Vista Home Premium. From what I understand, to "install" .NET 3.0, all I need to do is go to the control panel, select Programs and Features, then click on Turn Windows Features on or...
Yes, you should be very specific in your information. Strictly speaking, it isn't 8 numbers that the user should input, but one number containing 8 digits. I only gleaned this from your
Here's another thought. Based on the results that I got from my test of GetTextExtent in MM_TEXT mode, and assuming that in all modes it returns the true length of the string regardless of angle,...
Based on your output, it looks like GetTextExtent is trying (but not succeeding) to always output the true length of the string regardless of the angle. That is actually what I had always thought it...
Your code that does the centering looks okay, and assuming that the crosshairs are centered properly when you zoom in and out, then the entire problem is most likely based around what GetTextExtent...
I don't know if this assumption is correct, but if it isn't, then it could be what's causing the problem. For example, if your string is length 2 inches (for simplicity), and if it is oriented at an...
Thanks. My target machine is any PC running windows, from Windows 95 on. Since I won't be upgrading to Vista anytime soon, I wanted to make sure that my apps will run on the machines of customers who...