how replace |#ES_AUTOVSCROL... from WINXP to Linux???

Linux specific forum
24dan
New User
New User
Posts: 5
Joined: Thu Dec 01, 2005 8:31 am
Location: Hamburg, Germany

how replace |#ES_AUTOVSCROL... from WINXP to Linux???

Post by 24dan »

Hello...
I compile my windows *.pb code under debian and like to know How can I replace my WINDOWS CODE :
|#ES_AUTOVSCROLL|#WS_VSCROLL|#WS_HSCROLL

in Linux? In the moment I have to comment out.
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

These are Windows constants, which won't work on linux. I think you don't need them on Linux anyway (if you use them in a StringGadget()). You can still use:

Code: Select all

CompilerIf #PB_Compiler_OS = #PB_OS_Linux 
  #ES_AUTOVSCROLL = 0
  #WS_VSCROLL = 0
  #WS_HSCROLL = 0
CompilerEndIf
This way you will have an unique code for linux and windows.
24dan
New User
New User
Posts: 5
Joined: Thu Dec 01, 2005 8:31 am
Location: Hamburg, Germany

Post by 24dan »

Thanx

and here is my last error message i have become from the compiler:

Code: Select all

guest-189:/home/ason/zahlenprog/version 5.8# pbcompiler --subsystem "gtk2" main_zahlenprog.pb -e Zahlen.exe

******************************************
PureBasic Linux x86 v3.92
******************************************

Loading external modules...
Loading gtk2 subsystem
Starting compilation...
Including source: module/header.pb
Including source: module/mod_variablen.pb
Including source: module/mod_allgemein.pb
Including source: module/mod_berechnungen.pb
Including source: module/mod_ein_ausgabe.pb
Including source: module/mod_01.pb
2342 lines processed.
Creating the executable.
Error: Assembler
purebasic.asm [4812]:
MOV dword [_PB_StringBase],eax
error: undefined symbol.
guest-189:/home/ason/zahlenprog/version 5.8#
But I don't know what I have to fixed?
Regards
Daniel
Post Reply