S
sunil
I am using Visio 2000, with our software to provide automation (using
VC++ 6.0)
I am facing two problem currently:
1. i want to use my own stencils to be used in drawing for that,
i am using function GetStencilPaths() of IVApplication object to
retrive current stencil path. this function return CString object, now
i am conctenating my stencil path to the same string and using
SetStencilPaths() function with this value.
this is causing problem in object destruction (CString) and displays
a voilation occured message.
2. My second proble is that, my application works fine on those m/c on
which printer is installed, but if i try to run on m/c on which no
printer installed than, it gives access voilation message.
i tried to detect and found that i should set page size in my
application but i am unable get any alternative. there is only
SetPaperSize() function is available which works only in case when
printer is installed.
Please suggest me solu for above problem, how can i resolve these.
VC++ 6.0)
I am facing two problem currently:
1. i want to use my own stencils to be used in drawing for that,
i am using function GetStencilPaths() of IVApplication object to
retrive current stencil path. this function return CString object, now
i am conctenating my stencil path to the same string and using
SetStencilPaths() function with this value.
this is causing problem in object destruction (CString) and displays
a voilation occured message.
2. My second proble is that, my application works fine on those m/c on
which printer is installed, but if i try to run on m/c on which no
printer installed than, it gives access voilation message.
i tried to detect and found that i should set page size in my
application but i am unable get any alternative. there is only
SetPaperSize() function is available which works only in case when
printer is installed.
Please suggest me solu for above problem, how can i resolve these.