A
Andrew M
Hello
I am developing an addin for office XP & 2003. I have the code working
great for 2003, however, Word is having a problem loading the application
object in my OnConnection Event. When I set my callback Event to the
application object, I receive an Error #48, Cannot Load DLL. Can anyone tell
me if there is a specific hoop I have to jump through, or perhaps a trick I
can use to get this to work. Below is a snippet of my routine
'Another thing... VB6 crashes every time I exit VB when editing this code.
Any Idea why? Also I get an occaisional BSOD when running in the IDE. (XP
pro w/ all the SP's & latest drivers)
Thanks - Andrew
'*****************
'Module Decs
'********************
Private WithEvents oApp As Word.Application
Private Sub AddinInstance_OnConnection(ByVal Application As Object, _
ByVal ConnectMode As AddInDesignerObjects.ext_ConnectMode, _
ByVal AddInInst As Object, custom() As Variant)
Dim oPic As StdPicture
On Error GoTo ErrorHandler
'Keep earlier than Office XP versions from loading this
If Val(Application.Version) < WORDXP Then Exit Sub
'Instantiate Core
Set g_objFMCore = CreateCoreObject
If g_objFMCore Is Nothing Then Exit Sub
'Read Reg Keys
InitSettings WORDSETTINGS, m_blnIntegrate, m_blnSA_Int, m_blnDOF,
m_strDefProfile, m_blnSP, m_blnSC
'**** DIES RIGHT HERE ***|
Set oApp = Application '<**
'***************************************************************
I am developing an addin for office XP & 2003. I have the code working
great for 2003, however, Word is having a problem loading the application
object in my OnConnection Event. When I set my callback Event to the
application object, I receive an Error #48, Cannot Load DLL. Can anyone tell
me if there is a specific hoop I have to jump through, or perhaps a trick I
can use to get this to work. Below is a snippet of my routine
'Another thing... VB6 crashes every time I exit VB when editing this code.
Any Idea why? Also I get an occaisional BSOD when running in the IDE. (XP
pro w/ all the SP's & latest drivers)
Thanks - Andrew
'*****************
'Module Decs
'********************
Private WithEvents oApp As Word.Application
Private Sub AddinInstance_OnConnection(ByVal Application As Object, _
ByVal ConnectMode As AddInDesignerObjects.ext_ConnectMode, _
ByVal AddInInst As Object, custom() As Variant)
Dim oPic As StdPicture
On Error GoTo ErrorHandler
'Keep earlier than Office XP versions from loading this
If Val(Application.Version) < WORDXP Then Exit Sub
'Instantiate Core
Set g_objFMCore = CreateCoreObject
If g_objFMCore Is Nothing Then Exit Sub
'Read Reg Keys
InitSettings WORDSETTINGS, m_blnIntegrate, m_blnSA_Int, m_blnDOF,
m_strDefProfile, m_blnSP, m_blnSC
'**** DIES RIGHT HERE ***|
Set oApp = Application '<**
'***************************************************************