?
Solved

HOW TO: MDI Application look like KAZAA?

Posted on 2005-03-12
10
Medium Priority
?
284 Views
Last Modified: 2013-11-20
I'd like to write Monopoly Game -> MFC App (must be MDI) and i think the best interface would be something like Kazaa.
The question is: How can i do that?
0
Comment
Question by:Johnny123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 

Author Comment

by:Johnny123
ID: 13526388
By the way I am using Microsoft Visual Studio .NET 2003
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 13527147
Please explain what features of Kazaa do you want?
Are you talkin about a on-line game or just a desktop game?
0
 

Author Comment

by:Johnny123
ID: 13528532
I am talking about the look. My game will be online. And i'd like to have 3 or 4 pages like in Kazaa.
1)the game
2)game server settings
3)chat
4)avaible servers

and for example Kazaa has Main Page, Theatre, Search, Transfer...

I want every frame to be maximized and move through pages with nice toolbar above. No maximize, minimize button on the top of the page like in typicall MDI app created with wizard. Don't want my app to look like Word or Excel. Only app has the buttons to max., min. and close.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 13529542
I think you need this:
http://www.codeproject.com/docview/mditab.asp

Just have eliminate WS_MAXIMIZEBOX and WS_MINIMIZEBOX styles from windows.

0
 

Author Comment

by:Johnny123
ID: 13529823
I think that's the one i am looking for but when i try to build the demo project there are 12 errors (all about Demo.pch):

WindowTabCtrl.cpp
WindowTabCtrl.cpp(4) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
WindowManager.cpp
WindowManager.cpp(1) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
ViewManager.cpp
ViewManager.cpp(4) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
StdAfx.cpp
StdAfx.cpp(5) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
PopupMenu.cpp
PopupMenu.cpp(5) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
MainFrm.cpp
MainFrm.cpp(4) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
DemoView.cpp
DemoView.cpp(4) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
DemoPropertySheet.cpp
DemoPropertySheet.cpp(4) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
DemoPropertyPage.cpp
DemoPropertyPage.cpp(4) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
DemoDoc.cpp
DemoDoc.cpp(4) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
Demo.cpp
Demo.cpp(4) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
ChildFrm.cpp
ChildFrm.cpp(4) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory

what can i do to build it right?
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 13530098
Try with "rebuild all"
0
 

Author Comment

by:Johnny123
ID: 13530719
i tried that. it doesn't help.
when i try to only link the project it says:
Linking...
LINK : fatal error LNK1181: cannot open input file '.\AlphaDbg\ChildFrm.obj'
is this information any helpful?
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 13530813
Dont have VC 2003, so I will give a generic solution:
Go to your Project Settings Window
Search for the C++ options -> Precompiled headers
Choose automatic use of precompiled headers.
0
 

Author Comment

by:Johnny123
ID: 13530931
I know I am really anoying but that's the last one. If i comment it like that the app starts and everything works but without it there is an error - problem with static cast.

BEGIN_MESSAGE_MAP(CViewManager, CCBaseControlBar)
      //{{AFX_MSG_MAP(CViewManager)
      ON_WM_SIZE()
      ON_WM_CREATE()
      ON_WM_RBUTTONDOWN()
      ON_WM_WINDOWPOSCHANGING()
      ON_WM_WINDOWPOSCHANGED()
      //}}AFX_MSG_MAP
      //ON_NOTIFY(TTN_NEEDTEXT, 0, OnViewManagerToolTip)  //this is the problem
END_MESSAGE_MAP()

mditab_demo\Demo\ViewManager.cpp(64): error C2440: 'static_cast' : cannot convert from 'BOOL (__thiscall CViewManager::* )(NMHDR *,LRESULT *)' to 'void (__thiscall CCmdTarget::* )(NMHDR *,LRESULT *)'

thank you for all your help
i am increasing the points to show you how helpful you were
and sorry for my poor english :)
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 1200 total points
ID: 13532199
ensure OnViewManagerToolTip is declared as returning void

void OnViewManagerToolTip(....etcetera...)
0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month14 days, 3 hours left to enroll

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question