ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Creating a Windows DLL with Visual Basic
Subject:   Fully functional VB6 API dll's - with Forms
Date:   2006-05-22 08:42:19
From:   bill.h
Response to: Fully functional VB6 API dll's - with Forms

I am trying to develop a vb6.0 dll that can be called from various programs, such as C and powerbuilder.


I was able to get this to work when the client prog is a vb 6.0, however, it doesn't work from the other two sources. I got a "memory could not be read" error.


I've tried creating a function with no args and still get the same error. My function has been created as follows:


Public Function aa2() As Long
aa2 = 100
End Function


Is there anything special I need to do on the C or powerbuilder side?


thanks,


Bill
Los Angeles, CA




1 to 2 of 2
  1. Fully functional VB6 API dll's - with Forms
    2007-05-01 09:12:36  zzz123 [View]

    • Fully functional VB6 API dll's - with Forms
      2009-01-28 04:23:19  GopiGrowlogic [View]

  2. Fully functional VB6 API dll's - with Forms
    2007-05-01 05:55:36  zzz123 [View]

1 to 2 of 2