Visual Basic and C++ Library Communication

Visual Basic and C++ Library Communication

Page 1 of 1

1 Replies - 2577 Views - Last Post: 31 October 2009 - 02:17 PM Rate Topic: -----

#1 (none)  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 76
  • Joined: 30-September 09

Visual Basic and C++ Library Communication

Posted 31 October 2009 - 11:29 AM

Hi.

I have a C++ Dynamic LIbrary (DLL) and a VB application, I would like communication between the two within a single thread.

I don't know if I can preform this.

Although I can use SendMessage to send to the Visual Basic application I cannot directly reply to this and again I do not know how.

Can you help?

(none)
Is This A Good Question/Topic? 0
  • +

Replies To: Visual Basic and C++ Library Communication

#2 raziel_  Icon User is offline

  • Like a lollipop
  • member icon

Reputation: 464
  • View blog
  • Posts: 4,255
  • Joined: 25-March 09

Re: Visual Basic and C++ Library Communication

Posted 31 October 2009 - 02:17 PM

here is an example it is taken from api viewer:

Public Declare Function MAPILogon Lib "MAPI32.DLL" (ByVal UIParam&, ByVal User$, ByVal Password$, ByVal Flags&, ByVal Reserved&, Session&) As Long


so you have to declare the function name Library and the variables you use to send the date and the type of result the function return.

good luck dude :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1