Hello, I recently received an email asking whether Comet supports connection points. Of course the answers is yes! Comet has both client and server side...
203
Michael Geddes
mgeddes@...
Sep 5, 2001 4:47 am
Safearray. The current implementation of Safearrays blithely ignores the need to obtain a lock on a safearray. I believe this is particular important across...
204
Sofus Mortensen
sofus@...
Sep 5, 2001 5:16 am
I am not sure that it is necessary to lock safearrays. I don't see why it should be important across boundaries, since you'll never be able to access an array...
205
Michael Geddes
mgeddes@...
Sep 5, 2001 5:58 am
Hmm.. yes true - I guess if it gets coppied over the process boundery , it should get coppied all at once.. so strike that argument. Still, it certainly...
206
Sofus Mortensen
sofus@...
Sep 5, 2001 7:10 am
Hi Michael, I haven't had a chance yet to scrutinise your work - I am out working on-site for a client. But I was wondering - why not just lock the safearray...
207
Marc Brooks
lucis@...
Sep 5, 2001 7:18 am
... If a SAFEARRAY is locked, it's contents cannot be resized or relocated (since the SAFEARRAY is merely a descriptor pointing to the data, it's normally...
208
Michael Geddes
mgeddes@...
Sep 5, 2001 7:40 am
No probs. I'm not convinced that a permanent lock is the best policy, and I don't think that locking should be optional. (See Marc's comment about the API ...
209
Sofus Mortensen
sofus@...
Sep 5, 2001 7:46 am
Hi Marc, Seems I didn't think this through. Let me give it another try. As long as the SAFEARRAY is being accessed through the safearray_t class, there...
210
Marc Brooks
lucis@...
Sep 5, 2001 8:05 am
Sounds good, remember that it's perfectly legal to take a [in] SAFEARRAY and alter it _in-place_ before passing it on to another COM method. In-proc, that...
211
Michael Geddes
mgeddes@...
Sep 5, 2001 8:10 am
Except when you use .inout() where it could be desireable to have it unlocked for the COM call (and then locked again ?? - eeeaarch) Remember that we DON'T...
212
Sofus Mortensen
sofus@...
Sep 5, 2001 8:59 am
... Right, there's a lot of problems regarding the out(), inout() and possibly in(). I don't if they can be solved or not, I don't want to waste time thinking...
213
Sofus Mortensen
sofus@...
Sep 5, 2001 9:05 am
Hi Marc, ... Well, it might be legal, but I don't think it is good practise (in general), since behaviour will vary depending on whether the call was cross...
214
Sofus Mortensen
sofus@...
Sep 6, 2001 6:44 pm
Hi Michael, I don't think we can use assert() since it assumes a console application context (diagnotics are printed on stderr). If there's no way to fix the ...
215
Michael Geddes
mgeddes@...
Sep 7, 2001 12:23 am
When I use assert in win32 it comes up as a dialog //....
216
Michael Geddes
mgeddes@...
Sep 7, 2001 12:24 am
The other solution #ifndef _ASSERTE #include <assert.h> #define _ASSERTE(x) assert(x) #endif...
217
Sofus Mortensen
sofus@...
Sep 7, 2001 12:28 am
It does, but the diagnostics message itself is printed on stderr. _ASSERTE's dialog is a little more friendly since it includes the expression tested. Best...
218
Sofus Mortensen
sofus@...
Sep 7, 2001 12:31 am
I'd prefer a COMET_ASSERT then, to prevent mixups. Best regards, Sofus Mortensen http://www.lambdasoft.dk...
219
Sofus Mortensen
sofus@...
Sep 8, 2001 5:42 pm
Hi, Comet 1 beta 7 is now available at: http://www.lambdasoft.dk/comet Version 1 beta 7 (7-9-2001): - Added (experimental?) support for locking to safearray_t....
220
Sofus Mortensen
sofus@...
Sep 10, 2001 11:04 pm
Hi, Paul Hollingsworth previously posted a very useful hint for adding support for comet::com_ptr<> and comet::bstr<> to the debugger by editing AUTOEXP.DAT....
221
Sofus Mortensen
sofus@...
Sep 19, 2001 10:30 pm
Grab it at http://www.lambdasoft.dk/comet/download.htm Version 1 beta 8 (19-9-2001): - Fixed bugs in tlb2h regarding datetime_t. (Sofus Mortensen) - Wrapper...
222
Sofus Mortensen
sofus@...
Sep 23, 2001 9:25 pm
Hi, Beta 9 is available at http://www.lambdasoft.dk/comet My attempt in beta 8 to make wrapper properties available only in com_ptr::operator-> did not come...
223
Michael Geddes
mgeddes@...
Sep 25, 2001 3:27 am
Some of my changes / bug fixes in interface.h add template<> struct comtype<IProvideClassInfo2> { static const IID& uuid() throw() { return...
224
Sofus Mortensen
sofus@...
Sep 25, 2001 8:13 am
Thanks, Michael. They'll be in the next beta, which will also include your changed to safearray.h (sorry about that one!). Best regards, ...
225
Sofus Mortensen
sofus@...
Sep 25, 2001 10:12 pm
Hi, I have uploaded two versions of safearray.h at: http://groups.yahoo.com/group/tlb2h/files/Sofus/ safearray2.h is the one that Michael Geddes proposed a...
226
Michael Geddes
mgeddes@...
Oct 4, 2001 4:10 am
We should use the coclass name without namespace to check against symbol list. //. void update() { InterfacesPtr itfs = tli_->Interfaces; ...
227
Michael Geddes
mgeddes@...
Oct 4, 2001 6:45 am
Safearray.h Sofus, Firstly a bug in my version of safearray.h - the test in get_array should be removed. typename traits::raw* get_array() const { if( psa_ ==...
228
Sofus Mortensen
sofus@...
Oct 4, 2001 7:31 am
Hi Michael, Actually I did comment out the check on the lock count in get_array. (See safearray2.h in the files section). Copying the iterator causes the lock...
229
Michael Geddes
mgeddes@...
Oct 4, 2001 7:50 am
Hmm.. I think I might have an alternate way of doing it : how about this - firstly we lose the locking in the iterators - it IS a hassle. then - we have a...
230
Lindgren Mikael
mikael.lindgren@...
Oct 4, 2001 12:38 pm
Hi everybody I've just installed Win2k (swedish) on my computer, and when I run tlb2h I get an error message saying "tlb2h: Invalid pointer". So opened up the ...
231
Lindgren Mikael
mikael.lindgren@...
Oct 4, 2001 2:01 pm
I've found the file on an other computer. I copied it to winnt\system32 and registered it, and now everything works ok. Does anybody know what you need to...