home *** CD-ROM | disk | FTP | other *** search
- /*------------------------------------------------------------------*/
- /* BUILDVAR.C */
- /*------------------------------------------------------------------*/
- /* API ▒` ªí : 1. SetUp() ( in buildvar.c ) */
- /* 2. CleanUp() ( in buildvar.c ) */
- /* API ¿τ╝╞└] : buildvar.plb */
- /* ⌐IÑsñΦªí : SET LIBRARY TO BUILDVAR ( ½╪Ñ▀┼▄╝╞ ) */
- /* SET LIBRARY TO ( ─└⌐±▒╝┼▄╝╞ ) */
- /*------------------------------------------------------------------*/
-
- #include <pro_ext.h>
- Locator loc;
- Value val;
-
- void FAR SetUp()
- {
- int building;
-
- val.ev_type = 'N'; /* ╕Ω«╞½¼║A */
- val.ev_width = 8; /* ┼πÑ▄╝╞¡╚¬║╝e½╫ */
- val.ev_length= 2; /* ñp╝╞ª∞╝╞ */
- val.ev_real = 0.00; /* ª╣╝╞¡╚¬║¡╚ */
-
- loc.l_subs=0; /* ¬φÑ▄¼░ñ@░O╛╨┼Θ┼▄╝╞ */
-
- building= _NewVar("number",&loc,NV_PUBLIC); /* ½╪Ñ▀ªW║┘¼░ number */
- /* ñº░O╛╨┼Θ┼▄╝╞ */
- if(building>0)
- building = _Store(&loc, &val); /* │]⌐w┼▄╝╞ñº¬∞¡╚ */
- else
- _Error(building); /* ½╪Ñ▀┼▄╝╞«╔╡oÑ═┐∙╗~ */
-
- }
-
- void FAR CleanUp()
- {
- _Release(loc.l_NTI); /* ─└⌐±ª╣┼▄╝╞ */
- }
- FoxInfo myFoxInfo[] =
- {
- {"SETUP", SetUp, CALLONLOAD, ""},
- {"CLEANUP", CleanUp,CALLONUNLOAD ,""},
- };
-
-
- FoxTable _FoxTable =
- {
- (FoxTable FAR *)0,
- sizeof(myFoxInfo) / sizeof(FoxInfo),
- myFoxInfo
- };