|
http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/cossdk/pgappsntservice_9cpx.htm
"With the release of Microsoft® Windows® 2000, 64-bit Edition, Component Services provides developers with the ability to configure a COM+ server application as an NT service and to implement the service as a COM+ server application by using the Component Services administrative tool."
only 64-bit edition?
why not 32-bit edition?
there is no way?
I want Always Running and Automatically start my component when reboot
best regards
HyungMin Kwak
|
|
|
|
|
Dear All,
how to get the com guid directly from its dll or exe file? Maybe is it the question how to get the com guid through searching the registry for the dll or exe file ?
Thanks a lot
|
|
|
|
|
This assumes you know the ProgID
Mike
{
ISomeObject *pISomeObject = NULL;
CLSID clsid = {0};
HRESULT hr;
...
//
// Create some object
CLSIDFromProgID( L"SomeObjectProgID", &clsid );
hr = CoCreateInstance( clsid, NULL, CLSCTX_ALL,
__uuidof(ISomeObject), (void **) &pISomeObject );
...
}
|
|
|
|
|
Dear All,
how to get the com guid directly from its dll or exe file? Maybe is it the question how to get the com guid through searching the registry for the dll or exe file ?
Thanks a lot
|
|
|
|
|
Dear All,
how to get the com guid directly from its dll or exe file? Maybe is it the question how to get the com guid through searching the registry for the dll or exe file ?
Thanks a lot
|
|
|
|
|
If you need a utility that generates a windows help file automatically from
a type library, you might want to take a look at Oberon TLB Tools utility:
http://www.vakcer.com/oberon/products/tlbtools/
This utility includes 3 tools:
TLB2HLP - generates a complete WinHelp project containing .rtf, .cnt, .prj,
and other files ready to be compiled into a .hlp file. The .rtf file
contains help topics on each objects, method, properties, etc. with
descriptions, place holders for code samples, etc. A good start to create
full online help for a COM object model or ActiveX control properties.
TLB2HTML - creates an HTML file containing all type information from a type
library with cross-references, object index, and so on...
TLB Compare - compares two type libraries and writes differences as an HTML
file.
You can find examples of how each of the tools work on the web page given
above...
I hope this is helpful...
--
Alex
----
Do you still use a stopwatch to track your project time?
Why not try a completely automatic time tracking and billing
application for Windows - VAKCER Project Tracker v2.1?
Get your free trial copy today at http://www.vakcer.com
|
|
|
|
|
Hello Every one..
I am new at COM.. I need to develop a project in ATL ADO database connectivity. Can anyone provide some quick help in form of good link or matter..
|
|
|
|
|
I need to detect if a local server is running. I do not have any reference to it, so I can not detect if the server is running by just calling a method of one of it's interfaces. If I would use CoCreateInstance I still would not know if the server was active before I called it as I would launch it myself. Does anyone know a sollution for this problem?
|
|
|
|
|
I have written an ATL com dll that manipulates some data, but now I want to add a Dialoge to the Dll to display the data ect... I have gon through the wizard and inserted an ATL dialoge but I am not too sure what I have to do now. It does not have an interface or anything like that so how am I supposed to display the dialoge from the calling application. How do I add any of my com objects to the dialog class, its doen't seem to like it at the moment.
If anybody has any any demos that would be great.
just in case anybody noticed - I added this to the VC++ thread, I think it was a cry for help !!
Cheers
Andy C
|
|
|
|
|
I'm not sure of the standard way to do this but I usually create a simple object with a ShowModal method and add some code like this,
m_dlg.DoModal()
Then I create instance of my object in my calling applications and make a call to the ShowModal message.
Hope this helps,
Michael
|
|
|
|
|
Michael, you are correct. The right way is to instantiate dialog object and call DoModal () (for modal) or Create() for modeless dialog.
Hush..Hush.. thought I heard you calling my name now...
|
|
|
|
|
I am creating a COM component in Vc++ and it is going to be accessed from a Web Page. I have a method
in this Com component which is set up to return a result and error.The IDL looks something like this.
HRESULT myMethod([in] BSTR bstrIn, [out] BSTR *error,[out, retval] BSTR* pbstrOut);
I am able to sucessfully get the value when I make the call in VB/aSP
with
rtval = obj.myMethod(In,out)
But the value of "out" does not change it stays the same value that it was set before the call inspite of me chaning it inside the COM component. Do I need to do anything special to get the value out. I checked the web but they do not have any samples for IDL constructs [out] or [in,out]. Please let me know if anybody has tried it or how to get the results.
Krush
|
|
|
|
|
That is very simple....
I think that the problem is in VC side. In the function MyMethod.
How You return the *error and *pbstrOut values?
Carlos Antollini.
|
|
|
|
|
I am changing the content of
*error = _bstr_t("Error......");
*pbstrOut = _bstr_t("Result......");
The value in pbstrOut is returned but not the one in error. What do I need to do return both the values.
Krush
|
|
|
|
|
In the IDL, do [out, string] BSTR* error.....
In the function try the following:
CString strLastError = _T("Error............");
::SysFreeString(*error);
*error = strLastError.AllocSysString();
Cheers!!!!
Carlos Antollini.
|
|
|
|
|
Is it possible to have developer studio regenerate my activeX control wrappers, after I make changes to them (add properties and events), short of totally removing the controls from your project and then reinserting them? I am writing the controls using ATL (beginner) and my projects are MFC based. The generated code says the following comment:
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.
// Dispatch interfaces referenced by this interface
Thanks in Advance,
John
|
|
|
|
|
Hi all,
I would like to know how to create an IM like application? How does an Instant Messenger work? What should I be reading (and where)? I would like you to share your ideas with me.
TIA,
Hush..Hush.. thought I heard you calling my name now...
|
|
|
|
|
To build a simple messenger system, you basically need to program a server and a client (like the IM that you download and install)
The server is listening for messages from the clients. When it receives a message from a client, it forwards it to the right client. The clients listen for messages from the server, when they receive them they alert the user.
It's not that hard to build a simple message system in for example Visual Basic or Delphi, what you have to learn is how to use network sockets. I would recommend you to buy a good book on it, usually you can get enough code from it to create a basic message application.
/_henrik
Henrik Sternberg, Consultant
Cambridge Technolgy Partners, Germany
www.ctp.com/ce
henrik.sternberg@ctp.nospam.com
(take away nospam)
|
|
|
|
|
Thanks a lot.
Also,I'd like to how to build an IM application in VC++/ATL/COM. Could you give me some ideas about how to implement this?
TIA.
Hush..Hush.. thought I heard you calling my name now...
|
|
|
|
|
have you thought about using a XML based application or using some MAPI session?
|
|
|
|
|
Hi All,
How can I create an array of BSTRs??? is the following correct?:
BSTR mybstr[] (of course preceeded by size_is and so on...)
And how woukd I have and [in] and an [out] parameter iof this sort???
If this is isn't possible then I guess a SAFERRAY which contains BSTRs is the solution right?? or not???
Help me please!!!!
Thanks a lot!!!!
Alberto Gattegno
Software Engineer
http://www.itginc.com
|
|
|
|
|
In my opinion a safe way to do this kind of operation is using a SafeArray.
vector<string>MyFileNameList__ ;
SAFEARRAY*BSTRSafeArray = SafeArrayCreateVector(VT_BSTR, 0, FileNameList__.size());
for (unsigned int index = 0 ; index < FileNameList__.size(); index++)
{
BSTR m_result = MyAnsiCtoBSTRFunct (FileNameList__[indx]) ;
reinterpret_cast<bstr*>(BSTRSafeArray->pvData)[index] = m_result ;
}
then if you want you can push it in a VARIANT struct
VARIANT *MYfileList ;
MYfileList->vt = (VT_BSTR | VT_ARRAY);
MYfileList->parray = const_cast<safearray*>(BSTRSafeArray);
Francesco Mattioli Software Developer francesco.mattioli@cedac.com
|
|
|
|
|
correction
vector<string> bla..bla..bla
|
|
|
|
|
My employer has at last acknowledged the need for COM/DCOM skills within the company
Unfortuantely only to the level of letting me buy a book
Can anyone reccommend a single book for getting started with COM/DCOM. The book needs to be gentle enough to introduce a COM novice, but advanced enough to be a useful reference manual for when I actually start using COM/DCOM.
|
|
|
|
|
Better visit www.wrox.com
I find wrox book on com/dcom very useful
I will recommend u start with the book
Beginning ATL 3 COM Programming by Richard Grimes if u r a C++ programmer
Shahid Munshi
|
|
|
|