WEB开发网
开发学院手机开发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 [复制链接] [打 印]
赞助商链接