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 / September 2003

Tip: Looking for answers? Try searching our database.

P/Invoke Help !!!!!!!!!!!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Santhosh - 05 Sep 2003 10:06 GMT
Hi

I am having problems in accessing a static Library of geomedia engine which
is GIS Package.
they have provided the dll with a Type library which can be referenced in
visual basic 6.0 and works. but to use the same dll in C# when i try the
tlbimp tool on this tlb only the enums are exported and no function
signatures. also when i try to access the functions using the P/Invoke
service i am getting all sorts of errors like "Null reference" and "control
id" not found errors.

when i create a wrapper in vb6 and then access these functions in .net it is
working fine.
how to call these libaries directly. all the functions are decorated and i
also tried using their ordinal positions.

Can u help out ??
Mattias Sj?gren - 06 Sep 2003 16:46 GMT
>Can u help out ??

Maybe. I have a tool that outputs DllImport declarations for module
functions in a typelib. It's not fully working yet, so it's not
publicly available. But if you can send me the typelib(s), I'd be
happy to give it a try and see if it outputs something useful.

Mattias

Signature

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

Santhosh - 08 Sep 2003 05:53 GMT
Hi mattias

Hi please send me your mailid so i can send the typelibs. your mailserver is
rejecting the mail is sent
Santhosh - 09 Sep 2003 06:34 GMT
Hi Mattias

did u check the typelib i sent

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.