AOA Forums AOA Forums AOA Forums Folding For Team 45 AOA Files Home Front Page Become an AOA Subscriber! UserCP Calendar Memberlist FAQ Search Forum Home


Go Back   AOA Forums > Software > Programming and Assembly Language

Programming and Assembly Language Please read this Topic's rules!!


Reply
 
LinkBack Thread Tools Rate Thread
  #1 (permalink)  
Old 24th August, 2005, 01:21 PM
skool h8r's Avatar
Member
 
Join Date: January 2005
Location: Rotherham, UK
Posts: 3,157
Send a message via MSN to skool h8r

Smile PNG dll required

Hi all,
As Re-volt X2 is progressing along nicely, i've been asked to add better PNG support. So i need a dll file that can handle PNG files without the security issues that MS had. I'll also need the command to be able to execute the dll. X2 already has lots of new features in it already but i really want to be able have the ability for it to handle PNG's as they are a very good file format IMO. So, if anyone could point me in the direction of one or design one for me, i would be grateful.

Thanks,
Scott.
__________________
i7 2600K (4.3Ghz 1.34v) | GTX580 | 16GB (4x4GB) Patriot Viper Sec. 5 Ser. 2 (1866 - 9-11-9-27) | P67A-UD4-B3
Corsair AX1200 | Vertex II 240GB SSD | 4TB RAID0 (Samsung HD204UI) | Logitech G930 Wireless Headset

