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.


Messages - Qedo

Pages: 1 2 [3] 4 5 ... 24
31
Thank you erico  :good:

32
Thank you Gernot.
Also this version work in normal mode but  in Debug mode i get the following:

*** Unhandled exception ***
   ExceptionCode = 0xc0020043

it's a stupid problem that complicates debugging of the program but when compiled it works fine

P.S:
thanks for the very useful clarifications

33
Thank you.
Code: (glbasic) [Select]
// --------------------------------- //
// Project: loadspritejpg
// Start: Wednesday, June 30, 2021
// IDE Version: 16.793
SETCURRENTDIR("Media") // go to media files
SETFONT 0,2
file$="any_jpeg_file_and_some_png.jpg"
IF DOESFILEEXIST(file$)
ok% = LOADSPRITEMEM(file$, w%, h%, pixRGBA%[])
LOADSPRITE file$,0
GETSPRITESIZE 0,sx,sy // return sx=0 and sy=0
DRAWSPRITE 0,0,0 // don't show the sprite
PRINT sx+" "+sy,0,0 // wrong dimensions=0
SHOWSCREEN
MOUSEWAIT
ELSE
PRINT "the file "+file$+" don't exist",0,0
SHOWSCREEN
MOUSEWAIT
ENDIF

34
Hi,
about the problem described in: https://www.glbasic.com/forum/index.php?topic=11508.0
This bug does not allow me to develop the program I am making because it is a blocking problem.
Question:
how can to return to a older and working GLB Steam version, waiting for this bug to be fixed?
Thank you

35
GLBasic Version 16.793 (Steam) does not load the jpg file and some png (probably large dimensions).
Verified on two computers (Win10).
Gernot could you verify?
Thank you

ad maiora

36
Thanks
if it can help I use this code

Code: (glbasic) [Select]
SETCURRENTDIR("Media") // go to media files
file$=Get_Open_File_Name$()

Code: (glbasic) [Select]
// --------------------------------- //
// Project: Qedo
// Start: Saturday, June 26, 2021
// IDE Version: 16.793

INLINE
}
#define HINSTANCE W32HINSTANCE
#define HINSTANCE__ W32HINSTANCE__
#define HMODULE W32HMODULE
#undef LPSTR
#undef DECLARE_HANDLE
#undef LPCTSTR
#undef DWORD
#undef LPWSTR
#undef LPCWSTR
#define HWND W32HWND
#define HWND__ W32HWND__
#define HANDLE W32HANDLE
#undef MAX_PATH
#undef TCHAR
#define WIN32_LEAN_AND_MEAN
#define WinMain WinMain2
#include <windows.h>
#include <commdlg.h>
namespace __GLBASIC__ {
ENDINLINE
FUNCTION Get_Open_File_Name$:
INLINE
    char filename[ 200 ];
    char filetitle[ 200 ];
    tagOFNA ofn;
    *filename = 0; *filetitle = 0;
    for(int i=0; i<sizeof(tagOFNA); ++i) // ZeroMemory
    {
((char*)&ofn)[i] = 0;
    }

    ofn.lStructSize  = sizeof( ofn );
    ofn.hwndOwner    = GetFocus();  // If you have a window to center over, put its HANDLE here
    ofn.lpstrFilter  = "Jpg & Png File\0*.Jpg;*.png\0All Files(.)\0*.*\0";
    ofn.lpstrFile    = filename;
    ofn.nMaxFile     = 1000;
    ofn.lpstrTitle   = "Select a photo";
    ofn.Flags        = OFN_DONTADDTORECENT | OFN_FILEMUSTEXIST;
    ofn.lpstrInitialDir   = "."; // Initial directory.
    ofn.lpstrFileTitle    = filetitle;
    int ret=GetOpenFileNameA(&ofn);
    return filename;
 ENDINLINE
ENDFUNCTION

37
GLBasic - en / Re: True Type Fonts
« on: 2021-Jun-28 »
and also works with the third color parameter.
Great
 =D

38
GLBasic - en / Re: True Type Fonts
« on: 2021-Jun-28 »
Counterorder ..... :S

tried with GLB 16,793 and it works.

LOADFONT "FORTE_system.TTF", 1
SETFONT 1.3
PRINT "Print TTF font", 0,0,1 // GLBasic IDE, Version: 16,793
SHOWSCREEN
MOUSEWAIT
END

only it seems with other zoon values, in example 3, the quality is not high

ad maiora

39
GLBasic - en / Re: True Type Fonts
« on: 2021-Jun-27 »
if I were you I would wait. Surely the GLB update will come out in a while. Somewhere in the forum I read that there will be and then ..... an excellent language like GLB cannot be discarded for a lack, even if temporary. I'm having a lot of fun with this language

40
GLBasic - en / Re: True Type Fonts
« on: 2021-Jun-27 »
I confirm I tried it but it doesn't work

41
with win10 and GLB steam version the exception in debug mode is always present


42
Bug Reports / Re: Norton .exe complain
« on: 2021-Jun-22 »
why don't you try ?
https://www.virustotal.com/gui/

ad maiora

43
GLBasic - en / Re: Android Vibration
« on: 2021-Jun-16 »
Great, Thank you  :good:

44
GLBasic - en / Re: SPRITE TO FONT
« on: 2021-Jun-15 »
Thank you  Gernot :good:

45
GLBasic - en / Re: SPRITE TO FONT
« on: 2021-Jun-09 »
even interacting with Opengl?

Pages: 1 2 [3] 4 5 ... 24