Link to home
Start Free TrialLog in
Avatar of tanmh
tanmh

asked on

Can DLL work with static lib?

hi,
I have the following scenario:
1) a VB application for GUI
2) a C++ DLL to provide callbacks for the VB application
this DLL needs to call functions from a static library.

can this be achieved? I got core dump at the static library functions.

thanks
andrea
ASKER CERTIFIED SOLUTION
Avatar of jhance
jhance

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tanmh
tanmh

ASKER

hi jhance,
i declared a new project of Win32 DLL type and in the project, i include the static library, mylib.lib.
inside one of functions in the DLL project, i called the functions in the lib, e.g. mylib->OnStart(....)

so when the application runs, it core dumps at mylib->OnStart.

a colleague suggests that I do the following:
1) create a normal c++ program (myprog) that links with mylib.lib
2) from VB, send interprocess msgs to myprog
3) from myprog, call the functions in mylib.lib to handle these msgs

pls advise.
andrea