Click here to Skip to main content
15,064,665 members
Home / Discussions / COM
   

COM

 
AnswerRe: How to convert COM proxy-stub dll to type library ? Pin
Jonathan Davies30-Dec-11 9:08
MemberJonathan Davies30-Dec-11 9:08 
AnswerRe: How to convert COM proxy-stub dll to type library ? Pin
«_Superman_»6-Jan-12 16:23
professional«_Superman_»6-Jan-12 16:23 
QuestionOPENING THE VBA EDITOR ON CLICK ON OLEOBJECTS BUTTON Pin
archana jain15-Dec-11 0:20
Memberarchana jain15-Dec-11 0:20 
QuestionHow to select the predefined area as WIDTH in PIXEL by HEIGHT IN PIXELS in MSEXCEL for desiging your templates Pin
archana jain14-Dec-11 22:18
Memberarchana jain14-Dec-11 22:18 
QuestionAdding Workbook In Excel Pin
SB_CodeForFun6-Dec-11 20:02
MemberSB_CodeForFun6-Dec-11 20:02 
QuestionNeed Com Help - I'm a beginner Pin
jkirkerx6-Nov-11 8:48
professionaljkirkerx6-Nov-11 8:48 
AnswerRe: Need Com Help - I'm a beginner Pin
«_Superman_»6-Nov-11 15:36
professional«_Superman_»6-Nov-11 15:36 
GeneralRe: Need Com Help - I'm a beginner Pin
jkirkerx6-Nov-11 19:34
professionaljkirkerx6-Nov-11 19:34 
I thought about that. If the mime map key is empty at 0, I add an entry, the +CVariants becomes 1. In the For Loop SafeArrayPutElement, it loops once.

so no existing data, add pME, va.pa = {pa=0x003a7200 DISPATCH = 0x017a8458 } vt = 9, cVariants = 0
the added data is the 0, first array entry, but makes the SafeArray Bound 1, because it can't be 0?

So you don't think that my pME is distorting the va.pa?, I can't see the data, so I don't know.

I'm in Antarctica here on this one, it's not a popular subject, and wrappers have been created to do the job in VB. I'm learning that super hard stuff has been replaced with high level wrappers by MS. Thanks for looking at my post, I really need to pull this off, and move on to my socket issue. I think I'm so close to finishing this function.

if (NULL != pwszAddExtension && NULL != pwszAddType) {						
			CComPtr<IISMimeType>	pME;

			// Build a CCom Pointer and Instance
			hr = pME.CoCreateInstance(L"MimeMap");			
			RETURN_ON_FAILURE(hr);
			
			hr = pME->put_Extension(bstrAddExtension);
			hr = pME->put_MimeType(bstrAddType);
			RETURN_ON_FAILURE(hr);						
				
			// Append pME to the array
			//V_VT(&va.pa[cVariants]) = VT_DISPATCH;
			//V_DISPATCH(&va.pa[cVariants]) = pME;
			//++cVariants;	<- You talkin about this- if 0, then add 1		
				 
			SAFEARRAYBOUND saBound = {cVariants, 0};
			SafeArray sa(VT_VARIANT, 1, &saBound); ,- the bound becomes 1

			VARIANT varArray;
			VariantInit(&varArray);

			V_VT(&varArray) = (VT_VARIANT | VT_ARRAY);
			V_ARRAY(&varArray) = sa.psa;
			
			for (i = 0; i < cVariants; ++i) {
				hr = SafeArrayPutElement(sa.psa, &i, &va.pa[i]);
				RETURN_ON_FAILURE(hr);				
			}		

GeneralRe: Need Com Help - I'm a beginner Pin
jkirkerx9-Nov-11 7:36
professionaljkirkerx9-Nov-11 7:36 
QuestionHow to use unregistered tlb file Pin
SB_CodeForFun30-Oct-11 23:54
MemberSB_CodeForFun30-Oct-11 23:54 
AnswerRe: How to use unregistered tlb file Pin
DriveByCoder24-Mar-15 7:48
professionalDriveByCoder24-Mar-15 7:48 
QuestionCOM Component Late binding trouble Pin
nilarya25-Aug-11 6:28
Membernilarya25-Aug-11 6:28 
AnswerRe: COM Component Late binding trouble Pin
tom-englert21-Sep-11 1:20
Membertom-englert21-Sep-11 1:20 
GeneralRe: COM Component Late binding trouble Pin
nilarya6-Oct-11 23:27
Membernilarya6-Oct-11 23:27 
GeneralRe: COM Component Late binding trouble Pin
tom-englert7-Oct-11 3:59
Membertom-englert7-Oct-11 3:59 
GeneralRe: COM Component Late binding trouble Pin
nilarya7-Oct-11 22:46
Membernilarya7-Oct-11 22:46 
GeneralRe: COM Component Late binding trouble Pin
nilarya7-Oct-11 22:57
Membernilarya7-Oct-11 22:57 
GeneralRe: COM Component Late binding trouble Pin
nilarya23-Oct-11 23:27
Membernilarya23-Oct-11 23:27 
GeneralRe: COM Component Late binding trouble Pin
tom-englert7-Nov-11 6:23
Membertom-englert7-Nov-11 6:23 
AnswerRe: COM Component Late binding trouble Pin
Vi25-Oct-11 0:39
MemberVi25-Oct-11 0:39 
QuestionUnable to register 64 bit COM Server Pin
sandeepkavade17-Aug-11 2:07
Membersandeepkavade17-Aug-11 2:07 
AnswerRe: Unable to register 64 bit COM Server Pin
Shameel17-Aug-11 2:32
professionalShameel17-Aug-11 2:32 
AnswerRe: Unable to register 64 bit COM Server Pin
«_Superman_»19-Aug-11 4:18
professional«_Superman_»19-Aug-11 4:18 
QuestionRegarding SheetCalculate event in Excel API Pin
gtag20-Jun-11 10:02
Membergtag20-Jun-11 10:02 
AnswerRe: Regarding SheetCalculate event in Excel API Pin
«_Superman_»13-Jul-11 7:04
professional«_Superman_»13-Jul-11 7:04 

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.