CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: spiritualfields

Page 1 of 11 1 2 3 4

Search: Search took 0.05 seconds.

  1. Re: I'm getting a result with cin.putback that I don't understand

    Thanks for the information about cin.putback. A string stream should be perfect. I tried this:



    char c[3] = { '2', '+', 'a' };
    char a, b, d;
    stringstream...
  2. I'm getting a result with cin.putback that I don't understand

    I have no idea what's happening here. I have a vector<char> called vOriginal. I load 3 chars into the vector, and in a loop attempt to cin.putback the 3 chars
    into the stream. Only the first two...
  3. Intellisense Question With Visual C++ 2013

    If this post should have been posted in the C++ thread, let me know. It involves Visual Studio 2013, so I posted it here. There's something annoying going on with Visual C++ 2013 intellisense and I'm...
  4. _BLOCK_TYPE_IS_VALID(pHead->(nBlockUse) debug assertion error

    EDIT: NEVER MIND, I totally blanked out and didn't realize that I was actually trying to delete an array that WASN"T created on the heap! IGNORE -> I can't figure out why I'm getting a...
  5. Re: Initializing A Vector Of Vectors Of Strings

    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...
  6. Replies
    21
    Views
    34,436

    Re: Visual Studio 2012 and C++, MFC

    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...
  7. Re: Initializing A Vector Of Vectors Of Strings

    I don't know. My knowledge of STL is weak. What I need is a container of string arrays, like this:


    SOME_CONTAINER_WITH_ELEMENTS_ACCESSIBLE_BY_INDEX
    {
    {"hello", "string", "string", "", "",...
  8. Initializing A Vector Of Vectors Of Strings

    I thought that C++0x made it possible for vectors to be initialized with an initializer list, such as:


    vector<vector<string> > vv {{"hello", "goodbye", ""}};

    I tried this syntax in both VS...
  9. Re: Problem With Declaring Variables In A Function

    Thanks! That was the problem.
  10. Problem With Declaring Variables In A Function

    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...
  11. Re: What would I have to pay for VC++ 2010 Pro in Germany?

    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...
  12. Re: What would I have to pay for VC++ 2010 Pro in Germany?

    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...
  13. Re: What would I have to pay for VC++ 2010 Pro in Germany?

    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...
  14. Re: What would I have to pay for VC++ 2010 Pro in Germany?

    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...
  15. Re: What would I have to pay for VC++ 2010 Pro in Germany?

    According to a picture of the box on the U.S.A. page, the upgrade only applies to VS2005 and VS2008 users.
    ...
  16. Re: What would I have to pay for VC++ 2010 Pro in Germany?

    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...
  17. Replies
    1
    Views
    765

    Visual Studio Command Line

    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...
  18. Replies
    4
    Views
    1,410

    Re: Simple String manipulation problem

    Two things:

    1. You should initialize numtimes to 0 before you use it
    2. Compare word[i] to letter[0]
  19. Replies
    3
    Views
    837

    Re: Need Help Identifying A Language

    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...
  20. Replies
    3
    Views
    837

    Need Help Identifying A Language

    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...
  21. Replies
    1
    Views
    854

    Visual Studio 2005 and .NET 3.0

    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...
  22. Replies
    8
    Views
    721

    Re: Help with cin

    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



    line...
  23. Replies
    20
    Views
    2,224

    Re: .11 * 100 trouble in C++

    On second thought:


    It would be less complicated to do it this way:

    (int)(.11 * 100 + .5)
    (int)(.9 * 10 + .5)
    (int)(.359 * 1000 + .5)
  24. Replies
    20
    Views
    2,224

    Re: .11 * 100 trouble in C++

    It seems that all you want to do is take a fractional decimal number and turn it into an int with the same digits? For example:

    .11 to 11
    .12 to 12
    .17 to 17
    .359 to 359
    .7 to 7

    and so on?
  25. Replies
    11
    Views
    2,349

    Re: Help with drawing vertical text?

    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,...
Results 1 to 25 of 255
Page 1 of 11 1 2 3 4





Click Here to Expand Forum to Full Width

Featured