dbTalk Databases Forums  

how to create a reference to a DLL which does not have a separate.tib type library file

comp.databases.ms-access comp.databases.ms-access


Discuss how to create a reference to a DLL which does not have a separate.tib type library file in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
The Frog
 
Posts: n/a

Default Re: how to create a reference to a DLL which does not have a separate.tib type library file - 05-13-2011 , 04:58 AM






Bob, with any .Net DLL you need to create a COM wrapper for it to let
it be seen by COM based applications. AFAIK this is not a difficult
task, but it does need to be done in Visual Studio. I was always of
the belief that it could be done with the Express versions. So maybe
with VB Express or C# Express you can create a COM wrapper. You might
need to dig through the net a bit and find a custom made project type
that eases the creation process. I did this years ago for creating a
service in VB Express as there was not a project already there for it.
I am sure there will be one around. From memory it was simply a
wrapper class that exposed COM methods and properties for each of
the .Net methods and properties and that was it.

Cheers

The Frog

Reply With Quote
  #12  
Old   
The Frog
 
Posts: n/a

Default Re: how to create a reference to a DLL which does not have a separate.tib type library file - 05-13-2011 , 05:09 AM






Bob, I think I have the answer for you. See this article:
http://support.microsoft.com/default...b;en-us;317535
This is the clearest explanation I have seen on the topic. It seems
like it is only a compiler option when building the class DLL.

Cheers

The Frog

Reply With Quote
  #13  
Old   
BobAlston
 
Posts: n/a

Default Re: how to create a reference to a DLL which does not have a separate.tib type library file - 05-13-2011 , 09:37 AM



On 5/13/2011 5:09 AM, The Frog wrote:
Quote:
Bob, I think I have the answer for you. See this article:
http://support.microsoft.com/default...b;en-us;317535
This is the clearest explanation I have seen on the topic. It seems
like it is only a compiler option when building the class DLL.

Cheers

The Frog
Thank you Mr. Frog.

bob

Reply With Quote
  #14  
Old   
Tony Toews
 
Posts: n/a

Default Re: how to create a reference to a DLL which does not have a separate .tib type library file - 05-13-2011 , 02:09 PM



On Thu, 12 May 2011 21:44:25 -0500, BobAlston <bobalston9 (AT) yahoo (DOT) com>
wrote:

Quote:
But did you try using it in your code without a reference?

Tony
I don't know how to create a reference to the proxy server method and
the three structures defined in the proxy. Can you help and tell me how
to do that?
I don't have a clue when it comes to .Net stuff. I see The Frog has
posted what looks to be a very good source of info.

I mentioned Lebans code because all he needs is the following code to
use his DLL.

Public Declare Function ConvertUncompressedSnapshot Lib
"StrStorage.dll" _
(ByVal UnCompressedSnapShotName As String, _
ByVal OutputPDFname As String, _
Optional ByVal CompressionLevel As Long = 0, _
Optional ByVal PasswordOpen As String = "", _
Optional ByVal PasswordOwner As String = "", _
Optional ByVal PasswordRestrictions As Long = 0, _
Optional ByVal PDFNoFontEmbedding As Long = 0, _
Optional ByVal PDFUnicodeFlags As Long = 0 _
) As Boolean

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a convenient utility to keep your users FEs and other files
updated see http://www.autofeupdater.com/

Reply With Quote
  #15  
Old   
David-W-Fenton
 
Posts: n/a

Default Re: how to create a reference to a DLL which does not have a separate .tib type library file - 05-13-2011 , 02:27 PM



Tony Toews <ttoews (AT) telusplanet (DOT) net> wrote in
news:d60rs6586nin0lpomlmmkrv3mq65q7u2f3 (AT) 4ax (DOT) com:

Quote:
I mentioned Lebans code because all he needs is the following code
to use his DLL.

