home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Outlook threading with ActiveX DLL

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2901
Discussions: 200,967, Posts: 2,379,677, Members: 246,333
Old September 25th, 2003, 08:51 PM   Digg it!   #1 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,395
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 online now   Reply With Quote
Old September 26th, 2003, 12:01 AM     #2 (permalink)
Member
 
Join Date: Sep 2002
Posts: 364
Have you put DoEvents inb the appropriate places?
Creosote is offline   Reply With Quote
Old September 26th, 2003, 12:03 AM     #3 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,395
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.
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
vass0922 is online now   Reply With Quote
Old September 26th, 2003, 12:26 AM     #4 (permalink)
Member
 
Join Date: Sep 2002
Posts: 364
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3026)
Forty-six years ago today (11)
The disrespect of Obama by Russian .. (46)
Laptop with wireless problem. (12)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Internet Lost (5)
windows vista security holes (16)
windows 7 problem (7)
Is the PSU I received dead? (13)
Point and Shoot Camera Suggestions. (6)
radeon x850xt platinum & shader.. (6)
HIS HD5770 graphic card question (15)
Recent Discussions
Browsers wont load websites (3)
Nvidia GTX 260 problem (2)
windows vista security holes (16)
Delete an OS (8)
help me pls laptop just stopped worki.. (0)
Open With ..... Win7 (3)
Help getting around port 80 for camer.. (4)
Laptop with wireless problem. (12)
Internet Lost (5)
Skillsoft Network+ Study Software Que.. (9)
virus blocking exe. files (1)
Point and Shoot Camera Suggestions. (6)
CPU fan stops spinning randomly (11)
Modern Warfare 2: Who Bought It? (65)
Is the PSU I received dead? (13)
Print spooler problem (16)
Kingston Bluetooth Dongle Driver (1)
Multiple Restarts Required at Boot (3)
webcam (0)
upgrade for hp a6101 (0)
tv not turn on-makes clicking sound (2)
EVGA 9800 gtx help with finding a goo.. (11)
Regular Build (11)
Help with onclick and buttons (0)
Virus advise (8)


All times are GMT -4. The time now is 04:23 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28