MCPcopy Create free account
hub / github.com/SOUI2/soui / CreateInstance

Method CreateInstance

utilities/include/com-loader.hpp:20–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 }
19
20 BOOL CreateInstance(LPCTSTR pszDllPath,IObjRef **ppObj,LPCSTR pszFnName = "SCreateInstance")
21 {
22 if(!m_funCreateInst)
23 {
24 m_hMod=LoadLibrary(pszDllPath);
25 if(!m_hMod) return FALSE;
26 m_funCreateInst=(funSCreateInstance)GetProcAddress(m_hMod,pszFnName);
27 if(!m_funCreateInst)
28 {
29 FreeLibrary(m_hMod);
30 return FALSE;
31 }
32 _tcscpy(m_szDllPath,pszDllPath);
33 }
34 return m_funCreateInst(ppObj);
35 }
36protected:
37 HMODULE m_hMod;
38 funSCreateInstance m_funCreateInst;

Callers 15

CreateImgDecoderMethod · 0.45
CreateRender_GDIMethod · 0.45
CreateRender_SkiaMethod · 0.45
CreateScrpit_LuaMethod · 0.45
CreateTranslatorMethod · 0.45
CreateResProvider_ZIPMethod · 0.45
CreateLog4zMethod · 0.45
CreateTaskLoopMethod · 0.45
CreateIpcObjectMethod · 0.45
CreateImgDecoderMethod · 0.45
CreateRender_GDIMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected