CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2006
    Posts
    16

    Question ActiveX without MFC\ATL

    Is it at all possible to build an OCX ActiveX conrtol without MFC at all, using Visual Studio 2003...

  2. #2
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: ActiveX without MFC\ATL

    Yes, but it it would be real pain only using win32, may I ask why ?
    Regards,
    Ramkrishna Pawar

  3. #3
    Join Date
    Sep 2006
    Posts
    16

    Re: ActiveX without MFC\ATL

    Just a little more than idel curiosity really...
    I have an ActiveX control that work as an interface between a FoxPro app and a 3D rendering DLL. It doesn't use any of the MFC componants and including it seems a waste.

    If the MFC libs are linked dynamically but unused, does the host still have to have the MFC DLLs to run the app??

  4. #4
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: ActiveX without MFC\ATL

    Quote Originally Posted by CrypticTim
    Just a little more than idel curiosity really...
    I have an ActiveX control that work as an interface between a FoxPro app and a 3D rendering DLL. It doesn't use any of the MFC componants and including it seems a waste.

    If the MFC libs are linked dynamically but unused, does the host still have to have the MFC DLLs to run the app??
    If it's a MFC ActiveX project then it uses MFC in one way or other even if you didnt add any functionality.

    You can use Static MFC libraries to avoid DLL dependancies, that would increase the size but it would be affordable comparing with Pure Win32 coding.
    Regards,
    Ramkrishna Pawar

  5. #5
    Join Date
    Sep 2006
    Posts
    16

    Re: ActiveX without MFC\ATL

    Ah well, thanks for the info, I guess I'll just take the hit of being forced to use MFC.

  6. #6
    Join Date
    Dec 2009
    Posts
    1

    Re: ActiveX without MFC\ATL

    Here is example Activex without MFC/ATL http://unick-soft.ru/EnSoft.cgi?type=File&id=16
    But it is VS2005 example.

  7. #7
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: ActiveX without MFC\ATL

    Just use ATL - it doesn't require any dependencies.

    Doing it from scratch would be a real pain (not that there's anything wrong with that if that's what your into).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured