差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| youtube:vba-dll-005 [2024/03/03 19:42] – [exports.cpp] freemikan | youtube:vba-dll-005 [2024/07/12 02:46] (現在) – freemikan | ||
|---|---|---|---|
| 行 10: | 行 10: | ||
| ==== Sheet1 (Sheet1) ==== | ==== Sheet1 (Sheet1) ==== | ||
| - | <codeprism title=Sheet1 lang=vba el=true> | + | <file vba> |
| Sub test_Toymath3() | Sub test_Toymath3() | ||
| ' | ' | ||
| 行 27: | 行 27: | ||
| Debug.Assert Calc.Div(10, | Debug.Assert Calc.Div(10, | ||
| End Sub | End Sub | ||
| - | </codeprism> | + | </file> |
| ===== Toymath3 ===== | ===== Toymath3 ===== | ||
| 行 33: | 行 33: | ||
| ==== Makefile ===== | ==== Makefile ===== | ||
| - | <codeprism title=Makefile lang=makefile | + | <file makefile> |
| MODNAME = toymath3 | MODNAME = toymath3 | ||
| DLLFILE = ${MODNAME}.dll | DLLFILE = ${MODNAME}.dll | ||
| 行 86: | 行 86: | ||
| install: all | install: all | ||
| cp -f ${OUTDIR}\${DLLFILE} C:\code\lib | cp -f ${OUTDIR}\${DLLFILE} C:\code\lib | ||
| - | </codeprism> | + | </file> |
| ==== calculator.h ===== | ==== calculator.h ===== | ||
| - | <codeprism title=calculator.h lang=cpp el=true> | + | <file cpp> |
| #ifndef CALCULATOR_H | #ifndef CALCULATOR_H | ||
| #define CALCULATOR_H | #define CALCULATOR_H | ||
| 行 118: | 行 118: | ||
| #endif // CALCULATOR_H | #endif // CALCULATOR_H | ||
| - | </codeprism> | + | </file> |
| ==== calculator.cpp ===== | ==== calculator.cpp ===== | ||
| - | <codeprism title=calculator.cpp lang=cpp el=true> | + | <file cpp> |
| #include " | #include " | ||
| 行 183: | 行 183: | ||
| return S_OK; | return S_OK; | ||
| } | } | ||
| - | </codeprism> | + | </file> |
| ==== calculatorclass.h ===== | ==== calculatorclass.h ===== | ||
| - | <codeprism title=calculatorclass.h lang=cpp el=true> | + | <file cpp> |
| #ifndef CALCULATORCLASS_H | #ifndef CALCULATORCLASS_H | ||
| #define CALCULATORCLASS_H | #define CALCULATORCLASS_H | ||
| 行 213: | 行 213: | ||
| #endif // CALCULATORCLASS_H | #endif // CALCULATORCLASS_H | ||
| - | </codeprism> | + | </file> |
| ==== calculatorclass.cpp ===== | ==== calculatorclass.cpp ===== | ||
| - | <codeprism title=calculatorclass.cpp lang=cpp el=true> | + | <file cpp> |
| #include " | #include " | ||
| 行 283: | 行 283: | ||
| return S_OK; | return S_OK; | ||
| } | } | ||
| - | </codeprism> | + | </file> |
| ==== modulelock.h ===== | ==== modulelock.h ===== | ||
| - | <codeprism title=modulelock.h lang=cpp el=true> | + | <file cpp> |
| #ifndef MOUDLELOCK_H | #ifndef MOUDLELOCK_H | ||
| #define MODULELOCK_H | #define MODULELOCK_H | ||
| 行 298: | 行 298: | ||
| #endif // MODULELOCK_H | #endif // MODULELOCK_H | ||
| - | </codeprism> | + | </file> |
| ==== modulelock.cpp ===== | ==== modulelock.cpp ===== | ||
| - | <codeprism title=modulelock.cpp lang=cpp el=true> | + | <file cpp> |
| #include " | #include " | ||
| 行 318: | 行 318: | ||
| return g_cLocks; | return g_cLocks; | ||
| } | } | ||
| - | </codeprism> | + | </file> |
| ==== exports.cpp ===== | ==== exports.cpp ===== | ||
| - | <codeprism title=exports.cpp lang=cpp el=true> | + | <file cpp> |
| #include " | #include " | ||
| #include " | #include " | ||
| 行 471: | 行 471: | ||
| // return hr; | // return hr; | ||
| } | } | ||
| - | </codeprism> | + | </file> |
| ==== toymath3.idl ===== | ==== toymath3.idl ===== | ||
| - | < | + | < |
| import " | import " | ||
