Solved

Multiple files

Posted on 1998-06-22
3
163 Views
Last Modified: 2013-11-20
If many people were working on a task and all on differant views like one person on Dialogs the other person on a graph interface playing with the OnDraw function. If the graph interface has to be brought into the dialog project by not modifying the dialog project and only including the files of the graph task. How do I do it ? Since both use the CMyView class there is bound to be sharing or multiple declaratins problems How do I solv ethis problem. And does the Invalidate function work with a constructor?
0
Comment
Question by:sram
3 Comments
 
LVL 2

Expert Comment

by:kinkajou
ID: 1318285
Could you simplify your question and use shorter sentences. Your question is confusing. It does sound like this is a case for multi-threading your functions to handle your dialog and graph interface so that they are not using the same instance of the OnDraw() function.
0
 

Author Comment

by:sram
ID: 1318286
There are two people working in the task 1) Working on the Dialogs. 2) Working on Graph task. What has to be done to pull the graph task (which uses the OnDraw()) into the Dialog project?
This had to be done only by adding the graph task files to the dialog project.Since both use the view class there is a linking error.(LNK2005).
0
 
LVL 9

Accepted Solution

by:
Priyesh earned 50 total points
ID: 1318287
sram, the answers are general since the question isn't much clear.
       As u see, a dialog project does not accomodate a document or view, it just launches  a dialog as modal. If u have to attach a view to this, One solution is that, u build a separate project, attach this dialog as a formview into it and accomodate the other files (views) as other document templates. If u have more than one view, u have to switch it in some means or other.
Another solution is that u add these as views to u'r document, provided u'r dialog and graphview uses the same data.
If u can't adjust with the idea of adding a dialog as a formview, then u have to find some mechanism to show these dialogs. That means u need a separate workspace were u integrate the dialogs, views etc and show them appropriate..
Please refer all these points stated above and get back or if u have already solved this, good luck..
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mixString challenge 36 111
Folder Comparison 12 53
how do i create updater to My Activex application? 3 79
zeroMAx challenge 20 88
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

895 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now