>hi,
>
>i have tried several methods but still haven't managed to get the object's class name displayed where error occured in COM server.
>
>COMCLASSINFO() seems like a good function but it doesn't work eather.
>
>for example: COMCLASSINFO(This,3) doesn't return anything when called from inside COM.
>
>(i'm using COMRETURNERROR() to populate COM error)
>
>thanks!
Try constructing your cExceptionText string in the error() method of your COM object. There you can use the cMethod parameter of the error() method for the specific method the error occurred in. In addition you can use THIS.Class to get the class name.
Hope this helps,
Jake
Wine is sunlight, held together by water - Galileo Galilei
Un jour sans vin est comme un jour sans soleil - Louis Pasteur
Water separates the people of the world; wine unites them - anonymous
Wine is the most civilized thing in the world - Ernest Hemingway
Wine makes daily living easier, less hurried, with fewer tensions and more tolerance - Benjamin Franklin