Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

[ECB] Unresolved external GetGlobalMemoryStatusEx

Post Reply
Pieter E.
Posts: 12
Joined: Thu Oct 19, 2017 2:47 pm

[ECB] Unresolved external GetGlobalMemoryStatusEx

Post by Pieter E. »

Hi,

Not sure if you support C++ Builder for CEF4Delphi but I am having an issue. After creating a project based on the latest stable release (CEF 94.4.11 / Chromium 94.0.4606.81), I receive the following error:
[ilink32 Error] Error: Unresolved external '__stdcall Ucefmiscfunctions::GetGlobalMemoryStatusEx(Uceftypes::TMyMemoryStatusEx&)' referenced from E:\WEBBROWSER\WIN32\DEBUG\UCEFAPPLICATIONCORE.OBJ
I am using C++ Builder v10.4. I am not sure how to fix this issue. Can you please help me out?

Thank you in advance for your support.
User avatar
salvadordf
Posts: 4580
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: [ECB] Unresolved external GetGlobalMemoryStatusEx

Post by salvadordf »

That's unexpected.... :shock:

GlobalMemoryStatusEx is available in kernel32.dll since Windows XP and Windows Server 2003

I don't have a C++ builder license and I can't test CEF4Delphi in that IDE but some other persons in this forum use it without problems.

What operating system are you using?
Pieter E.
Posts: 12
Joined: Thu Oct 19, 2017 2:47 pm

Re: [ECB] Unresolved external GetGlobalMemoryStatusEx

Post by Pieter E. »

Thank you for your response. I am using Windows 10. I am an experienced programmer but I could not think of solution either. I am wondering how other C++ developers use CEF4Delphi in their projects. Can someone please help me out?
User avatar
salvadordf
Posts: 4580
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: [ECB] Unresolved external GetGlobalMemoryStatusEx

Post by salvadordf »

Hi Pieter,

I didn't mean to disrespect you. I only wanted to point out that this is an unexpected problem.
If that declaration is causing problems in C++ you can comment it and also comment the code where it's used.
User avatar
salvadordf
Posts: 4580
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: [ECB] Unresolved external GetGlobalMemoryStatusEx

Post by salvadordf »

Please, download CEF4Delphi from GitHub again.
I just changed the parameter types in the declaration of that function.
Pieter E.
Posts: 12
Joined: Thu Oct 19, 2017 2:47 pm

Re: [ECB] Unresolved external GetGlobalMemoryStatusEx

Post by Pieter E. »

salvadordf wrote: Wed Oct 27, 2021 8:58 am Hi Pieter,

I didn't mean to disrespect you. I only wanted to point out that this is an unexpected problem.
If that declaration is causing problems in C++ you can comment it and also comment the code where it's used.
Salvadordf, thank you for your answer. I am not offended. I tried to explain that I have seen a lot of issues during my programming hours. This issue I can't fix so I need help. I am an experience programmer who is not asking without any proper research or digging by my own. So I am not offended at all. :)

The issue occurs when I try to compile a new C++ project without any written code. I created a new C++ project added the CEF4Delphi files and pressed compile.
Last edited by Pieter E. on Wed Oct 27, 2021 4:50 pm, edited 1 time in total.
Pieter E.
Posts: 12
Joined: Thu Oct 19, 2017 2:47 pm

Re: [ECB] Unresolved external GetGlobalMemoryStatusEx

Post by Pieter E. »

salvadordf wrote: Wed Oct 27, 2021 10:21 am Please, download CEF4Delphi from GitHub again.
I just changed the parameter types in the declaration of that function.
Thank you for your action! I'll give it a try and get back to you. :)
Pieter E.
Posts: 12
Joined: Thu Oct 19, 2017 2:47 pm

Re: [ECB] Unresolved external GetGlobalMemoryStatusEx

Post by Pieter E. »

I tried the latest CEF4Delphi. Unfortunately I receive the same error.
[ilink32 Error] Error: Unresolved external '__stdcall Ucefmiscfunctions::GetGlobalMemoryStatusEx(Uceftypes::TMyMemoryStatusEx *)' referenced from E:\WEBBROWSER\WIN32\DEBUG\UCEFAPPLICATIONCORE.OBJ
User avatar
salvadordf
Posts: 4580
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: [ECB] Unresolved external GetGlobalMemoryStatusEx

Post by salvadordf »

Pieter E. wrote: Wed Oct 27, 2021 5:09 pm I tried the latest CEF4Delphi. Unfortunately I receive the same error.
[ilink32 Error] Error: Unresolved external '__stdcall Ucefmiscfunctions::GetGlobalMemoryStatusEx(Uceftypes::TMyMemoryStatusEx *)' referenced from E:\WEBBROWSER\WIN32\DEBUG\UCEFAPPLICATIONCORE.OBJ
Now I'm even more confused. :?
I can only suggest that you comment that line and all the code that uses GetGlobalMemoryStatusEx.
petko
Posts: 52
Joined: Sun Jul 02, 2017 9:58 am

Re: [ECB] Unresolved external GetGlobalMemoryStatusEx

Post by petko »

I just updated to version 98 and had the same problem. As a workaround I used the Third solution in this question:

https://stackoverflow.com/questions/70394871/access-64-bit-dll-from-32-bit-dll
Post Reply