Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / January 2007

Tip: Looking for answers? Try searching our database.

Intellisense in VC6 from C# tlb

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
escristian@gmail.com - 23 Jan 2007 16:35 GMT
I have a project written in C#, which I then create a TLB from. In VC6
I import this .tlb which in turns generates a tlh file. Intellisense
gets it's information from this .thl file ( I tested it).

The only problem is that in the method declarations it always puts
pRetVal as the name of the arguments that set the properties in C#.
i.e:
void PutAbsolutePosition (DATE pRetVal );

Is there any way to change this so it will have a more meaningful name?

for example void PutAbsolutePosition (DATE position);
even PutAbsolutePosition (DATE value); would be fine

In my C# solution I also have a C++ project that implements this
interface and I changed the name of the arguments in that
implementation, but this doesn't change the original interface
declaration (in C# using properties) which in turn creates the TLB file
that everything is generated from.

Thanks
Cholo Lennon - 25 Jan 2007 04:30 GMT
Names are based in TLB information (use OleViewer to check it) so:

1- You must change that information (if you have access to TLB source code (IDL file))
2- Or you can use  the 'rename' attribute of #import directive:

   #import "your_com.dll" rename("pRetVal", "position")

Regards

--
Cholo Lennon
Bs.As.
ARG

>I have a project written in C#, which I then create a TLB from. In VC6
> I import this .tlb which in turns generates a tlh file. Intellisense
[quoted text clipped - 17 lines]
>
> Thanks

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.