Free C++ Compilers and KX DSP

Discussion in 'Effects and the DSP' started by ROBSCIX, Sep 16, 2005.

  1. Lex Nahumury

    Lex Nahumury DH Senior Member

    Joined:
    Jan 5, 2003
    Messages:
    1,944
    Likes Received:
    6
    Trophy Points:
    0
    Good!
    Yes, window class reg stuf can be a bit weird.
    One should use RegisterClassEx which allows for subsequent use in calls
    to CreateWindowEx. However in NT and higher window classes registered
    by a DLL are not automaticly unregistered when the DLL is unloaded.
    (see msdn). Ofcourse, you can unregister manualy, but it doesn't seems really
    necessary here, so I don't think that was the cause of your problem.

    BTW: Just a tip; Make sure you check for mem leaks in your GUI implementation.
    If one more or less 'copies' the way kXGUI 'news' and 'deletes' it's dialog
    instance, it is very likely that your dialog's dtor is never called
    if the user has closed the dialog prior to unloading the plugin from the host.

    Anyway;
    I'm almost finished writting a non-MFC GUI Framework for kX with pretty much
    the same functionality as KXGUI.
    That is; dialog, preset handling and basic controls like sliders, checkboxes,
    buttons etc all wrapped in classes.
    All done with plain win32 api, so it should work with any win32 compiler.

    Allthough I don't see candidate kX Plugin coders coming up in large numbers I
    thought it might be usefull for those few that do and don't have MFC.
    I'm not sure yet if I'll release it as full source or as a lib.
    We'll see.

    /LeMury
     
  2. Russ

    Russ Well-Known Member

    Joined:
    Jan 17, 2005
    Messages:
    5,722
    Likes Received:
    13
    Trophy Points:
    48
    Yeah, I coded it in a way that my dtor is always called (and confirmed using debug messages), and confirmed that there are no memory leaks under a variety of scenarios, so that should not be a problem.

    I was playing around with making a non MFC GUI framework as well, as it seems it is necessary (making wrappers for the the API code, the windows, and controls, etc) if you really want any reusabe code.
    In any case I only started playing around with it, so I have not gotten all that far. I am looking forward to seing your implementation.
     
  3. Lex Nahumury

    Lex Nahumury DH Senior Member

    Joined:
    Jan 5, 2003
    Messages:
    1,944
    Likes Received:
    6
    Trophy Points:
    0
    If you're interested;
    http://www.driverheaven.net/showthread.php?t=97975

    /LeMury
     

Share This Page

visited