Click here to Skip to main content
15,908,264 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralExitWindowsEx Pin
19-May-01 12:02
suss19-May-01 12:02 
GeneralWinsock Woes Pin
Stephen Caldwell19-May-01 8:44
Stephen Caldwell19-May-01 8:44 
Generalstatic CArray Pin
derhackler19-May-01 3:41
derhackler19-May-01 3:41 
GeneralRe: static CArray Pin
Igor Sukhov19-May-01 7:52
Igor Sukhov19-May-01 7:52 
GeneralRe: static CArray Pin
derhackler19-May-01 7:58
derhackler19-May-01 7:58 
GeneralRe: static CArray Pin
Igor Sukhov19-May-01 8:09
Igor Sukhov19-May-01 8:09 
GeneralRe: static CArray Pin
Igor Sukhov19-May-01 8:11
Igor Sukhov19-May-01 8:11 
GeneralRe: static CArray Pin
Igor Sukhov19-May-01 8:11
Igor Sukhov19-May-01 8:11 
CArray is the template class - so you need to provide template parameters!
Like that:

class CPropertyList
{
...


static CArray<cyourclass, cyourclass&=""> cstraProperty;
static CArray<cyourclass, cyourclass&=""> cstraADsProperty;
static CArray<cyourclass, cyourclass&=""> intaProperty;

};

and your always must define static variables (the code above is the declaration only!):
this code your should place out of class declaration! (most of us placing this in CPP file Wink | ;) :

CArray<cyourclass, cyourclass&=""> CPropertyList::cstraProperty;
.. the same for others static members.

Hope it'll help.

ps: just've seen your post on codeguru Wink | ;)

#include

class CPropertyList
{
public:
CPropertyList();
virtual ~CPropertyList();

public:
static CString fnGetADsProperty(int intArg);
static CString fnGetADsProperty(CString cstrArg);
static int fnGetIntProperty(CString cstrArg);
static CString fnGetProperty(int intArg);
static CString fnGetProperty(CString cstrArg);

//Statische members
static CArray cstraProperty;
static CArray cstraADsProperty;
static CArray intaProperty;
};

this ist the error i get (for each CArray)

PropertyList.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: static class CArray CPropertyList::cstraProperty" (?cstraProperty@CPropertyList@@2V?$CArray@VCString@@AAV1@@@A)

any ideas?

derhackler



Best regards,

-----------
Igor Soukhov (Brainbench/Tekmetrics ID:50759)
igor_soukhov@yahoo.com | ICQ:57404554 | http://siv.da.ru
GeneralRe: static CArray Pin
Igor Sukhov19-May-01 8:13
Igor Sukhov19-May-01 8:13 
GeneralRe: static CArray Pin
derhackler19-May-01 8:16
derhackler19-May-01 8:16 
GeneralRe: static CArray Pin
derhackler19-May-01 8:15
derhackler19-May-01 8:15 
GeneralRe: static CArray Pin
Igor Sukhov19-May-01 8:20
Igor Sukhov19-May-01 8:20 
GeneralRe: static CArray Pin
derhackler19-May-01 8:25
derhackler19-May-01 8:25 
GeneralTreeView and ListCtrl Pin
BLaZe19-May-01 3:18
BLaZe19-May-01 3:18 
GeneralRe: TreeView and ListCtrl Pin
Steve Driessens19-May-01 3:48
Steve Driessens19-May-01 3:48 
GeneralRe: TreeView and ListCtrl Pin
BLaZe19-May-01 4:16
BLaZe19-May-01 4:16 
GeneralRe: TreeView and ListCtrl Pin
l a u r e n19-May-01 3:53
l a u r e n19-May-01 3:53 
GeneralRe: TreeView and ListCtrl Pin
BLaZe19-May-01 4:15
BLaZe19-May-01 4:15 
GeneralRe: TreeView and ListCtrl Pin
l a u r e n20-May-01 3:14
l a u r e n20-May-01 3:14 
QuestionHow to handle a file which might over 4G? Pin
19-May-01 2:18
suss19-May-01 2:18 
AnswerRe: How to handle a file which might over 4G? Pin
l a u r e n19-May-01 3:48
l a u r e n19-May-01 3:48 
GeneralRtlFreeHeap Error Pin
18-May-01 23:41
suss18-May-01 23:41 
GeneralRe: RtlFreeHeap Error Pin
l a u r e n19-May-01 3:50
l a u r e n19-May-01 3:50 
GeneralRe: RtlFreeHeap Error Pin
19-May-01 5:41
suss19-May-01 5:41 
GeneralExporting Dialogs having ActiveX controls Pin
18-May-01 20:29
suss18-May-01 20:29 

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.