The DataCAD Developer Network (DDN) is an online resource for information and support for DCAL® (DataCAD Applications Language) developers as well as anyone interested in creating fonts, toolbars, hatch patterns, or linetypes for use in DataCAD.
#40472 by ERT
Fri Nov 14, 2008 3:27 pm
Hi,
_ There is a whole set of DCAL (Classic) routines that, though declared existing by an official DataCAD document (see: \DataCAD 12\DCAL\NewIn9.doc), I'm neither able to find nor to use. Here two examples:
Code:
PROCEDURE msg_OK (msg : str255); BUILTIN 245;
PROCEDURE readIniStr (IniFile, Section, Ident, Default : str255; ReturnStr : OUT str255); BUILTIN 625;
Does anybody have actually found and used some of them? I'd love to know where/how(*).

Thank you.
Pietro Moras


The classic DCAL is a special program language. The DCAL cannot run in windows, only inside DataCAD. In DCAL we cannot use Windows API directly. These entry points is a chance that we can use some windows API function in classic DCAL programs. Therefore the DataCAD programmers allow to access some Windows API function across the DataCAD.

For example:
ReadIniStr entry point
a part of the IniFiles source code in Delphi:
Code: Select allfunction TIniFile.ReadString(const Section, Ident, Default: string): string;
var
  Buffer: array[0..2047] of Char;
begin
  SetString(Result, Buffer, GetPrivateProfileString(PChar(Section),
    PChar(Ident), PChar(Default), Buffer, SizeOf(Buffer), PChar(FFileName)));
end;


PROCEDURE readIniStr (IniFile, Section, Ident, Default : str255; ReturnStr : OUT str255);
Read string value to the "ReturnStr" from the "IniFile" INI file, from "Section" section, from "Ident" parameter.
for example: inifile=DCADWIN.INI, section=KeyFile, ident=KeyFileName

I didn't use this functions in classic DCAL. I wrote classic DCAL programs in DOS platform until DataCAD 7.0. Now I'm a Delphi programmer.

ERT

Who is online

Users browsing this forum: No registered users and 7 guests

About DataCAD Forum

The DataCAD Forum is a FREE online community we provide to enhance your experience with DataCAD.

We hope you'll visit often to get answers, share ideas, and interact with other DataCAD users around the world.

DataCAD

Software for Architects Since 1984