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

Search:

Type: Posts; User: vincegata

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds; generated 50 minute(s) ago.

  1. How to set up two objects to communicate with each other asynchronously?

    Hello,

    Here is what I've got so far:



    # Makefile
    CXX = clang++
    CXXFLAGS = -g -std=c++11
  2. Re: Template specialization does not work for user-defined object.

    @laserlight -- that's was because of the string -- thanks a lot.
  3. Re: Template specialization does not work for user-defined object.

    Thank you for responding but I get the same error. I'd like to use template specialization.

    main.cpp:17:14: error: invalid operands to binary expression ('QuoteClass' and 'QuoteClass')
    if...
  4. Re: Template specialization does not work for user-defined object.

    Thank you for responding but I get the same error. I'd like to use template specialization.

    main.cpp:17:14: error: invalid operands to binary expression ('QuoteClass' and 'QuoteClass')
    if...
  5. [RESOLVED] Template specialization does not work for user-defined object.

    Hello,

    Can you take a look why I am getting compile error.

    Thank you.




    // clang++ main.cpp -g -std=c++11 -o main
  6. Converting int to std::string using istringstream inserts commas

    Hi,

    So I have a following function that converts int to string however it inserts the commas for thousands, millions, and so on. e.g. 65432 -> "65,432".
    How do I make the conversion but have a...
  7. Re: How to pad a string with trailing zeros using ostringstream

    That's slick, @2kaud, thank you.
  8. Re: How to pad a string with trailing zeros using ostringstream

    the output:
    99W8

    I would like it to be:
    99W8000
  9. [RESOLVED] How to pad a string with trailing zeros using ostringstream

    Hi,

    The code that I have does not work. Could some help -- thanks.





    #include <iostream>
    #include <iomanip>
  10. Re: Problem with ostreamstring and setfill(): size() of the resulting string is one m

    how could I've missed it... thank you!
  11. [RESOLVED] Problem with ostreamstring and setfill(): size() of the resulting string is one more.

    Hi,

    The s1.size() actually returns 4, and test for equality fails. I am using g++ on Linux, debug target.

    Could someone help. Thank you.




    #include <iostream>
  12. Re: [RESOLVED] Two-way event-driven communication between objects (similar to produce

    @razzle - I asked a specific question and if you don't know the answer you just move on - it's that simple. I closed the thread because my requirements has changed.
  13. Re: Two-way event-driven communication between objects (similar to producer-consumer)

    Sorry for coming back so late, I've been busy at work over timing. I know there should be a buffer for an asynchronous communication, I am just trying to figure out in which way the classes are aware...
  14. Re: Two-way event-driven communication between objects (similar to producer-consumer)

    I updated my post, toApp() is the function I need to be implemented.
  15. [RESOLVED] Two-way event-driven communication between objects (similar to producer-consumer)

    Hi,

    I need to implement a two-way asynchronous communication between two objects, not using any IPC.

    What I have now is a producer-consumer model where producer sends a number "88" to consumer...
  16. Re: Questions about a sample code on shared memory.

    Thank you for all the help I received, I've decided to merge the processes to use observer pattern instead of using shared memory.
  17. Re: Questions about a sample code on shared memory.

    @Codeplug - ah, you helped me with multithreading too and now it came to the full circle... :)

    I do use that code: it is now my consumer process where "producer" thread receives the data over FIFO...
  18. Re: Questions about a sample code on shared memory.

    @OReubens - I am considering of merging my producer and consumer into the same process instead of using shared memory hence was my question about locked-free linked list. I cannot use...
  19. Re: Questions about a sample code on shared memory.

    Yeah, I should do some testing too.
  20. Re: Questions about a sample code on shared memory.

    @Codeplug - I am not sure if you read my post above the one that you quoted, but I do already have a running application using FIFO and it is too slow for me.
  21. Re: Questions about a sample code on shared memory.

    @OReubens - so I have a producer and a consumer, the point is to send the data as fast as possible. Since synchronization takes time, a person who developed the code that I posted, used polling...
  22. Re: Questions about a sample code on shared memory.

    @razzle - I am staying away from the third parties.

    @codeplug - these are some financial data and there are a lot of them. I am using FIFO right now (with your help too btw :) ) but I found it to...
  23. Re: Questions about a sample code on shared memory.

    @OReubens, that code sample is about using shared memory without locking so to reduce latency. I am looking at the codeplug's sample now.

    @razzle, thanks for the code snippet, I'll re-use it...
  24. Re: [RESOLVED] What is the difference between static_cast and dynamic_cast?

    Sure. As I mentioned above downcasting is for the cases when you do not have control over the base classes.
  25. Re: Questions about a sample code on shared memory.

    Thank you for the code, I might have some questions later so I am not going to close it for now.
Results 1 to 25 of 89
Page 1 of 4 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center