justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: I'd like to know how you organize your Win32 code in terms of files, headers, wndprocs, callbacks, and etc. My code is a mess :(
Asked by Rodrigo (187.112.248.x) on June 4 2011, 1:25pm
Reply on June 4 2011, 10:17pm:
    I try to keep related stuff modularized and only expose things between modules as necessary. Often I'll have a "main.h" which includes a lot of common declarations of functions, and classes usually get their own headers (or a few highly-related classes sharing a header is not uncommon). Generally speaking though if a class doesn't need to be accessed directly by other modules, I'd rather keep it local to the module where it is used, and use "class Whatever;" in the header in case a pointer gets passed around...

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2025 Justin Frankel. | RSS