Click here to Skip to main content
16,007,760 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Transparent windows Pin
Anders Molin8-May-02 13:18
professionalAnders Molin8-May-02 13:18 
GeneralRe: Transparent windows Pin
Christian Graus8-May-02 13:19
protectorChristian Graus8-May-02 13:19 
GeneralRe: Transparent windows Pin
Paul M Watt8-May-02 14:46
mentorPaul M Watt8-May-02 14:46 
GeneralThanks all Pin
redeemer8-May-02 15:21
redeemer8-May-02 15:21 
GeneralCompiler says WS_EX_LAYERED and LWA_ALPHA is unknown... Pin
redeemer8-May-02 15:26
redeemer8-May-02 15:26 
GeneralRe: Compiler says WS_EX_LAYERED and LWA_ALPHA is unknown... Pin
Shog98-May-02 15:58
sitebuilderShog98-May-02 15:58 
GeneralRe: Transparent windows Pin
Michael Dunn8-May-02 17:24
sitebuilderMichael Dunn8-May-02 17:24 
Generalassertion failure Pin
RalfPeter8-May-02 12:16
RalfPeter8-May-02 12:16 
I am trying to implement a document/view application. I got the program to compile but it stalls when the line 'AddDocTemplate(pDocTemp);' is executed. I keep getting the 'Debug Assertion Failed' box. Below is a snippet of the InitInstance code. Thx

BOOL CApp::InitInstance(void) {
//register class and document
CSingleDocTemplate *pDocTemp;
pDocTemp = new CSingleDocTemplate(IDR_APP,//UINT nIDResource
RUNTIME_CLASS(CAppDoc),//CRuntimeClass* pDocClass
RUNTIME_CLASS(CMain),//CRuntimeClass* pFrameClass
RUNTIME_CLASS(CAppView));//CRuntimeClass* pViewClass
AddDocTemplate(pDocTemp);// !!!Problem here

//parse command line info
CCommandLineInfo cmd;
ParseCommandLine(cmd);
//dispatch command line info
if (!ProcessShellCommand(cmd))
return FALSE;

//show/update window
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();

return TRUE;
}


ralf.riedel@usm.edu
GeneralRe: assertion failure Pin
Roger Allen9-May-02 2:22
Roger Allen9-May-02 2:22 
QuestionDoes anyone know of a good source code control system? Pin
rbc8-May-02 11:42
rbc8-May-02 11:42 
AnswerRe: Does anyone know of a good source code control system? Pin
Anna-Jayne Metcalfe8-May-02 22:02
Anna-Jayne Metcalfe8-May-02 22:02 
GeneralSetWindowLong ( GCL_HBRBACKGROUND ) Pin
Mike Doner8-May-02 11:23
Mike Doner8-May-02 11:23 
GeneralRe: SetWindowLong ( GCL_HBRBACKGROUND ) Pin
Jeremy Falcon8-May-02 11:32
professionalJeremy Falcon8-May-02 11:32 
GeneralListbox, avoid autoscroll Pin
8-May-02 10:26
suss8-May-02 10:26 
GeneralRe: Listbox, avoid autoscroll Pin
Joaquín M López Muñoz8-May-02 10:40
Joaquín M López Muñoz8-May-02 10:40 
GeneralRe: Listbox, avoid autoscroll Pin
10-May-02 19:00
suss10-May-02 19:00 
GeneralRe: Listbox, avoid autoscroll Pin
11-May-02 7:44
suss11-May-02 7:44 
GeneralRe: Listbox, avoid autoscroll Pin
Jack Handy8-May-02 10:41
Jack Handy8-May-02 10:41 
Generalrefrence function ... Pin
Hadi Rezaee8-May-02 9:58
Hadi Rezaee8-May-02 9:58 
GeneralRe: refrence function ... Pin
Nish Nishant8-May-02 10:03
sitebuilderNish Nishant8-May-02 10:03 
GeneralRe: refrence function ... Pin
Joaquín M López Muñoz8-May-02 10:05
Joaquín M López Muñoz8-May-02 10:05 
Generalusing accelerator in a dialog based project Pin
lucy8-May-02 9:15
lucy8-May-02 9:15 
GeneralRe: using accelerator in a dialog based project Pin
Joaquín M López Muñoz8-May-02 9:25
Joaquín M López Muñoz8-May-02 9:25 
GeneralRe: using accelerator in a dialog based project Pin
lucy8-May-02 9:40
lucy8-May-02 9:40 
GeneralRe: using accelerator in a dialog based project Pin
Nish Nishant8-May-02 9:45
sitebuilderNish Nishant8-May-02 9:45 

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.