Search:

Type: Posts; User: JohnAnon

Search: Search took 0.01 seconds.

  1. Replies
    25
    Views
    3,972

    And, indeed, you would be right! ...

    And, indeed, you would be right! Thanks!!!!!!!!!!!!!!!!!!!!!!!!

    Now we will see if I can tie all this spaghetti together.

    Thank you, thank you, thank you for that edit!!!

    Edit: And the...
  2. Replies
    25
    Views
    3,972

    Adding to the map now works. Thanks for that. ...

    Adding to the map now works. Thanks for that.

    Calling the function still doesn't.

    Tried:

    fncRegistry(z)(12.08333); //call z

    and various offshoots with the word "call", but the compiler...
  3. Replies
    25
    Views
    3,972

    Well, trouble is my middle name. Thanks for...

    Well, trouble is my middle name.

    Thanks for sharing.
  4. Replies
    25
    Views
    3,972

    Thanks. I thought that line was misplaced and...

    Thanks. I thought that line was misplaced and questioned its efficacy.

    I'll try your suggestion as soon as I re-install VS2008. I'm embarrassed to say that I somehow blew it up by merely trying...
  5. Replies
    25
    Views
    3,972

    At this point, it appears that the hammer almost...

    At this point, it appears that the hammer almost works, so if you can bear with me for a few iterations, I would appreciate it.

    I have solved the std::map problem by adding a #include <map>.

    So...
  6. Replies
    25
    Views
    3,972

    Well, I've been called worse.

    Well, I've been called worse.
  7. Replies
    25
    Views
    3,972

    I had already done that since it looked both...

    I had already done that since it looked both elegant and promising. On my computer, however, std::map returns compiler error "'map' is not a member of 'std'".

    Maybe I can get map from another...
  8. Replies
    25
    Views
    3,972

    Unfortunately I'm stuck with VC++2008. Thanks,...

    Unfortunately I'm stuck with VC++2008.

    Thanks, anyway.

    You know, based on the last few responses, I may have miscommunicated.

    I'm not building my own separate dll which my bosses routine...
  9. Replies
    25
    Views
    3,972

    Yes, I'm trying to decipher the code in the...

    Yes, I'm trying to decipher the code in the example on MSDN. It is late here and it will take me too long to dig out the lines I've interspersed with my other code into a workable display.

    I'll...
  10. Replies
    11
    Views
    3,399

    Indeed it does. Would that it were that were the...

    Indeed it does. Would that it were that were the first suggestion.

    Many thanks. Learning, learning, learning.........
  11. Replies
    25
    Views
    3,972

    I'm not having much luck with understanding how...

    I'm not having much luck with understanding how to implement the GetModuleHandle()/GetProcAddress() solution.

    I appreciate the suggestion of the internal table, it may very well be a compromise...
  12. Replies
    25
    Views
    3,972

    Whoosh! That was the sound of your solution...

    Whoosh! That was the sound of your solution wizzing past my head.

    First, it is a windows environment.

    Second, while I can read documentation as good as the next fella, pseudocode (even BROKEN...
  13. Replies
    25
    Views
    3,972

    Maybe I'm not understanding

    I can't change the signature of MYBOSSESROUTINE from:

    double MYBOSSESROUTINE(const char* z)

    to

    double MYBOSSESROUTINE(SOME_FN z)

    All I'm allowed to do is pass him a string with the name...
  14. Replies
    25
    Views
    3,972

    Calling a function named in a variable.

    I looked. I really did. Anyway...

    Is it possible in c++ to call a function the name of which is contained in a variable?

    Psuedo code (which is a euphemism for I can't write code that works):...
  15. Replies
    11
    Views
    3,399

    What I'm passed may control

    I suppose the fact that I'm stuck with the pointer as an input means that I should go with the original suggestion (strcmp()) and only if I've got some other reason to do string manipulation, which...
  16. Replies
    11
    Views
    3,399

    Thanks Elysia. You're a programming master! How...

    Thanks Elysia. You're a programming master! How the hell do you know every thing?

    std:string worked just fine, too.

    Which is more efficient, std::string or using strcmp?
  17. Replies
    11
    Views
    3,399

    Wouldn't have the foggiest

    As a noob to c++ I wouldn't have the foggiest notion of how to implement the "preferred" approach of using std::vector. Since I went to the bother of reducing my code to the smallest possible block...
  18. Replies
    11
    Views
    3,399

    Success

    Then I shall read up on strcmp(). Thanks.

    John

    Thanks. It worked like a charm. Way cool.
  19. Replies
    11
    Views
    3,399

    String equality

    This should be easy. I'm admitting my newness by posting which for most will be, I hope, a simple question.

    I'm having trouble testing a string for equality.


    double myfunc(const char* z) {...
Results 1 to 19 of 19