| View previous topic :: View next topic |
| Author |
Message |
Negima I post too much
Reputation: 6
Joined: 22 May 2007 Posts: 2220
|
Posted: Mon Aug 25, 2008 9:14 pm Post subject: how to make it so program will work |
|
|
| How do I make it so that I can send the program to other people? for instance, when I click debug it runs the program right? how can I get it into a .exe format and have it as an actual application on my desktop?
|
|
| Back to top |
|
 |
Zand Master Cheater
Reputation: 0
Joined: 21 Jul 2006 Posts: 424
|
Posted: Mon Aug 25, 2008 9:41 pm Post subject: |
|
|
| Hmm. Usually if you compile it as "RELEASE" - so that you can "RELEASE" it. The program is usually in the "RELEASE" folder of your project.
|
|
| Back to top |
|
 |
pkedpker Master Cheater
Reputation: 1
Joined: 11 Oct 2006 Posts: 412
|
Posted: Tue Aug 26, 2008 2:36 am Post subject: |
|
|
on VB6 its
File -> Build Filename.exe
on VC++6 its
Build-> Build All -> Build
do Build-> Clean everytime you edit something what clean does is just delete old files so it could overwrite em with new ones
_________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Tue Aug 26, 2008 2:46 am Post subject: |
|
|
| You have to statically link the runtime... or be cool and just not use it.
|
|
| Back to top |
|
 |
TeNsIOn Advanced Cheater
Reputation: 0
Joined: 10 Jun 2008 Posts: 66
|
|
| Back to top |
|
 |
BanMe Master Cheater
Reputation: 0
Joined: 29 Nov 2005 Posts: 375 Location: Farmington NH, USA
|
Posted: Mon Sep 01, 2008 8:35 pm Post subject: |
|
|
lol @TeNsIOn: so true
@zand by just changing it to a Release build will not remove problems with code.. nor make it compatible with older operating systems..
make it work on older OS's requires knowledges of Older OS's API and use of API and a VeryNice GetVersionInfo(Ex) API that retrieves the Version of Windows or Other OS's(Apple is one i think it look for and some other(maybe unixtype variants..))..suffice to this add a slight layer of complexity to all code but its worth doing it once or twice to get the hang of it
but code ends up looking like in true end:
If(9
code
if(nt)
code
if(2k)
code
so give it a try also remove the Option IN VC++ to Optimize For Windows 98! its not good for code :]
|
|
| Back to top |
|
 |
nog_lorp Grandmaster Cheater
Reputation: 0
Joined: 26 Feb 2006 Posts: 743
|
Posted: Tue Sep 02, 2008 1:30 pm Post subject: |
|
|
However, BanMe, if you use APIs specific to newer OS version in your version-dependant code (say, under if(nt) in your psuedocode), you have to load the libraries dynamically and use function pointers (LoadLibrary and GetProcAddress), otherwise the functions are just imported and you will get missing library/import not found in library errors at runtime on older OSes.
_________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish |
|
| Back to top |
|
 |
Negima I post too much
Reputation: 6
Joined: 22 May 2007 Posts: 2220
|
Posted: Wed Sep 03, 2008 6:30 pm Post subject: |
|
|
| I ask because i never released a program of mine to the public until recently. Also, post count has nothing to do with knowledge.
|
|
| Back to top |
|
 |
BanMe Master Cheater
Reputation: 0
Joined: 29 Nov 2005 Posts: 375 Location: Farmington NH, USA
|
Posted: Wed Sep 03, 2008 6:59 pm Post subject: |
|
|
well that is a valid point in that using other OS version API would cause program errors...
thats why I put it upon the OP to provide version specific safe code.. (hoping he knew enough to actuactly get a working model going)..
so all in all that is a good pointer to use GetProcAddress LoadLibrary
but simpler way is to just IMPORT The API in a Control block
| Code: |
If(NT)
NTSYSAPI NTSTATUS NTAPI NameOfAPI(Param1,Param2,...);
|
another good pointer would be to have somewhat decent documentation of all the older OS's on hand ;]IE the SDK's and the DDK's or WDF...
as they provide invaluable tips and usage samples ...
|
|
| Back to top |
|
 |
|