[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Need some information about tortoiseShell and tortoiseProc

From: Abhay Chaudhary <cabhay_at_gmail.com>
Date: 2006-11-21 05:32:38 CET

Hi All,

I am trying to understand the tortoiseSVN code to create similar windows
shell extension.
I want to show a dialog box when a command get executed from the added
context menu. Hence I have added a dialog box class CSimpleDlg in
tortoiseShell project and trying to showit from invokecommand function.

STDMETHODIMP CShellExt::InvokeCommand(LPCMINVOKECOMMANDINFO lpcmi)
{
// your code
switch (id_it->second)
            {
                // # region case
        case Test:
          CSimpleDlg dlg;
         dlg.DoMoal();
          break;
           }
// your code
}

After using required project setting and header files (linking MFC libary
statically), getting error LNK2005: _DllMain@12 already defined in
TortoiseSVN.obj

I think MFC library also contain DllMain function and even our code also.
Hence getting above error. Is these the same reason to create TortoiseProc
executable which will show dialog boxes? Can I include dialog boxes in
tortoiseShell project? If I create TorotiseShell project as ATL project then
I do this?

I haven't work much on ATL, COM, unicode and shell extension, but know about
MFC.

Regards,
Abhay
Received on Tue Nov 21 05:32:52 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.