Click here to Skip to main content
15,896,606 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: VC++ copy variables data? Pin
The_Server24-Oct-01 22:35
The_Server24-Oct-01 22:35 
GeneralFormatting Double Pin
AJ12324-Oct-01 12:20
AJ12324-Oct-01 12:20 
GeneralRe: Formatting Double Pin
Christian Graus24-Oct-01 12:28
protectorChristian Graus24-Oct-01 12:28 
Generalwsprintf does not work with doubles Pin
Tomasz Sowinski25-Oct-01 1:14
Tomasz Sowinski25-Oct-01 1:14 
GeneralRe: Formatting Double Pin
Mike Burston24-Oct-01 12:52
Mike Burston24-Oct-01 12:52 
General"STL & typedef problem" of MFC extened DLL programing Pin
24-Oct-01 11:37
suss24-Oct-01 11:37 
GeneralRe: "STL & typedef problem" of MFC extened DLL programing Pin
Christian Graus24-Oct-01 11:47
protectorChristian Graus24-Oct-01 11:47 
GeneralRe: "STL & typedef problem" of MFC extened DLL programing Pin
24-Oct-01 19:28
suss24-Oct-01 19:28 
Dear Christian and Michael,

Thank you for your helpful suggestion. I added #include "afxtempl.h" as
Michael said and there is no more errors. The original errors are not due to STL. Very sorry for this. In fact, there are some parts using STL in my code
such as

struct TrackedFeature {
CvPoint2D32f m_cvPoint;
int m_videoframe_index;
};

typedef std::list<trackedfeature> CvFeaturesList;
typedef CvFeaturesList::iterator CvFeaturesList_It;

I made a mistake to think the error is from STL. I am sorry, STL. Smile | :)

Now, I have another question, maybe caused by my not-so-good programming
skills. That is, I want to make my View and Doc class in a "MFC exe " project as a DLL to be used by other projects. But in the code, I need to get the
point of the "Application" (by AfxGetApp()). Since there are some project-specific memebers to be used in the class of "***App", such as a point to
another view class, it makes me unable to visit such members by just geting
a CWinApp using AfxGetApp(). What I am wondering is how I can get around with this. I think this problem is completely caused by my bad programming way.
But there is no much time left, so I hope no much modification needed.

I don't know if I said my question clearly. Wish to get your further suggestions. Anyway, thank you very much for your help on my last problem
and I will try to solve the new problem myself independently. I should not
always bother others with some maybe too trival questions Smile | :) But it's better
if I could get suggestions from you, the code gurusSmile | :)

Thank you very much again.

Best regards,


Cheng LEI
GeneralRe: "STL & typedef problem" of MFC extened DLL programing Pin
Michael Dunn24-Oct-01 19:44
sitebuilderMichael Dunn24-Oct-01 19:44 
GeneralRe: "STL & typedef problem" of MFC extened DLL programing Pin
24-Oct-01 20:23
suss24-Oct-01 20:23 
GeneralRe: "STL & typedef problem" of MFC extened DLL programing Pin
Michael Dunn24-Oct-01 20:42
sitebuilderMichael Dunn24-Oct-01 20:42 
GeneralRe: "STL & typedef problem" of MFC extened DLL programing Pin
Steen Krogsgaard24-Oct-01 20:59
Steen Krogsgaard24-Oct-01 20:59 
GeneralRe: "STL & typedef problem" of MFC extened DLL programing Pin
Michael Dunn24-Oct-01 21:25
sitebuilderMichael Dunn24-Oct-01 21:25 
GeneralRe: "STL & typedef problem" of MFC extened DLL programing Pin
Steen Krogsgaard24-Oct-01 22:16
Steen Krogsgaard24-Oct-01 22:16 
GeneralRe: "STL & typedef problem" of MFC extened DLL programing Pin
Michael Dunn24-Oct-01 14:40
sitebuilderMichael Dunn24-Oct-01 14:40 
GeneralRe: "STL & typedef problem" of MFC extened DLL programing Pin
Christian Graus24-Oct-01 14:42
protectorChristian Graus24-Oct-01 14:42 
GeneralRepositioning a toolbar Pin
Walter Pak24-Oct-01 11:19
Walter Pak24-Oct-01 11:19 
GeneralRe: Repositioning a toolbar Pin
Christian Graus24-Oct-01 18:40
protectorChristian Graus24-Oct-01 18:40 
GeneralDatabase question Pin
Peter Molnar24-Oct-01 10:45
Peter Molnar24-Oct-01 10:45 
GeneralRe: Database question Pin
Michael P Butler24-Oct-01 11:21
Michael P Butler24-Oct-01 11:21 
GeneralRe: Database question Pin
Simon Walton24-Oct-01 11:28
Simon Walton24-Oct-01 11:28 
GeneralRe: Database question Pin
Michael P Butler24-Oct-01 11:38
Michael P Butler24-Oct-01 11:38 
GeneralRe: Database question Pin
Carlos Antollini24-Oct-01 11:49
Carlos Antollini24-Oct-01 11:49 
GeneralRe: Database question Pin
Simon Walton24-Oct-01 11:25
Simon Walton24-Oct-01 11:25 
GeneralRe: Database question Pin
Christian Graus24-Oct-01 11:49
protectorChristian Graus24-Oct-01 11: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.