|
|
Up |
  |
Author: RajaRaja
Date: May 11, 2008 05:21
Hi All,
I am a newbie to OLE technology and started up with
http://www.relisoft.com/win32/olerant.html in which the author
presents the statement "Anybody who knows C++ can do it with their
eyes closed. So why can't you do the same in OLE? Here comes the Flaw.
You have to be able to obtain the IBar interface from the IFoo
interface using its QueryInterface. But, wait a minute, the object
FooObj that provides the implementation of all methods of IFoo,
including QueryInterface, had no clue about IBar! It could have been
created long before anyone even thought about the possibility of IBar.
So how can it provide access to IBar?
Good question. I'm not going to go into the gory details of the
aggregation hack that is supposed to solve this problem. Given the
constraints of the flawed initial design, it is a truly ingenious
hack. So is there a better design? Read on..."
Can anyone please explain what the hack is ? Any pointers to better
understanding of design as well, is appreciated.
Thanks,
Raja.
|
| |
|
| |
no comments
|
|
  |
Author: Ron.SankerRon.Sanker
Date: May 9, 2008 17:34
--
Every domains will be international explicit audits.
|
| |
|
| |
no comments
|
|
  |
Author: KanataSalesKanataSales
Date: May 8, 2008 20:03
J & L Associates is pleased to announce the availability of AsdGraph3D Excel
Addin version 1.0.
AsdGraph3D is an OpenGL-based Excel Addin that plots 3D points, lines,
surfaces or water-tight solids directly from user-specified cell ranges (as
3D coordinates) within MS Excel worksheets (from one or several open
workbooks). The tight integration with MS Excel is what differentiates
AsdGraph3D from rest of the 3D plotters. AsdGrapg3D is both an end-user
product and a developer tool. For developers, AsdGraph3D provides an
extensive set of API that is callable from VB, VBA, Java Script and C++ COM
client.
For more info, please visit:
http://activesolid.ncf.ca/asdgraph.html
Cheers,
J & L Associates
|
| |
|
no comments
|
|
  |
Author: NemoNemo
Date: Apr 15, 2008 12:57
Hi. I am trying to insert an image into a RichEditCtrl, and was
following the code provided at MSDN KB 220844.
I seem to be getting stuck right at the first step. The assert
following the SendMessage always fails :
::SendMessage(m_ctlRichText.m_hWnd, EM_GETOLEINTERFACE, 0,
(LPARAM)&m_pRichEditOle);
ASSERT(m_pRichEditOle != NULL);
I tried to look up on MSDN, but I can't seem to find any documentation
as to why the attempt to get the interface might fail. Yet. I have a
funny feeling it is some initialization call that I must be missing.
btw, I do call AfxInitRichEdit(). I even stuck in a AfxOleInit() to be
sure.
Any insight, I'm sure, would be handy.
Thanks,
|
| |
|
no comments
|
|
  |
Author: Alberto SalvatiAlberto Salvati
Date: Apr 14, 2008 02:06
Hi All.
I'm a delphi developer and I'm developing a com-based framework.
I've a base server, named "commonserver".
In this server I've 6 com interfaces used by a LOT of com servers in
my framework.
So, each time I change something in my commonserver, I MUST rebuild
all com servers..
Because this task is too long, I'm searching some solution or
workaround.
Searching in sdk, msdn, google and so on, I've found some info about
treatas.
But, I've few details about how treatas works to establish if it's a
solution for me.
My use case is explained below
I've an interface name "ibase" in CommonServer:
|
| Show full article (1.68Kb) |
|
no comments
|
|
  |
|
|
  |
|
|
  |
Author: infoinfo
Date: Jan 29, 2008 18:00
Beste klant,
Telenet heeft een migratie gedaan van haar nieuwsservers.
Wat betekent dit concreet voor jou als gebruiker?
Er verandert niets aan de service, maar om verder gebruik te maken van de
Telenet nieuwsgroepen service moet je bij de instellingen van je nieuwslezer
het adres van de nieuwsserver veranderen van news.telenet.be of
newsbin.telenet.be in newsgroups.telenet.be. Verder dien je de authenticatie
op deze nieuwsserver uit te schakelen.
Met vriendelijke groeten,
Het Telenet team
----------------------------------------------------------------------------------------------------------
Cher client,
Telenet a effectue une migration de ses serveurs de newsgroup.
Pour continuer a utiliser les newsgroups de Telenet, modifiez dans la
configuration de lecteur de nouvelles l'adresse du serveur de newsgroup:
newsgroups.telenet.be a la place de news.telenet.be ou newsbin.telenet.be.
Ceci ne necessite pas que vous vous identifiez pour acceder a ce serveur de
newsgroup.
Cordialement,
|
| Show full article (1.04Kb) |
|
no comments
|
|
  |
Author: giladgilad
Date: Jan 23, 2008 11:17
Hi,
How is it possible to convert variant that is VT_BSTR to VT_DISPATCH?
I tried VariantChangeTypeEx but no luck.
Please help.
Thanks,
Gilad.
|
| |
|
no comments
|
|
  |
|
  |
Author: AtizAtiz
Date: Jan 22, 2008 02:47
Hi, I have an OPC client.
I used a server to send value to the OPC client whereby it detects the
value.
The OPC client is able to detect the value as a VT_BSTR.
The function which detects the value as a VT_BSTR has VARIANT* pValue
as a parameter.
When this pValue is a VT_BSTR type, I have trouble extracting the
correct value out.
Currently my method does this:
BSTR bstr = V_BSTR(pValue);
int a = SysStringLen(bstr)+1;
char *ansistr = new char[a];
result = ::WideCharToMultiBYte(CP_ACP, 0, bstr, -1, ansistr, a, NULL,
NULL);
I tried to print out
LOG4CPLUS_DEBUG(logPacket, *V_BSTR(pValue));
LOG4CPLUS_DEBUG(logPacket, bstr);
but the value is always different and is not the value that is sent
over to the OPC client.
|
| Show full article (0.79Kb) |
|
2 Comments |
|
|
|
|