Skip to main content

Problem:

Gets a 119 error when an EXE calls a DLL

Resolution:

Had a cobol exe calling a cobol dll -  

was also always  using the link wizard for the creation of the EXE and DLL settings

-- just highlight the EXE and DLL (separatly) and look at the build settings manually

the exe had the system programs included - so did the dll - this caused the problem ***

take off the system programs from dll - you do not need them if the exe has them

also if you get an mf_id_dynlnk_lib_check error -

this is caused by the exe being single threaded and the dll being multi threaded - again

look at build settings manually and make sure everything matches

now everything is single and shared dynamic - exe has system pgms - dll does not

Old KB# 1306