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


AddThis Social Bookmark Button
  Creating a Windows DLL with Visual Basic
Subject:   How can I return Strings?
Date:   2005-07-27 13:11:34
From:   teschste
Response to: How can I return Strings?

Well, now that I have all of that working great, I have a new problem.

When I try to Raise an error in my DLL, it fails. Specifically, the calling program receives a run-time error zero, with no other information.

I've tried using both of the following methods without success:

Err.Raise Number:=vbObjectError + lMyError, Source:="Test Source", Description:="Test Description"
SetErrorInfo "Test Description", vbObjectError + lMyError, 0, "0", "Test Source"
I even tried wrapping the string values in StrConv as used to solve the previous problems but no luck there either.

Any help on how I can raise a real error from a DLL compiled this way would be appreciated.

Steve Tesch

1 to 1 of 1
  1. How can I return Strings?
    2006-04-14 08:58:40  darkoverlordofdata [View]

    • How can I return Strings?
      2008-10-28 03:57:31  CEStudio [View]

1 to 1 of 1