I built a win32 DLL project, informed the win32 DLL does not support the MFC class, hence the MFC several core functions in a recording software (start the recording, stop recording and save the recording) separate from the dialog class into several functions, the original dialog class few member variables as has to be this a few function call, so I will make it function parameters is provided by the programmers call this function (to do so, some functions will have five or six parameters, do not know to have other methods), then have a problem, before there is a message function in recording software processing onMM_WIM_DATA MM_WIM_DATA message, is when a small buffer full time by the system automatically calls to deal with buffer, then make it I don't know how to handle this function after the DLL, other people call "start recording" when recording function, the cache is full affirmation will trigger the message, but I like the ordinary function declaration this message function, compile and complains, really don't know how to handle, ask everybody to give directions, grateful!
CodePudding user response:
Call the page is to know when to deal with the news,Then the processing of the message encapsulation to DLL, then the caller to call this function,
You define the message in the DLL, can you tell me the DLL can receive?
CodePudding user response:
Yes, as you said last are encapsulated into a separate function alone, call for others, when I test to write a test program, just start to write the console procedures, the results don't know how to deal with MM_WIM_DATA message, because there is no dialog box to produce the news, I wrote a MFC dialog box procedure calls, but in the end or there is a mistake somehow change, depressed,,,