C vs C++ DLL for Mathcad14
Hi everyone,
I'm trying to create a C++ DLL for Mathcad and as a fisrt step I'm following step by step the instructions in Developer's Mathcad help and ttry to complile the example in Mathsoft\Mathcad 14\userefi\microsft\sources\simple\MULTIPLY.C,
I'm using Microsoft Visual C++ 2010 Express (free download).
I can succesfully complile the file MULTIPLY.C and get the DLL to run in Mathcad (C code) but when I try to rename the file to MULTIPLY.CPP (CPP code) I get an error like the one shown bellow:
1>------ Build started: Project: multiply, Configuration: Release Win32 ------
1> MULTIPLY.CPP
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
1>MULTIPLY.obj : error LNK2019: unresolved external symbol "int __stdcall _CRT_INIT(struct HINSTANCE__ *,unsigned long,void *)" (?_CRT_INIT@@YGHPAUHINSTANCE__@@KPAX@Z) referenced in function "int __stdcall DllEntryPoint(struct HINSTANCE__ *,unsigned long,void *)" (?DllEntryPoint@@YGHPAUHINSTANCE__@@KPAX@Z)
1>C:\Program Files\Mathcad\Mathcad 14\userefi\microsft\sources\Copy of simple\Release\multiply.dll : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Is this a compliler issue (Microsoft Visual C++ 2010 Express (free download)) or am I doing something wrong when I use the .cpp extension?
I'm not very experienced at all with C and C++ so I'm affraind I might be doing something silly. Any help is appreciated.
I hope I can use C++ in my DLL's code.
Thanks, Mike

