Re: 3rd party evc++ dll help
- From: "M0" <fetters5@xxxxxxxxxxx>
- Date: 19 Apr 2005 07:47:36 -0700
Below is the .h file I was given for reference.
Thanks again for all your help
Mo
=====================================================================================
#pragma once
// The following ifdef block is the standard way of creating macros
which make exporting
// from a DLL simpler. All files within this DLL are compiled with the
EPLAUNCHERLIB_EXPORTS
// symbol defined on the command line. this symbol should not be
defined on any project
// that uses this DLL. This way any other project whose source files
include this file see
// EPLAUNCHERLIB_API functions as being imported from a DLL, wheras
this DLL sees symbols
// defined with this macro as being exported.
#ifdef EPLAUNCHERLIB_EXPORTS
#define EPLAUNCHERLIB_API __declspec(dllexport)
#pragma message("epLauncherLib - exporting symbols")
#else
#define EPLAUNCHERLIB_API __declspec(dllimport)
#pragma message("epLauncherLib - importing symbols")
#endif
typedef unsigned long UInt32;
typedef int Err ;
#ifdef __cplusplus
extern "C" {
#endif
//Error Codes
typedef enum
{
epErrInternal = -1 ,
epErrSuccess = 0,
epErrAppNotFound ,
epErrInvalidData,
} epErrCodes;
/*
* Common app creator ID's
*/
#define EP_APP_RX 'nc-2'
#define EP_APP_DX 'nc52'
#define EP_APP_ID 'nc43'
#define EP_APP_TABLE 'ep23'
#define EP_APP_LAB 'ep24'
#define EP_APP_MEDTOOLS 'eMPL'
/***********Launching app side****************/
/**
* Launches specified app
*
* @param creator target app creator id
* @param arg target app argument
* @return error for app not found or unable to write argument
* Note: The last element of arg[] MUST be Null.
*/
EPLAUNCHERLIB_API Err epLaunchApp(UInt32 creator, LPCWSTR arg[]);
/**
* Launch target app with normal launch flag
*
* @param creator target app creator id
* @return error for app not found or unable to write argument
*/
EPLAUNCHERLIB_API Err epNormalLaunchApp(UInt32 creator);
#ifdef __cplusplus
}
#endif
.
- Follow-Ups:
- Re: 3rd party evc++ dll help
- From: M0
- Re: 3rd party evc++ dll help
- References:
- 3rd party evc++ dll help
- From: M0
- Re: 3rd party evc++ dll help
- From: Alex Feinman [MVP]
- Re: 3rd party evc++ dll help
- From: M0
- Re: 3rd party evc++ dll help
- From: Alex Feinman [MVP]
- 3rd party evc++ dll help
- Prev by Date: P/Invoke: 'System.MissingMethodException'
- Next by Date: Read and Write GPIO I/O addresses
- Previous by thread: Re: 3rd party evc++ dll help
- Next by thread: Re: 3rd party evc++ dll help
- Index(es):
Relevant Pages
|