Search:

Type: Posts; User: dv007

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    9,502

    How to pass data between 2 Threads

    Hi All,

    My program has 2 threads, a MainThread and a ChildThread. Each thread has its own queue .
    Every time the ChildThread receives data, it put in its queue and send that data to MainThread...
  2. Replies
    4
    Views
    1,882

    static character pointer within a function

    Hi All,

    I am not sure all static variables define locally within a function is putting on stack memory or on the heap or global memory space.
    Does anyone know?
    Thanks!
    DV007



    class Foo
  3. Replies
    6
    Views
    1,103

    Please post your code even it does not compile,...

    Please post your code even it does not compile, then we could help.

    You can use bubble sort or quick sort algorithm to find highest GPA of students.
    DV007
  4. Replies
    4
    Views
    1,228

    Question on character string

    Dear Sir or Madam:
    What I have learned in school is when dealing with character string(char array)
    we need to use strcpy() function, but I wonder why doing arithmetic assignment
    on char string...
  5. Replies
    3
    Views
    3,869

    Hi Salem, You mean accessing to data members...

    Hi Salem,

    You mean accessing to data members of class (in this case is an array of struct) would be:



    void SetAge(int a)
    {
    Stud[20].age = a; // still error
  6. Replies
    3
    Views
    3,869

    How to access struct fields in array

    Dear C++ experts out there,

    I am trying to access to array of struct data fields in a class.
    but compiler keep display error when access to struct fields.
    How class methods can access to the...
  7. Confusing between Virtual and Non-virtual function

    class Base
    {
    public:
    Base();
    void SetData(int data) { m_data = data; }
    int GetData() { return m_data; }
    virtual void PrintData() { cout << "Data value: " <<...
  8. Replies
    10
    Views
    2,065

    Thank you all for your help. nvoigt, Since...

    Thank you all for your help.

    nvoigt,

    Since you typecast 3 times (entry point for each thread) as:

    ControlManager* pThis = (ControlManager*)p;

    Does it mean it creates three pointers...
  9. Replies
    10
    Views
    2,065

    Thanx for your attention. Would you mind to...

    Thanx for your attention.

    Would you mind to show a specific example how to code them.
    Using wrapper in C++ kinda confusing, especially when creating multi threads within an object. An object can...
  10. Replies
    10
    Views
    2,065

    Expert, Help please! MultiThreading in C++

    Dear Sir or Madam,

    I am trying to create 3 threads running paralelly in an C++ object . It is easy to create in C but it's hard and very confusing in C++ object.




    #include <pthread.h>...
  11. Replies
    72
    Views
    8,254

    How about making another website:...

    How about making another website:
    www.C++programming.com
    So far I have seen Cprogramming.com do a great job to help C people but not yet enough help
    for C++ newbies/askees. Can we make another...
  12. This is your best idiot answer you give to...

    This is your best idiot answer you give to someone's questions?

    If someone know to post their questions in appropriate place at
    first time, then they would not bother some ******* attitude like...
  13. Replies
    9
    Views
    3,268

    >I don't think u can nominate anyone, just vote...

    >I don't think u can nominate anyone, just vote for Fordy.
    So, it seem to me that it's not democratic and fair election, isn't it?
    People wil not able to nominate their favorite candidate???
    ...
  14. What the purpose of moderator?

    Hi All,
    What's moderator?
    How does moderator election process?
    If a person win in moderator election, what kind of encouraged award will offer to him or her?
    How many times per a year,...
  15. Replies
    9
    Views
    3,268

    What the purpose of moderator?

    Hi All,
    What's moderator?
    How does moderator election process?
    If a person win in moderator election, what kind of encouraged award will offer to him or her?
    How many times per a year,...
  16. Replies
    8
    Views
    1,935

    The think I am trying to understand is how to...

    The think I am trying to understand is how to pass the callback function name to the util ().
    any sample code should help.
    -->Use pointer to function for callback() and
    pass it into util()...
  17. Replies
    1
    Views
    957

    Can anyone explain this

    char g[10]; /*ten bytes*/

    int main()
    {
    struct g {
    int a;
    };

    printf("g is supposed to be (4)sizeof(a) %d",g);
    return 0;
  18. Thread: C or C++

    by dv007
    Replies
    8
    Views
    1,035

    Re: C or C++

    This question has been asked for millions times.
    Try to search on this site, then ya will know!
    Good luck
    DV007
  19. Replies
    20
    Views
    2,768

    I agree with Bajor's point. C# is cleanly...

    I agree with Bajor's point.
    C# is cleanly designed from scratch to suport .NET
    while VB and C++ .NET has been still underway of
    enhancement and modification. They are not
    perfect at present....
  20. Replies
    4
    Views
    1,063

    Minh, Does VBasic GUI works well MS-Access for...

    Minh,
    Does VBasic GUI works well MS-Access for pc standalone application? Does it need DB
    driver for front end GUI to communicate with
    backend MS-Access database?

    DV007
  21. Thread: VC++ or C++

    by dv007
    Replies
    8
    Views
    1,091

    Sorry guys, I was misunderstood fastmonkey's...

    Sorry guys, I was misunderstood fastmonkey's
    statments. I though fastmonkey tried to say
    people on this board is stupid.
    I always want to share my ordinary knowlege and experience as well as...
  22. Thread: VC++ or C++

    by dv007
    Replies
    8
    Views
    1,091

    Sorry for misunderstood about fastmokey's...

    Sorry for misunderstood about fastmokey's statements.
    Keep spinning the world guys!
    DV007
  23. Replies
    22
    Views
    3,155

    Re: STL for fun and profit

    This advantage of C++ STL is only useful in develop for certain applications but not quite support in wide range of software applications.
    For example, STL is avoided to use in real-time
    embedded...
  24. Replies
    4
    Views
    1,063

    Need your advice about VB and VC++

    I try to create a Dr. Appointment database project
    with basically a GUI for user interface and a
    database like MS-Access. I plan to use VBasic
    or Visual C++ to implement it. But I have an
    hard...
  25. Thread: Address book

    by dv007
    Replies
    7
    Views
    2,213

    Poll: It's nice program, however you did not do alot...

    It's nice program, however you did not do alot
    on data validation. For example, when I enter
    an email address like: heygeek@@@##-2u.com, it
    accepted, it should promt invalid email address
    or...
Results 1 to 25 of 87
Page 1 of 4 1 2 3 4