I am using GetModuleHandle in my function. That function gets called every time I do an operation. I want to know if that function gets called again and again, will the GetModuleHandle cause stack overflow or memory leaks. Thanks.
void Myfunc(int iCtrlID)
{
HINSTANCE hinst = GetModuleHandle ("r.dll");
s.LoadString(hi nst, iCtrlID);
//
more code here
//
}
void Myfunc(int iCtrlID)
{
HINSTANCE hinst = GetModuleHandle ("r.dll");
s.LoadString(hi nst, iCtrlID);
//
more code here
//
}
Comment