YouTube - Benchmark Results (Coming Soon!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 24th August, 2005, 02:04 PM
Chesso's Avatar
Banned
 
Join Date: January 2005
Location: Sydney - Australia
Posts: 877
Send a message via MSN to Chesso

Is this for a program your doing? do you have a website i wouldn't mind checking it out.

If i had a bit more experience in making dll's(c++/delphi) i would have a shot but i don't know enough about them yet. What language is it? if it's vb or delphi adding png support is pretty easy without the need of a dll.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 24th August, 2005, 02:17 PM
Kaitain's Avatar
Member
Mars Rover Champion, Joust Champion
 
Join Date: September 2001
Location: MK10, UK.
Posts: 4,372
Send a message via MSN to Kaitain Send a message via Skype™ to Kaitain

Is there not something on the PNG site you can use? http://www.libpng.org/pub/png/
__________________
It is by coffee alone I set my mind in motion...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 24th August, 2005, 03:30 PM
skool h8r's Avatar
Member
 
Join Date: January 2005
Location: Rotherham, UK
Posts: 3,157
Send a message via MSN to skool h8r

It is for a program i'm making, the next version of Re-volt. My site is www.yowzagames-mark2.co.uk . It needs to be a dll or file that can be executed from one program and then add the support for PNG files.I did have a look at the list on libpng but couldn't find a free one that runs on win32, with read-only support. Also, i don't know the command for it to be executed like windows does with system dll's.
__________________
i7 2600K (4.3Ghz 1.34v) | GTX580 | 16GB (4x4GB) Patriot Viper Sec. 5 Ser. 2 (1866 - 9-11-9-27) | P67A-UD4-B3
Corsair AX1200 | Vertex II 240GB SSD | 4TB RAID0 (Samsung HD204UI) | Logitech G930 Wireless Headset

YouTube - Benchmark Results (Coming Soon!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 24th August, 2005, 03:51 PM
Gizmo's Avatar
Chief BBS Administrator
BassTeroids Champion, Global Player Champion, Aim & Fire Champion, Puzzle Maniax Champion, Othello Champion, Canyon Glider Champion, Unicycle Challenge Champion, YetiSports 9: Final Spit Champion, Zed Champion
 
Join Date: May 2003
Location: Webb City, Mo
Posts: 16,178
Send a message via ICQ to Gizmo Send a message via AIM to Gizmo Send a message via MSN to Gizmo Send a message via Yahoo to Gizmo Send a message via Skype™ to Gizmo

I'm not sure I understand what your on about as far as the 'command for it to be executed like windows does with system dlls'?

Windows doesn't execute dlls. An application loads a dll into its memory space using the LoadLib call, and then executes functions within the dll. Windows does provide the Rundll32 application, which is capable of loading dlls and then executing functions within those dlls, thus making it possible to build an application as a dll, but you still have to know the name of the function within the dll that you want to execute in most cases.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 24th August, 2005, 03:54 PM
danrok's Avatar
AOA Staff
 
Join Date: March 2003
Location: Great Britain
Posts: 18,917

Did you try this one?
http://members.cox.net/scottheiman/bmglib.htm

Looks like the C++ code for a .dll, you would need to compile it before you can use it.
__________________
Desktop PC: AMD FX-8370E / Asus M5A99X Evo R2.0 Motherboard / 16GB DDR3 RAM / GeForce GTX 970
AOA Team fah
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 24th August, 2005, 05:13 PM
Chesso's Avatar
Banned
 
Join Date: January 2005
Location: Sydney - Australia
Posts: 877
Send a message via MSN to Chesso

Oh i see a web browser very nice. Ummm do you mean that you want to dynamically load/unload the dll when it is required?

Your'e most likely better off adding the png support directly into the program but that is up to you and i suppose loading/calling functions from specific dll's for this sort of thing can help with memory usage.

EDIT: Danrok that one doesn't seem half bad it's a pity it doesn't have the capability of saving gif files though as that would be a usefull part of image support feature in the web browser.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 24th August, 2005, 05:26 PM
Gizmo's Avatar
Chief BBS Administrator
BassTeroids Champion, Global Player Champion, Aim & Fire Champion, Puzzle Maniax Champion, Othello Champion, Canyon Glider Champion, Unicycle Challenge Champion, YetiSports 9: Final Spit Champion, Zed Champion
 
Join Date: May 2003
Location: Webb City, Mo
Posts: 16,178
Send a message via ICQ to Gizmo Send a message via AIM to Gizmo Send a message via MSN to Gizmo Send a message via Yahoo to Gizmo Send a message via Skype™ to Gizmo

Last I checked, tools to save gif files required a royalty to be paid to the owner of the gif algorithm.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 24th August, 2005, 06:04 PM
skool h8r's Avatar
Member
 
Join Date: January 2005
Location: Rotherham, UK
Posts: 3,157
Send a message via MSN to skool h8r

Yeah, i want it to be able to load and unload the dll when required. I wasn't sure how to write it, so i said executed. I will have a look at the link you provided though Danrok. (what's the new avatar all about then?)

I'm also working on something so that users can block images from loading when required to speed up browsing and download. They can switch the function back on as well. That's still being thought out though. Most of the features are contained within the browser, it's just that i want to be able to have some new things in a dll. Also, you gave me an idea when you said functions gizmo. I'll talk about it later when i've thought about it a bit more.
__________________
i7 2600K (4.3Ghz 1.34v) | GTX580 | 16GB (4x4GB) Patriot Viper Sec. 5 Ser. 2 (1866 - 9-11-9-27) | P67A-UD4-B3
Corsair AX1200 | Vertex II 240GB SSD | 4TB RAID0 (Samsung HD204UI) | Logitech G930 Wireless Headset

YouTube - Benchmark Results (Coming Soon!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 24th August, 2005, 06:35 PM
danrok's Avatar
AOA Staff
 
Join Date: March 2003
Location: Great Britain
Posts: 18,917

Avatar is from the film Full Metal Jacket.
__________________
Desktop PC: AMD FX-8370E / Asus M5A99X Evo R2.0 Motherboard / 16GB DDR3 RAM / GeForce GTX 970
AOA Team fah
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 24th August, 2005, 06:56 PM
skool h8r's Avatar
Member
 
Join Date: January 2005
Location: Rotherham, UK
Posts: 3,157
Send a message via MSN to skool h8r

oh, right. Right, i've downloaded the file from the link you gave Danrok. I can see i need to lern C a bit more. Anyone point me in the direction of a 'C programming for dummies' style tutorial on the internet?
__________________
i7 2600K (4.3Ghz 1.34v) | GTX580 | 16GB (4x4GB) Patriot Viper Sec. 5 Ser. 2 (1866 - 9-11-9-27) | P67A-UD4-B3
Corsair AX1200 | Vertex II 240GB SSD | 4TB RAID0 (Samsung HD204UI) | Logitech G930 Wireless Headset

YouTube - Benchmark Results (Coming Soon!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 24th August, 2005, 07:11 PM
Gizmo's Avatar
Chief BBS Administrator
BassTeroids Champion, Global Player Champion, Aim & Fire Champion, Puzzle Maniax Champion, Othello Champion, Canyon Glider Champion, Unicycle Challenge Champion, YetiSports 9: Final Spit Champion, Zed Champion
 
Join Date: May 2003
Location: Webb City, Mo
Posts: 16,178
Send a message via ICQ to Gizmo Send a message via AIM to Gizmo Send a message via MSN to Gizmo Send a message via Yahoo to Gizmo Send a message via Skype™ to Gizmo

Here are the results from a quick Google search. I can't recommend one, but I'm sure there are some decent ones in the list.

If you are serious about learning C, get "The C Programming Language" by Brian W. Kernigan and Dennis M. Richie (the inventors of C). It is commonly referred to as the 'Kernigan and Richie' or 'K&R' reference. For C++, you want to get "The C++ Programming Language" by Bjarne Stroustrup, the inventor of C++ (also sometimes called 'C with Classes'). These are considered the bibles of the C/C++ programmer. They aren't cheap, by any means (about $100 for the pair, and not much less used), but they are well worth the money if you are going to be working in the language regularly.

I know C# is considered to be all the rage right now, and it is ok if all you are writing is relatively trivial user apps, or need to prototype a UI quickly, but it is wholely inadequate for systems-level programming, nor is it possible to write cross-platform code in it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 24th August, 2005, 07:13 PM
MONKEYMAN's Avatar
Member
5 Card Draw Champion, Tomb Digger Champion, Alpha Force Champion, Autobahn Champion, Big Bird Hunting Champion, Mumu Champion, Attack of the Tweety Zombies Champion
 
Join Date: January 2005
Location: DORSET, UK
Posts: 2,170

just tried to download your first browser it wont run, probably my "special" pc, oh well........
__________________
AM2 X2 4000
2GB DDR2
NVIDIA 6150 ONBOARD!

Join our F@H team today.. http://www.team45.info/
Are you a subscriber? No? well then, why not....
Subscribe to AOA for a better experience and faster downloads!
How to unlock and overclock your Nvidia 6800
BIOS Volt-mod your 7800gt

AOA Team fah
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 24th August, 2005, 07:49 PM
skool h8r's Avatar
Member
 
Join Date: January 2005
Location: Rotherham, UK
Posts: 3,157
Send a message via MSN to skool h8r

did you get the error report message? this also happened to my dad who has a limited user account. Also, it is only designed for windows, and optimized for XP. I'm working on that in the next version although i can't guarantee any results.

Ok, by using a tutorial i downloaded a few minutes ago, i've used a short 'enter a number' sample script which i'm modifying to try and make a simple MS-DOS program. Nothing much, just to at least start to get a feel for the language, it's the same way i learned HTML and batch and look how well i've done with those (i don't use batch much but it does have it's advantages for the 'fun' side of things, plus it's simple to learn). I'll post the C program when i've made a bit of progress with the learning. It is only my first attempt at C so it isn't going to be great.
__________________
i7 2600K (4.3Ghz 1.34v) | GTX580 | 16GB (4x4GB) Patriot Viper Sec. 5 Ser. 2 (1866 - 9-11-9-27) | P67A-UD4-B3
Corsair AX1200 | Vertex II 240GB SSD | 4TB RAID0 (Samsung HD204UI) | Logitech G930 Wireless Headset

YouTube - Benchmark Results (Coming Soon!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 24th August, 2005, 09:25 PM
skool h8r's Avatar
Member
 
Join Date: January 2005
Location: Rotherham, UK
Posts: 3,157
Send a message via MSN to skool h8r

well, my first ever program made in C (re-volt wasn't made in C btw). I've posted it as an attachment below. I'm quite impressed to say it's my first attempt. It's a fake logon thing that runs in a DOS window. It doesn't really do any thing but simply outputs text based on your input. There's only one thing you need to know though, it only accepts numbers at this time because of the variable i've used. it uses %d which must be number, if i can find the text variable, i'll happily use that. The program is based on a template which i have modified heavily. Anyway, the program is posted below.

Enjoy.
Attached Files
File Type: zip demo01.zip (24.2 KB, 97 views)
__________________
i7 2600K (4.3Ghz 1.34v) | GTX580 | 16GB (4x4GB) Patriot Viper Sec. 5 Ser. 2 (1866 - 9-11-9-27) | P67A-UD4-B3
Corsair AX1200 | Vertex II 240GB SSD | 4TB RAID0 (Samsung HD204UI) | Logitech G930 Wireless Headset

YouTube - Benchmark Results (Coming Soon!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 24th August, 2005, 09:46 PM
Gizmo's Avatar
Chief BBS Administrator
BassTeroids Champion, Global Player Champion, Aim & Fire Champion, Puzzle Maniax Champion, Othello Champion, Canyon Glider Champion, Unicycle Challenge Champion, YetiSports 9: Final Spit Champion, Zed Champion
 
Join Date: May 2003
Location: Webb City, Mo
Posts: 16,178
Send a message via ICQ to Gizmo Send a message via AIM to Gizmo Send a message via MSN to Gizmo Send a message via Yahoo to Gizmo Send a message via Skype™ to Gizmo

Care to post the source code?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 24th August, 2005, 10:06 PM
skool h8r's Avatar
Member
 
Join Date: January 2005
Location: Rotherham, UK
Posts: 3,157
Send a message via MSN to skool h8r

sure, this just goes in a blank c file and then needs compiling:

Code:
#include <stdio.h>


/*--------


Well, i'm quite happy with the program. To say it's a first attempt and that
i used a sample which was only 5-10 lines long, i'm quite impressed with myself.

It's a simple way of pretending to log in using numbers. If you try to enter text
part of the routine may be skipped.

When you have entered the required number (no set numbers, just enter what you want),
simply press return and read what it says. It tells you the numbers you entered,
and even says thankyou for using the system!

------*/



int main()
{
  int this_is_a_number;

  printf( "Welcome to AuthentiLog.\nTo initiate the login procedure, please press the enter key.", this_is_a_number );
  getchar();
  printf( "User number: " );
  scanf( "%d", &this_is_a_number );
  printf( "welcome user number %d.", this_is_a_number );
  getchar();

  int magic_number;

  scanf( "4", &magic_number );
  printf( "PassNumber: ", magic_number );
  scanf( "%d", &magic_number );
  getchar();
  printf( "Thankyou. ", magic_number );
  getchar();

  int sir_madam;
  printf( "Please enter verification number: " );
  scanf( "%d", &sir_madam );
  getchar();
  printf( "Thankyou.", sir_madam );
  getchar();

  int number_list_confirm;
  printf( "Please confirm the numbers below are correct. " );
  getchar();
  printf( "UserNumber: %d.  ", this_is_a_number );
  getchar();
  printf( "PassNumber: %d.  ", magic_number );
  getchar();
  printf( "Verification Number: %d.  ", sir_madam );
  getchar();

/*---
  scanf( "%d", &magic_number );
  printf( "PassNumber: %d", magic_number );
  getchar();

  scanf( "%d", &sir_madam );
  printf( "Verification Number: %d", sir_madam );
  getchar();
---*/

  int number_final;
  printf( "\n", this_is_a_number );
  printf( "Thankyou for using AuthentiLog user number %d.", this_is_a_number );
  printf( "\nGoodbye user number %d.", this_is_a_number );
  getchar();
}
The routine names i made up were just ones i thought of on the fly, no perticular idea behind them, just random names. I'm going to extend it when i've learned a bit more. I compiled it using lcc win32.
__________________
i7 2600K (4.3Ghz 1.34v) | GTX580 | 16GB (4x4GB) Patriot Viper Sec. 5 Ser. 2 (1866 - 9-11-9-27) | P67A-UD4-B3
Corsair AX1200 | Vertex II 240GB SSD | 4TB RAID0 (Samsung HD204UI) | Logitech G930 Wireless Headset

YouTube - Benchmark Results (Coming Soon!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 24th August, 2005, 10:24 PM
Gizmo's Avatar
Chief BBS Administrator
BassTeroids Champion, Global Player Champion, Aim & Fire Champion, Puzzle Maniax Champion, Othello Champion, Canyon Glider Champion, Unicycle Challenge Champion, YetiSports 9: Final Spit Champion, Zed Champion
 
Join Date: May 2003
Location: Webb City, Mo
Posts: 16,178
Send a message via ICQ to Gizmo Send a message via AIM to Gizmo Send a message via MSN to Gizmo Send a message via Yahoo to Gizmo Send a message via Skype™ to Gizmo

Ok. Change your int to a char array, something like this:

char this_is_a_string[128];

change

scanf("%d", &this_is_a_number);

to

scanf("%s", this_is_a_string); //no & symbol here, an array is automatically a pointer

then change

printf("%d", this_is_a_number);

to

printf("%s", this_is_a_string);

Oh, and be aware that this code suffers severely from buffer overrun issues.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 24th August, 2005, 10:50 PM
Kaitain's Avatar
Member
Mars Rover Champion, Joust Champion
 
Join Date: September 2001
Location: MK10, UK.
Posts: 4,372
Send a message via MSN to Kaitain Send a message via Skype™ to Kaitain

Quote:
Originally Posted by gizmo
Oh, and be aware that this code suffers severely from buffer overrun issues.
To prove a point, type in a password 129 characters long

I was going to suggest a string, but forgot that strings have to be arrays...
__________________
It is by coffee alone I set my mind in motion...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 24th August, 2005, 10:52 PM
Gizmo's Avatar
Chief BBS Administrator
BassTeroids Champion, Global Player Champion, Aim & Fire Champion, Puzzle Maniax Champion, Othello Champion, Canyon Glider Champion, Unicycle Challenge Champion, YetiSports 9: Final Spit Champion, Zed Champion
 
Join Date: May 2003
Location: Webb City, Mo
Posts: 16,178
Send a message via ICQ to Gizmo Send a message via AIM to Gizmo Send a message via MSN to Gizmo Send a message via Yahoo to Gizmo Send a message via Skype™ to Gizmo

Quote:
Originally Posted by Kaitain
To prove a point, type in a password 129 characters long

I was going to suggest a string, but forgot that strings have to be arrays...
I was going to wait on the more advanced stuff until he could handle the basics.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
linux help required skool h8r OS, Software, Firmware, and BIOS 5 31st July, 2006 05:10 AM
New Athlon Cpu Required surgeon AMD Motherboards & CPUs 15 18th November, 2005 05:29 PM
More mentions required dod ThunderRd's AOA FOLDING@HOME Team 4 8th October, 2004 08:47 PM


All times are GMT +1. The time now is 06:51 PM.


Copyright ©2001 - 2010, AOA Forums
Don't Click Here Don't Click Here Either

Search Engine Friendly URLs by vBSEO 3.3.0