hello!
I could not add the file 'TESCOM.DLL' as a reference "Can not add a reference to the file specified" with VB6 and C #, knowing that this dll was built to run with Windows 95 or Windows NT.
and also I have the source code. c and. h which are the dll but I do not know how to build the dll.
and thank you in advance.
Loading
Sam HobbsPosted Feb 6, 2011, 7:51 PM
Rigane MohamedPosted Feb 6, 2011, 5:23 PM
*** The dll is unmanaged (native c++) :
1. right-click the "project" icon in solution explorer
2. click "Add" -> "Existing Item"
3. browse and select the dll (you will have to change the "file type" combo-box to be able to see it)
4. click the dll in solution explorer
5. in the properties pane change the "Copy to Output Directory" property to "Copy if newer" - to make sure the dll is copied to the debug/release directory upon compilation.
6. to access methods on the dll - you will have to use something like [DllImport("User32.dll")] - see documentation about "DllImport" to learn how to "Marshal" (connect, bridge) native methods and data types into .Net methods and data types.
how I can translate these steps in VB6?
Sam HobbsPosted Feb 5, 2011, 4:16 PM