Solved

MFC ActiveX object

Posted on 2003-12-04
5
479 Views
Last Modified: 2013-11-25
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
Comment
Question by:czekmany
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 1

Expert Comment

by:MegaEnforcerBoy
ID: 9874568
Just copy some dll. files
0
 
LVL 1

Expert Comment

by:MegaEnforcerBoy
ID: 9874575
MSCVRT.dll and MFC42.dll
0
 
LVL 48

Expert Comment

by:AlexFM
ID: 9874608
Rewrite it using ATL. This sounds brutal, but anyone doesn't write WEB ActiveX controls using MFC.
:-(
0
 

Author Comment

by:czekmany
ID: 9874667
AlexFM
I had to choose MFC because I use many Classes ATL does not provide.

MegaEnforceBoy

Why and where should I copy them ?
0
 
LVL 1

Accepted Solution

by:
TiCpu earned 180 total points
ID: 9876293
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
post4 challenge 28 113
Changing the installation path of this MSI 5 113
Making an alias 7 113
What .NET website keeps me current? 9 80
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question