Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. dll/ActiveX issue

dll/ActiveX issue

Scheduled Pinned Locked Moved C / C++ / MFC
helpcom
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    work_to_live
    wrote on last edited by
    #1

    I'm trying to build a library of specialized helper functions I can move from project to project. I'm currently building an ActiveX control, and linking with this "helper" library (dll). This is the first time I've built my own dll, and I'm having some problems. Here's the problem I'm having... I have a class I export in my dll, and can successfully import it into my control, but if I change the arguments in one of the member functions to a CString reference, the ActiveX control crashes when it executes that function. If I change the argument to pass by value, everything is OK, but I can't modify data in my control. I realize this is a brief explanation, but I'm hoping there's something that comes to mind as far as exporting classes that try to modify data in the calling application (ActiveX control in this case) with a reference to an object (CString) in the calling application. Thanks.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups