-
subclassing
If I want to make a subclassing DLL for use in VB, do I just have to make a wrapper for SetWindowLong, like:
Code:
#include <windows.h>
int WINAPI DllMain(HINSTANCE, DWORD, PVOID)
{
return TRUE;
}
extern "C" __declspec(dllexport) LONG CALLBACK VBSetWindowLong(HWND hwnd, UINT offset, LONG dwNewLong)
{
return SetWindowLong(hwnd, offset, dwNewLong);
}
// Concludes DLL.Standard
or do I have to do more than this?
-
If you want to make a dll now, you better use SetWindowLongPtr.
But basically you're right, except that you don't use the _declspec thing and instead write a .def file.