Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 00:58

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Source Database]

Discussion on [Source Database] within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2022
Posts: 21
Received Thanks: 4
[Source Database]

Hi can anyone knows how to change the source browser from IE to Microsoft edge or google chrome etc?

Code:
BOOL GetIePath( LPSTR lpPath )
{	
	LONG result;
	HKEY hKey;
	DWORD dwType; 
	char data[MAX_PATH];
	DWORD dataSize = MAX_PATH+1;

	result	= ::RegOpenKeyEx ( HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\chrome.exe", 0, KEY_QUERY_VALUE, &hKey );
	if (result == ERROR_SUCCESS) 
	{
		result = ::RegQueryValueEx ( hKey, "Path", NULL, &dwType, (unsigned char *)data, &dataSize );
		strcpy( lpPath, data );
		lpPath[lstrlen( lpPath )-1]	= '\0';
	}
	else
		return FALSE;

	RegCloseKey( hKey );
	return TRUE;
}
This is not working
makvee is offline  
Old 01/22/2023, 12:11   #2
 
elite*gold: 0
Join Date: Jul 2022
Posts: 21
Received Thanks: 4
bump
makvee is offline  
Old 01/22/2023, 13:28   #3
 
Tweek™'s Avatar
 
elite*gold: 20
Join Date: May 2009
Posts: 197
Received Thanks: 84
There are a few reasons why this code might not work as intended. One possibility is that
the specified registry key, "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe",
does not exist on the user's machine. If this is the case, the call to RegOpenKeyEx will return the value ERROR_FILE_NOT_FOUND and the function will return FALSE.
Another possibility is that the dataSize variable should be initialize with the size of data buffer, and not MAX_PATH+1.
Also, this function will return path of chrome.exe rather than IE.
It's better to use the correct key for the IE path in the registry or use the function SHGetKnownFolderPath to get the location of Internet Explorer.
Tweek™ is offline  
Thanks
1 User
Old 01/22/2023, 15:49   #4
 
elite*gold: 0
Join Date: Jul 2022
Posts: 21
Received Thanks: 4
Quote:
Originally Posted by Tweek™ View Post
There are a few reasons why this code might not work as intended. One possibility is that
the specified registry key, "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe",
does not exist on the user's machine. If this is the case, the call to RegOpenKeyEx will return the value ERROR_FILE_NOT_FOUND and the function will return FALSE.
Another possibility is that the dataSize variable should be initialize with the size of data buffer, and not MAX_PATH+1.
Also, this function will return path of chrome.exe rather than IE.
It's better to use the correct key for the IE path in the registry or use the function SHGetKnownFolderPath to get the location of Internet Explorer.
Do you have sample how to change the browser it self? can you help me to change the source IE browser to chrome please?
makvee is offline  
Old 01/22/2023, 18:26   #5
 
Tweek™'s Avatar
 
elite*gold: 20
Join Date: May 2009
Posts: 197
Received Thanks: 84
Quote:
Originally Posted by makvee View Post
Hi can anyone knows how to change the source browser from IE to Microsoft edge or google chrome etc?

Code:
BOOL GetIePath( LPSTR lpPath )
{	
	LONG result;
	HKEY hKey;
	DWORD dwType; 
	char data[MAX_PATH];
	DWORD dataSize = MAX_PATH+1;

	result	= ::RegOpenKeyEx ( HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\chrome.exe", 0, KEY_QUERY_VALUE, &hKey );
	if (result == ERROR_SUCCESS) 
	{
		result = ::RegQueryValueEx ( hKey, "Path", NULL, &dwType, (unsigned char *)data, &dataSize );
		strcpy( lpPath, data );
		lpPath[lstrlen( lpPath )-1]	= '\0';
	}
	else
		return FALSE;

	RegCloseKey( hKey );
	return TRUE;
}
This is not working

Code:
BOOL GetChromePath( LPSTR lpPath )
{	
	LONG result;
	HKEY hKey;
	DWORD dwType; 
	char data[MAX_PATH];
	DWORD dataSize = MAX_PATH;

	result	= ::RegOpenKeyEx ( HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\chrome.exe", 0, KEY_QUERY_VALUE, &hKey );
	if (result == ERROR_SUCCESS) 
	{
		result = ::RegQueryValueEx ( hKey, "", NULL, &dwType, (unsigned char *)data, &dataSize );
		strcpy( lpPath, data );
		lpPath[lstrlen( lpPath )-1]	= '\0';
	}
	else
		return FALSE;

	RegCloseKey( hKey );
	return TRUE;
}
Quote:
BOOL GetChromePath( LPSTR lpPath )
{
HRESULT hr;
PWSTR path;

hr = SHGetKnownFolderPath(FOLDERID_LocalAppData, 0, NULL, &path);
if (SUCCEEDED(hr))
{
// Append "Google\Chrome\Application" to the path
wcscat_s(path, MAX_PATH, L"\\Google\\Chrome\\Application\\chrome.exe");

// Convert the path to a char array
wcstombs(lpPath, path, MAX_PATH);

CoTaskMemFree(path);
return TRUE;
}
else
return FALSE;
}
Tweek™ is offline  
Thanks
1 User
Old 01/22/2023, 18:54   #6
 
elite*gold: 0
Join Date: Jul 2022
Posts: 21
Received Thanks: 4
Quote:
Originally Posted by Tweek™ View Post
Code:
BOOL GetChromePath( LPSTR lpPath )
{	
	LONG result;
	HKEY hKey;
	DWORD dwType; 
	char data[MAX_PATH];
	DWORD dataSize = MAX_PATH;

	result	= ::RegOpenKeyEx ( HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\chrome.exe", 0, KEY_QUERY_VALUE, &hKey );
	if (result == ERROR_SUCCESS) 
	{
		result = ::RegQueryValueEx ( hKey, "", NULL, &dwType, (unsigned char *)data, &dataSize );
		strcpy( lpPath, data );
		lpPath[lstrlen( lpPath )-1]	= '\0';
	}
	else
		return FALSE;

	RegCloseKey( hKey );
	return TRUE;
}
First code:
Still opening the IE browser in the webbox


Thanks for the 2nd code but i got an error with "SHGetKnownFolderPath"

makvee is offline  
Old 01/22/2023, 19:08   #7
 
Tweek™'s Avatar
 
elite*gold: 20
Join Date: May 2009
Posts: 197
Received Thanks: 84
you will need to include the shlobj.h header file and link to the Shell32.lib library to use this function.
Tweek™ is offline  
Thanks
1 User
Old 01/22/2023, 19:29   #8
 
elite*gold: 0
Join Date: Jul 2022
Posts: 21
Received Thanks: 4
Quote:
Originally Posted by Tweek™ View Post
you will need to include the shlobj.h header file and link to the Shell32.lib library to use this function.
Can i sent you a private message?

Bump still not fix the webbox IE browser
makvee is offline  
Old 01/28/2023, 11:41   #9
 
elite*gold: 0
Join Date: Jul 2022
Posts: 21
Received Thanks: 4
Bump, i need someone help to changed in game WEBBOX IE browser to Chrome
makvee is offline  
Old 01/29/2023, 15:29   #10
 
M¿dScientist's Avatar
 
elite*gold: 0
Join Date: May 2020
Posts: 24
Received Thanks: 18
you can look in to running something like CEF or Awsomium
M¿dScientist is offline  
Thanks
1 User
Old 02/03/2023, 16:53   #11
 
elite*gold: 0
Join Date: Jul 2022
Posts: 21
Received Thanks: 4
Quote:
Originally Posted by M¿dScientist View Post
you can look in to running something like CEF or Awsomium
Thanks for the reply anyways. What do you mean? what is CEF or Awsomium what are those?
makvee is offline  
Reply


Similar Threads Similar Threads
[Official Release] Rainbow Database: Vampire/Godship/Legionairre Database!
04/25/2021 - EO PServer Guides & Releases - 106 Replies
http://i43.tinypic.com/jgo485.png Additional: The database contains all material and server features which I alone coded, designed and created. I can barely recall if their were any bugs. I think there was with one of the vampire skills. People said it was supposed to be an xp skill but they could use it without having to be on XP. So its pretty minor but if you find any other problems please report them to this thread and i'll make a fix asap. Many database releases have come before this...
[How-To]Change from sql-database to txt-database
08/11/2016 - Metin2 Private Server - 1 Replies
Hello guys... My Server uses item_proto and mob_proto from navicat , iwant to use item_proto and mob_proto from fillezilla, ???? Show me the way and thnak you .:o
[Release] Sro-r DataBase , And Real TWsro DataBase
04/01/2013 - SRO Private Server - 10 Replies
its a gift from me because i will left Sro Forever so today i will release Sro-r DataBase , And Real Twsro Database + Server Files Download Link HAPPY 1/4 :D i never do that lol you mad ! ? :p



All times are GMT +1. The time now is 00:59.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.