Click here to Skip to main content
15,908,618 members
Home / Discussions / COM
   

COM

 
GeneralRe: Need help using object in ATL ActiveX EXE window services server. Pin
bahruddina30-Dec-02 20:28
bahruddina30-Dec-02 20:28 
Questionpackaging a vc++ software? Pin
xxhimanshu21-Dec-02 1:40
xxhimanshu21-Dec-02 1:40 
AnswerRe: packaging a vc++ software? Pin
Renjith Ramachandran29-Dec-02 6:00
Renjith Ramachandran29-Dec-02 6:00 
GeneralATL COM thingie using inheritance Pin
Scracha20-Dec-02 4:56
Scracha20-Dec-02 4:56 
GeneralRe: ATL COM thingie using inheritance Pin
Ranjan Banerji20-Dec-02 5:44
Ranjan Banerji20-Dec-02 5:44 
GeneralRe: ATL COM thingie using inheritance Pin
pba_23-Dec-02 12:30
pba_23-Dec-02 12:30 
GeneralBeginners help with SAFEARRAY Pin
Obliterator19-Dec-02 8:24
Obliterator19-Dec-02 8:24 
GeneralRe: Beginners help with SAFEARRAY Pin
Barry Lapthorn19-Dec-02 20:47
protectorBarry Lapthorn19-Dec-02 20:47 
Something like this should help:

SAFEARRAY* CFoo::DoubleArrayToSafeArray(double* array, int n)<br />
{<br />
        // n is the size of the array.<br />
        // caller takes ownership of returned SAFEARRAY<br />
<br />
        // create array bounds.<br />
	SAFEARRAYBOUND rgsabound[1];<br />
	rgsabound[0].lLbound = 0;<br />
	rgsabound[0].cElements = n;<br />
<br />
        //  create safearray<br />
	SAFEARRAY* pReturn = NULL;<br />
	pReturn = SafeArrayCreate( VT_R8 , 1, rgsabound);<br />
<br />
	if (pReturn == NULL)<br />
		return pReturn;<br />
<br />
        //  populate it<br />
	long idxPos = 0;<br />
	for (idxPos = 0 ; idxPos < n; idxPos++)<br />
	{<br />
	  HRESULT hr = SafeArrayPutElement(pReturn, &idxPos, (void*) &(array[idxPos]));<br />
	}<br />
	return pReturn;<br />
}


Regards

Barry

GeneralRe: Beginners help with SAFEARRAY Pin
work_to_live20-Dec-02 20:18
work_to_live20-Dec-02 20:18 
GeneralRe: Beginners help with SAFEARRAY Pin
Barry Lapthorn22-Dec-02 0:37
protectorBarry Lapthorn22-Dec-02 0:37 
GeneralRe: Beginners help with SAFEARRAY Pin
Barry Lapthorn23-Dec-02 3:16
protectorBarry Lapthorn23-Dec-02 3:16 
Generala COM+ design question Pin
Anonymous19-Dec-02 3:16
Anonymous19-Dec-02 3:16 
GeneralRe: a COM+ design question Pin
Burt Harris21-Dec-02 10:34
Burt Harris21-Dec-02 10:34 
QuestionGot CLSID/PROGID, how to access? Pin
Anonymous19-Dec-02 1:25
Anonymous19-Dec-02 1:25 
AnswerRe: Got CLSID/PROGID, how to access? Pin
Anonymous19-Dec-02 10:17
Anonymous19-Dec-02 10:17 
AnswerRe: Got CLSID/PROGID, how to access? Pin
geo_m30-Dec-02 6:16
geo_m30-Dec-02 6:16 
QuestionWhat interface to implement to be a datasource to VB data bound control? Pin
Erik Juhl13-Dec-02 5:47
Erik Juhl13-Dec-02 5:47 
AnswerRe: What interface to implement to be a datasource to VB data bound control? Pin
Jörgen Sigvardsson24-Dec-02 12:46
Jörgen Sigvardsson24-Dec-02 12:46 
Questionhow to debug visual com dll ?? Pin
Leesen13-Dec-02 5:08
Leesen13-Dec-02 5:08 
AnswerRe: how to debug visual com dll ?? Pin
geo_m13-Dec-02 11:29
geo_m13-Dec-02 11:29 
GeneralRe: how to debug visual com dll ?? Pin
Leesen13-Dec-02 16:08
Leesen13-Dec-02 16:08 
GeneralRe: how to debug visual com dll ?? Pin
geo_m14-Dec-02 4:13
geo_m14-Dec-02 4:13 
GeneralRe: how to debug visual com dll ?? Pin
Leesen17-Dec-02 13:22
Leesen17-Dec-02 13:22 
GeneralRe: how to debug visual com dll ?? Pin
geo_m19-Dec-02 2:20
geo_m19-Dec-02 2:20 
GeneralWebBrowser text is not updated after Replaying Keypress event Pin
p_khasnis12-Dec-02 15:53
p_khasnis12-Dec-02 15:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.