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 / November 2005

Tip: Looking for answers? Try searching our database.

MIDL and  preservesig and S_FALSE

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tsteinke@gmail.com - 24 Nov 2005 08:18 GMT
I am in a situaion where I have a set of idl files that I am building a
.NET assembly with.
using midl and tlbimp.

The problem that I have is that some of the interfaces return S_FALSE
which I need to detect in my C# program.

I can't modify the the idls and I don't want to do the ildasm/ilasm
thing because if the library changes and needs to be rebuilt there is
an intermediate step where I can lose work.

What I really want id MIDL to put the preservesig on everything. I am
okay with checking the HRESULTS on the C# side. Is there such a thing?

Or maybe I am going about this the wrong way,

any help appreciated
Mattias Sjögren - 24 Nov 2005 19:41 GMT
>What I really want id MIDL to put the preservesig on everything. I am
>okay with checking the HRESULTS on the C# side. Is there such a thing?

No there's nothing like that in IDL, sorry.

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


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.