Problem with run app on Windows 10 64bit

Xbase++ 2.0 Build 554 or later
Message
Author
Victorio
Posts: 633
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: Problem with run app on Windows 10 64bit

#11 Post 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 :
Attachments
w10prob.gif
w10prob.gif (34.82 KiB) Viewed 15855 times

User avatar
Auge_Ohr
Posts: 1422
Joined: Wed Feb 24, 2010 3:44 pm

Re: Problem with run app on Windows 10 64bit

#12 Post 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
greetings by OHR
Jimmy

User avatar
Tom
Posts: 1205
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Problem with run app on Windows 10 64bit

#13 Post by Tom »

There is a fix for this from Alaska, a new XPPUI1.DLL. Check your downloads at the Alaska site.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Victorio
Posts: 633
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: Problem with run app on Windows 10 64bit

#14 Post 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.

Victorio
Posts: 633
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: Problem with run app on Windows 10 64bit

#15 Post 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
Attachments
scrresolution.zip
(30.75 KiB) Downloaded 981 times

User avatar
Auge_Ohr
Posts: 1422
Joined: Wed Feb 24, 2010 3:44 pm

Re: Problem with run app on Windows 10 64bit

#16 Post 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
greetings by OHR
Jimmy

User avatar
Auge_Ohr
Posts: 1422
Joined: Wed Feb 24, 2010 3:44 pm

Re: Problem with run app on Windows 10 64bit

#17 Post 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 933 times
remember : it MUST be VIO while GUI will not start !
greetings by OHR
Jimmy

Victorio
Posts: 633
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: Problem with run app on Windows 10 64bit

#18 Post 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.

bwolfsohn
Posts: 649
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: Problem with run app on Windows 10 64bit

#19 Post 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... :(
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

User avatar
Auge_Ohr
Posts: 1422
Joined: Wed Feb 24, 2010 3:44 pm

Re: Problem with run app on Windows 10 64bit

#20 Post 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
greetings by OHR
Jimmy

Post Reply