Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Changing COM interface hangs Borland C++ compiler.

Changing COM interface hangs Borland C++ compiler.

Changing COM interface hangs Borland C++ compiler.


I have a C++ app written using C++ Builder 6. I have a .NET (C-sharp) application that is called from the C++ app using COM. Everything works until I change the parameters of the .NET method. This is what I do:

- Unregister the .DLL and .TLB files using regasm /u
- Change the .NET code. Only the method call changes, i.e. I added a parameter, e.g. public void Method(int x) becomes public void Method(int x, int y)
- In .NET increase the version number of the COM project.
- Rebuild the .NET code.
- Copy the .DLL and .TLB files to the Builder C++ source code folder.
- Run regasm on the .DLL and .TLB files.
- Open the Builder project.
- Remove the old TLB wrapper files (.h and .cpp) from the Builder project.
- Delete the old TLB wrapper files (.h and .cpp) from the folder.
- Import type libraries in builder. I can see that the version number has changed.
- Make all projects.
- I see the TLB wrapper being built.
- The compiler moves to the next file and hangs.

- If I comment the #include for the type library wrapper the compile works. Simply including the wrapper .h file causes the compile to hang.  
- If I do not change the .NET method interface and only change the code inside the .NET method, I can rebuild the builder project.
- If a create a new builder project and then import the new type library the project builds.

How can I get Builder to rebuild the project when the interface of a method called via COM changes ?
Has anybody had a similiar problem ?

Kind regards

Robert Hartleb


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close