Hello,
I have tab of structure of 60 000 stuctures. The compiler gets an error wile linking.
I decided to put the datas into a dll and export them.
I cannot set the address of the tab into a function and return it.
Later I will crate AddIns like this, or perhaps JohnZ he his the King of the AddIns!
typedef unsigned long long QWORD ;
#define MAX_EDIT_ROWS 29
#define MAX_EDIT_COLUMNS 29
#define MAX_EDIT_FIELDS MAX_EDIT_ROWS * MAX_EDIT_COLUMNS
#define MAX_FILTER_NAME_LENGTH 12
#define GREY_NONE 0
#define GREY_INPUT 1
#define GREY_OUTPUT 2
#define FILTER_TYPE_NORMAL 1
#define FILTER_TYPE_MINIMUM 2
#define FILTER_TYPE_MAXIMUM 3
#define FILTER_TYPE_AVERAGE 4
#define FILTER_TYPE_MEDIAN 5
#define FILTER_TYPE_DISTANCE 6
#define FILTER_TYPE_VARIANCE 7
#define FILTER_TYPE_THRESHOLD 8
#define NEGATIVE_NO 0
#define NEGATIVE_YES 1
#define FUSION_NONE 0
#define APPLY_DIVISOR_NO 0
#define APPLY_DIVISOR_YES 1
#define MODEL_NO 0
#define MODEL_YES 1
typedef struct tagCNV_FILTERS
{
char Name[MAX_FILTER_NAME_LENGTH + 1] ;
int ColsNumber ;
int FilterType ;
int Divisor ;
int Bias ;
int Negative ;
int Grey ;
int Matrix[MAX_EDIT_FIELDS] ;
} CNV_FILTERS, *LPCNV_FILTERS ;
typedef struct tagPGM_FILTERS
{
int RecordNumber ;
int TotalNumberOfColumns ;
int ApplyTheDivisor ;
int Model ;
int Fusion ;
DWORD Crc64Low ;
DWORD Crc64High ;
CNV_FILTERS Filter ;
} PGM_FILTERS, *LPPGM_FILTERS ;
#define MIN(a,b) (((a)<(b))?(a):(b))
#define MAX(a,b) (((a)>(b))?(a):(b))
PGM_FILTERS AllTheFilters[] = {
{1,9,0,1,0,634056713,115228569,"Filter 00001 - 3",3,1,0,0,0,0,-710,-143,327,135,475,77,-296,-355,471},
{2,9,0,1,0,308491901,911315395,"Filter 00002 - 3",3,1,0,0,0,1,-605,387,-367,260,801,-282,7,-650,456},
{3,9,0,1,0,1462181566,716563056,"Filter 0003 - 3",3,1,0,0,0,0,-504,-527,788,151,-97,112,-560,157,356},
{4,9,0,1,1,632117505,3613146495,"Filter 0004 - 3",3,1,0,0,0,3,-442,79,-351,-327,121,9,561,400,58},
{5,9,0,1,3,1016485661,2892954712,"Filter 0005 - 3",3,1,0,0,0,3,-354,657,424,-116,-504,170,172,-291,-193},
{6,9,0,1,0,1762082927,3464765944,"Filter 0006 - 3",3,1,0,0,0,0,-330,-331,728,-649,684,450,494,-269,-796},
{7,9,0,1,0,4226647309,3205345883,"Filter 0007 - 3",3,1,0,0,0,0,-313,-3,-408,416,557,-248,797,-591,-230},
{8,9,0,1,0,2722049741,3204523318,"Filter 0008 - 3",3,6,0,0,0,1,-301,114,615,-619,-466,-782,-365,478,10},
{9,9,0,1,0,2276074563,3981072491,"Filter 0009 - 3",3,4,0,0,0,0,-255,-17,-5,64,-50,189,92,-51,171},
{10,9,0,1,0,4218383764,2903215869,"Filter 00010 - 3",3,1,0,0,0,0,-255,54,238,-247,73,183,-134,-63,239},
{11,9,0,1,0,2075610727,3783828473,"Filter 00011 - 3",3,1,0,0,0,0,-254,-166,-105,226,96,-20,-1,94,136},
{12,9,0,1,0,3511955899,3001072808,"Filter 00012 - 3",3,1,0,0,0,0,-254,-138,-50,96,-33,248,10,191,-52},
{13,9,0,1,0,2857026654,2288975881,"Filter 00013 - 3",3,4,0,0,0,0,-254,108,248,220,142,-237,186,-123,-247},
{ 0, 0,0,0,0,0,0,"(None)",0,1,0,0,0,0}
} ;
How to declare it ?
Do I have to put it into a DEF file ?
Thank Your for your help.