ZsZs
Computer
- May 8, 2007
- 30
Hi!
I create a new assembly doc (from my C++ program) and I like adding by assembly component to it.
But don't work... :-(
I like the adding the component to the assembly by the
AddComponent4() function.
The function result:
hres = S_OK (it's good) but a pointer to the component is NULL (variable name of program: swComp). It is bad.
My codesnippet:
IComponent2* swComp;
CComQIPtr <IAssemblyDoc> swAssy = swModel;
hres = swAssy -> AddComponent4(component_name, "", x, y, z, &swComp);
Why???
Can anybody a idea? (swAssy is correct too...)
(Sorry the my C++ example, but I not working properly in VB...)
Thanks:
ZsZs.
I create a new assembly doc (from my C++ program) and I like adding by assembly component to it.
But don't work... :-(
I like the adding the component to the assembly by the
AddComponent4() function.
The function result:
hres = S_OK (it's good) but a pointer to the component is NULL (variable name of program: swComp). It is bad.
My codesnippet:
IComponent2* swComp;
CComQIPtr <IAssemblyDoc> swAssy = swModel;
hres = swAssy -> AddComponent4(component_name, "", x, y, z, &swComp);
Why???
Can anybody a idea? (swAssy is correct too...)
(Sorry the my C++ example, but I not working properly in VB...)
Thanks:
ZsZs.