Solved

MFC ActiveX object

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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…

630 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