Page 2 of 3

Re: Problem with run app on Windows 10 64bit

Posted: Fri Jan 12, 2018 6:53 am
by Victorio
I am tryed also change parameters for link to program, and now really I do not know, if helped this or change resolution from 1680 - 1600 and back :think:
attached here is what I change :

Re: Problem with run app on Windows 10 64bit

Posted: Fri Jan 12, 2018 1:48 pm
by Auge_Ohr
Victorio wrote:I can confirm, that screen resolution is problem.
Jimmy, I found Screeenres.zip on Xbase newsgroup and there is screenres.dll, but this thread is from 2007 year. Is this you mean and how use it ?
YES

Code: Select all

Procedure Main()
LOCAL nXRes := 0
LOCAL nYRes := 0
LOCAL nBits := 0
LOCAL nFreq := 0

   // Get the current settings (as Joe said, it might return Zero values)
   _GetDisplaySettings(NIL, @nXRes, @nYRes, @nBits, @nFreq)

   Alert('Current Resolution: ' + ;
      alltrim(str(nXRes)) + ' x ' + ;
      alltrim(str(nYRes)) + ' with ' + ;
      alltrim(str(nBits)) + ' bits for Colors, at ' + ;
      alltrim(str(nFreq)) + 'Hz', {'Resolution Change Test'})

   nXRes := 1600
   nYRes := 900
   nFreq := 60

   // Set the display temporarily to 800x600 fullscreen
   // using the original color and frequency settings

    _ChangeDisplaySettings(nXRes, nYRes, .t., nBits, nFreq)

    SLEEP(100)
*   Alert('Current Resolution: ' + ;
*      alltrim(str(nXRes)) + ' x ' + ;
*      alltrim(str(nYRes)) + ' with ' + ;
*      alltrim(str(nBits)) + ' bits for Colors, at a Frequenzy of ' + ;
*      alltrim(str(nFreq)) + 'Hz', 'Resolution Change Test')

   // Restore normal setting (optional, resets also at program termination)
    _ChangeDisplaySettings()
return
remember to use VIO ( not GUI ! ) Standalone App

Re: Problem with run app on Windows 10 64bit

Posted: Sat Jan 13, 2018 1:59 am
by Tom
There is a fix for this from Alaska, a new XPPUI1.DLL. Check your downloads at the Alaska site.

Re: Problem with run app on Windows 10 64bit

Posted: Sat Jan 13, 2018 3:32 am
by Victorio
Jimmy, thank's, I will try, when client report me problem again.

Tom : I have not subscription for update, then I have old version Alaska Xbase++ 2.0 build 554.
at this moment I do not want pay for update.
Now I try Screenres.dll.

Re: Problem with run app on Windows 10 64bit

Posted: Wed Jan 17, 2018 2:59 am
by Victorio
Jimmy : please, can you tell me how can use screenres.dll ?

I still have error
- Function is not declared
- _CHANGEDISPLAYSETTINGS

and after it error
An exception (C0000005) occurred during DLLEntryPoint or DllMain in module
C:\ScreenRes.dll

In attach is my xpj and prg.

My PC OS is Windows 7 Pro 32 bit

Re: Problem with run app on Windows 10 64bit

Posted: Wed Jan 17, 2018 9:43 am
by Auge_Ohr
hi,

can't run you EXE while it is compile with Xbase++ v2.x so i try to recompile.
but it still does not run so i have to look deeper ... i come back when i have a Solution

Re: Problem with run app on Windows 10 64bit

Posted: Wed Jan 17, 2018 10:25 am
by Auge_Ohr
hi,

have found a ScreenRes.obj
here full Demo with OBJ, DLL
ScreenRes.zip
OBJ, DLL, PRG, XPJ
(27.48 KiB) Downloaded 890 times
remember : it MUST be VIO while GUI will not start !

Re: Problem with run app on Windows 10 64bit

Posted: Wed Jan 17, 2018 11:22 am
by Victorio
Jimmy, thank you very much,
with your screenres.obj demo now works.
without obj, if I understand I must include dll call

so now this help me to test, if this way can help with W10 problem.
I can't test it, because I have monitor only with 1680/1050

once again thanks for your time and help.

Re: Problem with run app on Windows 10 64bit

Posted: Wed Jan 17, 2018 11:33 am
by bwolfsohn
Tom wrote:There is a fix for this from Alaska, a new XPPUI1.DLL. Check your downloads at the Alaska site.
is this the fix for the screen resolution ?

I have problems trying to find anything on the alaska website... :(

Re: Problem with run app on Windows 10 64bit

Posted: Wed Jan 17, 2018 2:38 pm
by Auge_Ohr
bwolfsohn wrote:is this the fix for the screen resolution ?
I have problems trying to find anything on the alaska website... :(
Hotfix #51 should be for PDR 6904 but you need a active Subscription to download