I need to create an XCMD and DLL with several tricky characteristics. While I have created Macintosh XCMDs before, I am not sure how to deal with this set of characteristics. Also I have not dealt with DLLs for PCs so I am unaware of issues that may arise. Any insights or references to code that does the job would be much appreciated. 1. The XCMD / DLL must be substantially larger than 32K. So, at least for Macintosh, I have to create an XCMD that loads the larger block of code into memory and then calls it. Also, perhaps it is best to leave the loaded code resident in memory until MetaCard quits (or my MetaCard stack closes), because the XCMD / DLL will be called repeatedly. 2. The XCMD / DLL must allocate large amounts of memory (several MB), to be maintained even when the XCMD / DLL is not in use, and de-allocated when MetaCard quits. I have done this previously on the Mac, but I haven't learned how to do this on PCs. 3. The XCMD / DLL must set global variables in MetaCard, and ideally could make other callbacks to MetaCard. CodeWarrior comes with some sample projects that discuss issues 1 and 3, but they take some work to understand (indeed no sample project incorporates both characteristics 1 and 3) and to be honest I haven't understood yet. I was thinking of programming in CodeWarrior C (I have version 3.2), though I could switch to different software and/or programming language if that would help. If anyone has a template or sample code, ideally with at least characteristics 1 and 3, you could be my savior. Thanks in advance, Ken This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
