Click here to Skip to main content
15,881,248 members
Articles / Programming Languages / C++

Project Line Counter Add-In v2.10 for VS.NET and VC6

Rate me:
Please Sign up or sign in to vote.
4.92/5 (38 votes)
29 Jun 2003 447.4K   5.3K   142  
Get statistics about your source code with a click of a button
/***************************************************************************/
/* NOTE:                                                                   */
/* This document is copyright (c) by Oz Solomonovich.  All non-commercial  */
/* use is allowed, as long as this document is not altered in any way, and */
/* due credit is given.                                                    */
/***************************************************************************/

// AddInComm Loader, (AIC 1.3.0 - March 2000)

#ifndef __AICLOADER_H
#define __AICLOADER_H

/* Will load the AIC library.  
   Debug builds try to load AICD.DLL be default, release builds try to load 
   AIC.DLL.  To override this behavior use UseDeubgLibrary();
*/
bool aiclLoadAICLibrary(HINSTANCE hInst);

/* Will force the AIC library to unload.  The Use of this function is 
   optional. 
*/
void aiclUnloadAICLibrary();

/* Override default library load:
   TRUE   -  Use debugging version of AIC (AICD.DLL)
   FALSE  -  Use release version of AIC (AIC.DLL)
*/
void aiclUseDebugLibrary(BOOL bUse);

bool aiclIsAICLoaded();


/* == AICL functionality not related to AddInComm == */
/* (some internal loader function that should be useful to outsiders) */

/* These functions allow you to extract the content of a file's version 
   resource.  You can either specify a file name (aiclGetFileVersion()) or
   a name or a running module (aiclGetModuleVersion()).
*/
void aiclGetFileVersion  (LPCTSTR pszPath, LPSTR out_pszVer);
void aiclGetModuleVersion(LPCTSTR pszMod,  LPSTR out_pszVer);

/* Returns DevStudio's registry key in HKEY_CURRENT_USER (works only when
   DevStudio is running).
*/
void aiclGetDSCurrentUserRegKey(LPSTR out_pszKeyName);

/* Returns DevStudio's add-in directory (empty string returned on error) */
void aiclGetDSAddInDir(LPSTR out_pszPath, DWORD cb);


#endif // __AICLOADER_H

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Experion
Canada Canada
You may know Oz from his WndTabs days. Oz has long since left client side development to work on web technologies and to consult in the R&D management field.

Comments and Discussions