Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. Using a DLL in VS with VB - Help ! [modified]

Using a DLL in VS with VB - Help ! [modified]

Scheduled Pinned Locked Moved Visual Studio
visual-studiohelptutorialcsharp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rfrank5356
    wrote on last edited by
    #1

    I have a canon sdk – my VB program has the following code (which I extracted from a Canon sample program and which works in their really complex example) . . . I refuse to tell you how long it took me to get here :) Public Declare Function EdsGetPropertySize Lib "EDSDK" ( _ ByVal inRef As IntPtr, _ ByVal inPropertyID As Integer, _ ByVal inParam As Integer, _ ByRef outDataType As EdsDataType, _ ByRef outSize As Integer) As Integer This does not generate an error in Visual Studio = However the following set of statements (on the next line) Public Declare Function EdsGetPropertyDesc Lib "EDSDK" ( _ ByVal inRef As IntPtr, _ ByVal inPropertyID As Integer, _ ByRef outPropertyDesc As EdsPropertyDesc) As Integer Generates an error EdsPropertyDesc is not defined I suspect this is VS operator error (ME) – I must not understand how to import all of the methods from a DLL – and the msdn library is not helpful When I try to put in a new Declare function - the autocomplete has a few of the methods from within "EDSDK" but not all . . .I have tried to open the edsdk.dll from the object browser - I can see the file, but when I select add the file appears i the lower select list but when I hit the OK button I get an error "The following Components could not be browsed" -- modified at 14:00 Tuesday 30th January, 2007

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups