”Load_Localization“Function

New to UltraVNC? Your questions are welcome in this subforum. :surprise:

”Load_Localization“Function

Postby zonesowhat » 2014-05-07 02:21

I'm using the source code of Ultra VNC with unknown version.
There exists a function named "Load_Localization" in the WinMain fnc,but the fact is that I can not find any definition or declaration of it.So I want to know more about this function.Any one know about it?The code is as follows:
Code: Select all

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
{
        ........

     //limit the vnclang.dll searchpath to avoid
   char szCurrentDir[MAX_PATH];
   char szCurrentDir_vnclangdll[MAX_PATH];
   if (GetModuleFileName(NULL, szCurrentDir, MAX_PATH))
   {
      char* p = strrchr(szCurrentDir, '\\');
      *p = '\0';
   }
   strcpy (szCurrentDir_vnclangdll,szCurrentDir);
   strcat (szCurrentDir_vnclangdll,"\\");
   strcat (szCurrentDir_vnclangdll,"vnclang_server.dll"); // In fact ,I cannot find this dll in my computer or the latest version.
                                                                                             
   hInstResDLL = LoadLibrary(szCurrentDir_vnclangdll);

   if (hInstResDLL == NULL)              //So I guess that "hInstResDll==NULL" must be positive.
   {
      hInstResDLL = hInstance;
   }
    //   RegisterLinkLabel(hInstResDLL);

    //Load all messages from ressource file
        Load_Localization(hInstResDLL) ;//My question is here!!
       ........
}
zonesowhat
8
8
 
Posts: 20
Joined: 2014-04-12 07:44

Re: ”Load_Localization“Function

Postby Rudi De Vos » 2014-05-07 18:29

#include "Localization.h" :)
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5930
Joined: 2004-04-23 10:21

Re: ”Load_Localization“Function

Postby zonesowhat » 2014-05-08 02:50

Rudi De Vos wrote:#include "Localization.h" :)

Thanks for your little joke.
zonesowhat
8
8
 
Posts: 20
Joined: 2014-04-12 07:44


Return to Beginner questions

Who is online

Users browsing this forum: Google [Bot] and 4 guests