Solved

MFC ActiveX object

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
maven archtype selection in eclipse 1 53
Problem to DocumentFormat 8 76
Sed question 2 69
Windows ICD FFU Issue 4 15
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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…

863 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now