CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: alexb1234

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Replies
    0
    Views
    2,174

    Registry file associations

    I want to point the double-click handler for .dll files to my program instead of the default handler. There arise some questions:
    1. can it do any harm?
    2. How do I keep the option of calling the...
  2. Replies
    16
    Views
    1,989

    Re: control programming

    Jonny,
    Thanx for the link. I'll have to read it very carefuly and maybe make a lot of changes in my dll.
    I'll post here when I'm done.
    RE: DoDataExchange():

    What the above says is that, as long...
  3. Replies
    16
    Views
    1,989

    Re: control programming

    The control (TreeDialog) is a CTreeCtrl embedded in a dialog with a few other buttons, thus the name, but I accept your suggestion.
    As to the 2nd question, we are back to the main issue:
    "- what...
  4. Replies
    16
    Views
    1,989

    Re: control programming

    The control dialog is constructed, shows up but doesn't get any messages so it is frozen.
    The List is a global.
  5. Replies
    16
    Views
    1,989

    Re: control programming

    It is created so, but as soon I move it out of DoDataExchange() I get either an assertion from winocc.cpp Line 301 or an "illegal operation".

    No, I get an assertion from afxwin1.inl

    I know, but...
  6. Replies
    16
    Views
    1,989

    Re: control programming

    Hello JonnyPoet,
    I don't want to take the plunge into COM and ActiveX.
    The control is MFC implemented in a dll and works fine.
    I'll summarize my problem:
    If i call the control like this:
    ...
  7. Replies
    16
    Views
    1,989

    Re: control programming

    Yes, it is CTreeCtrl.
    No, it's neither ActiveX nor ATL, just MFC.
    I can use it by copying the files to the app project and compiling everything, but I want a reusable conttrol, so I put it in an...
  8. Replies
    16
    Views
    1,989

    Re: control programming

    Right.
    The problem is, I can't make it work otherwise.
    Maybe some functionality is missing in the control?
    I would appreciate a code snippet or an article link on control programming.
  9. Replies
    16
    Views
    1,989

    control programming

    Hi everybody,
    I wrote a CtreeCtrl based control that should fill data in a data structure.
    The control is compiled as a .dll.
    How do I get it to behave like a common control, i.e.:


    list...
  10. Replies
    13
    Views
    1,554

    Re: release/debug dll's

    To everybody who read this thread,

    :( I reread the thread and stumbled upon Andreas's question

    My answer was '__declspec' but now I noticed that the project has a .def file
    with the directive...
  11. Replies
    13
    Views
    1,554

    Re: release/debug dll's

    I am posting the .lib files for release and debug.
    As you can notice, in both files the .dll name is identical, although it should be CFolderTreeCtrl.dll for CFolderTreeCtrl.lib and...
  12. Replies
    13
    Views
    1,554

    Re: release/debug dll's

    Excerpt from the Class definition file (CFolderTreeCtrl.h):

    #ifndef MAKE_DLL//we are building the app that uses the dll
    #ifdef _DEBUG//Building the debug version of the app, so we want the debug...
  13. Replies
    13
    Views
    1,554

    Re: release/debug dll's

    To the best of my understanding:
    The .lib file appends the dll's name (xxx.dll) to each exported function, so that the app linking to the .lib will know where to look for the function.

    Am I...
  14. Replies
    13
    Views
    1,554

    Re: release/debug dll's

    I export a class using __declspec()

    This is exactly what I do.
    The problem is that the dll name - as it apperas in the .lib file - doesn't change between builds, thus causing the app debug build...
  15. Replies
    13
    Views
    1,554

    release/debug dll's

    Hi everybody,

    I have this extension dll to which I link various apps.
    The dll is named differently for the debug and release versions, as is the .lib file.
    The problem is that in both versions...
  16. Replies
    4
    Views
    689

    Re: using a control from a .dll

    The list is a std::list<CString>, holds names associated with the tree items.

    The (working) sollution I have is the app passing a pointer to a list in the
    DIALOG_TREE ctor
    ...
  17. Replies
    4
    Views
    689

    Re: using a control from a .dll

    Actually a dialog which contains a CTreeCtrl and a few other buttons for different commands.

    alex
  18. Replies
    4
    Views
    689

    using a control from a .dll

    I wrote this CTreeCtrl-based control and put it in a .dll
    The control consists of a dialog/resource class DIALOG_TREE and a private
    tree-manipulating class.

    Now to use this control in a app, I...
  19. Replies
    2
    Views
    562

    Re: Documentation

    Thanks for the reply.

    What I meant is that the links can be used directly from the VS editor.

    alex
  20. Replies
    2
    Views
    562

    Documentation

    Does anyone know of a file format that:

    i. can contain text AND shortcuts to arbitrary files
    ii. can be viewed/edited in the VS6 editor (I'll settle for VS7)

    thanks,

    alex
  21. Thread: memory leaks

    by alexb1234
    Replies
    11
    Views
    1,313

    Hello Mick_2002, I didn't fully realize the time...

    Hello Mick_2002,
    I didn't fully realize the time difference.
    Thanks for the dbgview tip. it works fine and shows the TRACE()outputs, but the dump shows no memory leaks, even with
    a forced leak....
  22. Thread: memory leaks

    by alexb1234
    Replies
    11
    Views
    1,313

    Hi MICK_2002, You were right and you weren't:...

    Hi MICK_2002,

    You were right and you weren't:

    The snippet I sent you compiles of course.
    The problem was that in ARX, the #include order is significant:
    the MFC includes must come before all...
  23. Thread: memory leaks

    by alexb1234
    Replies
    11
    Views
    1,313

    I'll try it. Thanks. See you at 1600 GMT. I'll...

    I'll try it.
    Thanks.
    See you at 1600 GMT. I'll let you know it it worked.
    alex
  24. Thread: memory leaks

    by alexb1234
    Replies
    11
    Views
    1,313

    It's kind of complicated. The code is part of a...

    It's kind of complicated. The code is part of a in-process DLL (a ARX running under AUTOCAD), and the complete code is - in my opinion - irrelevant.
    Anyway, what did you mean by:

    'afx.h is not...
  25. Thread: memory leaks

    by alexb1234
    Replies
    11
    Views
    1,313

    Explain please thanx, alex

    Explain please
    thanx,
    alex
Results 1 to 25 of 27
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured