일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Series
- mariadb
- DFS
- Button
- synology
- GitHub
- RNN
- ipad
- Lotto
- Splunk
- install
- pandas
- SPL
- Python
- CNN
- imread
- LSTM
- mean
- 알고리즘
- pip
- pycharm
- E-P1
- SciPy
- Numpy
- javascript
- 삼성소프트웨어멤버십
- dataframe
- GT-S80
- index
- keras
Archives
- Today
- Total
잠토의 잠망경
명시적 연결 Dll 본문
DllPutMes.h
DllPutMes.cpp
PutMesApp.cpp
#ifdef MYEXPORT #define MYEXPORT extern "C" __declspec(dllexport) #else #define MYEXPORT extern "C" __declspec(dllimport) #endif #include
DllPutMes.cpp
#undef UNICODE #define MYEXPORT #include "PutMes.h" MYEXPORT void PutMes() { MessageBox(NULL,"안녕하세요.","인사",MB_OK); }
PutMesApp.cpp
#undef UNICODE #include "PutMes.h" #includetypedef void (*fPutMes)(); int main(void) { fPutMes fPUTMES; HMODULE hF; if(INVALID_HANDLE_VALUE==(hF=LoadLibrary("[40]DllPutMes.dll"))) { printf("LoadLibrary error\n"); return 0; } fPUTMES=(fPutMes)GetProcAddress(hF,"PutMes"); if(!fPUTMES) { printf("GetProcAddress error\n"); return 0; } fPUTMES(); FreeLibrary(hF); return 0; }
Comments