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