Linking DLL

Login to reply to this topic.
Mon, 2005-02-28 17:07
Joined: 2005-02-15
Forum posts: 12
Hi!

I am very new to programming Symbian and I would like to ask your help.

Following the \base\dlls example the dlls are called correctly. But how can I achieve, that the DLL is loaded at startup of a GUI application. For example if I would like to load a dll in the startup of HelloWorldBasic then where sould I put the

RLibaray library
..
.
.
CleanupStack::PushL(myClassinDll);

methods? For example if I put it in the constructor of ...appui.c, then when the
CleanupStack::PushL(myClassinDll) is called, the application hangs up.

Thanks for your reply in advance!

Best regards,
Balint Toth

Tue, 2005-03-01 09:39
Joined: 2004-07-28
Forum posts: 1379
Linking DLL
Ok, first of are you sure you are doing what you intended here?  Are you really trying to demonstrate how to load a DLL at runtime (implicatly)??  Or are you trying to just make your APP use the DLL (explicatly)?

I assume "myClassinDll" is an instance of a class which is defined in the DLL.  How have you actually gone about creating this instance??  Could you put up the code between the two lines.

Also, put up the CPP code and H code for the class in the DLL concerned.

didster

Tue, 2005-03-01 15:34
Joined: 2005-02-15
Forum posts: 12
Linking DLL
Hi Didster!

Thanks for your reply. I realized the problem was that I tried to link a polimorfical dll. I changed it, and now its working fine!:)

Thanks again!

Best regards,
Balint Toth
  • Login to reply to this topic.