Not quite true.
The only thing that has to be in the DLL is the interface. As long as the
EXE can create an object that derives from that interface, and can pass that
object to the classes defined in the DLL, then the classes in the DLL can
call the object to perform the logging.
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:eg*************@TK2MSFTNGP15.phx.gbl...
You cannot. You will have to move your logging code into a DLL for both
the EXE and DLL to be able to reference it.
"John Bailo" <ja*****@texeme.com> wrote in message
news:43**************@texeme.com...
I see.
But my logging method (which just uses the Trace class) is in the .exe
So how would I write log entry from the .dll using a method in the .exe?
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--