Click here to Skip to main content
15,890,932 members
Home / Discussions / COM
   

COM

 
Questiondeveloping COM Application Pin
peter rankel11-Jul-06 21:03
peter rankel11-Jul-06 21:03 
AnswerRe: developing COM Application Pin
kumarprabhakar7411-Jul-06 22:22
kumarprabhakar7411-Jul-06 22:22 
Questioncallllllllllllllllllllllll Pin
arun.m11-Jul-06 21:03
arun.m11-Jul-06 21:03 
AnswerRe: callllllllllllllllllllllll Pin
Malli_S11-Jul-06 21:43
Malli_S11-Jul-06 21:43 
QuestionC# HELP Web service can not get array of int, or byte from COM object Pin
guocang11-Jul-06 11:33
guocang11-Jul-06 11:33 
AnswerRe: C# HELP Web service can not get array of int, or byte from COM object Pin
Mike Dimmick14-Jul-06 4:28
Mike Dimmick14-Jul-06 4:28 
QuestionBig Problem Pin
Ahmed Charfeddine11-Jul-06 1:21
Ahmed Charfeddine11-Jul-06 1:21 
Questionhow to change recipents in outlook2003(vc6) Pin
cpusoft10-Jul-06 21:06
cpusoft10-Jul-06 21:06 
hi:

i want to change the recipents of outlook2003 after the user clicked the send-button. For example, the old email-address is "aaa<aaa@aaa.com>" , and i want to change it to "aaa<bbb@bbb.com>". the display-name is kept, but the email-address is changed.

i use function IExchExtMessageEvents::OnCheckNames(IExchExtCallback *lpExchangeCallback), as following code:

STDMETHODIMP mymail::OnCheckNames(IExchExtCallback *lpExchangeCallback)
{
HRESULT hRet = S_OK;
LPMESSAGE lpMessage = NULL;
LPMDB lpMdb = NULL;
LPADRLIST pRecipentRows = NULL;
ULONG ulValues, ulTag;
lpExchangeCallback->GetRecipients(&pRecipentRows);
if( pRecipentRows->cEntries == 0 )
return S_FALSE;
for(unsigned long n = 0; n < pRecipentRows->cEntries; n++ ){
ulValues = pRecipentRows->aEntries[n].cValues;
for(unsigned long i = 0; i < ulValues; i++){
ulTag = pRecipentRows->aEntries[n].rgPropVals[i].ulPropTag;
if( PR_EMAIL_ADDRESS == ulTag || PR_DISPLAY_NAME == ulTag){
//new address
char* p = "bbb@bbb.com";
char* pNewContact = NULL;
MAPIAllocateBuffer(strlen(p)+1, (LPVOID FAR *)&pNewContact);
strcpy(pNewContact, p);
//change email address
pRecipentRows->aEntries[n].rgPropVals[i].Value.lpszA = pNewContact;
}
}
}
hRet = lpExchangeCallback->SetRecipients(pRecipentRows);//hRet is S_OK;
return hRet ;
}

when i debugging, the "bbb@bbb.com" is set to the pRecipentRows, but the outlook2003 still send email as old emil-address "aaa@aaa.com". why?
who could help me?
thanks alot

my email: how_fly@yahoo.com
QuestionBSTR and VARIANT Pin
anu_8810-Jul-06 20:59
anu_8810-Jul-06 20:59 
AnswerRe: BSTR and VARIANT Pin
Rory Solley10-Jul-06 22:24
Rory Solley10-Jul-06 22:24 
QuestionCOM is based on what TYPE of DESIGN PATTERN Pin
Balkrishna Talele10-Jul-06 1:38
Balkrishna Talele10-Jul-06 1:38 
AnswerRe: COM is based on what TYPE of DESIGN PATTERN [modified] Pin
Machhindra10-Jul-06 23:04
Machhindra10-Jul-06 23:04 
Questioncan i pass object through IPC in .net ? code inn Pin
K edar V9-Jul-06 21:02
K edar V9-Jul-06 21:02 
AnswerRe: can i pass object through IPC in .net ? code inn Pin
Eran Aharonovich11-Jul-06 11:02
Eran Aharonovich11-Jul-06 11:02 
QuestionDCOM in service Pin
Greg_moon9-Jul-06 7:31
Greg_moon9-Jul-06 7:31 
QuestionHow do I invoke MySQL from a Com object Pin
Ger Hayden8-Jul-06 4:42
Ger Hayden8-Jul-06 4:42 
AnswerRe: How do I invoke MySQL from a Com object Pin
Malli_S10-Jul-06 1:26
Malli_S10-Jul-06 1:26 
QuestionHow do I call a dll from a com object Pin
Ger Hayden8-Jul-06 4:37
Ger Hayden8-Jul-06 4:37 
AnswerRe: How do I call a dll from a com object Pin
peterchen8-Jul-06 5:28
peterchen8-Jul-06 5:28 
QuestionFile Not found calling C# COM assembly from C++ [modified] Pin
JakeWyman8-Jul-06 1:30
JakeWyman8-Jul-06 1:30 
QuestionCom interface call retuns error "Not enough storage is available to complete this operation" Pin
george_thomas6-Jul-06 20:32
george_thomas6-Jul-06 20:32 
QuestionInstances of COM Objects Pin
HakunaMatada6-Jul-06 20:09
HakunaMatada6-Jul-06 20:09 
AnswerRe: Instances of COM Objects Pin
Lim Bio Liong6-Jul-06 22:30
Lim Bio Liong6-Jul-06 22:30 
GeneralRe: Instances of COM Objects Pin
george_thomas9-Jul-06 20:00
george_thomas9-Jul-06 20:00 
GeneralRe: Instances of COM Objects Pin
Lim Bio Liong9-Jul-06 21:01
Lim Bio Liong9-Jul-06 21:01 

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.