invoke an MFC callback function from Non MFC app
-
Hi i need to call invoke an mfc callback function from a non mfc dll. How do I that? any samples that I can look at? Shree
shreelak wrote:
How do I that?
More specific information is required. However you cannot use any C++ class (MFC included) across modules unless the class is exported from a DLL. I have no idea if that is what you are looking for.
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
Colin Angus Mackay in the C# forumled mike
-
shreelak wrote:
How do I that?
More specific information is required. However you cannot use any C++ class (MFC included) across modules unless the class is exported from a DLL. I have no idea if that is what you are looking for.
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
Colin Angus Mackay in the C# forumled mike
yes what i meant was that MFC callback function is in a DLL and I can call other functions (not callback) from my calling program (non mfc dll) without any problem. but when my non mfc dll tries to invoke the callback it doesn't get called the same thing when called from an MFC program works fine. So my question was is there some thing different that i need to do when i call it from a non mfc app? like may be sometime of memory mapping? is there any sample code that i can look at? -S
-
yes what i meant was that MFC callback function is in a DLL and I can call other functions (not callback) from my calling program (non mfc dll) without any problem. but when my non mfc dll tries to invoke the callback it doesn't get called the same thing when called from an MFC program works fine. So my question was is there some thing different that i need to do when i call it from a non mfc app? like may be sometime of memory mapping? is there any sample code that i can look at? -S
shreelak wrote:
but when my non mfc dll tries to invoke the callback it doesn't get called
What does that mean? When you debug the application it just steps over the function without the function executing? Is there an exception? An error reported? what?
-
shreelak wrote:
but when my non mfc dll tries to invoke the callback it doesn't get called
What does that mean? When you debug the application it just steps over the function without the function executing? Is there an exception? An error reported? what?
yes it seems like it steps over When i try to go in to the assembly code it show me a ref to the callback function but doesn't jump to it. instead it comesback to my calling functions next statement. I don't get any exception. Also I cut and pasted the same code into another applicaiton (MFC) and it works without any problem. TIA -S