Class Design Advice? Programming Software Development by lochnessmonster …(); void createLink(); void destroyLink(); CodeInjection( addressToPlaceCall, #OfBytesToOverwrite ); ~CodeInjection(); }; Label1: static void CodeInjection::CodeCave() { } Label2: CodeInjection::CodeInjection( BYTE *addressToPlaceCall, #ofBytesToOverwrite ) { link… Re: Class Design Advice? Programming Software Development by mike_2000_17 …, you can use a create-and-swap idiom: [CODE] class CodeInjection { private: HANDLE pHandle; CodeVirtualMemory mCave; //assume you have some data… member for the cave memory. //... void CodeInjection::createCave() { //create temporary CodeVirtualMemory object to allocate virtual memory: CodeVirtualMemory…