S
Stefan Soljemo
Hello!
Im need to port ane unmanaged c++ class to managed c++. The problem is that
the old class using the API RegisterClassEx. RegisterCallEx needs a windows
message function specifiied by the lpfnWndProc member of the WNDCLASSEX
structure. This function was defined as a friend in the old class. The friend
are not supported in managed classes. I did some tests with a static function
with success and got another problem. The old class used the API functions
SetWindowLong and GetWindowLong to reference the main class. I can´t found a
solution how to refecens an ^ managed object with the static window proc.
Does anybody have any solution for this problem?
// Stefan
Im need to port ane unmanaged c++ class to managed c++. The problem is that
the old class using the API RegisterClassEx. RegisterCallEx needs a windows
message function specifiied by the lpfnWndProc member of the WNDCLASSEX
structure. This function was defined as a friend in the old class. The friend
are not supported in managed classes. I did some tests with a static function
with success and got another problem. The old class used the API functions
SetWindowLong and GetWindowLong to reference the main class. I can´t found a
solution how to refecens an ^ managed object with the static window proc.
Does anybody have any solution for this problem?
// Stefan