Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Initializer lists, default constructors and references Pin
Tim Craig8-Mar-10 13:53
Tim Craig8-Mar-10 13:53 
GeneralRe: Initializer lists, default constructors and references Pin
CString(0xcccccccc)8-Mar-10 9:30
CString(0xcccccccc)8-Mar-10 9:30 
AnswerRe: Initializer lists, default constructors and references [modified] Pin
Avi Berger8-Mar-10 9:27
Avi Berger8-Mar-10 9:27 
GeneralRe: Initializer lists, default constructors and references Pin
CString(0xcccccccc)8-Mar-10 9:40
CString(0xcccccccc)8-Mar-10 9:40 
GeneralRe: Initializer lists, default constructors and references Pin
Avi Berger8-Mar-10 10:08
Avi Berger8-Mar-10 10:08 
GeneralRe: Initializer lists, default constructors and references Pin
CString(0xcccccccc)8-Mar-10 10:40
CString(0xcccccccc)8-Mar-10 10:40 
GeneralRe: Initializer lists, default constructors and references Pin
Avi Berger8-Mar-10 11:08
Avi Berger8-Mar-10 11:08 
GeneralRe: Initializer lists, default constructors and references Pin
CString(0xcccccccc)8-Mar-10 20:19
CString(0xcccccccc)8-Mar-10 20:19 
The & symbol was lost during the copy/paste operation. Something (VS, the clipboard, the web page edit control) replaced all occurences of that symbol with "amp &" so I was forced to edit the copied code. I deleted the symbol by accident, sorry. It's missing only from the message, not from the code.

CMyObArray it's a class derived from CObArray MFC class. I use it for it's ease to add/remove array elements. In the end it will be more than an array of objects, it will also hold all relevant info about the map (like the position of starting and ending cell, a pointer to an array describing the map, a function to retrieve minimal the object with the minimal distance and so on.) At this time it's only a minimal scratch.

The header file is:

#pragma once
#include "atltypes.h"

// CMyObArray command target

class CMyObArray : public CObArray
{
public:
CMyObArray();
virtual ~CMyObArray();
CPoint cellBegin;
CPoint cellEnd;
};



The cpp file is:

// MyObArray.cpp : implementation file
//

#include "stdafx.h"
#include "Test551.h"
#include "MyObArray.h"


// CMyObArray

CMyObArray::CMyObArray()
: cellBegin(0)
, cellEnd(0)
{
}

CMyObArray::~CMyObArray()
{
}


// CMyObArray member functions

For he first parent I can pass any CObject casted to CMyOb. It doesn't matter if some class members will be incorrect as long as I only use it as a marker for the end of the path in searching.

Now you know all about that problem to test it on your own computer. I used the VS 2008 full version in a dialog based project. Apart form the ccode I posted, there's nothing else in the project except what VS automatically generated.
AnswerRe: Initializer lists, default constructors and references Pin
CString(0xcccccccc)9-Mar-10 1:43
CString(0xcccccccc)9-Mar-10 1:43 
QuestionHow to keep DLL updated during development ? [modified] Pin
Vaclav_8-Mar-10 7:39
Vaclav_8-Mar-10 7:39 
AnswerRe: How to kee DLL updated during development ? Pin
Chris Losinger8-Mar-10 7:47
professionalChris Losinger8-Mar-10 7:47 
GeneralRe: How to kee DLL updated during development ? Pin
CPallini8-Mar-10 7:51
mveCPallini8-Mar-10 7:51 
GeneralRe: How to kee DLL updated during development ? Pin
Vaclav_8-Mar-10 7:51
Vaclav_8-Mar-10 7:51 
GeneralRe: How to kee DLL updated during development ? Pin
CPallini8-Mar-10 7:53
mveCPallini8-Mar-10 7:53 
GeneralRe: How to kee DLL updated during development ? Pin
jeron18-Mar-10 8:28
jeron18-Mar-10 8:28 
GeneralRe: How to kee DLL updated during development ? Pin
Tim Craig8-Mar-10 10:10
Tim Craig8-Mar-10 10:10 
GeneralRe: How to kee DLL updated during development ? Pin
CPallini8-Mar-10 10:47
mveCPallini8-Mar-10 10:47 
GeneralRe: How to kee DLL updated during development ? Pin
Tim Craig8-Mar-10 13:55
Tim Craig8-Mar-10 13:55 
GeneralRe: How to kee DLL updated during development ? Pin
Vaclav_8-Mar-10 17:36
Vaclav_8-Mar-10 17:36 
AnswerRe: How to keep DLL updated during development ? Pin
Chris Losinger8-Mar-10 8:28
professionalChris Losinger8-Mar-10 8:28 
AnswerRe: How to keep DLL updated during development ? SOLVED Pin
Vaclav_8-Mar-10 9:13
Vaclav_8-Mar-10 9:13 
GeneralRe: How to keep DLL updated during development ? SOLVED Pin
Tim Craig8-Mar-10 10:14
Tim Craig8-Mar-10 10:14 
GeneralRe: How to keep DLL updated during development ? SOLVED Pin
Vaclav_8-Mar-10 13:22
Vaclav_8-Mar-10 13:22 
AnswerRe: How to keep DLL updated during development ? Pin
«_Superman_»8-Mar-10 16:58
professional«_Superman_»8-Mar-10 16:58 
GeneralRe: How to keep DLL updated during development ? Pin
Vaclav_8-Mar-10 17:41
Vaclav_8-Mar-10 17:41 

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.