Problem importing dll

  • Thread starter Thread starter xleyba
  • Start date Start date
X

xleyba

Hi

I'm new to .Net world.

I need to develope an application for Diva BR ISDN card (CAPI
programming) and I want to make it with C#.

Diva API documentation comes with VBasic Net examples but I imagine I
could tranlate it to C# in an easy way.

Diva instructions said:

-------------
If you are using the .NET Framework SDK, then, in addition to the
above installation and registration steps, you need to create the
'managed wrapper' for the Component API DivaSDK.dll in the form of a
..NET assembly. This is performed simply by running the .NET type
library import utility (tlbimp.exe) against DivaSDK.dll to create the
assembly DIVASDKLib.dll. Note that you may first need to run the batch
file sdkvars.bat (both tlbimp.exe and sdkvars.bat are found in Program
Files\Microsoft.NET\SDK\v1.1\Bin).
-----------

i did all I placed in my code:

using DIVASDKLib;

But at compile time I get the error message:

Class.cs(2,7): error CS0246: The type or namespace name 'DIVASDKLib'
could not
be found (are you missing a using directive or an assembly
reference?)


What I'm doing wrong ? Where is the problem ?

Thanks in advance
javier
 
i did all I placed in my code:

using DIVASDKLib;

But at compile time I get the error message:

Class.cs(2,7): error CS0246: The type or namespace name 'DIVASDKLib'
could not
be found (are you missing a using directive or an assembly
reference?)


What I'm doing wrong ? Where is the problem ?

Don't you need to add a reference to it in your project's References?
 
create a new solution (or one you've already built
after it loads, pull of the solution explorer(view-solution explorer)
then right click on references, add reference...

browse to the DivaSDK.dll add it to your solution.

then at the top of your main form (or whatever class you want to
use the dll in) and put:
using DivaSDK;

DivaSDK may not be what it is.. so check under references(in the solution
explorer) to see what they called it.. it could have a longer name.
and add that next the using statement if it's different.

Hope this helps,

Mike
 
Hi

Thanks for all replys.

I'm using SDK alone with Texpad and command line compiling and I've
solved the problem using /reference option.

Regards

Javier
 
Back
Top