Recent

Author Topic: is there any CDocument class or equal in the libraries?  (Read 716 times)

jamie

  • Hero Member
  • *****
  • Posts: 6528
is there any CDocument class or equal in the libraries?
« on: July 08, 2024, 03:41:54 am »
In the middle of code converting and it looks like I need the Cdocument class that is normally with MS C++.

Is there anything in the current Libs I can use in place of it that acts more or less the same?

I looked at the DOM code, TDOMDocument, etc but that isn't what I need.
https://learn.microsoft.com/en-us/cpp/mfc/reference/cdocument-class?view=msvc-170

That.
The only true wisdom is knowing you know nothing

cdbc

  • Hero Member
  • *****
  • Posts: 1497
    • http://www.cdbc.dk
Re: is there any CDocument class or equal in the libraries?
« Reply #1 on: July 08, 2024, 08:11:22 am »
Hi
I highly doubt that anyone has translated / ported the MFC to pascal, *that* indeed would be somewhat of an undertaking  %)
Good luck finding something...
The 'CDocument' parts all put together, forms a MVVM-framework for documents et.al.
The 'CView' is also interesting  8)
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

jamie

  • Hero Member
  • *****
  • Posts: 6528
Re: is there any CDocument class or equal in the libraries?
« Reply #2 on: July 08, 2024, 11:44:41 pm »
In the works!  ::)
The only true wisdom is knowing you know nothing

cdbc

  • Hero Member
  • *****
  • Posts: 1497
    • http://www.cdbc.dk
Re: is there any CDocument class or equal in the libraries?
« Reply #3 on: July 08, 2024, 11:57:29 pm »
Hi
Dang! Then I will indeed take my hat off to you, kind sir =^   ;)
Looking forward to seeing your doings...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

jamie

  • Hero Member
  • *****
  • Posts: 6528
Re: is there any CDocument class or equal in the libraries?
« Reply #4 on: July 09, 2024, 02:06:09 am »
I am only going to implement what I need. But I am Trying to keep it close to the C++ implementation but replacing types to what is used here of course.  Cstring = String etc.
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018