Hi,
Here are some basic VC++ questions I have while I am learning it:
1. BOOL APIENTRY DllMain()
I don't know if it is necessary to have APIENTRY keyword and the name "DllMain" is fixed. Can I use other name such as "DLLMAIN"?
2. std::string str
I couldn't find the MSDN definition about this type declaration when I highlighted it and press F1. What property of std has? what is the difference between std::string str and,
string str?
3. CCaptureFrame::CCaptureFrame()
: CWindowImpl <CCaptureFrame> (),
m_hVfwWnd(NULL),
m_bPreview(false),
m_bStretch(false),
m_bProportional(false),
m_pFormat(NULL),
m_hIC(NULL),
m_dwFrames(0)
From the above declaration, I know the first line is a derived class method(function) by double colon. But what does the second line the single colon mean here? Within the carat "CCapturFrame" means what? Can I use something like:
CCaptureFrame
ublic CWindwoImpl
for the second line?
Thanks.
Here are some basic VC++ questions I have while I am learning it:
1. BOOL APIENTRY DllMain()
I don't know if it is necessary to have APIENTRY keyword and the name "DllMain" is fixed. Can I use other name such as "DLLMAIN"?
2. std::string str
I couldn't find the MSDN definition about this type declaration when I highlighted it and press F1. What property of std has? what is the difference between std::string str and,
string str?
3. CCaptureFrame::CCaptureFrame()
: CWindowImpl <CCaptureFrame> (),
m_hVfwWnd(NULL),
m_bPreview(false),
m_bStretch(false),
m_bProportional(false),
m_pFormat(NULL),
m_hIC(NULL),
m_dwFrames(0)
From the above declaration, I know the first line is a derived class method(function) by double colon. But what does the second line the single colon mean here? Within the carat "CCapturFrame" means what? Can I use something like:
CCaptureFrame
for the second line?
Thanks.