|
Heya,
check out the "COMAdmin.COMAdminCatalog" object (there is a similar for MTS)
/WW
ex:
Set oCatalog = CreateObject("COMAdmin.COMAdminCatalog")
oCatalog.RefreshComponents
' Register the component (overwrites existing)
Call oCatalog.InstallComponent("MyApplication","MyDLL.dll","","")
|
|
|
|
|
I have a scripted process for releasing dlls and files into different environments(dev,qa,production) I will send it to you in full and get you up and running if you can help me with my post
http://www.codeproject.com/script/comments/forums.asp?forumid=1647&select=114120&tid=114120#xx114120xx
|
|
|
|
|
Hi all,
I know this is probably a stupidly simple question but if anyone can give me an answer or point me to a tutorial I'd appreciate it.
I have created a COM object that plays animation files. What I need to be able to so is talk to the object from the server to play the next frame etc.
How do I reference the COM object so I can use one of it's methods?
Am I looking at this all wrong?
Cheers for the help.
James.
|
|
|
|
|
1.import your dll into your project(you can do it in stdafx.h):
#import"F:\ProjectVC++\ComTest0\Debug\ComTest0.dll" no_namespace
2.compile stdafx.cpp,then put two file with .tli,.tlh in your "DLL" directory
3. CoInitialize(NULL);
{
ITestComPtr pTest;
HRESULT hr=pTest.CreateInstance(__uuidof(TestCom));
if(SUCCEEDED(hr))
{
pTest->....
}
}
::CoUninitialize();
I hope it was clear for you
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
I forgot to say one point,the name of my interface is ITestCom,but when I want refrence pointer to it I HAVE TO add "Ptr" to the name of it,clear?good
of cource this is one and,and you can find another ways to refrence COM object
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
Again please forgive me for my bad memory,you can check COM/ATL part of codeproject,therre are some tutorials to help you
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
There is other way of communicating with the component.
Let
Component:CMyComponent.
Interface:IMyInterface.
Now the code goes trhis way(inside the main if client is console else other suitable function.)
************************************************************
CoInitialize(NULL);
HRESULT hr=CoCreateInstance(CLSID_CMyComponent,NULL,CLSCTX_LOCAL_SERVER/*Depends*/,IID_IMyInterface,(void**)&pMyInterface); //pMyInterface is a
pointer to interface.
pMyInterface->....
CoUninitialize();
************************************************************
Let me know if u understood.
Regards,
Y.Yamini Devi.
|
|
|
|
|
How do I read this?
does (118) mean the line? cause i've looked and it just wasnt what it would seem to be.
Data: < GET > 01 00 00 00 03 00 00 00 03 00 00 00 47 45 54 00
strcore.cpp(118) : {3409} normal block at 0x0760B628, 28 bytes long.
Data: < /gue> 01 00 00 00 0F 00 00 00 0F 00 00 00 2F 67 75 65
strcore.cpp(118) : {3408} normal block at 0x0760B5C0, 30 bytes long.
Any help get a big Thank You!
~Timothy T. Rymer
www.digipen.edu
tim.xpertz.com
|
|
|
|
|
Is this a dump of memory leaks? If so, read on...
118 is the line in strcore.cpp where the memory-leaking block was allocated. The best way to track down these bugs (without BoundsChecker or similar) is using _crtBreakAlloc in the VC++ debugger.
Search MSDN for "HOWTO: Use _crtBreakAlloc to Debug a Memory Allocation" for more info, but basically you start the debugger, set _crtBreakAlloc to equal the second number (3409 or 3408) in the lines above, and then run. When the memory that is leaking is allocated, the debugger will break and show you where.
Good luck.
------------------------
Derek Waters
derek@lj-oz.com
|
|
|
|
|
sweet thanks i'll try it - it looks like that'll work
~Timothy T. Rymer
www.digipen.edu
tim.xpertz.com
|
|
|
|
|
Hello everybody,
i have heard a lot about callbacks but i can't find any simple example (without MFC in it) on the internet to get started. i'm using MSVC++ 5.0 and the ATL wizard.
please help if know a place to find a tutorial or something.
THX
|
|
|
|
|
I'm looking for the same thing but I dont'find it.There are some resource in codeproject but they are MFC resources
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
try use com+ events instead
any help with
http://www.codeproject.com/script/comments/forums.asp?forumid=1647&select=114120&tid=114120#xx114120xx
|
|
|
|
|
My client is written in Visual Basic and my server is an ATL DLL written in VIsual C++. Why the dialog does not get displayed?
Thank you in advance for your help.
Paradise is where I am.
Voltaire
|
|
|
|
|
I think we're going to need a bit more information than that...
|
|
|
|
|
Exception (kernel32.dll): 0xC000008F: Float Inexact Result
Any clues to what this is?
I'm creating some threads & using MFC Wininet APIs, but this would happen before i switched to MFC Wininet APIs too!
The thing is, i'm not doing any division, multiplication, or declaring any floats!
Any help is "way" appreciated.. thanks!
~Timothy T. Rymer
www.digipen.edu
tim.xpertz.com
|
|
|
|
|
The exception code is a standard code when using a VB6 component within a process. However, all those exceptions should be handled and not fall into MFC. Andy idea if a VB6 component is loaded into the process?
|
|
|
|
|
Hello,
I have the following problem:
I'm saving and reading certain types of SafeArrays. Until now I relied among other things to SafeArrayGetVarType. I tested things with SafeArrayCreateVector and everything worked fine. Now, few months later I begin to get safeArrays created with SafeArrayCreateVector that don't have FADF_HAVEVARTYPE set (Feature flag is 0x2000). I have some hints that something updated my OLEAUT32.dll but I don't know what. I tried to use both SafeArrayCreate and SafeArrayCreateVectorEx, and with them I get feature flag that has only FADF_HAVEVARTYPE set - as it used to be - with one discrepancy from MSDN documentation. MSDN says (SafeArrayCreateVectorEx): "The FADF_HAVEIID can be set for VT_DISPATCH or VT_UNKNOWN and FADF_HAVEVARTYPE can be set for all other types."
But when I try to add FADF_HAVEVARTYPE to vt parameter of SACreateVectorEx the array isn't created at all - if I leave vt as it was array is created and has the correct vartype set.
Does anybody know which version of OLEAUT32.dll changed behaviour of SACreateVector? And what can I do without requesting that all of my clients use SACreateVectorEx or SACreate instead of SACreateVector?
|
|
|
|
|
I created an ATL project and inserted into it a Composite Control Object.
It works fine , but need to read some info from the browser specified in the
OBJECT tag
<object>
...
...
<param name="MyValue" value="123" />
How I read the MyValue from my ATL Composite Control?
xxx
|
|
|
|
|
I created an ATL project and inserted into it a Composite Control Object.
It works fine , but need to read some info from the browser specified in the
OBJECT tag
<object>
...
...
<param name="MyValue" value="123"
<="" object="" />
How I read the MyValue from my ATL Composite Control?
xxx
|
|
|
|
|
in a COM object,the class implement some interface can have
a destruct function?
when the destruct fuction is executed?
|
|
|
|
|
Yes it can. The destructor is called when you delete the object - if you use "new / delete" operators for dynamic allocated objects or when the object goes out of scope, for local objects.For example if you implement "Release" from IUnknown like this :
ULONG MyObject::Release()
{
if( -- m_dwCount == 0 )
{
delete this; //here
}
return m_dwCount;
}
the destructor will be called at "delete this".
|
|
|
|
|
Has anyone ever used IHTMLBrowser (and everything underneath it like IHTMLDocument2 etc etc
I'm trying to strip out href's etc from a webpage... but i cant seem to get past the part of getting the elements out of an IHTMLElementCollection!!!
any help?
(i've found some stuff... but only to get the IHTMLElementCollection - so far anyways, i'm still looking)
~Timothy T. Rymer
www.digipen.edu
tim.xpertz.com
|
|
|
|
|
This help?
<br />
CComPtr<IDispatch> pDisp;<br />
if( SUCCEEDED(m_pBody->get_all(&pDisp)) && pDisp)<br />
{<br />
CComQIPtr<IHTMLElementCollection> pColl(pDisp);<br />
if(pColl)<br />
{<br />
long lCount;<br />
if( SUCCEEDED(pColl->get_length(&lCount)) && lCount > 0 )<br />
{<br />
pDisp.Release();<br />
CComVariant varName, varIndex(lCount);<br />
pColl->item(varName, varIndex, &pDisp);<br />
<br />
CComQIPtr<IHTMLElement> pElement(pDisp);<br />
if(pElement)<br />
pElement->insertAdjacentHTML(A2OLE("beforeEnd"), A2OLE(strElement));<br />
}<br />
}<br />
}<br />
|
|
|
|
|
Ok, here's the weird thing, I CANNOT EVER get anything back from IHTMLLinkElement or IHTMLAnchorElement when i need it to.
I get:
IHTMLDocument2, in which i call "get_links" to give me
IHTMLElementCollection, which in turn, gives me NOTHING.
I'm using http://www.yahoo.com cuz we know there's about a gajillion links right there, but if i try to pick up all the tags from get_body, i'll only get back like 15 (or 11 when i tried using the CComPtr's instead...)
If anyone knows of a tutorial, or anything like that, let me know! or any article on codeproject.com - i found something on codeguru.com, but it just wasnt what i needed.
i am STUCK.
~Timothy T. Rymer
http://www.digipen.edu
http://tim.xpertz.com
http://www.ttrx.com (index is UP!)
|
|
|
|