BASIC

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - msx

Pages: [1] 2 3 ... 5
1
Off Topic / Happy birthday mentalthink
« on: 2017-Apr-13 »
Enjoy this holiday.  :booze:

2
GLBasic - en / Problems with Russian texts
« on: 2017-Mar-23 »
I try to translate my application to the Russian language and being a different alphabet I am not able to write on screen what I want. The location of the characters in the font.png generated by GLB does not match. I have tried with many TrueType fonts and none works. Does anyone know how to do this?

3
I would like to publish my app in Russian but I do not know how to write texts with Cyrillic characters in the current IDE. Is there any way or can I forget it?

4
GLBasic - en / What about Admob on Android?
« on: 2017-Mar-15 »
I am trying add Admob to my Android App but do not find some info about how get it. I think that Admob has not support of Spacefractal in a while. Is it possible to implement Admob now?.

I have tried several examples of the forum but they are old and do not work, at least to me.

5
GLBasic - en / Running in background (iOS)
« on: 2017-Mar-09 »
Is it possible to get my app running in the background? It is an app that alerts you of speed cameras and it would be very important that it work in the background to use it together with a GPS navigator.  :-[

6
My app uses sockets and works perfectly on Android and Windows, however it does not connect on iOs. A simple function like the following...

Code: GLBasic [Select]
FUNCTION CompruebaINET:
// Comprobamos conexión, 1=Si
LOCAL bInternet=0, sock%
        SOCK_INIT()
        sock% = SOCK_TCPCONNECT("www.google.com", 80)
        IF sock%>=0 THEN bInternet=TRUE // check return value. Is it 0 or -1 on error?
        SOCK_CLOSE(sock%)
        SOCK_SHUTDOWN
        RETURN bInternet
ENDFUNCTION

... always responds 0.

Could it be a BUG?.

7
GLBasic - en / Socket works on iOS?
« on: 2017-Jan-09 »
My app uses sockets and works perfectly on Android and Windows, however it does not connect on iOs. A simple function like the following...

Code: GLBasic [Select]
FUNCTION CompruebaINET:
// Comprobamos conexión, 1=Si
LOCAL bInternet=0, sock%
        SOCK_INIT()
        sock% = SOCK_TCPCONNECT("www.google.com", 80)
        IF sock%>=0 THEN bInternet=TRUE // check return value. Is it 0 or -1 on error?
        SOCK_CLOSE(sock%)
        SOCK_SHUTDOWN
        RETURN bInternet
ENDFUNCTION

... always responds 0.

Socket not yet implemented in iOS?.

8
I have created a small code for iphone (just show text) and xcode shows too many errors. Copy here if anyone can help me.

Is there a more complete manual than the existing readme.txt in the xcode folder?

VMWare with MacOS Sierra and XCode 8.1.
 
Code: GLBasic [Select]
Showing Recent Issues
Check dependencies

warning: no rule to process file '/Users/rom/Desktop/XCode/Code/glblicence.inc' of type sourcecode.pascal for architecture armv7
warning: no rule to process file '/Users/rom/Desktop/XCode/Code/glblicence.inc' of type sourcecode.pascal for architecture arm64

CompileC /Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/iphone.build/Debug-iphoneos/GLB_PRODUCT_NAME.build/Objects-normal/armv7/gpc_temp6.o /Users/rom/Desktop/XCode/Code/gpc_temp6.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/rom/Desktop/XCode/Project
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu++11 -gmodules -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wunreachable-code -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk -fstrict-aliasing -Wno-deprecated-declarations -Winvalid-offsetof -miphoneos-version-min=8.0 -g -fvisibility-inlines-hidden -Wno-sign-conversion -Winfinite-recursion -Wmove -iquote /Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/iphone.build/Debug-iphoneos/GLB_PRODUCT_NAME.build/test-generated-files.hmap -I/Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/iphone.build/Debug-iphoneos/GLB_PRODUCT_NAME.build/test-own-target-headers.hmap -I/Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/iphone.build/Debug-iphoneos/GLB_PRODUCT_NAME.build/test-all-target-headers.hmap -iquote /Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/iphone.build/Debug-iphoneos/GLB_PRODUCT_NAME.build/test-project-headers.hmap -I/Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Products/Debug-iphoneos/include -I/Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/iphone.build/Debug-iphoneos/GLB_PRODUCT_NAME.build/DerivedSources/armv7 -I/Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/iphone.build/Debug-iphoneos/GLB_PRODUCT_NAME.build/DerivedSources -F/Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Products/Debug-iphoneos -DTARGET_OS_IPHONE -include /Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/PrecompiledHeaders/iOS_Prefix-erdnvqisxnnrpvgqqgaegphzhavc/iOS_Prefix.pch -MMD -MT dependencies -MF /Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/iphone.build/Debug-iphoneos/GLB_PRODUCT_NAME.build/Objects-normal/armv7/gpc_temp6.d --serialize-diagnostics /Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/iphone.build/Debug-iphoneos/GLB_PRODUCT_NAME.build/Objects-normal/armv7/gpc_temp6.dia -c /Users/rom/Desktop/XCode/Code/gpc_temp6.cpp -o /Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/iphone.build/Debug-iphoneos/GLB_PRODUCT_NAME.build/Objects-normal/armv7/gpc_temp6.o

/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:79:3: error: unknown type name '__VAR_CONTAINER'
  __VAR_CONTAINER __FKT;
  ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:80:10: error: unexpected type name 'DGInt': expected expression
ARGS_VAR(DGInt&, lat);
         ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:80:16: error: expected expression
ARGS_VAR(DGInt&, lat);
               ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:81:10: error: unexpected type name 'DGInt': expected expression
ARGS_VAR(DGInt&, lon);
         ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:81:16: error: expected expression
ARGS_VAR(DGInt&, lon);
               ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:82:10: error: unexpected type name 'DGInt': expected expression
ARGS_VAR(DGInt&, alt);
         ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:82:16: error: expected expression
ARGS_VAR(DGInt&, alt);
               ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:83:10: error: unexpected type name 'DGInt': expected expression
ARGS_VAR(DGInt&, spd);
         ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:83:16: error: expected expression
ARGS_VAR(DGInt&, spd);
               ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:84:10: error: unexpected type name 'DGInt': expected expression
ARGS_VAR(DGInt&, head);
         ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:84:16: error: expected expression
ARGS_VAR(DGInt&, head);
               ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:179:3: error: unknown type name '__VAR_CONTAINER'
  __VAR_CONTAINER __FKT;
  ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:223:3: error: unknown type name '__VAR_CONTAINER'
  __VAR_CONTAINER __FKT;
  ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:266:3: error: unknown type name '__VAR_CONTAINER'
  __VAR_CONTAINER __FKT;
  ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:267:10: error: unexpected type name 'DGInt': expected expression
ARGS_VAR(DGInt&, lat);
         ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:267:16: error: expected expression
ARGS_VAR(DGInt&, lat);
               ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:268:10: error: unexpected type name 'DGInt': expected expression
ARGS_VAR(DGInt&, lon);
         ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:268:16: error: expected expression
ARGS_VAR(DGInt&, lon);
               ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:269:10: error: unexpected type name 'DGInt': expected expression
ARGS_VAR(DGInt&, alt);
         ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

 

9
GLBasic - en / Building for iOS
« on: 2016-Sep-29 »
How I can build for iOS ?. I tried to copy the iPhone folder uploaded by Spacefractal in platform folder but GLB does not recognize it.

10
All information in the following link...

http://www.glbasic.com/forum/index.php?topic=10771.0

11
GLBasic - es / ¿Alguien con Android 6.0?
« on: 2016-Aug-26 »
Hola, he publicado una aplicación en Google Play y un usuario se queja de que se sale de la aplicación nada más empezar. He visto que tiene un galaxy S7 con Android 6.0. Yo no la he podido probar en esa versión, ¿alguien me haría el favor para decirme que ocurre?.

Gracias

12
GLBasic - en / [SOLVED] Crashing on Android 6
« on: 2016-Aug-26 »
A user complains that the application crash in Galaxy S7 on Android 6. Has anyone tried GLB is this version of Android ?.

13
I'm trying to delete a file on Android and I can not, I tried using SETCURRENTDIR and PLATFORMINFO$("APPDATA") but the file is still there. DoesFileExist confirms this.

There is a bug in this command?

14
After failing my attempt to implement Admob Interstitial, I am obliged to find a new business model for my application. I think I finally will try to use IAP. In this thread, MrPlow and spacefractal tried to help me, however I still have some doubts.

- Is there a practical manual on the forum or a summary of the steps to follow?. I get lost with so much code.

- Can I do tests without having to upload the application to Play store?

15
GLBasic - en / How to show ADS in my App?
« on: 2016-Jul-15 »
I tried to follow this thread to show ADS in my application but I can not not show anything and if I look admod reports also shows requests. I do not know that I can be doing wrong. Still it works?

Pages: [1] 2 3 ... 5