For Programmers: Free Programming Magazines  


Home > Archive > PowerBuilder > May 2004 > safearray of UDTs from a COM-DLL









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author safearray of UDTs from a COM-DLL
Michael

2004-05-21, 3:32 am

Hello everybody,

I need help with a COM-DLL (written with ATL) I have to use in my project.
There are a lot of functions in this DLL that return safearrays of UDT
structs, like

****************************************
******************
struct {
int Pnr;
BSTR ID;
BSTR Filepath;
} ResultUDT;
****************************************
******************

the interface looks like that:

****************************************
******************
interface IDatabase : IDispatch
{
HRESULT Result([out, retval] SAFEARRAY(struct ResultUDT) *pResult);
}
****************************************
******************

How do I have to declare that in Powerbuilder 8? How can I receive the
return array? Does anyone know anything about that?

Any help is appreciated!

Thanks
Michael
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com