|
Location: Desktop development - C/C++ License: The Intelliproject Open License (IPOL) Create shortcuts with the IShellLink Interface in Visual C++Posted by Silviu CarageaDescribe how to create shortcuts with the IShellLink Interface in Visual C++ |
Skill: IntermediatePosted: 11/10/2008Views: 1083Rating: 4.00 /5Popularity: 0.00 |
| Sign Up to vote for this article |
The IShellLink interface allows Shell links to be created, modified, and resolved but it has no concept of how to read or write itself to a file on disk.
In order to provide file access, the IShellLink interface required to support the IPersistFile , an interface that provides methods for reading and writing to and from disk.
You should call CoInitialize or CoInitializeEx in your application before calling CreateShortCut .This functions initializes the COM library on the current thread and identifies the concurrency model as single-thread apartment (STA). Applications must initialize the COM library before they can call COM library functions other than CoGetMalloc and memory allocation functions.
This article, along with any associated source code and files, is licensed under The Intelliproject Open License (IPOL)
| Silviu Caragea
| Silviu Caragea is the Founder, Administrator and Chief Editor who wrote and runs The IntelliProject. He's been programming since 2000 and now he's student at The Faculty of Economic Cybernetics, Statistics and Informatics from Bucharest. In the same time he's working as software developer at Cratima Software, a Romanian software and web design company that activates both on the local and foreign market, providing its customers with software development services, internet and intranet solutions, web design, graphic design and IT consultancy. His programming experience includes: - C,C++, Visual C++(Win32 API, MFC, ADO, STL, DAO, ODBC, ATL, COM, DirectShow, DirectDraw, WTL) - Open Source libraries :CURL & Boost - HTML, CSS - Java (SE,ME) - JavaScript, Ajax, Google Web Toolkit (GWT) - Php, MySQL -Oracle, PL SQL - C# .NET -Objective C, IPhone SDK, Cocoa Location: |
Sign up to post message on the article message board!