Jump to content

Recommended Posts

Posted

Hello,

I have an issue with Ultra Application Kit when I am running the UltraEngine.exe I receive an error message about

Quote

The procedure entry point SetThreadDpiAwarenessContexr could not be located in the dynamic link library USER32.dll

And then the program ends. I am unable to run the Library and the creator of the Library wasn't answered. Do anyone among of you, had any similar problem.

I am running Windows 7 - x64 here and this User32.dll is for Windows 10.

Is there a Windows 7 version of the Library?

 

Posted

Yeah, as we discussed, Windows 10 is currently a requirement. Microsoft redid the way DPI scaling works in Win10 and in order to get it completely right I had to use the new functions.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

So when I will change my operating system I will be able to use this library.

I do not like Windows 10 much. But there are many programmers who still use Windows 7 too.

Posted

Regardless of whether WIndows 7 is still supported by Microsoft, I believe this issue will occur on Windows 8 as well.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

Oh yeah, I know why I did this.

SetThreadDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);

This was needed in order to support multiple monitors with per-display DPI scale settings.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted
13 minutes ago, takis76 said:

Can you fix it?

Well, it looks like pre-Windows 10 support would require a separate build, or I would have to disable per-display DPI settings. Unless anyone know another way to get around the missing functions.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted
On 4/30/2021 at 6:30 PM, takis76 said:

If this will be disabled what problem will cause?

Will it no support more than 1 monitors?

I believe the library wraps around the Win32 API. Of course Windows has had many features since Windows 7 and DPI scaling per monitors is one of them (which introduced other things such as dynamic scaling).

Also "disabling" this would break other things such as DPI awareness (which again Windows 7 doesn't support). I think you really only have one option, which is to upgrade to Windows 10.

Here is some further information regarding the efforts that went into DPI scaling for Windows 10

https://docs.microsoft.com/en-gb/archive/blogs/askcore/display-scaling-in-windows-10

Posted

So this library works in Windows 10 operating system and not in others like Linux or MacOS.

I cant install Windows 10 and I am not planing to format my PC for now. I will keep the library for some future use and I will see.

Posted

You might try setting up an install of Ubuntu if the Windows 10 security issues bother you. That has a more promising future for secure computing.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

I am not planning any Operating System installation now because all my hard disks are occupied more than 60% and the Ubuntu is not able to be installed now. I will store the library for future use, I am not planning to do any PC format because I will need to do lots of backups and installations, which means I will not use the Ultra App Kit for the next 2 years at lest. Maybe the Ultra App Kit will get matured and improved until then. I was thought I would able to use it out of the box but things seems to be different.

Posted

Well, it looks like there is one way:
https://stackoverflow.com/questions/52690147/check-if-winapi-function-is-available

If I called LoadLibrary() and then checked for the existence of the function before calling it I could call it only if it is present...maybe.

It is possible that the SDK version I am linking to might trigger the error anyways, whether or not my code contains the function. I am not sure.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

I don't know yet. This is all new to me and needs additional research. I am just discovering this information and it is a rare problem.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

Well, if it requires a separate build for pre-WIn10 I'm not going to do it. If it is possible to do without requiring a separate build, then it may be possible. I don't know yet.

My job is to make tools you love, with the features you want, and performance you can't live without.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...