Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Running Program Without IDE  (Read 9963 times)

0 Members and 1 Guest are viewing this topic.

Wander

  • Full Member
  • ***
  • Posts: 170
    • View Profile
    • Email
Running Program Without IDE
« Reply #15 on: September 05, 2010, 02:26:20 am »
So, would I do this?

blahblahblah code code code.LoadFromFile(Project Folder/Images/pic.bmp);
-Wander

BeSaladin

  • Newbie
  • *
  • Posts: 40
    • View Profile
Running Program Without IDE
« Reply #16 on: September 05, 2010, 02:37:00 am »
You can use directly this "xxxx.LoadFromFile(Images/pic.bmp)" which is more clean.

this mean that are looking for a file that is placed on a folder nammed 'Images' who is placed in the same place with the .exe

This would work if you run the program without the IDE (from the explorer ...)

:arrow:  All you have to do to get it working when you run the program from the IDE is :

1 - activate your projet from the prject manager layout.
2 - Go to project > Properties >Build Targets.
3 - Set Execution working dir : to 'bin\debug\'
All i have is God's gift.
Tout ce que j'ai est un don de Dieu.

Wander

  • Full Member
  • ***
  • Posts: 170
    • View Profile
    • Email
Running Program Without IDE
« Reply #17 on: September 05, 2010, 02:40:56 am »
Okay, but what if I took out the bin/debug folders and changed it to:

Project > Images
Project > Fonts
Project > Source > Main
           > Headers
Project > dlls
Project > .exe


Also, what is the main.o for?
-Wander

BeSaladin

  • Newbie
  • *
  • Posts: 40
    • View Profile
Running Program Without IDE
« Reply #18 on: September 05, 2010, 02:52:39 am »
Then u have to configure the IDE parameters and help him found source files ... This would be a little bit hard

Also u have to know that the source files ( .cpp, .h and .hpp) are not indispensable to the .exe...

All the .exe needs are the dlls and the ressource files ...

And for the main.o it's a result of the main.cpp file you'll have a xxx.o file for every .cpp file after a compilation, they are called object files ( i think )... that's all i know about it :P
All i have is God's gift.
Tout ce que j'ai est un don de Dieu.

 

anything