flat assembler
Message board for the users of flat assembler.

flat assembler > Windows > Invite friends to watch football

Author
Thread Post new topic Reply to topic
avcaballero



Joined: 02 Feb 2004
Posts: 169
Location: Madrid - Spain
A little aplication that uses list box, label, check box, radio buttons, edit box, how to write and read from it, and change its properties.

Let's suppose that we want invite friends to watch football and want to know how much will cost (nothing real, only an example). Following the next characteristics:

* At least, we should choose one friend in list box, otherwise we wont be able to check anything
* Everytime we choose one article, we will see the total amount refreshed.
* According to the number of friends choosen, the cost of every article will increase (1 Mahou + 1 Mahou = 2 Mahou for 2 friends).
* Every friend deselected will affect, at the moment, to the price of every article selected and also to the total amount, decreasing them (2 Mahou - 1 Mahou = 1 Mahou for 1 friends).
* If we deselected the whole friends (no one choosed), everything will be erased.
* If we deselect one article, its price will be erased.

Regards


Description:
Download
Filename: GFootball.zip
Filesize: 28.36 KB
Downloaded: 76 Time(s)


_________________
Siempre aprendiendo
Post 03 Jul 2012, 09:12
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3475
Location: Bulgaria
Very funny application! Smile
You should make it work with some database for the friends, dishes and drinks. Then it will be really useful for party planning.

P.S. what is Mahou??? :
Post 03 Jul 2012, 09:40
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 169
Location: Madrid - Spain
ahh!, Hello JohnFound Very Happy

mahou is an Spanish beer firm. It is imprescindible to watch football... Laughing

_________________
Siempre aprendiendo
Post 03 Jul 2012, 10:08
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3475
Location: Bulgaria
Ah, I see now. And what an instinct I have, ah? I can smell the beer even in Spanish. Wink

Think about use of sqlite as a database for GFootball. You will need a table with friends, table with foods and drinks and table with your friends preferences. Something like this:
Code:
create table Friends (ID, Name);
create table Food (ID, Name, Measure, Price);
create table Preferences(FriendID, FoodID, TasteFactor);
    


Then you will be able to plan the football party, depending on people taste.


Last edited by JohnFound on 03 Jul 2012, 12:30; edited 1 time in total
Post 03 Jul 2012, 10:26
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 169
Location: Madrid - Spain
JohnFound wrote:
Ah, I see now. And what an instinct I have, ah? I can smell the bear even in Spanish. Wink


Very Happy You mean the beer, I suppose, surely the bear can also be smelled easily
Wink

JohnFound wrote:
Think about use of sqlite as a database for GFootball

Sure, interesting exercise. Do you know any sample code to connect fasm with sqlite?

Thank you

_________________
Siempre aprendiendo
Post 03 Jul 2012, 11:11
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3475
Location: Bulgaria
avcaballero wrote:
Very Happy You mean the beer, I suppose, surely the bear can also be smelled easily
Wink

Laughing Laughing Laughing Beer of course! That is what happens when one rely too much on the spell checker.

Quote:
Do you know any sample code to connect fasm with sqlite?


You can download one with Fresh IDE.
Look in the folder "examples/SQLiteExample".
You will need sqlite3.dll in your system32 directory, or directly in the directory of the executable. Download it from SQLite home page.

Also, ImportDB utility uses SQLite as a database engine, but it is more complex application, not exactly "sample code".

_________________
Tox ID: 48C0321ADDB2FE5F644BB5E3D58B0D58C35E5BCBC81D7CD333633FEDF1047914A534256478D9
Post 03 Jul 2012, 12:42
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1388
Location: Toronto, Canada
slightly off-topic (or maybe not):

@avcaballero: I hope when you say "football" -- you mean the real thing and not the crazy stuff Americans made up?

Smile

I predicted Spain will take it an they did!!
Awesome team!!
Post 03 Jul 2012, 13:48
View user's profile Send private message Send e-mail Reply with quote
bzdashek



Joined: 15 Feb 2012
Posts: 147
Location: Tolstokvashino, Russia
Lol, what about vodka? No football can be watched without a bottle of hot vodka freshly boiled!

You can also use an ODBC connection to a database, and use Access or excel to store parameters.
Post 03 Jul 2012, 15:34
View user's profile Send private message Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 169
Location: Madrid - Spain
Thank you AsmGuru62. In Europe, playing ball with the foot is called football, not soccer.

Yes, although they looked a bit tired at the beggining in the European Championship, they made ​​a fantastic final. I hope they last the good play.
Post 03 Jul 2012, 16:15
View user's profile Send private message Visit poster's website Reply with quote
Enko



Joined: 03 Apr 2007
Posts: 678
Location: Mar del Plata
Actually in the american football (us footbal) they use hands... strange language is the English language.
Most popular is pineaple that does not have nor pine, nor apple inside.

Quote:

@avcaballero: I hope when you say "football" -- you mean the real thing and not the crazy stuff Americans made up?

Wich americans? north or south?

Laughing

By the way, in Canada what do you have? Hockey parties?


Is there a posibility to add calories count?
So then you can say, we consumed about 5K calories.
Post 03 Jul 2012, 20:17
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1388
Location: Toronto, Canada
@Enko:
In Canada, yes, hockey parties all the way!

I am myself not into hockey at all -- never watch it.
Hockey become a sport of body slams instead of a stick handling skills.
Post 04 Jul 2012, 02:18
View user's profile Send private message Send e-mail Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 169
Location: Madrid - Spain
Here is the version with database sqlite underneath. GFootball2.exe is the correct executable in Fasm folder. More information in Readme.txt / LĂ©eme.txt.

Regards


Description:
Download
Filename: MFootball.zip
Filesize: 327.96 KB
Downloaded: 60 Time(s)


_________________
Siempre aprendiendo
Post 10 Jul 2012, 09:51
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3475
Location: Bulgaria
Great!
But "GFootball2.asm" is missing.
Also, it will be good if the user has an option to add/remove/edit database records.
Post 10 Jul 2012, 11:17
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 169
Location: Madrid - Spain
Yes, I will upload it soon ("Readme.txt" for reading). Database records can be modified on sqlite ambient, maybe a bit excessive implementing it in the program. Ah, in order to do it simply and clean, it is possible that if there are over 10 friends or goods can fails.

Regards
Post 10 Jul 2012, 12:35
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 169
Location: Madrid - Spain
Hello. If anyone is interested I have finished GFootball for MASM, NASM, FASM and, now, also for TinyC. Full source code.

1) MASM, NASM, FASM and TinyC showing several ways to create objects: WinAPI, internal and external resources. Can be found here.

2) Methods for loading and calling DLLs here.

3) Managing SQLite databases here.

Everything can be downloaded from here (not only the above one, but many more +6Mb).

Regards

_________________
Siempre aprendiendo
Post 31 Jul 2012, 18:48
View user's profile Send private message Visit poster's website Reply with quote
badc0de



Joined: 13 Apr 2012
Posts: 15
is that so a problem to invite friends???
GetALife
Post 01 Oct 2012, 14:48
View user's profile Send private message Reply with quote
badc0de02



Joined: 25 Nov 2013
Posts: 216
Location: %x
Hm lol... he probably have to write a smtp client in asm what automaticly send his friendos a invitation´... or probably just get some Very Happy
Post 03 Jul 2018, 13:23
View user's profile Send private message Reply with quote
badc0de02



Joined: 25 Nov 2013
Posts: 216
Location: %x
i still hate football...
Post 03 Jul 2018, 13:24
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2018, Tomasz Grysztar.

Powered by rwasa.