array of structs
Buna,
Am o problema
am structura definita asa :
typedef struct format_map
{
GUID mf_guid;
DWORD fcc;
BOOL compressed;
}form_map;
si o clasa
class A
{
static form_map fom_map[];
static const ULONG lungime;
}
iar in fisierul meu .cpp incerc sa le initializez:
form_map A::fom_map[] ={
{un_guid, un_dword,TRUE},
{un_guid1, un_dword2,FALSE}
};
iar atunci cand incerc sa le compilez primesc urmatoarele erori:
Error 36 error C2143: syntax error : missing ';' before '}'
Error
13
error C2447: '{' : missing function header (old-style formal list?)
Error
23
error C2059: syntax error : ','
Nu imi dau seama unde gresesc

((