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

Search:

Type: Posts; User: hajimeml

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Re: Why the number of lines in data files are different when they are supposed to be

    Sorry for the misunderstanding. Perhaps I should frame my questions the other way. I want to know:

    1. Am I using fflush correctly?
    2. Do I have to use other command(s) besides fflush?
    I...
  2. Why the number of lines in data files are different when they are supposed to be same

    Hello. I have a C program which does simulation and saves the data into five different data files at each iteration of a while loop. However, when I stopped the program, I noticed that the files have...
  3. Re: Is there a good way to find the callers to a particular function?

    The scitools's Understand software seems to be what I need eventually. I will give it a try. Thank you very much for letting me know.
  4. Re: Is there a good way to find the callers to a particular function?

    I am using Borland C++ Builder Professional 6.
  5. Is there a good way to find the callers to a particular function?

    Hello. I am trying to understand and modify a complex programs written by others. I found the function which I need to modify and would like to get a list of caller(s) to this function. Given that...
  6. Re: Does this call create a list automatically?

    Sorry there was a typo in the class name. Could anybody please check my understanding?
    Thanks.
  7. Re: Does this call create a list automatically?

    As far as I know, due to the private inheritance relationship mentioned in the previous post, all public members of the base class CListManager become private members of class CGGen. However, CGGen...
  8. Re: Does this call create a list automatically?

    Thanks for the suggestion, GNiewerth. I found that in GGen.h,

    class CGGen : private CListManager<CStep>, public COtherClass
  9. Re: Does this call create a list automatically?

    There are hundreds of files in the project but as far as I am aware of, there is only one definition of GetNumOfItems in CListManager. Searching the class explorer in Borland Builder C++ also returns...
  10. Re: Does this call create a list automatically?

    Thanks, GNiewerth.

    I only found:

    template <class T>
    class CListManager
    {
    private:
    list<T*> items;
    public:
  11. Does this call create a list automatically?

    Hello. Could anybody please clarify?

    I came across a file called GGen.cpp. Inside it, there is a statement:

    int i,j,nos = GetNumOfSteps();

    I guess only nos is initialized to a value returned...
  12. Replies
    9
    Views
    851

    Re: ordering of member access operator

    Now I understood. Thank you all of you for your help.
  13. Replies
    9
    Views
    851

    Re: ordering of member access operator

    laserlight, thank you very much for your help. Could you please clarify the following?
    I am still a bit confused.

    >Get the WPtr, of type C3*, from the PGElement:
    >A->PGElementPtr()->WPtr()
    ...
  14. Replies
    9
    Views
    851

    Re: ordering of member access operator

    Thanks for the very interesting example and explaination. I found another variation of the code in the program. Here, the type of A-D are as follows:

    A->PGElementPtr()->WPtr()->GetSize()
    ...
  15. Replies
    9
    Views
    851

    Why writing the code this way?

    By the way, what are the advantages of writing the code this way? It seems that the author of the program uses this method to make a pointer (a private member) of one class to point to another class...
  16. Replies
    9
    Views
    851

    Re: ordering of member access operator

    Thanks.
  17. Replies
    9
    Views
    851

    ordering of member access operator

    Hello. I have a question about the member access operator ->
    I am trying to understand a code of this format: A->B->C->D.
    Does it means A->(B->(C->D)) or ((A->B)->C)->D)?
    In the former case, I...
  18. Re: How to assign an element from a vector to another?

    4) Why are you using pointers and new ?????

    I used new because when I encountered a bug, somebody suggested that I need to initialize the pointers. So, I thought I could use new to retrieve the...
  19. Re: How to assign an element from a vector to another?

    Thank you for your example. In the sample code, both ptr1 and ptr2 have three elements. The program I try to modify seems to read data from several data files. It seems that the previous programmers...
  20. How to assign an element from a vector to another?

    I have two pointers pointing to two different double vectors. Could anybody please let me know the proper way of assigning an element from a vector to the other? Here is a sample code. Please note...
  21. Replies
    15
    Views
    1,106

    Re: What does this constructor definition mean?

    Thank you for your answers.
  22. Re: How to share variables/functions between classes from different files

    No. I declared it under public in the class definition of CRemote (inside the .h file).
  23. Re: How to share variables/functions between classes from different files

    No. Do you mean I have to put:

    class CRemote;

    at the beginning of CStation.h? I just tried and got four error messages (please note that the wordings are not exact as I translated from...
  24. Re: How to share variables/functions between classes from different files

    Thanks for the reply. As the program is too complex, I enclose the key parts only. Please note that the program was written in Borland C++ Builder 6.


    In CStation.h
    -----------------

    class...
  25. How to share variables/functions between classes from different files

    I want to share variables/functions between classes. The classes are defined in different .h files. I read that the friend function allows us to do that but I keep getting error messages saying...
Results 1 to 25 of 30
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center