»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 09-25-2003, 05:51 PM   #1 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
Outlook threading with ActiveX DLL

Ok I have a ActiveX DLL that is called from a button in Outlook

Everything works great, no problems....

The deal is, when you hit the button Outlook won't respond to anything because the ActiveX code is running

When I first created this, I created it as a macro. I've upgraded it to a full activex dll.
When it was a macro it was great because while it was working (it sometimes has to sort through several hundred messages) you could still move around Outlook with no problem!
Now that its an activex dll nothing else responds to the user until its completed

Is there a way to spawn the process of in another thread?
I tried making an activeX EXE but that didn't help
I also tried making the ActiveX DLL apartment threaded... no help

Any suggestions?
DLL was created in VB6

vass0922 is offline   Reply With Quote
Old 09-25-2003, 09:01 PM   #2 (permalink)
Registered User
 
Join Date: Sep 2002
Posts: 265
Creosote is on a distinguished road
Have you put DoEvents inb the appropriate places?
Creosote is offline   Reply With Quote
Old 09-25-2003, 09:03 PM   #3 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
ya.. np there
its not just slow, you can click around outlook just fine, it just won't respond. But if you click on another app it comes up just fine.
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>
vass0922 is offline   Reply With Quote
Old 09-25-2003, 09:26 PM   #4 (permalink)
Registered User
 
Join Date: Sep 2002
Posts: 265
Creosote is on a distinguished road
It sounds strange. Are you just running the code from Outlook, or are you using the Outlook object model for something? What if the code referenced a new instance of Outlook, and tried to destroy it when it was done?
Creosote is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 09:54 PM.