I have a simple DLL written in C that accesses a binary database. I am writing a VB.NET front-end that is suppose to get to the database via the DLL. (I do have source of the DLL and the database layout). I have quite a few years programming experience in C and VB 6 but almost no experience in VB.NET.
The DLL is EnviroDll.dll
I have been unable to get VB.NET to like my function declaration:
Public Declare Function EnviroOpen Lib "EnviroDll.dll" Alias "_EnviroOpen@4" (ByVal fileName As String) As Long
I realize that I have to watch out for the size of types, which I will worry about next.
1) What do I have to set up to make a VC DLL work within VB.NET?
2) Do I have to add EnviroDll.dll as a Reference or as an Import somewhere in the Projects properties or source file?
3) What is the correct format for the "Public Declare"?
(I've tried lots of combinations and looked at other code but still couldn't come up with a correct combination)
This article explains how to create and use a custom WaterMark textbox class. The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.
IMAGE OF WATERMARKS
Create VB …
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place!
Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…