Changeset ee804c2 in tol
- Timestamp:
- Aug 3, 2010, 8:54:28 AM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- f9c366f
- Parents:
- 110d3c5
- File:
-
- 1 edited
-
tol/LoadDynLib/LoadDynLib.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/LoadDynLib/LoadDynLib.cpp
r110d3c5 ree804c2 34 34 35 35 //-------------------------------------------------------------------- 36 DeclareContensClass(BNameBlock, BNameBlockTemporary, BLoadDynLib); 37 DefExtOpr(1, BLoadDynLib, "LoadDynLib", 1, 1, "Set", 38 "(Text libraryPath)", 39 I2("Returns a NameBlock that contains methods and members written " 36 class BLoadDynLib: public BExternalOperator 37 { 38 public: 39 BLoadDynLib() : BExternalOperator 40 ( 41 "LoadDynLib",GraNameBlkock(),"Text", NIL,1,1, 42 "(Text libraryPath)", 43 I2("Returns a NameBlock that contains methods and members written " 40 44 "in C + + in a precompiled library for dynamic linking. Once " 41 45 "loaded Nameblock is nothing particular and can be used like " … … 46 50 "particular y puede ser usado como cualquier otro objeto creado " 47 51 "con el lenguaje TOL. Vea más detalles en ")+"\n" 48 "https://www.tol-project.org/wiki/LoadDynLib", 49 BOperClassify::System_); 52 "https://www.tol-project.org/wiki/LoadDynLib", 53 BOperClassify::System_ 54 ) 55 { IncNRefs(); } 56 BSyntaxObject* Evaluator(BList* argTrees) const; 57 }; 58 50 59 //-------------------------------------------------------------------- 51 void BLoadDynLib::CalcContens() 60 BSyntaxObject* BLoadDynLib::Evaluator(BList* arg) const 52 61 //-------------------------------------------------------------------- 53 62 { 54 BText& libraryPath = Text(Arg(1)); 63 if(CheckNonDeclarativeAction("LoadDynLib")) { return(NULL); } 64 BText& libraryPath = Text(Car(arg)); 55 65 BText libraryName = GetFilePrefix(libraryPath); 66 BUserNameBlock* unb = NULL; 67 //VBR: Jorge, inserta aquí el código que enlaza con la dll y pon 68 //el resultado en unb para devolverlo 69 70 //Al final hay que destruir la lista de argumentos antes de salir 71 DESTROY(arg); 72 return(unb); 56 73 }
Note: See TracChangeset
for help on using the changeset viewer.
