/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
void Class1::memfun2(data_type2 arg2) {
{
  void *fptr;

  /* to get the address by function name */
  fptr = dlsym(g_sample_dlhandle, "Class1_memfun2_chdl");
  if(fptr == NULL) {
    printf("Error: %s(): dlsym(): %s\n", __class_func__, dlerror());
    return;
  }

  /* to call the chdl function in dynamically loaded 
   library by address */
  dlrunfun(fptr, NULL, memfun2, this, arg2);
  return;
}
