Click here to Skip to main content
15,908,173 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to protect dll from replacement. Pin
Abdul Munaf Chhatra5-Jul-05 3:26
Abdul Munaf Chhatra5-Jul-05 3:26 
AnswerRe: how to protect dll from replacement. Pin
David Crow5-Jul-05 3:43
David Crow5-Jul-05 3:43 
AnswerRe: how to protect dll from replacement. Pin
«_Superman_»5-Jul-05 4:01
professional«_Superman_»5-Jul-05 4:01 
QuestionMS Word View->Print-Layout code? Pin
Maverick5-Jul-05 3:10
Maverick5-Jul-05 3:10 
AnswerRe: MS Word View->Print-Layout code? Pin
Chris Meech5-Jul-05 6:33
Chris Meech5-Jul-05 6:33 
GeneralRe: MS Word View->Print-Layout code? Pin
Maverick5-Jul-05 16:05
Maverick5-Jul-05 16:05 
GeneralRe: MS Word View->Print-Layout code? Pin
Jose Lamas Rios5-Jul-05 17:45
Jose Lamas Rios5-Jul-05 17:45 
GeneralCDialogBar and CMDIFrameWnd Pin
__makaveli__5-Jul-05 2:16
__makaveli__5-Jul-05 2:16 
I am trying to create a CDialogBar from an existing window using the Attach() method (I have to use Attach because the window is created by a seperate process belonging to my app), I also have a CMDIFrameWnd which I would like to dock the dialog bar to, I am using this code:

<br />
data->m_pParent = new CMDIFrameWnd;<br />
if( !data->m_pParent->Attach(data->hParentHandle) ) {<br />
	ShowError();<br />
	return;<br />
} else {<br />
	MessageBox(0, "Attached OK", "Attach", MB_OK);<br />
}<br />
	<br />
SetWindowLong(hWndBar, GWL_STYLE, WS_CHILD | CBRS_LEFT | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY);<br />
		<br />
data->m_pBar = new CDialogBar;<br />
if (!data->m_pBar->Attach(hWndBar) )<br />
{<br />
   ShowError();<br />
   return;<br />
}<br />
<br />
data->m_pBar->EnableDocking(CBRS_ALIGN_ANY);<br />
data->m_pParent->EnableDocking(CBRS_ALIGN_ANY);<br />


But I get a failed assertion on this line in dockcont.cpp
<br />
ASSERT(pBar->m_pDockSite != NULL);<br />


Am I even heading in the right direction here?

Thanks in advance
GeneralQuestion about class CSplitterWnd Pin
PRJ15rf5-Jul-05 2:03
sussPRJ15rf5-Jul-05 2:03 
GeneralRe: Question about class CSplitterWnd Pin
PJ Arends5-Jul-05 11:00
professionalPJ Arends5-Jul-05 11:00 
GeneralToolbar Pin
Anonymous5-Jul-05 1:25
Anonymous5-Jul-05 1:25 
GeneralRe: Toolbar Pin
«_Superman_»5-Jul-05 1:57
professional«_Superman_»5-Jul-05 1:57 
GeneralRe: Toolbar Pin
Anonymous5-Jul-05 17:50
Anonymous5-Jul-05 17:50 
GeneralHelp ! Reading a file from the web Pin
nirishere5-Jul-05 0:03
nirishere5-Jul-05 0:03 
GeneralRe: Help ! Reading a file from the web Pin
2249175-Jul-05 0:20
2249175-Jul-05 0:20 
GeneralAbout OMA Device Management client Pin
Maer7274-Jul-05 23:44
Maer7274-Jul-05 23:44 
GeneralAccessing resources in a Thread Pin
Juergen Kordes4-Jul-05 23:22
Juergen Kordes4-Jul-05 23:22 
GeneralRe: Accessing resources in a Thread Pin
Cedric Moonen4-Jul-05 23:54
Cedric Moonen4-Jul-05 23:54 
GeneralRe: Accessing resources in a Thread Pin
Juergen Kordes5-Jul-05 0:48
Juergen Kordes5-Jul-05 0:48 
GeneralRe: Accessing resources in a Thread Pin
Cedric Moonen5-Jul-05 1:03
Cedric Moonen5-Jul-05 1:03 
GeneralRe: Accessing resources in a Thread Pin
Juergen Kordes5-Jul-05 3:58
Juergen Kordes5-Jul-05 3:58 
Generalwe can't use some API functions Pin
mohsen nowruzi4-Jul-05 23:12
mohsen nowruzi4-Jul-05 23:12 
GeneralRe: we can't use some API functions Pin
Christian Graus4-Jul-05 23:48
protectorChristian Graus4-Jul-05 23:48 
GeneralRe: we can't use some API functions Pin
BlackDice5-Jul-05 2:49
BlackDice5-Jul-05 2:49 
GeneralRe: we can't use some API functions Pin
Blake Miller5-Jul-05 4:49
Blake Miller5-Jul-05 4:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.