Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

New plugin! (Code Statistics)

<< < (2/3) > >>

David Perfors:
It is probably very nice, but... could you make it Unicode compatible?

mandrav:
*EDITED*

You are right, sorry about that. Fixed it in CVS.

Zlika:
There are plenty of empty lines in the sources when I view them with CB.
When I look the text files with an hex editor, I can see each end of line is: CR-CR-LF !
Is it a bug of CB when you edit a file under Unix and then Windows?

Zlika

mandrav:
Yes, sometimes it can happen (depends on the editor used, etc - some files I quickly edit with other editors, not CB).
If you see this, and it's more than a couple of lines (where you could just fix it yourself by deleting them), run dos2unix on the files before editing them and all will be fine again.

Pecan:
Zlika,

Thanks for the nice plugin. Good example code for us novices.
I noticed (on my win xp sp2 system) that Codestat::Configure()
isn't being called. I modified it as follows:

int CodeStat::Configure()
{
    // if not attached, exit
    asm("int3");  //?? is this function being called??
    if (!m_IsAttached)
        return -1;
   
    LanguageDef languages[NB_FILETYPES];
    LoadSettings(languages);
    CodeStatConfigDlg dlg(Manager::Get()->GetAppWindow(), languages);
      wxString msg = _("Configure called!");
      wxMessageBox(msg, _("Error"), wxICON_ERROR | wxOK);
    if (dlg.ShowModal() == wxID_OK)
    {
    }
    return 0;
}

It neither crashed at the "asm("int3")" nor did it ever produce a
message box.

What am I missing here??

Thanks

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version