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

Search:

Type: Posts; User: 2kaud

Page 1 of 80 1 2 3 4

Search: Search took 0.13 seconds.

  1. Replies
    19
    Views
    629

    Re: win32 - how can i build a Region?

    and of course your region code for manipulating the bitmap deals with this - doesn't it........
  2. Replies
    19
    Views
    629

    Re: win32 - how can i build a Region?

    By any chance is the tooltip supposed to be shown in the part of the screen being processed by your region code?
  3. Replies
    23
    Views
    487

    Re: Vector of Templates Problem

    I very much doubt it as c++ is a strongly typed language (boost::any and boost::variant are not part of the standard). c++ is defined by an ISO standard which is established via a c++ standards...
  4. Replies
    23
    Views
    487

    Re: Vector of Templates Problem

    What you are trying to do is parse an expression and then evaluate it. There are various ways of doing this in c++ but none require a vector that holds different types.

    Have a look at...
  5. Replies
    23
    Views
    487

    Re: Vector of Templates Problem

    main() cannot be used with a template - hence the errors!

    but you still haven't explained why and what you are trying to achieve. :(
  6. Replies
    23
    Views
    487

    Re: Vector of Templates Problem

    Possibly in the next couple of days when I have some time I'll take a look.

    But you haven't answered my question in post #4. Why do you want to this? What are you trying to accomplish?
  7. Replies
    23
    Views
    487

    Re: Vector of Templates Problem

    and some way of knowing to what data type to re-cast these void* pointers when they are needed to be used.
  8. Replies
    23
    Views
    487

    Re: Vector of Templates Problem

    Why? What are you trying to accomplish? c++ is a strongly typed language so mixing types within the same variable (whether a container or basic type) is not really supported by the languauge.

    If...
  9. Replies
    4
    Views
    241

    Re: Finding a total using for loops

    Do you want the total of all the microbes displayed in the bar chart?



    #include <iostream>
    using namespace std;

    const int arrsize = 5;

    int main()
  10. Replies
    7
    Views
    298

    Re: stl map with two keys

    You might find these sites of interest
    http://www.cplusplus.com/reference/ and clicking through the various header files
    http://www.cplusplus.com/doc/tutorial/
    http://www.learncpp.com/

    There's...
  11. Replies
    7
    Views
    298

    Re: stl map with two keys

    Have you checked that the iterator is not .end() - ie key not found?

    Also you have


    std::map<std:: pair<string, u32>, CPGW::CreateSessInfo> CPGW::m_mSessionId2CCRNum2CreateSessionInfo;
    ......
  12. Re: Little/Big Endian test code in machine and file

    Between which systems are you going to share these files and what is the volume of data shared?
  13. Re: Little/Big Endian test code in machine and file

    If you have files that can be used by both big and little endian systems, one way is not to use binary numbers but instead have them in the file as they are displayed as chars. Then programs can...
  14. Thread: c++ stl map

    by 2kaud
    Replies
    8
    Views
    297

    Re: c++ stl map

    Just a small point. When posting code, please use code tags so that the code is readable! Go Advanced, select the formatted code and click '#'.
  15. Re: Little/Big Endian test code in machine and file

    The point is that all bytes will be given a different value so that the tests don't return a potentially false indication. To be really correct, probably each byte should be tested. eg


    int...
  16. Re: Little/Big Endian test code in machine and file

    but vc++6 - really???? If you have issues with VS2010, why not VS2008? This is the last version I used with Windows XP and I experienced no issues.



    772 is 0x0304 ??? If int is 16 bits then...
  17. Re: Little/Big Endian test code in machine and file

    Yes, char should be unsigned. I have my projects set so that by default char is unsigned.



    In MSVS, comparisons return 1 if true or 0 if false, so if you want to return an int you don't need a...
  18. Re: Little/Big Endian test code in machine and file

    For MSVS, c[0] starts at the lowest address of the memory allocated to the union and c[3] is located at the higher address of the allocated memory.

    For Little Endian, the least significant byte...
  19. Re: Little/Big Endian test code in machine and file

    Might I suggest you change to a more recent c++ compiler? MS VS 2013 Community edition is free and VS 2015 will shortly be released. See...
  20. Replies
    3
    Views
    218

    Re: make container of exe's using tabs

    Are these exe's ones you have developed - or can they be any exe? If you have control over the exe's then this is doable as you can have co-operating processes.

    For other exe's, this may be...
  21. Replies
    6
    Views
    347

    Re: Rock/Paper/Scissors

    and your debugging of the program has revealed the issue to be where?

    When a program compiles and links OK but the resulting program doesn't perform as expected, then you need to use the debugger...
  22. Re: How to get the address of 1st node in

    You could have a stack of type list<T>::iterator, then iterate the list and push them onto stack. Something like this (not tried)


    list<LT> mylist;
    stack<list<LT>::iterator> mystack;

    for...
  23. Replies
    6
    Views
    347

    Re: Rock/Paper/Scissors

    Shouldn't input of choice be in the loop in Display() ?

    In Display(), sn't your logic for the loop termination condition the inverse of that wanted?
  24. Replies
    6
    Views
    313

    Re: Nested containers ...again :(

    To fill the 10 vectors from the n_tuple have a look at this example code


    #include <set>
    #include <vector>
    #include <algorithm>
    #include <iterator>
    #include <iostream>
    using namespace std;
  25. Replies
    6
    Views
    347

    Re: Rock/Paper/Scissors

    You only need to use srand() once at the start of the program to seed the random number generator.

    The variables wins, losses and draw are first defined as global variables and are then re-defined...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center