Click here to Skip to main content
15,909,652 members
Home / Discussions / COM
   

COM

 
QuestionVC++ ATL Server, VB Client, VARIANTs and SAFEARRAYs ?? Pin
Keith Gemeinhart31-Jul-00 5:05
sussKeith Gemeinhart31-Jul-00 5:05 
AnswerRe: VC++ ATL Server, VB Client, VARIANTs and SAFEARRAYs ?? Pin
Alex Gorev1-Aug-00 4:03
Alex Gorev1-Aug-00 4:03 
GeneralRe: VC++ ATL Server, VB Client, VARIANTs and SAFEARRAYs ?? Pin
Keith Gemeinhart2-Aug-00 5:46
sussKeith Gemeinhart2-Aug-00 5:46 
QuestionIE Context menu on ActiveX control..? Pin
tomer30-Jul-00 22:41
tomer30-Jul-00 22:41 
Generalcannot receiving events Pin
khoonking30-Jul-00 20:57
khoonking30-Jul-00 20:57 
GeneralRe: cannot receiving events Pin
Alex Gorev1-Aug-00 4:18
Alex Gorev1-Aug-00 4:18 
GeneralMTS and COM ! Pin
Guru29-Jul-00 4:56
Guru29-Jul-00 4:56 
GeneralRe: MTS and COM ! Pin
Mayank Dev Sondhi7-Aug-00 1:38
sussMayank Dev Sondhi7-Aug-00 1:38 
Hi Your problem is quite a common one in MTS. the problem may be because you are using a transactional component and the recordset is getting closed before you can access it. You must remember that MTS normally deactivates a component after every method call(thus the expression stateless objects)in which you Complete a transaction. What you must do is to ensure that your state is maintained for as long as you want. Thus the best way would be to use the DisableCommit of the IObjectContext interface at an appropriate place like for example in your IObjectControl::Activate method. This ensures that no transactions are completed until you specify a SetComplete on your IObjectContext method. I would advise making a method which does this SetComplete. Putting cleanup code in FinalRelease of your component is tricky because you cannot know how many times MTS will activate and deactivate your object. rather it is better to either make a cleanup function of your own or use the Deactivate method of IObjectControl.
I hope this helps to solve your problem. If not then email me and I can give you some sample code. I am even mailing you a copy of this suggestion.
Generalproblem with GetObject Pin
Eric28-Jul-00 9:35
Eric28-Jul-00 9:35 
GeneralSpell Checking Pin
siva28-Jul-00 4:52
siva28-Jul-00 4:52 
GeneralSpell Checking Pin
siva28-Jul-00 4:52
siva28-Jul-00 4:52 
GeneralAfxConnectionAdvise Pin
Francisco José Sen del Prado27-Jul-00 7:50
Francisco José Sen del Prado27-Jul-00 7:50 
GeneralRe: AfxConnectionAdvise Pin
Alex Gorev27-Jul-00 10:16
Alex Gorev27-Jul-00 10:16 
GeneralRe: AfxConnectionAdvise Pin
jose27-Jul-00 19:55
jose27-Jul-00 19:55 
GeneralRe: AfxConnectionAdvise Pin
Brian Hart7-Aug-00 16:44
Brian Hart7-Aug-00 16:44 
GeneralRe: AfxConnectionAdvise Pin
Brian Hart7-Aug-00 16:40
Brian Hart7-Aug-00 16:40 
GeneralEdit Control in Internet Explorer Band Objects Pin
Sivakumar27-Jul-00 6:48
Sivakumar27-Jul-00 6:48 
GeneralCOM and ISAPI Pin
Eytan Heidingsfeld27-Jul-00 1:39
sussEytan Heidingsfeld27-Jul-00 1:39 
GeneralRe: COM and ISAPI Pin
ekarlsso6-Aug-00 3:04
ekarlsso6-Aug-00 3:04 
GeneralCDialog in ATL COM DLL Server Pin
Rajendra R26-Jul-00 21:23
sussRajendra R26-Jul-00 21:23 
GeneralRe: CDialog in ATL COM DLL Server Pin
czieler27-Jul-00 3:24
czieler27-Jul-00 3:24 
GeneralRegister a DLL server Pin
Tony Li21-Jul-00 11:00
Tony Li21-Jul-00 11:00 
GeneralRe: Register a DLL server Pin
Alex Gorev24-Jul-00 11:27
Alex Gorev24-Jul-00 11:27 
GeneralRe: Register a DLL server Pin
Tony Li25-Jul-00 4:17
Tony Li25-Jul-00 4:17 
QuestionHow do I return an array of objects in C++ to my ASP page. Pin
notjeff19-Jul-00 20:08
notjeff19-Jul-00 20:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.