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;
 
	DBHANDLE hdb = NULL;
	STATUS ret = Session.Init();
		
	Session.GetDatabase("C:\\MyRichText.nsf", &Db, "");
	Db.Open();
 
	Db.GetViewFolder("First", &Folder1);
	Db.CreateDocument(&NewDoc, MAIL_REPLY_FORM);
 
	NewDoc.Open( LNNOTEOPENFLAGS_DEFAULT );
	NewDoc.CreateItem("Body", &NewRT);
	NewRT.GetCursor(&rtCursor);
 
	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);
 
	NewDoc.Save();
	NewDoc.Close();
	Folder1.FolderAddDocument(NewDoc);
 
	Db.Close(); 
	Session.Term();

Open in new window

davinder101Asked:
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:
http://www-12.lotus.com/ldd/doc/tools/cplus/3.0/lncpp30.nsf/078c27b23262ffff852566dd0029426a/72f8e51f328f823a85256e8200532dc4?OpenDocument

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?
0
davinder101Author Commented:


lotus notes 6

Release 6.0 September 26,2002

api

Lotus c++ api 3.0

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.
0

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.