C/Front Header file for Delphi

Administrator
Member, Moderator, Administrator Posts: 2,506
C/Front Header file for Delphi
This is my first attempt to create a C/Front 3.60 header file for use with Borland Delphi.
http://www.mibuso.com/dlinfo.asp?FileID=196
Discuss this download here.
This is my first attempt to create a C/Front 3.60 header file for use with Borland Delphi.
http://www.mibuso.com/dlinfo.asp?FileID=196
Discuss this download here.
0
Comments
-
if not DBL_FindRec(hTable, hRec, PDBL_U8(PChar('-'))) then;
But it's causing some sort of exception which prevents you from deallocating properly.
Will keep looking.0 -
You are right; the allocation and deallocation of these handles should be encapsulated in a try/finally block! I suppose I forgot about this because I wanted to duplicate the structure of the sample application in c (which ships with C/Front) as closely as possible.0
-
var FieldValue: array[0..250] of char; First: string = '-'; [...] DBL_Allow(DBL_Err_RecordNotFound); if not DBL_FindRec(hTable, hRec, PDBL_U8(First)) then; DBL_Field_2_Str(@FieldValue, 250, hTable, hRec, 5); WriteLn(FieldValue); [...]
Delphi or C/Front clearly did not like the fact that I was passing a const as a parameter to DBL_FindRec. This only shows that I don't know an awful lot about memory allocation etc. in Delphi...With the parameter replaced, the code run beautifully and shows the value of field #5 of the first record.
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions