I have a list control item with a given amount of columns and respective headers. I would now like to add some sorting functionality, where, upon clicking the header of the respective column, it sorts alphabetically. Are there any functions to accomplish this?
Well to first add the notification for HDN_ITEMCLICK is tough:-
why because the on notify macro is as follows
ON_NOTIFY( wNotifyCode, id, memberFxn ) and the id of the header control is zero unless explicitly set .
I was wondering how other programs store the code and documentation in order to reuse it someday? I have a file/folder structure that has information stored in it but is getting a little out of control? I was wondering how other programmers store their code and documentation for future use? Does anyone use special code management software?
Ok, Maybe I didnt write my question right. I am not talking about source control. I do not need to keep track of changes because I always want the newest version.
Example: I have ProjectA, ProjectB, ProjectC. Function1 and Function2 are used in ProjectA and ProjectB. I want to save those functions somewhere so that later on (ProjectF) if those functions are needed I dont have to go "remember" that the functions are in ProjectA and ProjectB. I would like to go out to a file structure or something where that function is stored and then put it into ProjectD.
You kind of see where I am going with this?
I would like to organize a file/folder structure in a way to maximize an ease of finding code (functions,classes,dlls,libraries,sample projects,add-ins,etc).
My first question is I wonder how other programmers store their code in a file/folder structure (If so what does their C++ folder structure look like), or do they use a special program.
I would also like to keep track of the DOxygen code assocated with the source code.
I believe so and it still sounds like Source Code Control.
I would like to go out to a file structure or something where that function is stored and then put it into ProjectD.
A) File structure will not hold a "function" it will hold "files" so you are still referring to source code.
B) Source control systems provide sharing of files across projects so they manage that part for you.
because I always want the newest version.
Wow, have you never introduced new code and then decided you didn't want to keep it? Happens all the time to me then all I have to do is "undo the checkout" and I am back to where I started with a single mouse click!
Have you never made a change that introduced a "bug"? Source Control Systems provide "differencing" which simplifies finding "what" changed that might help "find the bug".
I see nothing in what you posted that would not be solved using Source Code Control system. Personally I never develop anything without using source control.
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?" Colin Angus Mackayin the C# forum
Last Visit: 31-Dec-99 18:00 Last Update: 27-Sep-23 1:31