|
Hiii,all
I need MFC Internals by scot wingo if anyone having ebook copy of this ,please send it to me on abhi_bhopale@rediffmail.com
Thanks ...
-- modified at 5:05 Monday 27th November, 2006
There Is Nothing Right & Wrong
|
|
|
|
|
abhijit bhopale wrote: I need MFC Internals by scot wingo if anyone having ebook copy of this ,please send it to me on
This book can be acquired through purchasing it at http://www.Amazon.com[^]
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
abhijit bhopale wrote: please send it to me on abhi_bhopale@rediffmail.com
no
|
|
|
|
|
abhijit bhopale wrote: I need MFC Internals by scot wingo..
Have you tried scot_wingo@msn.com?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi all,
i have creted my project with visual studio 6.0
and after that for certain needs i started using visual studio 7(Version 7.1.3088)
till now it was working very smoothly. but today i tried to add a propertysheet in my project and for that i created a dialog template and then by right cliking on that dialog box i clicked on add class.
and in the add class dialog box i gave CPropertyPage as base class as it is required for the property sheet.
and by this way i created the class but now when i compile the project
it gives lot's of errors
Why these errors are coming?
i am doing nothing than just creating a class and giving it base class as
CPropertyPage and then it gives me 1625 errors
some of the errors are as follows
e:\TemporyWorking\Triton\hdr\DocTree.h(20) : error C2504: 'CSizingControlBarG' : base class undefined
e:\TemporyWorking\Triton\hdr\DocTree.h(46) : error C2146: syntax error : missing ';' before identifier 'm_imageList'
e:\TemporyWorking\Triton\hdr\DocTree.h(46) : error C2501: 'CDocTree::CImageList' : missing storage-class or type specifiers
Thanks and Regards
Harshal
|
|
|
|
|
harsha_1234 wrote: e:\TemporyWorking\Triton\hdr\DocTree.h(20) : error C2504: 'CSizingControlBarG' : base class undefined
The specified base class, CSizingControlBarG , was declared but never defined. This error can be caused by a missing include file or an external base class that was not declared with the extern specifier.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Dear friends,
I would like to know how to change the properties of o/p exe file when right click like:
File version, company name etc.
Any help will be greatly appreciated!!
Thanks
Suman
I got it!, we have to goto the Resource tab, click the plus of Version folder,
double click the Version node and edit the properties.
Thanks for help!
|
|
|
|
|
Use the resource editor to edit the version.
|
|
|
|
|
I would like to use embedded code to obtain the current memory usage of my program. I would like to use ToolHelp32-API, instead of going the way of using psapi.h.
please provide detailed steps or instructions.
Thanks.
|
|
|
|
|
Hello,
how can i show a line separator between dialog objects, like in visual basic?
I like to put some radio boxes on the left side of my dialog, vertical, and i want to make a litle
difference between, not to use "GroupBox", just a simple line like menu separator:
° radio1
° radio2
° radio3
----------------- // <-- my line separator
° radio4
° radio5
° radio_n
is this posible?
thanks in advance
break;
|
|
|
|
|
override the OnPaint() function and add this code :
CRect l_rctClient;<br />
GetClientRect(&l_rctClient);<br />
<br />
CDC * l_pDC = GetDC();<br />
<br />
CPen l_GrayPen(PS_SOLID, 1, RGB(100, 100, 100));<br />
CPen l_WhitePen(PS_SOLID, 1, RGB(255, 255, 255));<br />
<br />
int l_nYLine = l_rctClient.top + l_rctClient.Height()/2;
<br />
CPen * l_pOldPen = l_pDC->SelectObject(&l_GrayPen);<br />
l_pDC->MoveTo(l_rctClient.left+2, l_nYLine);<br />
l_pDC->LineTo(l_rctClient.right-2, l_nYLine);<br />
<br />
l_pDC->SelectObject(&l_WhitePen);<br />
l_pDC->MoveTo(l_rctClient.left+2, l_nYLine+1);<br />
l_pDC->LineTo(l_rctClient.right-2, l_nYLine+1);<br />
<br />
l_pDC->SelectObject(l_pOldPen);<br />
<br />
ReleaseDC(l_pDC);
|
|
|
|
|
Hello,
thaks for answer, yes tis is what i mean, only i recive an error in line:
CRect l_rctItem;
GetDlgItem(IDC_RADIO)->GetClientRect(l_rctItem);
i think that the IDC_RADIO dont exists at this time,
Error is "Access violation 0x00000005". And the compiler show this:
<code>
_AFXWIN_INLINE void CWnd::GetWindowRect(LPRECT lpRect) const
{ ASSERT(::IsWindow(m_hWnd)); ::GetWindowRect(m_hWnd, lpRect); }
</code>
How to solve this
The rest od your sample works fine, the new line goes through the middle of my dialog
regards
break;
-- modified at 9:16 Monday 27th November, 2006
|
|
|
|
|
So you can do that :
CWnd * l_pRadioWnd = GetDlgItem(IDC_RADIO);<br />
if( !l_pRadioWnd )<br />
return;<br />
<br />
CRect l_rctItem;<br />
l_pRadioWnd ->GetClientRect(l_rctItem);<br />
<br />
int l_nYLine = l_rctItem.bottom+10;<br />
<br />
CDC * l_pDC = GetDC();<br />
<br />
CPen l_GrayPen(PS_SOLID, 1, RGB(100, 100, 100));<br />
CPen l_WhitePen(PS_SOLID, 1, RGB(255, 255, 255));<br />
<br />
CPen * l_pOldPen = l_pDC->SelectObject(&l_GrayPen);<br />
l_pDC->MoveTo(l_rctClient.left+2, l_nYLine);<br />
l_pDC->LineTo(l_rctClient.right-2, l_nYLine);<br />
<br />
l_pDC->SelectObject(&l_WhitePen);<br />
l_pDC->MoveTo(l_rctClient.left+2, l_nYLine+1);<br />
l_pDC->LineTo(l_rctClient.right-2, l_nYLine+1);<br />
<br />
l_pDC->SelectObject(l_pOldPen);<br />
<br />
ReleaseDC(l_pDC);
|
|
|
|
|
Hello,
i solve my problem, thank you! I override the wrong OnPaint() function, because i have more childdialogs!!!
regards
break;
|
|
|
|
|
Just insert a static control that is 1 DLU tall, and has the SS_SUNKEN style.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I would like to know how to disable the joystick by programming?
Please help!
|
|
|
|
|
what can i do ? and how ?
warning C4652: compiler option 'Generate Browser Info' inconsistent with precompiled header; current command-line option will override that defined in the precompiled
Bravoone
|
|
|
|
|
The warning has probably nothing to do with the fact that your application failed to start. And, what do you mean by failed to start ? It crashes, nothing appear, it hangs, ... ?
Provide also details about what you did. And also check with your debugger to see what's happening.
|
|
|
|
|
Perhaps you have to choose the Rebuild All command of Visual Studio.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
thanks !
Bravoone
|
|
|
|
|
Hi
All
I am creating application in VC++ 6.0 with unicode support.I saw no of articals in code project but these articals not explains about how to create marathi menu and captions.I don,t want single letter of english in my application window.
M.Atul
|
|
|
|
|
M. Atul wrote: how to create marathi menu and captions
I think This[^] link will help you..
The secret of life is not enjoyment
but education through experience.
- Swami Vivekananda.
|
|
|
|
|
Haven't been coding C for awhile --- I want a string tokenizer, any good suggestion? Thanks.
Norman Fung
|
|
|
|
|
Hi,
Try this:
char *strtok(
char *strToken,
const char *strDelimit
);
-----------
Mila
|
|
|
|
|
How to use WM_SYSKEYDOWN for Alt+Selection?
|
|
|
|