Hi
Can someone tell me what is the meanong & significance of the lines
Packgae Owner=<4>,Package Owner=<5> etc in a .dsw file in VC++?Thanks.
1. Creating dsw file using makefile
Hi all, I am new to VC++ programming. Please somebody explain how to create ".dsw" file for a project using its Makefile. Say for example, If you download the wincap32 sample from MSDN you dont find ".dsw" file in it. So can some body explain how to create ".dsw" from Makefile. Thanks in Advance, Seema Rao
2. .dsw and .dsp files explained
3. Structure of .dsw and .dsp files
For some rebase effort, I need to merge in changes in these two files. Unfortunately, I can't find documentation on what all the tags mean. For e.g., what is # SUBTRACT CPP /YX /Yc /Yu in .dsp file. Is there documentation on all the tags/syntax present in these two files? Thanks.
4. How to build two EXEs using one .dsw file
5. OT: How to build two EXEs using one .dsw file
6. Need thread information in exception
7. CSplitterWnd, more information, please I need your help for my examen, thanks in advance
Hello,
I hope someone can fix my problem. I create with two CSplitterWnd in
CMainFrame something like this :
oooooooooooooooo
o o o o
o o o o
o o oooooooooo
o o o o
oooooooooooooooo
My code is the following for OnCreateClient
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/,
CCreateContext* pContext)
{
if (
! m_wndSplitter.CreateStatic(this,1,3) ||
!
m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CExamen2View),CSize(75,0),pContex
t) ||
!
m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CMiddelView),CSize(150,0),pContex
t) ||
! m_wndSplitter2.CreateStatic(&m_wndSplitter, 2, 1, WS_CHILD | WS_VISIBLE,
m_wndSplitter.IdFromRowCol(0,2))||
!
m_wndSplitter2.CreateView(0,0,RUNTIME_CLASS(CRechtsBoven),CSize(0,250),pCont
ext) ||
!
m_wndSplitter2.CreateView(1,0,RUNTIME_CLASS(CRechtsOnder),CSize(0,0),pContex
t))
return false;
return true;
}
Where CExamen2View is derived from CView and the others or derived from
CFormView.
When I run the example it works, but first I get a listbox "New" with my
"view" classes in like this :
Examen2View
MiddelView
RechtsBoven
RechtsOnder
Then I select one (it 's all the same which one I choose) and then I see my
project correctly. How can I get rid off this enoying listbox ?
I looked deeper in my problem and now I found where this listbox screen
appears on my screen. It's in my CExamen2App, more exactly in the function
InitInstance. It happens between the two messageboxes. See code below.
BOOL CExamen2App::InitInstance()
{
{ // BLOCK: doc template registration
// Register the document template. Document templates serve
// as the connection between documents, frame windows and views.
// Attach this form to another document or frame window by changing
// the document or frame class in the constructor below.
CSingleDocTemplate* pNewDocTemplate = new CSingleDocTemplate(
IDR_RECHTSONDER_TMPL,
RUNTIME_CLASS(CExamen2Doc), // document class
RUNTIME_CLASS(CMainFrame), // frame class
RUNTIME_CLASS(CRechtsOnder)); // view class
AddDocTemplate(pNewDocTemplate);
}
{ // BLOCK: doc template registration
// Register the document template. Document templates serve
// as the connection between documents, frame windows and views.
// Attach this form to another document or frame window by changing
// the document or frame class in the constructor below.
CSingleDocTemplate* pNewDocTemplate = new CSingleDocTemplate(
IDR_RECHTSBOVEN_TMPL,
RUNTIME_CLASS(CExamen2Doc), // document class
RUNTIME_CLASS(CMainFrame), // frame class
RUNTIME_CLASS(CRechtsBoven)); // view class
AddDocTemplate(pNewDocTemplate);
}
{ // BLOCK: doc template registration
// Register the document template. Document templates serve
// as the connection between documents, frame windows and views.
// Attach this form to another document or frame window by changing
// the document or frame class in the constructor below.
CSingleDocTemplate* pNewDocTemplate = new CSingleDocTemplate(
IDR_MIDDELVIEW_TMPL,
RUNTIME_CLASS(CExamen2Doc), // document class
RUNTIME_CLASS(CMainFrame), // frame class
RUNTIME_CLASS(CMiddelView)); // view class
AddDocTemplate(pNewDocTemplate);
}
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey(_T("Local AppWizard-Generated Applications"));
LoadStdProfileSettings(); // Load standard INI file options (including
MRU)
// Register the application's document templates. Document templates
// serve as the connection between documents, frame windows and views.
CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CExamen2Doc),
RUNTIME_CLASS(CMainFrame), // main SDI frame window
RUNTIME_CLASS(CExamen2View));
AddDocTemplate(pDocTemplate);
// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// Dispatch commands specified on the command line
-----------------> AfxMessageBox("Test 1");
if (!ProcessShellCommand(cmdInfo))
return FALSE;
-----------------> AfxMessageBox("test 2");
// The one and only window has been initialized, so show and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return TRUE;
}
I hope someone can help me with my problem,
Thanks in advance,
Gio