Search:
Type: Posts; User: Zeeshan
Search:
Search took 1.08 seconds.
-
June 19th, 2008, 11:47 AM
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...
-
June 18th, 2008, 03:35 PM
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...
-
June 18th, 2008, 03:20 PM
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...
-
If you become a member of ACM www.acm.org then you will have access to lots of computer books and courses.
-
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
-
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
...
-
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...
-
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...
-
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...
-
In addition it would be
wataer = (2 * hyderogen) + Oxygen
:)
-
Are you looking for something like this?
#include <iostream>
#include <string>
#include <list>
class AirCraft
{
-
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...
-
What about create a batch file for this and execute that batch file using the System function.
-
I learned OpenGL from this site
http://nehe.gamedev.net
-
Even if you have your own custom data you can make list of that.
For example
struct sSubject
{
unsigned int m_iCourseID;
-
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"...
-
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;
-
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...
-
April 24th, 2008, 04:28 PM
Before using BOOL take a look at this article by Hurb Sutter
http://www.gotw.ca/gotw/026.htm
-
April 22nd, 2008, 02:46 PM
In addition to medievalelks, i can add this
#include <list>
struct PolyNode
{
int exponent;
double coefficient;
-
April 21st, 2008, 10:11 AM
take a look at this, it might help
http://drdobbsonline.org/windows/184416600
-
April 21st, 2008, 09:59 AM
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;
-
April 21st, 2008, 09:45 AM
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;
-
September 6th, 2007, 05:08 PM
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...
-
August 18th, 2007, 10:24 PM
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,...
|
Click Here to Expand Forum to Full Width
|