일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- E-P1
- DFS
- imread
- index
- pycharm
- GitHub
- LSTM
- CNN
- pip
- Series
- Lotto
- SPL
- install
- dataframe
- SciPy
- Numpy
- Splunk
- RNN
- 알고리즘
- ipad
- mean
- javascript
- GT-S80
- synology
- mariadb
- 삼성소프트웨어멤버십
- pandas
- Button
- keras
- Python
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