|
hi
i'm having troubles debugging an BHO with IE7 and VS 2008
i'm using the BHO from http://www.codeproject.com/KB/cs/Attach_BHO_with_C_.aspx[^]
the application is working fine for me
I searched to how to debug BHO. this is what I found:
"Set your IE home page set to about:blank . That way you can start up the browser as fast as possible and go where you need to. So, start up the first IE window. Then, from VS.NET use the Attach to Process item in the Debug menu to attach to iexplore.exe. Set breakpoints in your BHO. To break within the constructor, just open a second IE window."
I did that but it didnt work for me
it's just ignoring my breakpoints
do you know otherway to debug?
or maybe I'm missing something?
thanks
|
|
|
|
|
I am running into the same issue here, and have tried a few options already. Anyone know how to solve this one?
|
|
|
|
|
Hello,
Even after making all the possible changes in the InstallShield, I am still not able to get the CLSID in the registry while installing a software. What changes do I have to make in the InstallShield to get it done or how to enter CLSID in the registry?
thanks in advance.
Software Developer
Sanjay Khapre
|
|
|
|
|
|
|
Hi,
I have an application which opens doc file in its container but at the same time it creates another doc file on the system. User CUT and Paste this doc any where. I want this to avoid. Either by restricting user to CUT file OR Paste this file.
How to achive this? Pls Help
Thanks
SNI
SNI
|
|
|
|
|
Could it possible to open your document in other Editor like Acrobat Reader (PDF Format). You can solve this problem very easy in PDF. In Word document you can handle this situation by using Macro but its long way.
Thanks
Ali
Ali Zishan
London
|
|
|
|
|
Thanks for your reply but i want the event of CUT for .doc file.
SNI
|
|
|
|
|
Hi,
My Program is supposed to run contineously so i need to concern about memory management with COM.
Here is the scenario,
I created a COM Object using CreateInstance()
using that COM object i am creating another object using QueryInterface.
Here is my question.
1. if i am releasing the first object which i got using CreateInstance, then subsequently the objects which are created using that will be removed from memory right?
Since if i call release for object got using QI causing crash.
But i am fine if i release the first object, but i am afraid this would lead to a memory leak issue.
Kindly Advice!
Thanks in advance
-Ganesha
Thanks a lot
|
|
|
|
|
Unless the second object is aggregated in the COM sense, i.e. it's a server that lives inside another server, thou-shall-not-create-objects-with-QueryInterface!
QueryInterface has a well-defined purpose and functionality: you ask a COM object you already have an interface to for another interface, the object returns that interface if it implements it and fails with E_NOINTERFACE if it does not implement the requested interface.
If such functionality is desired you should create an interface function that clearly says it will create another COM object.
ganesa moorthy wrote: if i am releasing the first object which i got using CreateInstance, then subsequently the objects which are created using that will be removed from memory right?
Not if the object still has clients, i.e. it's reference count has not reached zero.
It looks to me as you two objects are too tightly connected.
If you make them available in the same server (COM object) but perhaps reachable from different interfaces, you can use QueryInterface correctly.
Another alternative is to make the two objects less connected and actually have two different COM objects.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Dear All
I have very simple question what is difference between COM and COM+
What are the uses of these both technologies
Thanx in advance
Sajjad
|
|
|
|
|
I think asking Google will be useless [^], in you case.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi,
COM+ is a refined version of COM. COM+ also supply a number of service to component running under Windows, including
1. Role-based security
2. Object pooling and reusability
3. Queued components for asynchronuous calls
4. Transaction processing
5. A publish-and-subscribe events model
Ali Zishan
London
|
|
|
|
|
Hi,
Basically COM+ = COM + MTS (microsoft tranaction server).
COM+ is built using Aspect Oriented Design.
Aspect oriented design are like some aspects(security, pooling etc) that you can use from the framework and not required to progrm by yourself.
this is what COM+ provides once you create a COM+ application and register you componet with that.
^-^
@|@
- redCat
|
|
|
|
|
Hi,
I am having a COM Component and i am accessing the com using VB client.
In Com function i am using SysFreeString, i am calling a function inside COM DLL by passing a string argument from vbclient.
After usage i am calling SysFreeString inside the com function.
The above mentioned functionality works on several machines and fails(VB client crashes) in one machine.
I removed the SysFreeString function call from the failing machine, and now it is fine.
Can anyone tell why this happens so strangely ? Anyway we need to call SysFreeString to free up the memory.
Kindly guide me!
Advanced Thanks,
Ganesha
Thanks a lot
|
|
|
|
|
Hi,
I can't say why one machine behaves differently, in fact I would say if you can fix the code so it works on all machines you don't need to know.
All my VB -> COM was done in Visual Studio 6 and used IDL rather than attribute based which yours may be but the issues should be the same. What IDL attributes are applied to the string being passed, an [in] or [in,out] or possible [retval]?
As you are freeing the string in the .dll, I'm assuming its an [in]?
|
|
|
|
|
Hi,
[in], [out], and sometime [out,retval]
Advanced Thanks!!!!
Thanks a lot
|
|
|
|
|
That seems right, I think VB passes strings by reference so it has to be [in,out]. As there is an out] part, VB expects a string to be passed back (out) and is probably deleting this according to some garbage collections algorithm - but you've already done it in the dll. I think not deleting it in the .dll is OK here - you would only do this if it were an [in]. You could delete it in the dll but only is you then assign a new string to it for the [out] part - it's this [out] part that VB is expecting and deleting.
|
|
|
|
|
After deallocating with sysfreestring, are you providing a new value with sysallocstring ?
|
|
|
|
|
As a part of my project I would like to develop an activex control, whose functionality should be similar to passing vlc.exe(exe file of the vlc player) and the name of a encoded video stream as inputs to the command line. Please provide me with any links to a similar project.
Thanks in advance
|
|
|
|
|
I am currently trying to learn the basics of Interoperation in .NET. As a step towards that goal I would like to create my own COM DLLs to be imported and used in managed code.
I would like to know a way to get COM DLLs as output in VB or C++ with free tools. Any recommendations?
|
|
|
|
|
I hope you have a sense of humor,...
You can do this in Assembly Language (and, it's insanely fun). OK, I'm torturing you,...it's a pain in the ass (but, definately possible).
I would recommend Visual Studio (because it has a number of great Interoperability Tools, and comes with the latest NET Framework). The Standard Edition is somewhere between $100 and $150. If you plan to do alot of COM, it's a good investment.
|
|
|
|
|
I have defined a struct type in IDL as follows
typedef struct tData
{
int i;
int j;
tData()
{
i = 0; j = 0;
}
}MyData;
Getting error as follows.
error MIDL2025 : syntax error : expecting a type specification near "tData".
|
|
|
|
|
Hi,
I am having a COM DLL which is working fine in three Windows 2003 installed machines.
But Fails in another machine which has same windows 2003.
What could be the possible cause of this ?
Advanced Thanks ,
Ganesamoorthy
Thanks a lot
|
|
|
|
|
Is it possible to get the write speeds supported by a drive (media device) using IMAPI interfaces. I have tried with the "get_SupportedWriteSpeeds" and "get_SupportedWriteSpeedDescriptors" API's of "IDiscFormat2Data" inteface. But both of them returns speeds specific to a media (CDR / DVD-R etc) inserted.
SKMukherjee
|
|
|
|