 |
|
 |
if the classview can support namespace or some design pattern ,is more useful
|
|
|
|
 |
|
 |
I have used the class view folders for a long time - nothing is more frustrating than when it gets scrapped. Especially for large projects.. Thank you for a little peace of mind.
|
|
|
|
 |
|
 |
After fighting with the Studio because of the class view you came with this Add-in.
I never knew where to look for the solution
Good work.
|
|
|
|
 |
|
 |
you wrote this in your code:
try
{
CWinApp* pApp = AfxGetApp();
ASSERT(pApp);
you don't need that, just add the line:
AFX_MANAGE_STATE(AfxGetStaticModuleState());
and it resolve all the problems....
thanks
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
 |
|
 |
thanks!!!! This problem drove me mad for a lot of time, I usually have nearly 100 classes to rearrange, but this is the end IT WORKS.
Thanks,Ibiel.
|
|
|
|
 |
|
 |
One thing, Ibiel, This is your real name? Or it's just the nick? And if is your real name, from what language it comes? (Sorry for my bad english, but i'm still studying, and i'm spanish). I ask this 'cause my real name i'ts Ibiel, and I'm looking for other people with that name.
|
|
|
|
 |
|
 |
When I install this add-in, a message dialog comes out telling me
"Unable to register this add-in because its DllRegisterServer returns
an error." However, it can be installed in another person's PC.
The version of vc in my computer is SP5, and the system is Win2k;
btw, a vs.net beta is also installed.
|
|
|
|
 |
|
 |
If you want to use this add-in together with Visual Source Safe then restoring class-view information fails very often because your *.cvl file typically has the “read-only” attribute (as a binary file it can’t have multiple checkouts). Your current code opens this file as STGM_READWRITE => it fails. I had to change the code a little bit:
// Open the source file..
HRESULT hr;
...
hr= ::StgOpenStorage(strClvFile,NULL, STGM_DIRECT |
STGM_READ | STGM_SHARE_EXCLUSIVE,
NULL,0,&spSourceStorage);
if(hr != S_OK)
{
CString cMsg = "Unable to open file " +
CString(strClvFile) + " for reading!";
AfxMessageBox(cMsg);
return S_OK;
}
...
Regards Mirek
|
|
|
|
 |
|
 |
If I change the name from example 'aaa' to 'bbb' in the editbox and press the save
button, the file is saved as 'aaa' because of missing UpdateData in function
CRestoreClassViewDlg::OnSave().
I changed the program to:
Code from DDV_FileName moved to CRestoreClassViewDlg::OnRestore()
Function DDV_FileName deleted.
void CRestoreClassViewDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CRestoreClassViewDlg)
DDX_Control(pDX, IDC_URL, m_ctlURL);
DDX_Control(pDX, IDC_MAILTO, m_ctlMailTo);
DDX_Control(pDX, IDC_EDIT_SAVED_OPT_FILE, m_ctlEdSavedOptFile);
DDX_Text(pDX, IDC_EDIT_SAVED_OPT_FILE, m_strSavedOptFile);
//}}AFX_DATA_MAP
// removed DDV_FileName
}
void CRestoreClassViewDlg::OnSave()
{
if(!UpdateData())
return;
if(m_strSavedOptFile.IsEmpty())
return;
CDialog::EndDialog(IDSAVE);
}
void CRestoreClassViewDlg::OnRestore()
{
if(!UpdateData())
return;
// Check whether the file exists...
WIN32_FIND_DATA findData;
HANDLE hFindFile = ::FindFirstFile(m_strSavedOptFile,&findData);
if( hFindFile == INVALID_HANDLE_VALUE)
{
CString prompt(_T("File '"));
prompt += m_strSavedOptFile + _T("' does not exist");
AfxMessageBox(prompt);
prompt.Empty(); // exception prep
return;
}
FindClose(hFindFile);
CDialog::EndDialog(IDRESTORE);
}
and now it works fine.
Andreas.
|
|
|
|
 |
|
 |
Thanks for the bug report and more importantly the fix.
Jignesh
|
|
|
|
 |
|
 |
I just wish this had come along sooner. I've been loosing my class view organization for years.
Thanks a lot!
TomM
|
|
|
|
 |
|
 |
Do you have plans to support VC++.NET and the folders there, too?
--
See me: www.magerquark.de
|
|
|
|
 |
|
 |
I haven't used VC++.NET yet, so I am unaware of all the features in there. Also, I don't know whether the same problem still persists in the .NET version - maybe not.
I would definetly like to start poking around the new IDE and see what interesting things come up, but until I get my hands on a copy I can't!
So, I guess it's a waiting game for me, unless someone else already solves this.
Jignesh
|
|
|
|
 |
|
 |
Just renamed my project (.dsp file) and the folders in Class View where gone.
Then I tried to edit the CLV file but since it seems to be binary format, the "restore" button failed on my edited version.
If you would store the clv in a text-file (some kind of INI- or XML-format), I could edit it myself.
--
See me: www.magerquark.de
|
|
|
|
 |
|
 |
The clv file is nothing more than a copy of a stream originally found in the .opt file. The contents and the way data is stored is only known to MS.
You could view the clv file using the DocFile viewer which ships with Visual Sudio, but editing the file and then restoring it, may produce undesirable results.
HTH
Jignesh
|
|
|
|
 |
|
 |
Hi,
I found that this was an interesting challenge, so I tried to convert the "ClassView Window" stream to XML, and back to binary format.
First tests are positive, the code would need more error checking, but it's almost all there. If you want to give it a try I've just put the zipped source on my website: http://www.geocities.com/ppescher/meripaga/TestCLV.zip
Cheers,
Paolo Messina
------
"airplane is cool, but space shuttle is even better" (J. Kaczorowski)
|
|
|
|
 |
|
 |
Hey, cool. Thank you
Unfortunately the link is a 404 (i.e. Yahoo tells me, "This page is not available.").
--
See me: www.magerquark.de
|
|
|
|
 |
|
 |
Your article just caught my eye when it appeared as the random selection on the Code Project home page.
I recently gave up on folders as requiring too much maintenance effort.
After installing your addin, I'm once again using them.
Thanks
Regards,
Chris
|
|
|
|
 |
|
 |
Twice this has solved the "Unable to find class view information" error.
thank you *= 2;
|
|
|
|
 |
|
 |
Thanks. I find myself using this macro about once a week when VS decides to throw away my folders. Without your restore feature I would have to spend an extra 20 min / week (pulling my hair out!) recreating my folders to make some sense my 100+ classes in my currrent application.
John
|
|
|
|
 |
|
 |
Very nice indeed, I just moved my project to another location and lost all
my folders (of course...) And your add-in fixed that easily!
This will also be nice for transferring my folder settings to others. Thanks a lot!
|
|
|
|
 |
|
 |
Thanks very much to you. I often found my class viewer don't work, so I must delete many files and rebuid the class view infomation. some days go, I must do it again. I think the Add-in will help me to leave the terrible thing.
norther99
|
|
|
|
 |
|
 |
Whenever I add a new class, or rearrange some classes, I hit "Save All".
Since I started doing this, it has not failed me.. yet.
|
|
|
|
 |
|
 |
I didn't know about folders, thanks for the info
Shows that you sometimes should read the manual!
|
|
|
|
 |
|
 |
Excellent Work. The annoying feature of losing the folder structure along with the other one of losing the classwizard all together used to frustrate the hell out of me. I've worked out how to easily recover the classwizard by simply editing the CLW file but recoverying the folder structure was put in the too hard basket. Your add in gives me the confidence to use folders again.
Thanks
|
|
|
|
 |