Hi Guys,

Have a question regarding the exception filter.

I have a MiniDump class which looks like this:

class MiniDumpHelper


LONG WINAPI exitWithDump(struct _EXCEPTION_POINTERS* exceptionInfo)

then i have a host.cpp class where i have a main()
I try this:

MiniDump *miniDump = new MiniDump();

Then I get this:

error C3867: 'MiniDump::exitWithDump': function call missing argument list;
use '&MiniDump::exitWithDump' to create a pointer to member

So I do:

MiniDump *miniDump = new MiniDump();

And I get this:

'SetUnhandledExceptionFilter' : cannot convert parameter 1 from 'LONG (__stdcall :MiniDump::* )

I'm really stuck, would really appreciate help, thanks in advance!!


I don't see any MiniDump class in your post (only MiniDumpHelper), but...

Obviously SetUnhandledExceptionFilter wait a pointer to ordinar function (exception handler). But non-static member function is not an ordinar function and a pointer to it is not a pointer to ordinar function. Make it a static mamber (if possible): static member functions treated as ordinar.

Can't say more on this scant info...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.