Click here to Skip to main content
15,917,709 members
Home / Discussions / COM
   

COM

 
GeneralIPropertyBag Pin
nsrsetty18-Feb-05 18:33
nsrsetty18-Feb-05 18:33 
GeneralCOM Service Pin
Vinicius Pontes18-Feb-05 0:04
Vinicius Pontes18-Feb-05 0:04 
GeneralRe: COM Service Pin
ThatsAlok19-Feb-05 6:04
ThatsAlok19-Feb-05 6:04 
GeneralRe: COM Service Pin
Vinicius Pontes20-Feb-05 23:38
Vinicius Pontes20-Feb-05 23:38 
GeneralRe: COM Service Pin
ThatsAlok21-Feb-05 0:38
ThatsAlok21-Feb-05 0:38 
GeneralCreate a new Thread Pin
BEamer17-Feb-05 2:25
BEamer17-Feb-05 2:25 
GeneralExcel COM Pin
MJWhiteman217-Feb-05 0:44
MJWhiteman217-Feb-05 0:44 
GeneralRe: Excel COM Pin
MJWhiteman217-Feb-05 3:27
MJWhiteman217-Feb-05 3:27 
Just in case anyone needs to do this, I figured out how to do it. The 'after' parameter needs to represent the IDispatch pointer of the worksheet you want to add the new sheet after. So you have to do something like this:

	// Create a COleVariant to reference an object. The m_lpDispatch member gives a<br />
	// pointer to the IDispatch interface of an object. The type must be VT_DISPATCH<br />
	COleVariant var;<br />
	var.vt = VT_DISPATCH | VT_BYREF;<br />
	var.ppdispVal = &(objSheet.m_lpDispatch);<br />
<br />
	// Add the new sheet AFTER the sheet referenced in 'matt'<br />
	sheet = objSheets.Add(VOptional, var, VOptional, VOptional);


In the above, objSheets is of type Workbooks and objsheet and sheet are of type _Worksheet
GeneralInterprocess communication Pin
ravishanker16-Feb-05 17:17
ravishanker16-Feb-05 17:17 
GeneralMSComm32 dependances Pin
Trankil16-Feb-05 6:26
Trankil16-Feb-05 6:26 
GeneralRe: MSComm32 dependances Pin
rwestgraham16-Feb-05 16:43
rwestgraham16-Feb-05 16:43 
QuestionWho have the SkinCrafter dll ? Pin
rushing15-Feb-05 22:16
rushing15-Feb-05 22:16 
Generalrestore IXMLDOMElement from pointer Pin
Konrad Windszus15-Feb-05 1:18
Konrad Windszus15-Feb-05 1:18 
GeneralMS word Pin
merlinos14-Feb-05 14:43
merlinos14-Feb-05 14:43 
GeneralIDTExtensbility2 add-in deployment Pin
m6reid14-Feb-05 11:10
sussm6reid14-Feb-05 11:10 
GeneralRe: IDTExtensbility2 add-in deployment Pin
vishalmore21-Feb-05 18:52
vishalmore21-Feb-05 18:52 
GeneralMS Office docs Pin
Chna12-Feb-05 20:57
Chna12-Feb-05 20:57 
GeneralRe: MS Office docs Pin
vishalmore13-Feb-05 20:49
vishalmore13-Feb-05 20:49 
Generalerror in createProcessinginstruction Pin
cj_rahul10-Feb-05 22:19
cj_rahul10-Feb-05 22:19 
GeneralEmbedded Pin
Jnewg59-Feb-05 5:33
Jnewg59-Feb-05 5:33 
GeneralRe: MailItem Interface Problem in Outllok Pin
Jnewg59-Feb-05 5:43
Jnewg59-Feb-05 5:43 
Generalimporting/exporting data from c++ to excel Pin
itsh118-Feb-05 5:43
itsh118-Feb-05 5:43 
GeneralSimple Basic, tricky C++ Pin
AttaTroll7-Feb-05 11:36
AttaTroll7-Feb-05 11:36 
GeneralRe: Simple Basic, tricky C++ Pin
Anonymous8-Feb-05 3:17
Anonymous8-Feb-05 3:17 
GeneralRe: Simple Basic, tricky C++ Pin
Anonymous8-Feb-05 10:54
Anonymous8-Feb-05 10:54 

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.