Click here to Skip to main content
15,915,611 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Unsorted Map and Multimap :: STL Pin
valikac21-Dec-02 12:50
valikac21-Dec-02 12:50 
GeneralPackaging a VC++ Software Pin
xxhimanshu21-Dec-02 1:46
xxhimanshu21-Dec-02 1:46 
GeneralRe: Packaging a VC++ Software Pin
Anatoly Ivasyuk24-Dec-02 5:57
Anatoly Ivasyuk24-Dec-02 5:57 
Generalserialize using stream. - binary Pin
magicast20-Dec-02 2:48
magicast20-Dec-02 2:48 
GeneralRe: serialize using stream. - binary Pin
AlexO20-Dec-02 4:04
AlexO20-Dec-02 4:04 
GeneralRe: serialize using stream. - binary Pin
Ben Burnett5-Jan-03 13:17
Ben Burnett5-Jan-03 13:17 
GeneralNeed help using SafeArray/VARIANT from ASP/VBScript client Pin
bahruddina19-Dec-02 16:20
bahruddina19-Dec-02 16:20 
GeneralRe: Need help using SafeArray/VARIANT from ASP/VBScript client Pin
Barry Lapthorn19-Dec-02 20:40
protectorBarry Lapthorn19-Dec-02 20:40 
Din Krop wrote:
SAFEARRAY *pString = StringParam.parray;<br />
BSTR *bstrArray;<br />
CComBSTR bstrRet;<br />
// Lock it down.<br />
SafeArrayAccessData(pString, (void**)&bstrArray);


I did the following when using variants + safearrays:

//  sort out arraybounds as VB can be arr[x..y]<br />
long lowerBounds, upperBounds;<br />
SafeArrayGetLBound( StringParam.parray, 1, &lowerBounds);<br />
SafeArrayGetUBound( StringParam.parray, 1, &upperBounds);<br />
long nArgs = (upperBounds - lowerBounds) + 1;<br />
//  array of variants<br />
CComVariant* pvVariant;<br />
HRESULT hr = SafeArrayAccessData(StringParam.parray, (void**) &pvVariant);<br />
<br />
USES_CONVERSION;<br />
for(int i = 0; i < nArgs; i++)<br />
{<br />
  char szTemp[255];<br />
  if (pvVariant[i].vt == VT_BSTR)<br />
     strcpy(szTemp, OLE2T(pvVariant[i].bstrVal));<br />
  // do stuff<br />
}<br />
hr = SafeArrayUnaccessData(StringParam.parray);<br />
if (pvVariant)<br />
delete pvVariant;<br />


This may help.



Regards

Barry

GeneralRe: Need help using SafeArray/VARIANT from ASP/VBScript client Pin
AlexO20-Dec-02 3:33
AlexO20-Dec-02 3:33 
GeneralRe: Need help using SafeArray/VARIANT from ASP/VBScript client Pin
Barry Lapthorn20-Dec-02 5:59
protectorBarry Lapthorn20-Dec-02 5:59 
GeneralRe: Need help using SafeArray/VARIANT from ASP/VBScript client Pin
AlexO20-Dec-02 7:17
AlexO20-Dec-02 7:17 
GeneralRe: Need help using SafeArray/VARIANT from ASP/VBScript client Pin
Barry Lapthorn22-Dec-02 0:44
protectorBarry Lapthorn22-Dec-02 0:44 
GeneralRe: Need help using SafeArray/VARIANT from ASP/VBScript client Pin
Anonymous20-Dec-02 3:42
Anonymous20-Dec-02 3:42 
GeneralRe: Need help using SafeArray/VARIANT from ASP/VBScript client Pin
AlexO20-Dec-02 4:05
AlexO20-Dec-02 4:05 
GeneralExecutable as server type Pin
jmodia19-Dec-02 3:58
jmodia19-Dec-02 3:58 
GeneralATL Server include issue.... Pin
nw6031218-Dec-02 18:25
nw6031218-Dec-02 18:25 
GeneralATL and GDI+ Pin
Jonathan de Halleux18-Dec-02 2:26
Jonathan de Halleux18-Dec-02 2:26 
GeneralRe: ATL and GDI+ Pin
Jörgen Sigvardsson21-Dec-02 10:21
Jörgen Sigvardsson21-Dec-02 10:21 
GeneralRe: ATL and GDI+ Pin
pba_23-Dec-02 12:54
pba_23-Dec-02 12:54 
GeneralRe: ATL and GDI+ Pin
Jonathan de Halleux24-Dec-02 2:58
Jonathan de Halleux24-Dec-02 2:58 
GeneralAttributed ATL and interfaces Pin
Chad Busche16-Dec-02 6:44
Chad Busche16-Dec-02 6:44 
GeneralRe: Attributed ATL and interfaces Pin
Jörgen Sigvardsson16-Dec-02 10:40
Jörgen Sigvardsson16-Dec-02 10:40 
GeneralRegular methods on the class object Pin
Mehdi Mousavi14-Dec-02 3:48
Mehdi Mousavi14-Dec-02 3:48 
GeneralRe: Regular methods on the class object Pin
AlexO19-Dec-02 4:25
AlexO19-Dec-02 4:25 
GeneralRe: Regular methods on the class object Pin
Mehdi Mousavi19-Dec-02 6:27
Mehdi Mousavi19-Dec-02 6:27 

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.