Creating a vb.net usable dll

I made a dll in c++ (vs 2008) following http://msdn.microsoft.com/en-us/library/ms235636.aspxtutorial , i get the dll file great but when i try to add it as a reference in my vb.net program i get an error that goes something like "please make sure that the file is accessible, and that it is a valid assembly or com component"

what am i doing wrong?
Last edited on
i tried using the dll as an api by adding the dll to the project and declaring it

Private Declare Function useme Lib "test.dll" (ByVal n1 As UInt32, ByVal s1 As String) As Boolean

and got the following error: An attempt was made to load a program with an incorrect format.
Topic archived. No new replies allowed.