NetTalk Central

Author Topic: Multi DLL setup  (Read 3723 times)

sukhendu

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • Email
Multi DLL setup
« on: April 09, 2012, 12:23:39 PM »
I'm changing a single EXE app (which works) into multiple dll setup.  I've been following the example20. 

Here is my setup:
MainExe.app
wcbs0.app (data dll)
websrv.app
wcbs2.app

When I add wcbs2 in the multi-dll tab of the websrv app's global extension/NTWS, I get bunch of unknown procedure label errors.  The unknown procedures are all defined in wcbs2 and the export flag is ON for all of them.  But if I remove the wcbs2 from the multi-dll tab, the websrv complies fine.  But I get page not found" message on the browser.

TIA,
Sukhendu
NT6.26


kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Multi DLL setup
« Reply #1 on: April 09, 2012, 05:46:36 PM »
Yeah you need to add them all (well just the web ones) to your main exe as external.

Also just a tip, if you add server side code to a "new" embed in a dll you need to recompile your main exe as well otherwise the code never gets called.

sukhendu

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • Email
Re: Multi DLL setup
« Reply #2 on: April 16, 2012, 09:47:57 AM »
Thanks Kevin.

When I define a procedure in the websrv.app, it works.  But if I move that procedure to wcbs2.app, make it export, and make the procedure external in websvr.app I get "No Records found' message.  The multi dll tab on the websvr.app global extension has wcbs2.

What I'm I missing?

Sukhendu

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Multi DLL setup
« Reply #3 on: April 16, 2012, 03:19:24 PM »
You may need to post an example as it's just guess work without seeing how all the parts fit together.

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Re: Multi DLL setup
« Reply #4 on: May 14, 2012, 04:44:50 AM »
Hi,

What is the order of the apps in the Multi-DLL example (there is no solution file)?

Thanks
Charl


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Multi DLL setup
« Reply #5 on: May 15, 2012, 06:47:35 AM »
allfiles is the data dll.
customer contains some web server procedures
webserver contains the web server and web handler procedures
mainexe is the exe.

cheers
Bruce