Calling Methods in Sibling Class Module



I have a VB component that has two class modules, one for reading/displaying
data "read", and one for writing data "write" (transactional), and they are
both in the same DLL. When executing a "write" method, I want to return a
string generated by "read" method. When I tried to call the read method
within the write class using the object, I got an error saying I couldn't.
Somehow I figured out that if I add a .bas module with the line "Public
ReadFunctions As New Read" I can call the function in the "sibling" class
such as ReadFunctions.method.

Is this the proper way to do this? Are there better methods? I'm a little
worried about a Public variable in a bas module (from things I read about
threading????)

Thanks.


.



Relevant Pages

  • Re: how to architect logging facility
    ... log file during program run. ... Would you put the function in a bas module and then include that in every ... Public Property Let LogFileName (name as string) ... If the exe creates a dll, the classes in the dll won't see the bas file in ...
    (microsoft.public.vb.general.discussion)
  • Re: Passing info between a DLL and an app
    ... problems executing dlls in Delphi. ... dll execution problems. ... RiseOrSetSw, passmmddyyyy: string): string; ... hDll: THandle; ...
    (alt.comp.lang.borland-delphi)
  • Re: Passing info between a DLL and an app
    ... problems executing dlls in Delphi. ... dll execution problems. ... RiseOrSetSw, passmmddyyyy: string): string; ... hDll: THandle; ...
    (alt.comp.lang.borland-delphi)
  • Help DLL calling in Excel 2007 crashes
    ... functions calls a function in a DLL and when that DLL function returns, ... VBA continues executing by starting the same VBA function over. ... ByRef szCompany As String, ByRef szCode As String) As Long ...
    (microsoft.public.excel.programming)
  • Re: Calling Methods in Sibling Class Module
    ... > I have a VB component that has two class modules, ... > both in the same DLL. ... When executing a "write" method, ... > worried about a Public variable in a bas module (from things I read about ...
    (microsoft.public.vb.com)

Loading