Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef PLUGIN_H
- #define PLUGIN_H
- #include <windows.h>
- #include <tchar.h>
- // Plugin function that does the actual data processing.
- extern "C" __declspec(dllexport) void ProcessData(HWND hwndInputEdit, HWND hwndOutpuEdit)
- {
- TCHAR buffer[MAX_PATH];
- SendMessage(hwndInputEdit, WM_GETTEXT, (WPARAM)((sizeof(TCHAR)*MAX_PATH) + 1), (LPARAM)buffer);
- int szLength = 0;
- for (; buffer[szLength] != 0; szLength++);
- TCHAR result[MAX_PATH];
- _stprintf(result, TEXT("%s%d%s"), TEXT("The string has "), szLength, TEXT(" characters in it."));
- SetWindowText(hwndOutpuEdit, result);
- }
- #endif /* PLUGIN_H */
Advertisement
Add Comment
Please, Sign In to add comment