发布于 2005-06-21 07:07:12
0楼
有这样的一段代码,你看看行不行?
#define GetObjectA GetObject
__object *obj = NULL, *pic = NULL, *ocx = NULL;
obj= __object_create("PDLRuntime");
if(!obj)
{
printf("obj = NULL\r\n");
return;
}
pic = obj->GetPicture("NewPdl0");
if( pic == NULL){
__object_delete(obj);
printf("pic != NULL\r\n");
return;
}
ocx=pic->GetObject("OLE Control1");
if( ocx == NULL){
printf("ocx = NULL\r\n");
__object_delete(obj);
__object_delete(pic);
return;
}
ocx->AboutBox();
__object_delete(obj);
__object_delete(pic);
__object_delete(ocx);