To boldly go where no one has gone before?
Surely there's somone out there who knows about this.
I'm trying to create a form dynamicly, then save it to a resource database,
so that another program can
use it for a resource.
I can create the form, and I have created a resource database,
but when I try to call DmAttachResource, I get a privaledge violation. The
problem
is my handle is zero. I'm trying to do it like this.
// form creation code (calling FrmNewFrm) not shown, because I think its
working.
handle = MemPtrRecoverHandle((VoidPtr) formPtr);
DmAttachResource(resourceDB, handle, tFRM, FrmGetFrmId(formPtr));
(on a side note, what are valid numbers for form IDs? I'm just picking mine
to be whatever I want them to be. Is this wrong?)
Thanks for any help.
Steve