Versions:
Datacad: 12.08.02.01
OS: Vista 64 Build 6001 SP1
Visual Studio 2008 Std: 9.0.30729.1 SP
(VS2008 is fully updated via Windows Update, not sure how to find the specific version of the VC++ module)
Created my lab folder at
C:\Datacad 12\Backup Files\DCAL\_Lab\
with the two requested sub-folders of
..
\_Tempry
..
\DCAL VC++
StudioPM wrote:-- Down-load the HelloWorld.zip sample from DataCAD ftp site:
ftp://dcal:documentation@ftp.datacad.com:3010
into your \_Tempry dir
-- Extract and copy “DTester Template” into your \DCAL VC++
-- Run DataCAD 12 and execute command menu File > New
to create a Drawing1.aec file into the same \DCAL VC++ dir. Then exit DataCAD 12.
-- Locate and double-click the “Solution” file DT.sln in \DTester Template\DT-ORnn\DT, to run VC++
Done.
-- On Visual C++ verify:
menu Project > Properties... > Configuration Properties
Linker > Input > Module Definition File = Exports.def
Linker > General > Output File = $(OutDir)\$(ProjectName).dmx
(instead of the usual default .dll)
If I go up to the menu bar, and select Project, Properties, it opens this dialog
**Moving on to the steps below propulated the DT Properties page. See belowThen expand the “Solution” folder Header Files, double click to open the file “DT_RoutineLib.h”. There locate the “case f1” statement.
Then execute:
menu Build > Rebuild Solution (should go OK),
Done.
Once I re-built the soulution, I went back and verified the steps above, and they looked good now.
Linker > Input > Module Definition File = Exports.def
Linker > General > Output File = $(OutDir)\$(ProjectName).dmx
then:
menu Debug > Start Debugging
At first Debug, locate your main program “DCADWIN.exe”.
Ignore the “No Debugging Information” warning: that's all right.
-- Now you should have your DataCAD 12 up and running, ready to test your “Hello world!” DCAL application.
Via command menu File > Open... the Drawing1.aec you've created before. The new function menu [2D] Edit should appear.
-- Activate function menu S9 Toolbox, locate and execute the DT.dmx application you'll find in \DT\Debug. A new “DTest” function menu should appear:
execute F1 HelloW!
-- Through a breakpoint on the source, at “case f1”, you may check statement-by- statement what will follow.
Looks like everything complied well and the macro executed properly with the Hellow W! At the menu location F1 and reported back a complete message "
Hello world!" in the attention bar.
Well done Pietro!