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 Basic
  4. vb - loading dlls

vb - loading dlls

Scheduled Pinned Locked Moved Visual Basic
c++mysqljsonhelp
2 Posts 2 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.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    Well I have to edit an exsisting program that was written in vb6. One of the things that I am doing is adding mysql support to the program, which is in vb. There is no vb api for mysql so I had to write some dlls in c++ to handle mysql for the program. My problem now is that the program cannot find the dlls. Although they are in the same folder, and im sure I am calling them properly. Here is how im calling a function from one of my dlls in vb: Declare Function writeInfo Lib "RideMySql.dll" (ByRef Param1 As String, ByVal Param2 As Integer, ByVal Param3 As Double, ByVal Param4 As Double, ByRef Param5 As String) As Integer The corresponding funcion in c++ is prototyped as: int __declspec(dllexport) CALLBACK writeInfo(char* param1, int param2, double param3, double param4, char* param5); Thanks in advance.

    N 1 Reply Last reply
    0
    • A Anonymous

      Well I have to edit an exsisting program that was written in vb6. One of the things that I am doing is adding mysql support to the program, which is in vb. There is no vb api for mysql so I had to write some dlls in c++ to handle mysql for the program. My problem now is that the program cannot find the dlls. Although they are in the same folder, and im sure I am calling them properly. Here is how im calling a function from one of my dlls in vb: Declare Function writeInfo Lib "RideMySql.dll" (ByRef Param1 As String, ByVal Param2 As Integer, ByVal Param3 As Double, ByVal Param4 As Double, ByRef Param5 As String) As Integer The corresponding funcion in c++ is prototyped as: int __declspec(dllexport) CALLBACK writeInfo(char* param1, int param2, double param3, double param4, char* param5); Thanks in advance.

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      Have you included a .def file within the C++ project? This allows VB to talk to the C++ .dll. Nick Parker


      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