|
Give my allegro games to other people |
Max S
Member #5,508
February 2005
|
Hi, i got no idee what coul be wrong. a simple example: I have build a beginner code: #include "allegro.h" END_OF_MAIN(); and send the exe to a friend but i could run it without problems Is there any way to clear that problem? |
X-G
Member #856
December 2000
|
We are not psychic. We can't guess what error messages you are getting. And you haven't even read the FAQ from what I can see. -- |
Max S
Member #5,508
February 2005
|
ok it was the alleg40.dll |
CursedTyrant
Member #7,080
April 2006
|
Quote: alleg40.dll And you are using Allegro 4.0 because... --------- |
LordHolNapul
Member #3,619
June 2003
|
is that alright ? a poitner to pointer ? ciao |
X-G
Member #856
December 2000
|
... no, that's entirely correct. Stop giving shoddy advice. -- |
TeamTerradactyl
Member #7,733
September 2006
|
Max S: When you sent that code to your friend, did you already compile the program, or just sent it as a text file? If a text file so your friend could compile it himself, then your friend needs to have: If you sent the resulting executable from compiling it himself, then your friend does not have the Allegro DLL. Put the DLL either in the same directory as the executable you sent him, or somewhere common like "C:\Windows\System32", or else compile that program yourself as STATIC so the Allegro DLL is included and he won't need to get the DLL separately.
|
HardTranceFan
Member #7,317
June 2006
|
Quote: ok it was the alleg40.dll I think the OP has worked out what the problem was. [edit] -- |
Tobias Dammers
Member #2,604
August 2002
|
For small programs, static-linking often means that there is only the .exe to distribute, nothing else, which is a good thing. --- |
Max S
Member #5,508
February 2005
|
Ok, #include <allegro.h> int main(int argc, char *argv[]) set_color_depth(32); BITMAP *my_pic = load_bitmap("C:\Programmierung\life.bmp",NULL); acquire_screen(); blit(my_pic, screen, 0, 0, (SCREEN_W - my_pic->w)/2, (SCREEN_H - my_pic->h)/2, my_pic->w, my_pic->h); destroy_bitmap(my_pic); while(!keypressed()); }END_OF_MAIN() what could be wrong with this code??? |
gnolam
Member #2,030
March 2002
|
1) Edit both your posts to use code tags so they're actually readable. See the "Help" tab for how to use them. -- |
Audric
Member #907
January 2001
|
^ C needs you to write \\ when you mean a single \ as a character. |
Max S
Member #5,508
February 2005
|
finally it works! sorry for my stupid questions. I havent written codes since 2 years. |
CursedTyrant
Member #7,080
April 2006
|
Quote: C needs you to write \\ when you mean a single \ as a character. Wouldn't a / suffice? --------- |
Audric
Member #907
January 2001
|
For all Allegro functions, yes. |
gnolam
Member #2,030
March 2002
|
For all C file I/O functions. -- |
Audric
Member #907
January 2001
|
Wow, gnolam, this is news for me, and completely true. Now does every program today accept both? Notepad.exe on winXP still refuses to save c:/test.txt... |
CGamesPlay
Member #2,559
July 2002
|
Quote: Now does every program today accept both? It's a valid filename, but Notepad is using Windows file naming functions, which, among other things, say that "/" is an invalid filename character (what the problem is is that it's a directory separator in this case, not a file name). -- Ryan Patterson - <http://cgamesplay.com/> |
|