• 大小: 8.29MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-22
  • 语言: 其他
  • 标签: CAPL  DLL  

资源简介

本实例为个人自己开发的基于Vector 的CAPL语言开发的DLL文件,供参考!如有问题,请留言。

资源截图

代码片段和文件信息

/*----------------------------------------------------------------------------
|
| File Name: capldll.cpp
|
|            Example of a capl DLL implementation module and using CAPLLbacks.
|-----------------------------------------------------------------------------
|               A U T H O R   I D E N T I T Y
|-----------------------------------------------------------------------------
|   Author             Initials
|   ------             --------
|   Thomas  Riegraf    Ri              Vector Informatik GmbH
|   Hans    Quecke     Qu              Vector Informatik GmbH
|-----------------------------------------------------------------------------
|               R E V I S I O N   H I S T O R Y
|-----------------------------------------------------------------------------
| Date         Ver  Author  Description
| ----------   ---  ------  --------------------------------------------------
| 2003-10-07   1.0  As      Created
| 2007-03-26   1.1  Ej      Export of the DLL function table as variable
|                           Use of CAPL_DLL_INFO3
|                           Support of long name CAPL function calls
|-----------------------------------------------------------------------------
|               C O P Y R I G H T
|-----------------------------------------------------------------------------
| Copyright (c) 1994 - 2003 by Vector Informatik GmbH.  All rights reserved.
 ----------------------------------------------------------------------------*/
 

#define USECDLL_FEATURE
#define _BUILDNODElayerDLL

#pragma warning( disable : 4786 )

#include “..\Includes\cdll.h“
#include “..\Includes\via.h“
#include “..\Includes\via_CDLL.h“

#include 
#include 
#include 

class CaplInstanceData;
typedef std::map VCaplMap;
typedef std::map VServiceMap;


// ============================================================================
// global variables
// ============================================================================

static unsigned long data = 0;
static char dlldata[100];

char        gModuleName[_MAX_FNAME];  // filename of this  dll 
HINSTANCE   gModuleHandle;            // windows instance handle of this DLL
VCaplMap    gCaplMap;   
VServiceMap gServiceMap;


// ============================================================================
// CaplInstanceData
// 
// Data local for a single CAPL Block. 
//
// A CAPL-DLL can be used by more than one CAPL-Block so every piece of 
// information thats like a globale variable in CAPL must now be wraped into 
// an instance of an object.
// ============================================================================
class CaplInstanceData
{
public:
  CaplInstanceData(VIACapl* capl);
  
  void GetCallbackFunctions();
  void ReleaseCallbackFunctions();

  // Definition of the class function. 
  // This class function will call the 
  // CAPL callb

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      15633  2013-03-15 09:23  Includes\cdll.h

     文件      45013  2007-03-27 08:55  Includes\VIA.h

     文件       4194  2007-03-27 08:55  Includes\VIA_CDLL.h

     文件      23377  2014-08-19 13:56  Sources\capldll.cpp

     文件         53  2009-08-20 11:19  Sources\capldll.def

     文件        873  2007-03-27 08:56  VS 2005 Project\Backup\capldll.sln

     文件   31850496  2014-08-19 13:58  VS 2005 Project\capldll.sdf

     文件        875  2014-08-19 10:52  VS 2005 Project\capldll.sln

    ..A..H.     16384  2014-08-19 13:58  VS 2005 Project\capldll.v11.suo

     文件       5201  2009-08-27 16:45  VS 2005 Project\capldll.vcproj

     文件       7498  2014-08-19 10:52  VS 2005 Project\capldll.vcxproj

     文件        164  2014-08-19 13:29  VS 2005 Project\capldll.vcxproj.user

     文件        240  2014-08-19 13:56  VS 2005 Project\Debug\BscMake.command.1.tlog

     文件        426  2014-08-19 13:56  VS 2005 Project\Debug\bscmake.read.1.tlog

     文件        264  2014-08-19 13:56  VS 2005 Project\Debug\bscmake.write.1.tlog

     文件    5655552  2014-08-19 13:56  VS 2005 Project\Debug\capldll.bsc

     文件       1994  2014-08-19 13:30  VS 2005 Project\Debug\capldll.Build.CppClean.log

     文件     424960  2014-08-19 13:56  VS 2005 Project\Debug\capldll.dll

     文件       3739  2014-08-19 13:56  VS 2005 Project\Debug\capldll.exp

     文件         79  2014-08-19 13:56  VS 2005 Project\Debug\capldll.lastbuildstate

     文件       6670  2014-08-19 13:56  VS 2005 Project\Debug\capldll.lib

     文件       1632  2014-08-19 13:56  VS 2005 Project\Debug\capldll.log

     文件     580044  2014-08-19 13:56  VS 2005 Project\Debug\capldll.map

     文件     579011  2014-08-19 13:56  VS 2005 Project\Debug\capldll.obj

     文件    2403328  2014-08-19 13:56  VS 2005 Project\Debug\capldll.pdb

     文件          0  2014-08-19 13:56  VS 2005 Project\Debug\capldll.sbr

     文件       1620  2014-08-19 13:56  VS 2005 Project\Debug\capldll.write.1.tlog

     文件        682  2014-08-19 13:56  VS 2005 Project\Debug\cl.command.1.tlog

     文件      26798  2014-08-19 13:56  VS 2005 Project\Debug\CL.read.1.tlog

     文件        492  2014-08-19 13:56  VS 2005 Project\Debug\CL.write.1.tlog

............此处省略17个文件信息

评论

共有 条评论