CAPIHook::sm_LoadLibraryA cannot be defined in the current scope

Hi,

I use CAPIHook class, and I want use this inside void not out of void
1
2
CAPIHook CAPIHook::sm_LoadLibraryA  ("Kernel32.dll", "LoadLibraryA",   
   (PROC) CAPIHook::LoadLibraryA, FALSE);


when I put this inside void i got this
CAPIHook::sm_LoadLibraryA cannot be defined in the current scope

I need help.
What does 'void' refer to in this context? For now I'll assume that you mean you want to use this in a function that returns a void type. In that case you can't because, and this is assuming I found the correct documentation for this library that I've never heard of before today, "CAPIHook::sm_LoadLibraryA" is private; this means you can't call it from outside of the class or a derivative there of.

Here is what I am basing my post on:https://code.google.com/p/tortoisesvn/source/browse/trunk/src/crashrpt/APIHook.h?r=21724
So if I'm looking at the wrong documentation somehow, then by all means let me know and we can start over again.
Topic archived. No new replies allowed.