After doing some more research on interfaces, I think I know what you are suggesting. However, I don't think it will work in my case. The reason being is that my EXE is not initiating the call to the COM component in my DLL. The initial call is coming from my IE toolbar via javascript...
I guess I still don't see how this is going to allow me to invoke a method in my EXE from my DLL. I'll check out some tutorials and then try your code.
Tony
First of all, thanks for all your help on this. I really appreciate it.
I'm getting the following message:
Cannot create an instance of the abstract class or interface 'MyDLL.ifFormField'
Here is my code:
in my DLL
------------------
public interface ifFormField
{
int Test();
}
public int...
Just to clarify, if I had a solution with 2 projects that consisted of my main app (EXE) and a DLL and I wanted the EXE to call a method in my DLL, I would create a reference to the DLL in my main app (EXE). Then I could instantiate an object and call the method.
Is there anyway to do the...
After doing a little more research, it looks like "Register for COM Interop" is only available for Class Libraries (DLL). So, I guess my question is this:
Under the SAME VS .NET Solution, can a method in my DLL call a method in my EXE? I may be making this a lot harder than it really is...
B00gyeMan,
I read those articles. Thanks for the help. However, I still can't get it to work. In the properties of my project the "Register for COM Interop" field is greyed out. Is it possible to register a COM Component in an executable (EXE). The methods that I want to expose to COM are...
In my VS .NET Solution I have two projects. One is the main windows application(EXE) and the other is a COM component(DLL). The com component talks to an IE Toolbar. My problem is that I need the COM component to also talk to the main windows app(EXE). My first crack at this was to have the...
Dan, thanks for the tip. That did work. However, it is kind of slow. I'd really like to figure out why the first solution is giving my the popup warning. Anyone got a clue?
Tony
Hello,
OK, here is my problem. I have written a custom IE toolbar that calls some javascript functions and these functions are in a .js file. First I tried this:
var newscript = document.createElement("script");
newscript.type = "text/javascript";
newscript.src = "c:\\iebar.js"...
Hi David,
I'm having the same problem. Did you ever figure out what was wrong? Could it be the network card driver or the card itself? We have tried 2 different Intel NIC cards. Nothing seems to work.
Thank You,
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.