Hi
I am writing a Word 97 addin (WLL) in VC++ and I am trying to use this
macro:
extern "C" __declspec( dllexport ) short OnFileImport( )
{
AFX_MANAGE_STATE( AfxGetStaticModuleState() ) ;
// some code todo,
return 1;
I was looking at all the information on the MSDN site but I can find nothingQuote:}
that can help me all the code examples are in VB and I need VC++ examples.
When I call the CommandBarControl.OnAction("OnFileImport") nothing happens,
I can use the CAPILib function RegisterFunction(...) but I would like to get
away from that and the only other way would be to declare the funtion in a
templat.dot file. I would like to know if there is a better way that I can
call the function from my WLL without having to use the above procedures.
--
******************************************
Richard Guay, Software Developer
Infrastructures for Information Inc.
1730 St. Laurent Blvd., Suite 200
Ottawa, Ontario
Canada K1G 5L1
613 738 3156, ext. 238(Tel)
613 738 7210 (fax)
www.i4i.com
******************************************