lotus note create attachment function not showing proper application icon

hi i am using lotus note c plus plus api to create an attachment to a document note

the file is attached but the attached file is not having proper icon.
all attached file like doc,txt,xls all are having same icon.

what modification i have to do in my code to get the proper application icon of an attachment.

LNNotesSession		Session;
	LNDatabase		Db;
	LNRichText		RT, NewRT;
	LNViewFolder 		Folder1, Folder2;
	STATUS ret = Session.Init();
	Session.GetDatabase("C:\\MyRichText.nsf", &Db, "");
	Db.GetViewFolder("First", &Folder1);
	Db.CreateDocument(&NewDoc, MAIL_REPLY_FORM);
	NewDoc.CreateItem("Body", &NewRT);
	NewRT.CreateAttachment("C:\\link1.txt",&rtCursor,"my text file",TRUE);
	NewRT.CreateAttachment("C:\\link1.doc",&rtCursor,"my doc file",TRUE);
	NewRT.CreateAttachment("C:\\link1.xls",&rtCursor,"my xls file",TRUE);

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sjef BosmanGroupware ConsultantCommented:

They suggest to somehow use the last parameter in the call, &attachment, but I assume that won't matter.

What version of the C++ API do you use, and what Notes release?
davinder101Author Commented:

lotus notes 6

Release 6.0 September 26,2002


Lotus c++ api 3.0

Sjef BosmanGroupware ConsultantCommented:
The Notes C++ API Version 3 might not be fully compatible with Notes release 6... Too difficult a question for me... Sorry.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.