Public Declare Function ConvertUncompressedSnapshot Lib
"StrStorage.dll" _
(ByVal UnCompressedSnapShotName As String, _
ByVal OutputPDFname As String, _
Optional ByVal CompressionLevel As Long = 0, _
Optional ByVal PasswordOpen As String = "", _
Optional ByVal PasswordOwner As String = "", _
Optional ByVal PasswordRestrictions As Long = 0, _
Optional ByVal PDFNoFontEmbedding As Long = 0, _
Optional ByVal PDFUnicodeFlags As Long = 0 _
) As Boolean
Exactly. You declare it just like you do Windows APIs, with a
function for each function provided by the DLL.

--
David W. Fenton http://www.dfenton.com/
contact via website only http://www.dfenton.com/DFA/

Reply With Quote
  #16  
Old   
BobAlston
 
Posts: n/a

Default Re: how to create a reference to a DLL which does not have a separate.tib type library file - 05-13-2011 , 04:36 PM



On 5/13/2011 2:09 PM, Tony Toews wrote:
Quote:
On Thu, 12 May 2011 21:44:25 -0500, BobAlston<bobalston9 (AT) yahoo (DOT) com
wrote:

But did you try using it in your code without a reference?

Tony
I don't know how to create a reference to the proxy server method and
the three structures defined in the proxy. Can you help and tell me how
to do that?

I don't have a clue when it comes to .Net stuff. I see The Frog has
posted what looks to be a very good source of info.

I mentioned Lebans code because all he needs is the following code to
use his DLL.

Public Declare Function ConvertUncompressedSnapshot Lib
"StrStorage.dll" _
(ByVal UnCompressedSnapShotName As String, _
ByVal OutputPDFname As String, _
Optional ByVal CompressionLevel As Long = 0, _
Optional ByVal PasswordOpen As String = "", _
Optional ByVal PasswordOwner As String = "", _
Optional ByVal PasswordRestrictions As Long = 0, _
Optional ByVal PDFNoFontEmbedding As Long = 0, _
Optional ByVal PDFUnicodeFlags As Long = 0 _
) As Boolean

Tony
Yea, tried that approach. Didn't work. also it only works for
functions e.g. methods in .Net and I need access to structures as well.

bob

Reply With Quote
  #17  
Old   
The Frog
 
Posts: n/a

Default Re: how to create a reference to a DLL which does not have a separate.tib type library file - 05-18-2011 , 07:19 AM



Hi Bob,

Did you get this going?

The Frog

Reply With Quote
  #18  
Old   
BobAlston
 
Posts: n/a

Default Re: how to create a reference to a DLL which does not have a separate.tib type library file - 05-18-2011 , 07:46 AM



On 5/18/2011 7:19 AM, The Frog wrote:
Quote:
Hi Bob,

Did you get this going?

The Frog
Nope. I can do it with Visual Studio - which is expensive - but I
really wanted to do it with free stuff.

Bob

Reply With Quote
  #19  
Old   
The Frog
 
Posts: n/a

Default Re: how to create a reference to a DLL which does not have a separate.tib type library file - 05-19-2011 , 12:55 PM



Hi Bob,

Does that mean that the Express versions dont support the necessary
compiler options to achieve this? Can you post the .Net code to me, or
email it to me at the address I use for this NG? I'll see if I can
find a way around the problem.

The Frog

Reply With Quote
  #20  
Old   
The Frog
 
Posts: n/a

Default Re: how to create a reference to a DLL which does not have a separate.tib type library file - 06-09-2011 , 04:02 AM



Hi Bob,

I have had a small brainwave about this topic. I am not sure if it
will work or not, but might be worth a try just the same. Perhaps
instead of needing Visual Studio (not the express versions) you could
try and use Mono (the open source development version). There is the
ability to build and compile .Net code with a Mono IDE (such as
Eclipse perhaps?). It might be worth a look since all you want to do
is compile the thing with a few options set.

Just a thought

The Frog

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.