You are here


7 posts / 0 new
Last post
Monsieur T
Last seen: 18 years 3 weeks ago
Joined: 2006-06-19 19:01

To me, standalone has always meant a single executable file, without being dependant on DLL's. Is there a way of integrating such files like DLL's into the executable? I think this would solve many of the problems on library and school computers that so far are unable to block standalone .exe's from running inside .zip files. If further development is made on standalone apps, it would be helpful if the type of app is labelled on the site, i.e. "Standalone single executable", or otherwise.

Bahamut's picture
Last seen: 12 years 7 months ago
Joined: 2006-04-07 08:44
Well, DLLs are libraries, so

Well, DLLs are libraries, so one could simply copy the used code from the library into the source file for the application. I'm not 100% sure that this can be done easily. If you don't have source code for the lib, it is impossible.


Bruce Pascoe
Last seen: 12 years 6 months ago
Joined: 2006-01-15 16:14

It's not always that simple, even when you have the source. Lots of DLLs include Win32 resources as well as code, and if you merge those resources into the main executable, you run the risk of creating duplicate resource IDs, which will prevent successful compilation. Once you're past that hurdle, you then have to modify any code which refers to the DLL while loading a DLL resource, so that it gives the main executable's instance handle instead.

More trouble than it's worth, in my opinion.

-  [aim: fatcerberus]
I have no witty remarks or quotes to share at the moment.

Ryan McCue
Ryan McCue's picture
Last seen: 14 years 9 months ago
Joined: 2006-01-06 21:27

Thats why I just stand back.
And watch.
R McCue
PortaBlog Home and My Website
PortaBlog is now officially out of beta!

"If you're not part of the solution, you're part of the precipitate."

Last seen: 16 years 10 months ago
Joined: 2006-07-22 23:43
Memory Usage

Also remember that if you compile the libraries into the main exe, you will take a huge performance hit in memory - that's one of the reasons to use DLL files in the first place - it gets stuff out of the EXE.

Bruce Pascoe
Last seen: 12 years 6 months ago
Joined: 2006-01-15 16:14

That depends. If an executable is linked to the DLL's import library (that is, the .lib file; most applications are linked this way), then the DLL is loaded right into the executable's address space at startup. The only way an application using DLLs will save any memory is if the program loads said DLLs on demand using LoadLibrary and GetProcAddress--so-called lazy initialization. Otherwise, you gain nothing.

Lauren She eats everything! It's like having a goat. A giant, two-Godzillaton goat.
maggie Hey, I resent that remark! I only weigh ONE Godzillaton!
~ Spectacles: Bruce's Story

Last seen: 17 years 10 months ago
Joined: 2006-01-15 08:48
I seen portable photoshop cs

I seen portable photoshop cs dreamweaver 8 and flash 8 pro in a single exe file. The guy that made them said he used AutoPlay Media Studio to pack the files in single executable.

Topic locked