Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the difference between CREATESHORTCUT AND CREATEALIAS 1

Status
Not open for further replies.

smallredville

Programmer
Aug 18, 2008
115
SG
Hello,

Recently I wrote a java program to create a shortcut with LAPI.

I tried both:
CREATESHORTCUT from LAPI_DOCUMENTS
CREATEALIAS from LAPI_DOCUMENTS

as shown in the followings:

if (doc.CreateReferenceEx(volumeID, objectID, -2000, 2000, objName, doc.CREATESHORTCUT, createInfo, objectInfo) ==0){}

if (doc.CreateReferenceEx(volumeID, objectID, -2000, 2000, objName, doc.CREATEALIAS, createInfo, objectInfo) ==0){}

both worked fine...

Just curious what is the main difference between the two then?

Many thanks in advance...

smallredville
 
In old livelink a shortcut was an alias to the original object

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top