• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 523
  • Last Modified:

MFC ActiveX object

HI!

I wrote an ActiveX object using MFC for a web application. If i link the MFC dll dinamically, it wont run on machines where is no MFC dll. If i link it statically the size grows up to 1.5Mb(Far too large for a simple web app.). With  dinamic linking the size of the file is 150K.

What can I do to reduce the size?
0
czekmany
Asked:
czekmany
1 Solution
 
MegaEnforcerBoyCommented:
Just copy some dll. files
0
 
MegaEnforcerBoyCommented:
MSCVRT.dll and MFC42.dll
0
 
AlexFMCommented:
Rewrite it using ATL. This sounds brutal, but anyone doesn't write WEB ActiveX controls using MFC.
:-(
0
 
czekmanyAuthor Commented:
AlexFM
I had to choose MFC because I use many Classes ATL does not provide.

MegaEnforceBoy

Why and where should I copy them ?
0
 
TiCpuCommented:
I'm not sure, but when I see an 1.5 mb application it's probably because your building it in debug mode, in release mode it normaly shrink to almost 25kb in dynamic mode. But if you use pictures, try compressing it with something like UPX : http://upx.sourceforge.net/
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now