Solved

MFC ActiveX object

Posted on 2003-12-04
5
464 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
has22 challenge 11 93
NotAlone Challenge 20 83
SSIS 2010 Convert to SSIS 2013 On Different Box 3 58
Problem to event 3 92
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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…

785 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