Author |
Message |
Geminias
|
Posted: Mon Sep 19, 2005 3:34 pm Post subject: Generating stand alone .exe |
|
|
hello.
i wrote a program in turing using just basic input and outputs with only int - variables and it generated into a stand-alone .exe just fine..
but now i want to generate this other one into a .exe as well, but it isn't doing it.
anyone have any ideas as to why?
one thought i have is that its because i have a picture variable.. i used pic.filenew and included a bmp picture in the program. Perhaps programs with complex variables cannot be .exe'd? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
[Gandalf]
|
Posted: Mon Sep 19, 2005 3:39 pm Post subject: (No subject) |
|
|
You have to be more specific, what is wrong? Does it just not run, or does an error message pop up? What does it say? Maybe some code?
Anything that runs will compile as far as I know. |
|
|
|
|
|
Geminias
|
Posted: Mon Sep 19, 2005 3:53 pm Post subject: (No subject) |
|
|
it compiled just fine i guess you could say.. however it wasn't an executible.
basically, simple progs i write will become stand alone executables.. but anything complicated will just compile and not be an executable.. instead it will be some other crap that will ask you to open program with what? |
|
|
|
|
|
Tony
|
Posted: Mon Sep 19, 2005 4:02 pm Post subject: (No subject) |
|
|
you'd need to post some code that generate such a result. |
|
|
|
|
|
Cervantes
|
Posted: Mon Sep 19, 2005 4:03 pm Post subject: (No subject) |
|
|
So, it isn't giving an error along the lines of "Picture not successfully created", is it? If it were, you'd need to make sure the picture is in the proper directory. Most likely the same directory as the .exe file.
Also, your variable doesn't actually store the picture. Rather, it is an integer that "links" to the picture.
Are you sure the file ends in ".exe"? |
|
|
|
|
|
Geminias
|
Posted: Mon Sep 19, 2005 4:11 pm Post subject: (No subject) |
|
|
Quote: %this prog will calculate which number is bigger.
var n1, n2 : int
var dee : int := Pic.FileNew ("dee.bmp")
var c: string
colorback (black)
cls
color (11)
put "enter a number: "
get n1
put "enter a second number and i'll tell you if it's bigger."
get n2
put "I'm thinking." ..
delay (1000)
put "." ..
delay (1000)
put "."
delay (1000)
if n2 > n1 then
put "your second number is bigger than the first number! Ta Daa!"
elsif n2 < n1 then
put "your second number is smaller, go fuck yourself hoe!"
end if
delay (2000)
cls
put "well, i'll try a new trick."
delay (2500)
cls
loop
put "do you like to see big titties?"
get c
if c = "yes" then
Pic.Draw (dee, 100, 20,0)
elsif c = "no" then
put "Fine, you fuckin' faggot."
delay (1000)
put "but seriously now?"
else
put "you are fuckin' retarded!"
put "Please specify either yes or no!"
delay (5000)
cls
put "now let's try this again."
delay (3000)
cls
end if
exit when c = "yes"
end loop
this is the program.. no errors.. it actually does create the thing the new folder that i specify. what it does not do is make it executable. instead it generates a "program1 file" that cannot be opened because it is not .exe or linked to any other program.
again.. i see no error messages.. it just isn't an executable after i use generate an executable stand alone program in turing. |
|
|
|
|
|
[Gandalf]
|
Posted: Mon Sep 19, 2005 4:16 pm Post subject: (No subject) |
|
|
It compiles fine. What version of Turing do you have? It shouldn't matter though, this is really basic...
Try renaming the Program1 file to Program.exe |
|
|
|
|
|
Geminias
|
Posted: Mon Sep 19, 2005 4:23 pm Post subject: (No subject) |
|
|
hmm wierd.. i didnt know i had to insert .exe after it.. it worked thanks man. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
[Gandalf]
|
Posted: Mon Sep 19, 2005 4:25 pm Post subject: (No subject) |
|
|
Well, normally you shouldn't... So there is probably something else wrong on your end. |
|
|
|
|
|
|