Welcome, Guest.
Please login or register.
Search Results - Recent posts as of less than a minute ago
Search Results - Recent posts as of less than a minute ago
5 Pages 1 2 3 4 5 »
Showing 1 - 30 (133 results found)

  win32s Posted by: watlers world
Date Posted: January 17, 2010, 3:38pm
Word-Hits
1 (100.00%)
xblite seems to do ok at making win32s programs
is there any way to make xblite run on win32s?


Re: Non case sensitive keywords Posted by: anta40
Date Posted: September 2, 2009, 2:37pm
Word-Hits
1 (100.00%)
If it's by design then I think I can accept. Personally, I prefer lowercase keywords, like in C. Uppercase keywords sometime look annoying. No big deal, anyway...  

And maybe I should use XSED, instead of a common programming editor...




Re: Non case sensitive keywords Posted by: Register
Date Posted: September 2, 2009, 10:58am
Word-Hits
1 (100.00%)
Hi anta40,

Max Reason decided (with reason) that all XBASIC's keywords would be uppercase. Visually, it allows you to separate keywords from User identifiers so I tend to think that it was a good design choice. A drawback is that you must type your keywords "caps on", which, like lzdude69 stated it, can cause cramps to your poor pinky.

To preserve your so useful pinky, D. has added the possibility to XSED to capitalize "on the fly" xblite's keywords. Works great for me and my pinky!

To answer precisely to your question: I see no reason to allow mixed case keywords and XSED will capitalize all keywords that you typed in lowercase. Just remember to turn on the proper editor switch.

Non case sensitive keywords Posted by: anta40
Date Posted: August 30, 2009, 10:29am
Word-Hits
1 (100.00%)
I just noticed that all XBLite keywords are uppercase, while on the other BASIC variants they don't need to be upper case.
Would it be difficult to implement this?

Re: newbie dll install question Posted by: ukimiku
Date Posted: May 10, 2009, 5:48pm
Word-Hits
1 (100.00%)
Thanks a lot! Now I think it's clear to me.
Regards, ukimiku

Re: newbie dll install question Posted by: 13
Date Posted: May 10, 2009, 5:41pm
Word-Hits
1 (100.00%)
OK,I understand.  Put a copy in the "xblite\programs" folder.  You will see other dlls there.

Greg

Re: newbie dll install question Posted by: ukimiku
Date Posted: May 9, 2009, 3:21pm
Word-Hits
1 (100.00%)
Hi Greg,

thanks for replying. Now I am unsure as how to *test* the .dll if I am to place it into the compiled application's folder. (?)

Regards,
ukimiku

Re: newbie dll install question Posted by: 13
Date Posted: May 8, 2009, 7:23am
Word-Hits
1 (100.00%)
Generally the best choice is in the compiled application's folder.

Greg

newbie dll install question Posted by: ukimiku
Date Posted: May 3, 2009, 7:33pm
Word-Hits
1 (100.00%)
Hi all,

I have just installed XBLite, and it's working. I would like to try out a .dll library with XBLite. Where do I have to put .dll files? Into the XBlite folder? Into the compiled application's folder? Into any special dedicated Windows folder?

Thanks for helping!

Regards,
ukimiku

  Re: "TR/Crypt.XPACK.Gen" trojan pops up when compiled! Posted by: ExoTek
Date Posted: April 28, 2009, 1:04pm
Word-Hits
1 (100.00%)
Thanks Greg,

That explains it all.

At least now I nkow that there is nothing behind this.
Worst comes to worst I just tell Avira to 'Ignore' and go on...

It still bug me though that it doesn't do it every times... Usualy, a computer will always comes to the same result given a particular situation...?
I guess that somethings turn out differently from one time to another and that's enaugh to trigger the alarm?...

Anyways, thanks again Greg.  

  Re: "TR/Crypt.XPACK.Gen" trojan pops up when compiled! Posted by: 13
Date Posted: April 28, 2009, 10:46am
Word-Hits
1 (100.00%)
Hi Exo,

