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

Search:

Type: Posts; User: BytePtr

Page 1 of 12 1 2 3 4

Search: Search took 0.07 seconds.

  1. Re: Help needed with scripting tool algorithms

    As always after posting topic, the solution comes by itself and everything starts to work automagically.
    Here is the code i made:

    // Use absolute curIdx value, i.e starting from 1
    int...
  2. Help needed with scripting tool algorithms

    Hello. It was hard to put title for this.

    I hoped i dont have to ask help on this but im really stuck.
    Im working on a script compiler that must output compiled script into binary file....
  3. Re: Need a bit help with std::map and / or multimaps and algorithm

    Thank you for the reply.
    You gave me idea.

    I did function like this:



    map<int, stack<int> > asi;

    int getLASTcmdindexfor(int commandid)
  4. Need a bit help with std::map and / or multimaps and algorithm

    Hello.

    Im stuck with some problem(s).
    Currently i have a std::map like this:

    map<int, int> mymap;

    In my procedure i add some items to this. When i have no duplicates for keys, all seems to...
  5. You never get bored or tired of programming stuff?

    I just opened the forum, to look around here after a long break.

    I see always same members answering questions etc etc. Of course i have nothing against this. I am just curious..

    The long time...
  6. Please help adding Redo command to the example code

    Hello all.

    Remove underscore from urls please when doing copy/paste. Forum thinks that its bad word. But its the website url.

    Can you please help me add a Redo command to the example attached...
  7. Replies
    4
    Views
    1,570

    Re: Finding items (strings) in multiple lists

    Actually yes, i was thinking about this a little bit today and decided to store all variables in one std::map.
    This allows me to also detect re-declared variables.
    Variable will be key and value...
  8. Replies
    4
    Views
    1,570

    Finding items (strings) in multiple lists

    Hi.
    It's hard to give proper title for this topic but anyways..

    Im working on a script compiler and i need to handle different types of data.
    Actually different categories of items.

    Let's say...
  9. Re: Getting elements from structs in std::map with "partial values"?

    Lindley or somebody.

    How efficient or not efficient is looping through map with iterator, if it has lot's of items, let's say, 500-10000.
    Does it get's slower the more items the map has?

    How...
  10. Re: Getting elements from structs in std::map with "partial values"?

    Thanks, you gave me great push, i will try to code out something.
    It will be interesting.

    Will let you know how it goes and what solution i found.
  11. Re: Getting elements from structs in std::map with "partial values"?

    Lindley, so you say that without sorting it will not be as fast as it should?

    Pretty bad, i think in the code i will use, the additional sorting each time would hit the performance of whole...
  12. Re: Getting elements from structs in std::map with "partial values"?

    Hi Paul.
    Thanks for reply.

    Actually i forgot to tell that, the struct values will be always unique.
    At least i hope so. I just encountered the problem, that i need to figure out, to which item...
  13. Getting elements from structs in std::map with "partial values"?

    Hello all.
    It was hard to make title for this topic.

    I have a simple code:

    #include <iostream>
    #include <map>

    using namespace std;
  14. Re: How to walk on terrain and not go through walls ?

    Watch this guy channel, he got a lot of good vids, including 3D collision and basic FPS game.

    http://www.youtube.com/user/thecplusplusguy

    Tuts:
    http://www.youtube.com/watch?v=W2QrXv2yZhE...
  15. Replies
    1
    Views
    1,724

    Re: Block 3D Editor Project question

    Hi.
    I don't think that it's hard. Nobody teached me OpenGL, but look what i have done. Learned all by myself.

    http://www.youtube.com/watch?v=PSubaCJXp_A...
  16. Replies
    18
    Views
    15,223

    Re: How to call a C++ dll function at runtime ?

    I use Notepad, to see decorated stuff.
    No third party tools needed.

    http://img708.imageshack.us/img708/1103/pooltex.jpg
  17. Re: Problems with std::map "delete" & "erase", access violation

    Thanks again.
  18. Re: Problems with std::map "delete" & "erase", access violation

    Thank you very much Eri523.
    I made the changes you told me to do, i let the editor run for pretty long time.
    Seeked around my scene and no crashes.

    I added rep. to you for the help.

    And cache...
  19. [RESOLVED] Problems with std::map "delete" & "erase", access violation

    Hello.

    For my map editor (in Delphi) i have created simple DLL in C++ using VS2008 Express for caching OpenGL texture ID's.
    Basically the code is not created by me, it's from old (now died) open...
  20. Re: Window on top of specific HWND but not completely modal

    Well the listbox contains small tiles (graphics) but on XP it doesn't draw them correctly. Only one of them is visible, for the rest you have to click on left mouse btn and drag at the same time over...
  21. Re: Window on top of specific HWND but not completely modal

    On top is what i want. I mean i have an app (not made by me). It has listbox with stuff in it.
    I want to cover that listbox with my window, so user will use my own listbox instead of the original...
  22. Window on top of specific HWND but not completely modal

    Is there an API function that allows set my main app window on top of another specific application but not completely modal (i.e not on top of everything).

    In general: modal on specific app only?...
  23. Replies
    13
    Views
    8,012

    Re: Help with std::map, struct as key

    Amazing, i got it to work. Thanks for all the help guys.
    And thanks to this:
    http://stackoverflow.com/questions/979759/operator-and-strict-weak-ordering
    It's not as fast as my friend one, but it...
  24. Replies
    13
    Views
    8,012

    Re: Help with std::map, struct as key

    Ok, seems i got this working somehow.
    Still don't understand why it didn't work at first time.


    Can anyone recommend me some book or tutorial how to make strict weak ordering for std::map?
    That...
  25. Replies
    13
    Views
    8,012

    Re: Help with std::map, struct as key

    Still haven't figured out the ordering method for ::map but Paul.

    Can you help me with file reading?

    I mean, i need to read in 8*256*256 (524288) count of block_info structs from file into 1D...
Results 1 to 25 of 279
Page 1 of 12 1 2 3 4





Click Here to Expand Forum to Full Width

Featured