Author Topic: Dumpbin Exports for acad.exe 2006  (Read 3845 times)

0 Members and 1 Guest are viewing this topic.

Glenn R

  • Guest
Dumpbin Exports for acad.exe 2006
« on: July 07, 2008, 08:46:37 AM »
Could someone post up a .txt file containing these please? I only have Express where I am at the moment, which means no dumpbin.exe  :-(

At Visual Studio command prompt type:

dumpbin /exports "PathToAcad2006Exe" >> C:\Temp\Acad2006Exports.txt

Cheers,

Glenn R

  • Guest
Re: Dumpbin Exports for acad.exe 2006
« Reply #1 on: July 07, 2008, 03:45:13 PM »
Don't worry - done it and saved for future express endeavours.

sinc

  • Guest
Re: Dumpbin Exports for acad.exe 2006
« Reply #2 on: July 07, 2008, 07:19:03 PM »
How did you do it?

I use dumpbin from time to time, and all I have is the Express edition.  I had to do some environment configuration first; maybe that's all you need?

As fate would have it, I just posted something about it yesterday:

http://www.quux.biz/Programming/PInvoke.aspx

Spike Wilbury

  • Guest
Re: Dumpbin Exports for acad.exe 2006
« Reply #3 on: July 07, 2008, 07:30:28 PM »
You guys might know about this one, too:

http://www.dependencywalker.com/

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Dumpbin Exports for acad.exe 2006
« Reply #4 on: July 07, 2008, 10:27:03 PM »
Don't worry - done it and saved for future express endeavours.


OK, I won't worry.  :lol:

I ran out of time this morning, and I was feeling guilty about it ... but the train had higher priority.
 


kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

MickD

  • King Gator
  • Posts: 3637
  • (x-in)->[process]->(y-out) ... simples!
Re: Dumpbin Exports for acad.exe 2006
« Reply #5 on: July 07, 2008, 10:30:28 PM »
heh, it was all over before I got here! :laugh:
"Programming is really just the mundane aspect of expressing a solution to a problem."
- John Carmack

"Short cuts make long delays,' argued Pippin.”
- J.R.R. Tolkien

Glenn R

  • Guest
Re: Dumpbin Exports for acad.exe 2006
« Reply #6 on: July 08, 2008, 08:45:46 AM »
How did you do it?

I use dumpbin from time to time, and all I have is the Express edition.  I had to do some environment configuration first; maybe that's all you need?

As fate would have it, I just posted something about it yesterday:

http://www.quux.biz/Programming/PInvoke.aspx

Hmmm. I have no files in that VC folder on my 2008 C# Express install...is it possible you have other version of the Express IDE installed as well, giving you dumpbin?

I solved by going home and using Visual Studio 2005 Professional to export the modules.

sinc

  • Guest
Re: Dumpbin Exports for acad.exe 2006
« Reply #7 on: July 08, 2008, 08:49:30 AM »
Maybe.  I also have the C++ Express Edition installed...  Maybe it came in with that?

Glenn R

  • Guest
Re: Dumpbin Exports for acad.exe 2006
« Reply #8 on: July 08, 2008, 09:04:39 AM »
I suspect so - nice to know though.

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8723
  • AKA Daniel
Re: Dumpbin Exports for acad.exe 2006
« Reply #9 on: July 09, 2008, 11:33:08 AM »
Better late than never  :whistle:


Glenn R

  • Guest
Re: Dumpbin Exports for acad.exe 2006
« Reply #10 on: July 10, 2008, 04:16:46 AM »
Thanks Dan.

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8723
  • AKA Daniel
Re: Dumpbin Exports for acad.exe 2006
« Reply #11 on: July 10, 2008, 07:26:31 AM »
Sorry to hijack the thread but in reading through the exports , I noticed these two methods
acedAppendSearchPath and acedRemoveSearchPath. Has anyone partied with these? I tried to P/invoke them but nothing happened.  :mrgreen:

Code: [Select]
namespace ExecMethod
{
  public class Commands
  {
    //++--
    [DllImport("acad.exe", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode,
      EntryPoint = "?acedAppendSearchPath@@YAXAAV?$CStringT@_WV?$StrTraitMFC_DLL@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@@Z")]
    internal static extern ErrorStatus AppendSearchPath(string path);

    [DllImport("acad.exe", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode,
      EntryPoint = "?acedRemoveSearchPath@@YAXAAV?$CStringT@_WV?$StrTraitMFC_DLL@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@@Z")]
    internal static extern ErrorStatus RemoveSearchPath(string path);

   
    [CommandMethod("doit")]
    static public void doit()
    {
      Editor ed = AcAp.Application.DocumentManager.MdiActiveDocument.Editor;
      try
      {
        AppendSearchPath("C:\\Temp");
      }
      catch (System.Exception ex)
      {
        ed.WriteMessage(ex.Message);
        ed.WriteMessage(ex.StackTrace);
      }
    }

  }
}

Glenn R

  • Guest
Re: Dumpbin Exports for acad.exe 2006
« Reply #12 on: July 10, 2008, 07:54:25 AM »
Hmmm...no I haven't and not seeing anything in the docs for them either - but that doesn't surprise me one little bit :)

Spike Wilbury

  • Guest
Re: Dumpbin Exports for acad.exe 2006
« Reply #13 on: July 10, 2008, 11:36:57 AM »
Sorry to hijack the thread but in reading through the exports , I noticed these two methods
acedAppendSearchPath and acedRemoveSearchPath. Has anyone partied with these? I tried to P/invoke them but nothing happened. 

First time, I know about them... they are available in a2007 too, but not for example in a2002...

here are the undecorated functions, btw:

void acedAppendSearchPath(
class ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > &)

void acedRemoveSearchPath(
class ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > &)