jaPBe 3.13.4 [IDE for PB 4 and PB 5]

All PureFORM, JaPBe, Libs and useful code maintained by gnozal

Moderator: gnozal

User avatar
mback2k
Enthusiast
Enthusiast
Posts: 257
Joined: Sun Dec 02, 2007 12:11 pm
Location: Germany

Post by mback2k »

Hello everybody. First of all, I want to say thank you, gnozal, for all your work with jaPBe.

I am having the following problem: My program has the string "Updater" inside it's name and so Vista always asks for Administration privileges. I tried to use "Request user mode on Vista", but Vista still asks for Administration privileges.

After searching through the web, I found out that the Windows Manifest has to look something like the following to stop Vista asking for the privileges:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly
 xmlns="urn:schemas-microsoft-com:asm.v1"
 manifestVersion="1.0">
<assemblyIdentity
 processorArchitecture="x86"
 version="5.1.0.0"
 type="win32"
 name="PureBasic"/>
 	<description>PureBasic</description>
 <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel
          level="asInvoker"
          uiAccess="false"/>
        </requestedPrivileges>
       </security>
  </trustInfo>
 <dependency>
 <dependentAssembly>
 <assemblyIdentity
  type="win32"
  name="Microsoft.Windows.Common-Controls"
  version="6.0.0.0"
  publicKeyToken="6595b64144ccf1df"
  language="*"
  processorArchitecture="x86"/>
 </dependentAssembly>
</dependency>
</assembly>
Source topic: http://www.purebasic.fr/german/viewtopi ... 154#143154 (german)

Would it be possible to add that "trustInfo"-part to jaPBe? Or is it something the PB compiler has to do?

Thanks in advance,
mback2k
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

When 'Request user mode on Vista' is checked in project options, jaPBe uses the following manifest :

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <assemblyIdentity
    version="1.0.0.0"
    processorArchitecture="X86"
    name="CompanyName.ProductName.YourApp"
    type="win32" />
  <description>Your application description here.</description>	<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel
          level="asInvoker"
          uiAccess="false"/>
        </requestedPrivileges>
       </security>
  </trustInfo>
</assembly>
Is it correct ? Some Vista guru advice needed ...
And please note that the manifest options [ Enable XP / Request USER / Request ADMIN ] are mutually exclusive. In the newest build (680), jaPBe now only allows the user to select one of these options.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Changes :
- scintilla updated to 1.75 (not much tested, but I can still rollback)
- new profiler option in preferences ('debugger' tab)
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post by JCV »

hi gnozal,

I encounter error when trying to type the following.

Try typing
Import "disa
Import "disaaa
Import "disssss
Got this and I need to delete the error logs to be able to open japBe again.
Image

[Registered PB User since 2006]
[PureBasic 6.20][SpiderBasic 2.2]
[RP4 x64][Win 11 x64][Ubuntu x64]
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

JCV wrote:hi gnozal,
I encounter error when trying to type the following...
Weird.
Can't reproduce this. What OS / jaPBe build are you using ?
JCV wrote:Got this and I need to delete the error logs to be able to open japBe again
What error logs ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post by JCV »

gnozal wrote:What error logs ?
I got this from CrashedFile1.pb (I delete this file to be able to use jaPBe again)
Import "
; jaPBe Version=3.7.12.681
; Build=0
; FirstLine=0
; CursorPosition=2
; ExecutableFormat=Windows
; DontSaveDeclare
; EOF
Im using XP SP2. PB 4.2B1 I reinstall my jaPBe but still the same. :O Weird
I dont experience on PB Editor.

[Registered PB User since 2006]
[PureBasic 6.20][SpiderBasic 2.2]
[RP4 x64][Win 11 x64][Ubuntu x64]
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Thank for the info JCV.
Maybe I found something : could you try http://freenet-homepage.de/gnozal/jaPBe_Debug.zip and see if it fixes the problem ?
If not, please report the error module and error line.
Thanks
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post by JCV »

gnozal wrote:Thank for the info JCV.
Maybe I found something : could you try http://freenet-homepage.de/gnozal/jaPBe_Debug.zip and see if it fixes the problem ?
If not, please report the error module and error line.
Thanks
No fatal error now (using jaPBe_Debug) . I dont know what magic did you do. :D

I just notice on the other exe it will always crash when I type
Import "anythinghere"

[Registered PB User since 2006]
[PureBasic 6.20][SpiderBasic 2.2]
[RP4 x64][Win 11 x64][Ubuntu x64]
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Changes :
- fixed crash when 'Import' is on 1st line
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post by JCV »

Thank you!

[Registered PB User since 2006]
[PureBasic 6.20][SpiderBasic 2.2]
[RP4 x64][Win 11 x64][Ubuntu x64]
chen
Enthusiast
Enthusiast
Posts: 338
Joined: Fri Dec 23, 2005 2:20 pm
Location: Quebec, Canada
Contact:

Post by chen »

Hi,

I just downloaded jaPBe after some months of stopping development and
I have a problem to run it...

It install without problems but when I run it I receive always the message

"PB IDE preference file not found! Please start Purebasic.exe at least
one time."

Of course I've started PB IDE several times... but it does not work.

I checked jaPBe preferences and the IDE path is ok... then what else
I need to adjust..

thanks..
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

chen wrote:Hi,
I just downloaded jaPBe after some months of stopping development and
I have a problem to run it...
It install without problems but when I run it I receive always the message
"PB IDE preference file not found! Please start Purebasic.exe at least
one time."
jaPBe looks for Purebasic.prefs in :
- PB directory for PB4.00-PB4.02
- %APPDATA%\Purebasic\ for PB4.10-PB4.20 [#CSIDL_APPDATA] because of Vista
If your %APPDATA%\Purebasic\ is empty, simply copy your preference file to this directory.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
chen
Enthusiast
Enthusiast
Posts: 338
Joined: Fri Dec 23, 2005 2:20 pm
Location: Quebec, Canada
Contact:

Post by chen »

gnozal wrote:jaPBe looks for Purebasic.prefs in :
- PB directory for PB4.00-PB4.02
- %APPDATA%\Purebasic\ for PB4.10-PB4.20 [#CSIDL_APPDATA] because of Vista
If your %APPDATA%\Purebasic\ is empty, simply copy your preference file to this directory.
Sound weird but I dont have Purebasic.prefs anywhere... not in the directory
I installed Purebasic not even in my computer..... :oops:

But PB IDE runs without problems...

Im running PB 4.20 in Windows XP ...
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

chen wrote:Sound weird but I dont have Purebasic.prefs anywhere... not in the directory
Did you check APPDATA ?
(Open console, type 'SET' + Return, look at APPDATA value)
chen wrote:I installed Purebasic not even in my computer..... :oops:
!?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Preference page bug..

Post by Fangbeast »

Gnozal, just loaded jaPBe v3 for the first time and opened the prferences page and something strange happened.

On the first tab, there is an option ticked:

"Hide Declare-Files"

As I pass my mouse over it, it changes to:

"Load a File Only Once"


Somehow, I don't think this was supposed to happen:):)

Did you have two gadgets on top of each other accidentally?
Post Reply