471,348 Members | 1,357 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

Creating COMs from vs2003 vs. 2008

Hi, everybody
I got a problem producing C# COM projects with vs2008.
COM project created and compiled with VS2003 works fine with all kinds of
early and late binding in Office2002, vbscript (only late of course) etc.

Compiling exactly the same project with VS2008 (checkboxes for register and
make visible COM both checked) will apparently install the project properly
(comparing reg entries). The methods of the project can subsequently called
via vbscript w/o any problem. However, calling then via VBA (late and early
binding) will lead always to automation error (-2147024894). Note: the
object browser of the Office apps shows the COM project and its methods
alright!
When compiling the project in VS2008 I get several warnings like (translated
from German) "Interface IOleCommandTargetArgument is marked as [dual] but
not derived from IDispatch.It will be converted to an IUnknown derived
interface."

I tried all kinds of mods to the code and setup w/o any success.

Maybe somebody has an idea how to solve this or has stumbled over the same
problem.

Many thanks for yor help

PS: Have tried to get an answer to this problem via the group
ms.pub.de.german.entwickler.dotnet.csharp earlier w/o any reply
Jun 27 '08 #1
0 862

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by William Ryan | last post: by
reply views Thread by Ludovic Launer | last post: by
3 posts views Thread by John Devlon | last post: by
2 posts views Thread by PawelSokolowski | last post: by
reply views Thread by david wright | last post: by
1 post views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.