开发学院手机开发Symbian 开发 Dynamic link library for Symbian 阅读

Dynamic link library for Symbian

 2010-04-20 16:02:00 来源:WEB开发网   
核心提示:TInt RMyLoadLibrary::LoadLibrary(const TDesC &aFileName,const TDesC &aPath){if (NULL == iLibrary){iLibrary = new RLibrary();}if (iLibrary){return (iLibrary->

TInt RMyLoadLibrary::LoadLibrary(const TDesC &aFileName,const TDesC &aPath)

{

if (NULL == iLibrary)

{

iLibrary = new RLibrary();

}

if (iLibrary)

{

return (iLibrary->Load(aFileName,aPath));

}

else

{

return KErrNoMemory;

}

return KErrUnknown;

}

void RMyLoadLibrary::ReleaseLibrary()

{//Must not call DrawNow After call ReleaseLibrary.

if (iLibrary)

{

iLibrary->Close();

delete iLibrary;

iLibrary = NULL;

}

}

TLibraryFunction RMyLoadLibrary::GetFunctionAdrr(TInt aFunctionIndex)

{

return (iLibrary->Lookup(aFunctionIndex));

}

///////////////////////////////////////////////////////

上一页  1 2 

Tags:Dynamic link library

编辑录入:coldstar [复制链接] [打 印]
[]
  • 好
  • 好的评价 如果觉得好,就请您
      0%(0)
  • 差
  • 差的评价 如果觉得差,就请您
      0%(0)
赞助商链接