Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Allegro + Win32 GUI

This thread is locked; no one can reply to it. rss feed Print
 1   2 
Allegro + Win32 GUI
Fabiano Lopes
Member #3,024
December 2002
avatar

In the following link, there's an example of how to create a Win32 menu. Is possible to merge it with Allegro gfx routines? Windowed mode? Please, any help is appreciated.

msdn.microsoft.com

23yrold3yrold
Member #1,134
March 2001
avatar

See the AGDN in my sig for an example of how to combine Allegro and Win32.
I use Allegro for the graphics in my Win32 tilemap editor.

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Matt Smith
Member #783
November 2000

WTF is that 'CLICK YES TO CONTINUE' plugin that tried to install itself from AGDN?

RallyMonkey
Member #4,615
May 2004
avatar

It is of no use to the site. Either an ad or spyware.

I don't need it to view the site on Linux.

NOTICE: This post's grammar/spelling/puncuation is definitive. English is frequently inaccurate.
---
"Puppet Sex!!!!" - Goalie Ca

Matt Smith
Member #783
November 2000

Daniel needs to have a word with his hosts about their adverts.

Great tute tho. I've always assumed it would be in C++ :)

Gideon Weems
Member #3,925
October 2003

23, do you have any advice for someone who just wants to eliminate Allegro's little, background, console window (ala Icy Tower, and most pro Allegro games)? Is setting up a WndProc with a message pump necessary if that's all someone wants to do? Though your tut is inspiring, I, err, don't think I could so easily alter my program structure to that extent...

Okay, I just did a little manual checking. It seems that the WndProc and window can be registered with Allegro. Why don't you simply do that in the tutorial? Too cool, or do I have something wrong?

23yrold3yrold
Member #1,134
March 2001
avatar

Quote:

Is setting up a WndProc with a message pump necessary if that's all someone wants to do?

Absolutely not. Just pass the -Wl,--subsystem,windows compiler flag. Voila; no more console window.

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Specter Phoenix
Member #1,425
July 2001
avatar

MattSmith: If AGDN still links to the site I'm thinking of he is using Geocities free account so he can't get rid of the adverts. I think he would have to pay like $10~$15USD in order to get rid of it and that would be pointless because it is just a tutorial site nothing major.

[EDIT]Opera won't display MSDN properly???.

Sporus
Member #3,815
August 2003
avatar

23 said:

Just pass the -Wl,--subsystem,windows compiler flag.

Mind telling us which compiler that's for? AFAIK in mingw32 gcc all you have to do is put in the -mwindows flag... :P

hazul
Member #4,338
February 2004
avatar

Actually what 23 posted is what's preferred. AFAIK -mwindows is deprecated.

* * * * *
"Multiplayer is actually the best way of not programming a good AI" -ReyBrujo

CGamesPlay
Member #2,559
July 2002
avatar

Yeah, -mwindows is deprecated is all.

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

23yrold3yrold
Member #1,134
March 2001
avatar

What hazul said. And AGDN is working fine from here ... and while ads are fine, trying to install plugins is not. >:(

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Sporus
Member #3,815
August 2003
avatar

Oh well! :o Thanks for telling me. Don't know where I learned that anyway.

Gideon Weems
Member #3,925
October 2003

Quote:

Absolutely not. Just pass the -Wl,--subsystem,windows compiler flag. Voila; no more console window.

Rock! You just made my day.

Fabiano Lopes
Member #3,024
December 2002
avatar

Err... what is exactly the command-line? I mean, instead of:

gcc -mwindows file.c

what's the flags to replace -mwindows?

gcc -??? file.c

gnolam
Member #2,030
March 2002
avatar

-Wl,--subsystem,windows

:P

--
Move to the Democratic People's Republic of Vivendi Universal (formerly known as Sweden) - officially democracy- and privacy-free since 2008-06-18!

Fabiano Lopes
Member #3,024
December 2002
avatar

CFLAGS = $(INCS) -DHOST_LITTLE_ENDIAN -Wl,--subsystem,windows   -O3 -march=i686 -msse

gives an error: multiple target patterns.

ReyBrujo
Moderator
January 2001
avatar

First, don't use -O3, use -O2. Second, never use -march. Third, what does INCS have?

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

Fabiano Lopes
Member #3,024
December 2002
avatar

First, why not -O3? Second, is -march=i686 deprecated or something?
Third, you didn't answer my question! :)

ReyBrujo
Moderator
January 2001
avatar

-O3 is used only with C++, and even it can be discussed wheter it gives more or less optimizations than -O2. About -march, you will be compiling for that architecture. Programs won't be able to run correctly in older computers. And I asked what INCS have, in order to see what is going wrong with your makefile.

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

DanielH
Member #934
January 2001
avatar

Ok, here is the scoop. The correct address of AGDN is
http://agdn.pyrosoftware.net/main/index.php
I have a redirect that used to be ad free called cjb
http://agdn.cjb.net.

Now either work. If you are one of the few people not up to the times and don't have a popup blocker then .... so sad. ;)

I would prefer that people not use the cjb redirector at all. But I leave it there for all those people who only know AGDN by that url.

I commented on the real site a while ago. 23 hasn't gotten the news yet.

23yrold3yrold
Member #1,134
March 2001
avatar

What what what's this now? ???

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

DanielH
Member #934
January 2001
avatar

cjb was free, now you have popups. Pyrosoftware supplied me some space for AGDN with no ads. So now I'm completely ad free. If you want a small url then get a popup blocker and use cjb.

Fabiano Lopes
Member #3,024
December 2002
avatar

INCS =  -I"C:/Dev-Cpp/include"

I use Dev-Cpp + MinGW to compile my emulator, not aimed for older machines ;)

ReyBrujo
Moderator
January 2001
avatar

Hmm... nothing wrong there. Post the whole makefiles.

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

 1   2 


Go to: