Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

”Load_Localization“Function

Post Reply
zonesowhat
8
8
Posts: 20
Joined: 2014-04-12 07:44

”Load_Localization“Function

Post by zonesowhat »

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!!
       ........
}
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6863
Joined: 2004-04-23 10:21
Contact:

Re: ”Load_Localization“Function

Post by Rudi De Vos »

#include "Localization.h" :)
zonesowhat
8
8
Posts: 20
Joined: 2014-04-12 07:44

Re: ”Load_Localization“Function

Post by zonesowhat »

Rudi De Vos wrote:#include "Localization.h" :)
Thanks for your little joke.
Post Reply