flat assembler
Message board for the users of flat assembler.
Index
> Windows > Invite friends to watch football |
Author |
|
avcaballero 03 Jul 2012, 09:12
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
_________________ Siempre aprendiendo |
|||||||||||
03 Jul 2012, 09:12 |
|
avcaballero 03 Jul 2012, 10:08
_________________ Siempre aprendiendo |
|||
03 Jul 2012, 10:08 |
|
JohnFound 03 Jul 2012, 10:26
Ah, I see now. And what an instinct I have, ah? I can smell the beer even in Spanish.
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 |
|||
03 Jul 2012, 10:26 |
|
avcaballero 03 Jul 2012, 11:11
JohnFound wrote: Ah, I see now. And what an instinct I have, ah? I can smell the bear even in Spanish. You mean the beer, I suppose, surely the bear can also be smelled easily 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 |
|||
03 Jul 2012, 11:11 |
|
JohnFound 03 Jul 2012, 12:42
avcaballero wrote: You mean the beer, I suppose, surely the bear can also be smelled easily 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 |
|||
03 Jul 2012, 12:42 |
|
AsmGuru62 03 Jul 2012, 13:48
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? I predicted Spain will take it an they did!! Awesome team!! |
|||
03 Jul 2012, 13:48 |
|
bzdashek 03 Jul 2012, 15:34
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. |
|||
03 Jul 2012, 15:34 |
|
avcaballero 03 Jul 2012, 16:15
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. |
|||
03 Jul 2012, 16:15 |
|
Enko 03 Jul 2012, 20:17
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:
Wich americans? north or south? 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. |
|||
03 Jul 2012, 20:17 |
|
AsmGuru62 04 Jul 2012, 02:18
@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. |
|||
04 Jul 2012, 02:18 |
|
avcaballero 10 Jul 2012, 09:51
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
_________________ Siempre aprendiendo |
|||||||||||
10 Jul 2012, 09:51 |
|
JohnFound 10 Jul 2012, 11:17
Great!
But "GFootball2.asm" is missing. Also, it will be good if the user has an option to add/remove/edit database records. |
|||
10 Jul 2012, 11:17 |
|
avcaballero 10 Jul 2012, 12:35
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 |
|||
10 Jul 2012, 12:35 |
|
avcaballero 31 Jul 2012, 18:48
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 |
|||
31 Jul 2012, 18:48 |
|
badc0de 01 Oct 2012, 14:48
is that so a problem to invite friends???
GetALife |
|||
01 Oct 2012, 14:48 |
|
badc0de02 03 Jul 2018, 13:23
Hm lol... he probably have to write a smtp client in asm what automaticly send his friendos a invitation´... or probably just get some
|
|||
03 Jul 2018, 13:23 |
|
badc0de02 03 Jul 2018, 13:24
i still hate football...
|
|||
03 Jul 2018, 13:24 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.