Click here to Skip to main content
15,888,351 members
Home / Discussions / COM
   

COM

 
AnswerRe: shell programming Pin
prasad_som5-Dec-06 17:38
prasad_som5-Dec-06 17:38 
QuestionAdding form component in outlook 2003 Pin
Abhishektiwary5-Dec-06 2:06
Abhishektiwary5-Dec-06 2:06 
Questionupdating Assembley in GAC Pin
mnaveed4-Dec-06 23:24
mnaveed4-Dec-06 23:24 
Question‘Permission denied’ error Pin
lafleon4-Dec-06 13:17
lafleon4-Dec-06 13:17 
Questionmarshaling char* Pin
deathBell4-Dec-06 6:36
deathBell4-Dec-06 6:36 
AnswerRe: marshaling char* Pin
lafleon4-Dec-06 11:39
lafleon4-Dec-06 11:39 
QuestionPowerPoint effects: How to figure out a current effect name within SlideShowNextBuild event handler? Pin
wasek20014-Dec-06 2:51
wasek20014-Dec-06 2:51 
Questionpassing binary to com Pin
Anilkumar K V4-Dec-06 1:07
Anilkumar K V4-Dec-06 1:07 
I have an encrypted string like one below


óðØÐÕ“Ðí¼Q‰ð¿GäšÉ²xq¯‡#D
Ù(=×-Åñׇòu𞇩5O™ß½õXê&g"²Áy;‹í
"qÃgø)tý)KŽTÄbÀ Asï°ªñ5g3C`èì^Þn|qt†ò4²{q`Bòåm…

i want to pass this to an ATL com component from asp and save the same thing in a text file from the component

i put this entire string in an array as below in vbscript

myData = óðØÐÕ“Ðí¼Q‰ð¿GäšÉ²xq¯‡#D
Ù(=×-Åñׇòu𞇩5O™ß½õXê&g"²Áy;‹í
"qÃgø)tý)KŽTÄbÀ Asï°ªñ5g3C`èì^Þn|qt†ò4²{q`Bòåm…

Redim BinArray(LenB(myData))

For I = 1 To LenB(myData)

BinArray(I-1)=MidB(myData, I, 1)
Next


i am passing to com component with the statement

dllObj.ProcessData(BinArray)

dllObj is com component


Method inside the component is

STDMETHODIMP CKey::ProcessData(VARIANT *data, BSTR *success)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState())

HRESULT hr;
_variant_t vtArray (data);
VARTYPE vt = V_VT(&vtArray);

if (vt & VT_ARRAY)
{


long lLBound, lUBound;
SAFEARRAY * psa;

// copy variant array to SAFEARRAY
SafeArrayCopy(*(vtArray.pparray), &psa);

SafeArrayGetLBound(psa, 1, &lLBound);

SafeArrayGetUBound(psa, 1, &lUBound);


for (long loopCnt = lLBound; loopCnt
AnswerRe: passing binary to com Pin
lafleon4-Dec-06 11:45
lafleon4-Dec-06 11:45 
Questionregarding projects in asp.net Pin
hishhash2-Dec-06 0:16
hishhash2-Dec-06 0:16 
QuestionWMI Win32_pingStatus Pin
abhiramsss1-Dec-06 7:13
abhiramsss1-Dec-06 7:13 
QuestionChanging the size of ToolBand Dynamically Pin
georgekjolly1-Dec-06 0:59
georgekjolly1-Dec-06 0:59 
QuestionHow to take X , Y Coordinates of HTML Element Collections Pin
georgekjolly30-Nov-06 22:13
georgekjolly30-Nov-06 22:13 
QuestionHow do I use a third party Windows Forms control (VB.NET) Pin
tintinchasm30-Nov-06 3:13
tintinchasm30-Nov-06 3:13 
QuestionActivex GUI project Pin
jfuhrer30-Nov-06 2:09
jfuhrer30-Nov-06 2:09 
AnswerRe: Activex GUI project Pin
lafleon4-Dec-06 12:44
lafleon4-Dec-06 12:44 
QuestionHello. Pin
planC29-Nov-06 14:09
planC29-Nov-06 14:09 
QuestionCOM Wrapper Pin
sheetal_0628-Nov-06 23:07
sheetal_0628-Nov-06 23:07 
AnswerRe: COM Wrapper Pin
User 21559729-Nov-06 4:53
User 21559729-Nov-06 4:53 
GeneralRe: COM Wrapper Pin
sheetal_0629-Nov-06 17:58
sheetal_0629-Nov-06 17:58 
QuestionActiveX Control Pin
HakunaMatada27-Nov-06 17:04
HakunaMatada27-Nov-06 17:04 
AnswerRe: ActiveX Control Pin
Roger Stoltz27-Nov-06 20:55
Roger Stoltz27-Nov-06 20:55 
GeneralRe: ActiveX Control Pin
HakunaMatada27-Nov-06 21:29
HakunaMatada27-Nov-06 21:29 
GeneralRe: ActiveX Control Pin
Roger Stoltz27-Nov-06 21:49
Roger Stoltz27-Nov-06 21:49 
QuestionWMI Pin
abhiramsss27-Nov-06 9:38
abhiramsss27-Nov-06 9:38 

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.