I am trying to complete the external tutorial for MetaCard on Windows. 
I have built the DLL using the external code provided with MetaCard, and
it seems to compile fine.  When I open the external tutorial stack, the
external.dll gets attached (Windows no longer lets me delete the file or
change its name because it is in use).  But, MetaCard isn't recognizing
any of the XCMDs.  For example, clicking on the "sprintf" button yields
the error message "can't find handler".  Clicking on the "xatan2" button
yields the error message "error in function handler", presumably for the
same reason.  I suspect the list of XCMDs/XFCNs in the DLL is somehow
not being registered properly.

I am building the DLL in CodeWarrior (ver. 3.2), compiling the source
files XCmdGlue.c and external.c.  I notice in the "external.def" file
that comes with MetaCard that there is something saying
        EXPORTS
        getXtable
and I have not taken this into account (I'm not sure how I would in
CodeWarrior; the .def file is for Visual C++).  I have not touched
CodeWarrior's default (for a DLL project) settings for memory usage
(base address, stack and heap sizes -- anyway I'm not sure whether they
are relevant for DLLs).  Nor have I changed any link options (thus I
have not checked boxes to generate link map, SYM file, or CV info,
whatever those do).

There must be some obvious solution to this, but I'm afraid I'm new at
this....  Can anyone provide insights?  Or maybe someone can email me
directly with a CodeWarrior project version of the external, for 
an example that works as a starting point?

Thanks much in advance!

Ken

Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to