Click here to Skip to main content
15,907,001 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralI got A Queistion about COM+ Pin
Rassul Yunussov21-Nov-04 0:46
Rassul Yunussov21-Nov-04 0:46 
GeneralSlider Control Pin
shijuck21-Nov-04 0:11
shijuck21-Nov-04 0:11 
Generalnew to dll files Pin
Swatgod20-Nov-04 21:11
Swatgod20-Nov-04 21:11 
GeneralRe: new to dll files Pin
Mike Danberg24-Nov-04 19:10
Mike Danberg24-Nov-04 19:10 
GeneralPrint Dialog appears sometimes Pin
Jo Fredrickson20-Nov-04 19:20
Jo Fredrickson20-Nov-04 19:20 
GeneralRe: Print Dialog appears sometimes Pin
Neville Franks20-Nov-04 22:55
Neville Franks20-Nov-04 22:55 
GeneralRe: Print Dialog appears sometimes Pin
Jörgen Sigvardsson21-Nov-04 2:43
Jörgen Sigvardsson21-Nov-04 2:43 
GeneralRe: Print Dialog appears sometimes Pin
Jo Fredrickson22-Nov-04 3:08
Jo Fredrickson22-Nov-04 3:08 
Thanks for the replies.

I am using the vArg to clear the header and footer so that the default Internet Explorer text does not appear on my printout.

It was a while ago, but I think this I got the code from a Codeproject article. Does it look ok to you?

I can't disable it to see if the problem goes away because its on a live manufacturing system and the problem never happens for me (of course)

Joanne



SAFEARRAYBOUND psabBounds[1];
SAFEARRAY *psaHeadFoot;

// Initialize header and footer parameters to send to ExecWB().
psabBounds[0].lLbound = 0;
psabBounds[0].cElements = 2;
psaHeadFoot = SafeArrayCreate(VT_VARIANT, 1, psabBounds);

VARIANT vHeadStr, vFootStr;
VariantInit(&vHeadStr);
VariantInit(&vFootStr);

// Argument 1: Header
vHeadStr.vt = VT_BSTR;
vHeadStr.bstrVal = SysAllocString(L"");

// Argument 2: Footer
vFootStr.vt = VT_BSTR;
vFootStr.bstrVal = SysAllocString(L"");

// SAFEARRAY must be passed ByRef
VARIANT vArg;
VariantInit(&vArg);
vArg.vt = VT_ARRAY | VT_BYREF;
vArg.parray = psaHeadFoot;

LONG rgIndices = 0;
SafeArrayPutElement(psaHeadFoot, &rgIndices, static_cast<void *="">(&vHeadStr));
rgIndices = 1;
SafeArrayPutElement(psaHeadFoot, &rgIndices, static_cast<void *="">(&vFootStr));
GeneralRe: WM_CTLCOLORBTN Pin
Michael Dunn20-Nov-04 19:16
sitebuilderMichael Dunn20-Nov-04 19:16 
GeneralRe: WM_CTLCOLORBTN Pin
Neville Franks20-Nov-04 22:58
Neville Franks20-Nov-04 22:58 
GeneralRe: WM_CTLCOLORBTN Pin
John R. Shaw21-Nov-04 6:10
John R. Shaw21-Nov-04 6:10 
GeneralRe: WM_CTLCOLORBTN Pin
Timothy Grabrian21-Nov-04 18:40
professionalTimothy Grabrian21-Nov-04 18:40 
GeneralRe: WM_CTLCOLORBTN Pin
John R. Shaw22-Nov-04 12:45
John R. Shaw22-Nov-04 12:45 
GeneralWM_CTLCOLORBTN Pin
Timothy Grabrian20-Nov-04 17:57
professionalTimothy Grabrian20-Nov-04 17:57 
GeneralSorting a linked list of type class Pin
Maxforce20-Nov-04 17:25
Maxforce20-Nov-04 17:25 
GeneralRe: Sorting a linked list of type class Pin
Jack Puppy20-Nov-04 19:08
Jack Puppy20-Nov-04 19:08 
GeneralRe: Sorting a linked list of type class Pin
Maxforce20-Nov-04 19:47
Maxforce20-Nov-04 19:47 
GeneralCustom CImageList VS manifest files Pin
alex.barylski20-Nov-04 14:16
alex.barylski20-Nov-04 14:16 
GeneralRe: Button and Testbox help Pin
bmzhao20-Nov-04 14:32
bmzhao20-Nov-04 14:32 
GeneralRe: Button and Testbox help Pin
Timothy Grabrian20-Nov-04 17:09
professionalTimothy Grabrian20-Nov-04 17:09 
GeneralCreateProcess stack overflow Pin
Michael Sobers20-Nov-04 11:59
Michael Sobers20-Nov-04 11:59 
GeneralRe: CreateProcess stack overflow Pin
BaldwinMartin20-Nov-04 17:22
BaldwinMartin20-Nov-04 17:22 
GeneralRe: CreateProcess stack overflow Pin
Michael Sobers22-Nov-04 10:23
Michael Sobers22-Nov-04 10:23 
GeneralRe: CreateProcess stack overflow Pin
BaldwinMartin22-Nov-04 12:08
BaldwinMartin22-Nov-04 12:08 
QuestionHow do you properly usethe Doc/View Pin
Larry Mills Sr20-Nov-04 11:45
Larry Mills Sr20-Nov-04 11:45 

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.