It is very likely a false positive.  See a discussion here (http://www.masm32.com/board/index.php?topic=10462.0) of this problem in association with using GoAsm, the assembler used as the backend to xblite.

Greg

  "TR/Crypt.XPACK.Gen" trojan pops up when compiled! Posted by: ExoTek
Date Posted: April 27, 2009, 9:20pm
Word-Hits
1 (100.00%)
I keep getting the "TR/Crypt.XPACK.Gen" warning when I compile my code ...
My anti-virus is "Avira home edition" and the code I just tryed is the "menu" demo in the "gui" sub-dir.

Can anyone tell me what file keeps getting infected and why...
Every time I find myself re-downloading xbl and re-installing it, its ok for a while and then BANG!!!  

Of course, the first time that this happened, I went through a total scan of my system with both my anti-vir and "spy-bot" but it is still comming back! And the worst part is that it only happens with my most beloved xbl (I put a smiley here but in fact I was looking for a little face drowning in a sea of tears!)

Heeeelp!!

Re: xblite and GTK+ Posted by: Julien
Date Posted: March 29, 2009, 12:07pm
Word-Hits
1 (100.00%)
To retrieve the file name of the file to open, use gtk_file_chooser_get_filename_utf8 instead of gtk_file_chooser_get_filename.

See this thread for details : http://groups.google.com/group/xblite/browse_thread/thread/f520978a90715b2a

Re: xblite and GTK+ Posted by: Julien
Date Posted: March 21, 2009, 5:24pm
Word-Hits
1 (100.00%)
The xblite code below works to create a GTK+ "Open file" dialog.
As parent window for the dialog, I pass a value of 0 (variable None).
The dialog displays, however, I don't know what should be the xblite/GTK equivalent for this GTK_FILE_CHOOSER (dialog)

For those interested in GTK+ for xblite, see : http://homepages.ihug.co.nz/~armeanu/xblite.html
See the message on the xblite Google Groups forum if you encounter installation problems with the necessary libraries.

gtk_init (argc, argv)
title$ = "Open file"
dialog = gtk_file_chooser_dialog_new (&title$, None, $$GTK_FILE_CHOOSER_ACTION_OPEN, &$$GTK_STOCK_CANCEL, $$GTK_RESPONSE_CANCEL, &$$GTK_STOCK_OPEN, $$GTK_RESPONSE_ACCEPT, NULL)
    
IF (gtk_dialog_run (dialog) = $$GTK_RESPONSE_ACCEPT) THEN
    'filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
    'open_file (filename);
    'g_free (filename);
END IF
     
gtk_widget_destroy (dialog)

xblite and GTK+ Posted by: Julien
Date Posted: March 20, 2009, 8:11pm
Word-Hits
1 (100.00%)
Hi folks,

I know that this is more a GTK+ question than an xblite one,
but I'm trying to use Liviu Armeanu's GTK+ binding for xblite to create a "File Open" dialog window...

At runtime, I get this error :
Gtk-CRITICAL **:gtk_window_set_transient_for: assertion `parent == NULL || GTK_IS_WINDOW (parent)' failed

This is like the parent window that is then passed to the "File Open" dialog could not be created.

Is there some GTK guru here?
Here the code:

gtk_init (argc, argv)
window = gtk_window_new ($$GTK_WINDOW_TOPLEVEL)
title$ = "Open file"
dialog = gtk_file_chooser_dialog_new (&title$, &window, $$GTK_FILE_CHOOSER_ACTION_OPEN, &$$GTK_STOCK_CANCEL, $$GTK_RESPONSE_CANCEL, &$$GTK_STOCK_OPEN, $$GTK_RESPONSE_ACCEPT, NULL)
gtk_main ()

Re: Welcome to the XBLite Programming Forum Posted by: Arlamon
Date Posted: December 9, 2008, 7:18am
Word-Hits
1 (100.00%)
This is great. I haven't used XBLite since last year sometime and I've been waiting for the day that this forum would be created(Since Google Groups is just plain ugly and formating is terrible.)

I'm a bit late (today I randomly decided to see how this project was coming since I last used it), but hey...  

Re: LLVM Posted by: eto.ethome.sk
Date Posted: November 27, 2008, 10:33am
Word-Hits
1 (100.00%)
Yeah I realized XBLite is trimmed down XBasic. However were some new XBlite features back-ported to XBasic ? Like the newer integer types etc.

Re: INC bug ? Posted by: eto.ethome.sk
Date Posted: November 26, 2008, 11:43pm
Word-Hits
1 (100.00%)
I have experienced exactly the same situation today. Invoking INC caused second chance exception, which took down whole program. I was using PACKED type with ULONG memebers, are you interested in my source code for further anlysis?

  Re: Missing source code? Posted by: Sam
Date Posted: October 1, 2008, 10:00am
Word-Hits
1 (100.00%)
Thanks! BTW, for the docs, I think I could handle myself. I'll try to check it tommorow. And, sorry for last post's language. I was writing with an empty head. Once again, thanks!

Sam

Re: GTK .DEC files Posted by: XBLiteAdmin
Date Posted: September 27, 2008, 7:13pm
Word-Hits
1 (100.00%)
Hi,

You can find them here:

http://homepages.ihug.co.nz/~armeanu/xblite.html

ciao,
D.

GTK .DEC files Posted by: gedumer
Date Posted: September 27, 2008, 6:10pm
Word-Hits
1 (100.00%)
Does anyone have the .DEC files for GTK?

Re: INC bug ? Posted by: 26
Date Posted: September 26, 2008, 3:35pm
Word-Hits
1 (100.00%)
composites are defined as :
Code
PACKED RGBA_F
	SINGLE		.r
	SINGLE		.g
	SINGLE		.b
	SINGLE		.a
END TYPE

TYPE MENU_COLOR_SET
RGBA_F		.text
RGBA_F		.base
END TYPE

TYPE MENU_CONTROLER
ULONG						.font
ULONG						.nMenus
ULONG						.focused
MENU_COLOR_SET	.focus
MENU_COLOR_SET	.active
MENU_COLOR_SET	.inactive
END TYPE


and the function is :
Code
FUNCTION MENU_Create (pX,pY,width,title$)
SHARED MENU_CONTROLER mControl
SHARED MENU_HANDLER menu[]

cMenu=mControl.nMenus
IF cMenu>$$MAX_MENUS THEN RETURN -1

'mControl.nMenus = mControl.nMenus + 1
INC mControl.nMenus

menu[cMenu].flags=0
menu[cMenu].nItems=0
menu[cMenu].pos.x=pX
menu[cMenu].pos.y=pY
menu[cMenu].width=width
menu[cMenu].name =title$

RETURN cMenu

END FUNCTION


Alone this code causes exception.If i clear carry flag before using INC/DEC (composite.member), the exception does not occur.If the carry flag is set before any INC/DEC (composite.member), exception raises each time.

Code
ASM clc
INC mControl.nMenus

will not cause exception

Code
ASM stc
INC mControl.nMenus

will cause exception each time

Code
PRINT "someting"
INC mControl.nMenus

will avoid exception (i suppose PRINT clears carry flag)

This problems seems to occur only with composites ULONG members.
I attached a bit of code that reproduces problem.In this program, i suppose the 'IF THEN' code set the carry flag so the problem occurs.This is dependency walker output :
Quoted Text
00:00:00.203: First chance exception 0x80000003 (Breakpoint) occurred in "TESTINC.EXE" at address 0x0040105A by thread 1.



Re: INC bug ? Posted by: XBLiteAdmin
Date Posted: September 26, 2008, 11:26am
Word-Hits
1 (100.00%)
Hi,

I'm unable to explain this situation without more code to look at.

Could you post your struct for mControl.

thanks,
D.

  Re: Missing source code? Posted by: XBLiteAdmin
Date Posted: September 26, 2008, 11:10am
Word-Hits
1 (100.00%)
I've attached source for autodocs.x in the file autodocs.zip here.

  Missing source code? Posted by: Sam
Date Posted: September 26, 2008, 3:28am
Word-Hits
1 (100.00%)
Hi,
Has anyone noticed that the source code for autodocs.exe is missing in the 2.4.0 release? It's not available even in the source package. Maybe it's available on an earlier release, but I don't know which one (please tell me). And please update the demo programs listing in the documentation. It makes me confused because the old demo programs are still listed.

Thanks a lot,
Sam

  gxml-v2.4 Posted by: Rhett Thompson
Date Posted: September 25, 2008, 1:19am
Word-Hits
1 (100.00%)
This is a new minor release of gxml, that addresses several bugs as well as add new features.  There is also a major performance increase (about ~9%), which is always good

Quoted Text

9-10-08 :: 2.4 :: The parser has been completely rewritten, and is both faster and more efficient.

9-15-08 :: 2.4 :: Removed XmlGetNodePoolAddress () as the equivalent can be achieved with XmlGetNodeAddress (). Modified XmlGetChild () to retrieve anonymous children (request by Spyke).  Colons are now aloud in node names, to facilitate for namespaces. Had to modify XmlGetChildFromPath () to use an '|' instead of a colon, so it wouldn't interfere with namespaces.

9-23-08 :: 2.4 :: Renamed some constants. Added XmlInit() which adds the default entities.  The root node is now added immediately after XmlEvent_Start is fired, and no longer in XmlDrop().  This fixes a problem with an event driven XML application (found out the hard way).

9-24-08 :: 2.4 :: Fixed a bug in XmlCompile() where indention wasn't getting added correctly. Added support for namespaces.  Attributes can now have instances. Modified XmlGetAttribute$ () to behave like XmlGetChild () for retrieving attributes when you don't know the name.  Removed XmlAttributeExist () as it is no longer needed. New manual!


Grab it from the Google Group using Chrome if you want

http://groups.google.com/group/xblite/web/gxml-v2.4.zip

INC bug ? Posted by: 26
Date Posted: September 21, 2008, 10:02am
Word-Hits
1 (100.00%)
I had an exception raised when excuting this code

Quoted Text
INC mControl.nMenus


and none when using this one :

Quoted Text
mControl.nMenus = mControl.nMenus + 1


That was very weird so it took a look to the assembly code :

Quoted Text
; [3449] INC mControl.nMenus
     mov     eax,d[%mControl.sab_edit]               ;;; i663a
     mov     esi,d[eax+4]               ;;; i73
     inc     d[eax+4]               ;;; i78
     jnc     > A.372               ;;; i79
     int     3               ;;; i80
A.372:


So this is the problem, the code executes INT3 if carry is set but INC does not modify carry flag so you can have unexpected exceptions when using INC (totaly randomly so it is difficult to find why).

Re: Simple filesystem using compressed archives Posted by: 26
Date Posted: September 21, 2008, 9:46am
Word-Hits
1 (100.00%)
Thanks for the tips, i think i'll look more further in 7zip because it seems a great library so i'll take some time to study it.

Re: Simple filesystem using compressed archives Posted by: Rhett Thompson
Date Posted: September 19, 2008, 1:25pm
Word-Hits
1 (100.00%)
Hi,

Guy is right is should be a fairly trivial thing to write a simple wrapper for the 7zip SDK.  Although I haven't written one for 7zip, I have for much more complex libraries (HGE and Irrlicht), and and the API does look simple.

The concept is simple enough:

You basically write a "constructor" wrapper function, around the actual constructor in C++ like:

Code
void*hge_Create(params...){

   return new hge(params...);

}


Then to access the methods of the object, you would write a wrapper for each method:

Code
void hge_setWindowSize(hge*hge, unsigned int width, unsigned int height){
   
   hge->setWindowSize(width, height);

}


Although the code does pile up after a bit, it works

Re: Simple filesystem using compressed archives Posted by: 17
Date Posted: September 19, 2008, 3:10am
Word-Hits
1 (100.00%)
Hi Fano,

Rhett already suggested to handle a COM interface by:
1. writing function wrappers with c++ in a library (.dll)
2. exposing the wrappers' interface by declaring their prototypes extern "C"

I did not try it but Rhett might have.

Bye! Guy

5 Pages 1 2 3 4 5 »
Showing 1 - 30 (133 results found)