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

Search:

Type: Posts; User: Zeeshan

Page 1 of 21 1 2 3 4

Search: Search took 1.41 seconds.

  1. Replies
    8
    Views
    1,343

    Re: Need help preparing for a C++ job interview

    These might be some questions when designing the C++ API (Class library)

    1. Is it going to be object oriented (like MFC) or generic (like STL) or mixture of both (like ATL)?
    2. In case of object...
  2. Replies
    23
    Views
    12,231

    Re: Heap and free Store in C++

    And what will be the situation when the underlying platform delays the actual allocation until you actually use it. In this case new and malloc will always successes, to get the actual result you are...
  3. Replies
    8
    Views
    1,343

    Re: Need help preparing for a C++ job interview

    These might be the questions you should keep in your mind during the writing of API. (Especially C/SDK style API)

    1. Did you check all parameters, NULL values, and invalid data?
    2. How do you...
  4. Replies
    26
    Views
    3,868

    Re: Learning C++ questions

    If you become a member of ACM www.acm.org then you will have access to lots of computer books and courses.
  5. Replies
    24
    Views
    10,696

    Re: CreateThread() vs AfxBeginThread()

    take a look at these articles by Jeffery Richter

    http://www.microsoft.com/msj/0799/Win32/Win320799.aspx

    http://www.microsoft.com/msj/1099/win32/win321099.aspx
  6. Replies
    15
    Views
    29,215

    Re: What exactly is hInstance

    You can load a module using LoadLibrary function. Take a look at

    http://msdn.microsoft.com/en-us/library/ms886736.aspx

    http://msdn.microsoft.com/en-us/library/ms684175(VS.85).aspx
    ...
  7. Replies
    26
    Views
    3,868

    Re: Learning C++ questions

    Bjarne Stroustrup book is no doubt very good one, but it might be difficult for beginners. Just like the Dragon book might be difficult for those who are beginners in compiler construction or "Art of...
  8. Replies
    11
    Views
    1,371

    Re: Protected Virtual destructors Q.

    You are absolutely right. I just wanted to show how it is possible using friend classes i.e. "denying everyone other than friends". There is even one non-standard way too, you can compile this code...
  9. Replies
    11
    Views
    1,371

    Re: Protected Virtual destructors Q.

    Not exactly you can still create a object of a class with private destructor on stack with the help of friend class. Take a look at this example, here even constructor is also private.



    class...
  10. Replies
    6
    Views
    1,017

    Re: Can i make string addition operation in c++?

    In addition it would be

    wataer = (2 * hyderogen) + Oxygen

    :)
  11. Replies
    2
    Views
    868

    Re: Linked List Interitance problem

    Are you looking for something like this?



    #include <iostream>
    #include <string>
    #include <list>

    class AirCraft
    {
  12. Replies
    17
    Views
    14,331

    Re: hierarchy of shapes

    Your program has severl problems.

    1. Where did you define pCircle, pSquare and pTriangle?

    2. Your Cirlce, Square and Triangle class has pure virtual function (getArea) therefore these are...
  13. Replies
    4
    Views
    680

    Re: is there an easier way to write this?

    What about create a batch file for this and execute that batch file using the System function.
  14. Replies
    12
    Views
    1,807

    Re: Basics of OpenGL

    I learned OpenGL from this site

    http://nehe.gamedev.net
  15. Replies
    8
    Views
    1,247

    Re: Releasing allocated memory

    Even if you have your own custom data you can make list of that.

    For example




    struct sSubject
    {
    unsigned int m_iCourseID;
  16. Replies
    5
    Views
    1,029

    Re: COM programming

    For understand basic interface, IUnknown, IDispatch and class factory sutff take a look at

    Inside COM
    By Dale Rogerson

    For why COM, why do we have reference countin, why not use "delete"...
  17. Replies
    8
    Views
    1,247

    Re: Releasing allocated memory

    You can use standard list too, in that case you dont have to worry about de allocate the memory, standard list will do itself.



    std::list<int> lstYourList;
  18. Replies
    26
    Views
    3,868

    Re: Learning C++ questions

    If you are done with C++ Primer, then i highly recommend that your second book should be Effectvie C++ 3rd edition by Scott Mayers.

    And about time period to be fluent in C++, it highly depends on...
  19. Thread: BOOL vs bool

    by Zeeshan
    Replies
    4
    Views
    1,426

    Re: BOOL vs bool

    Before using BOOL take a look at this article by Hurb Sutter

    http://www.gotw.ca/gotw/026.htm
  20. Replies
    6
    Views
    1,555

    Re: Translate C to C++...Help...

    In addition to medievalelks, i can add this



    #include <list>

    struct PolyNode
    {
    int exponent;
    double coefficient;
  21. Replies
    2
    Views
    974

    Re: Exception concept

    take a look at this, it might help

    http://drdobbsonline.org/windows/184416600
  22. Replies
    14
    Views
    1,677

    Re: Header files and classes

    Oops. I didnt notice this. Yes the declration of point should come first. Thanks to point this out.



    class Edge;

    class Point{
    public:
    double x;
    double y;
  23. Replies
    14
    Views
    1,677

    Re: Header files and classes

    Even in one file use forward declearation. Use forward declearation of point before edge class something like this



    class Point;

    class Edge {
    public:
    Point org;
    Point dest;
  24. Replies
    15
    Views
    1,323

    Re: Another Q on Virtual table

    If you are talking specifict to VC then once i wrote about this.

    http://www.codeproject.com/atl/atl_underthehood_.asp

    But this might not be the case with other compilers (or may be other...
  25. Replies
    3
    Views
    2,592

    Re: AfxBeginThread()

    From the error message it seems that your functin ThreadFunc is a non static member function of CDDosDlg class with the following signautre



    void CDDosDlg::ThreadFun(void);


    First thing,...
Results 1 to 25 of 514
Page 1 of 21 1 2 3 4





Click Here to Expand Forum to Full Width

Featured