TheSwamp
Code Red => Visual DCL Programming => AutoLISP (Vanilla / Visual) => OpenDCL => Topic started by: It's Alive! on June 19, 2007, 07:40:33 AM
-
This should behave like doslib’s
(odcl_getini "settings" "strings" "c:\\temp\\test.ini" "default")
(odcl_getini "settings" "strings" "c:\\temp\\test.ini")
(odcl_getini "settings" nil "c:\\temp\\test.ini" )
(odcl_getini nil nil "c:\\temp\\test.ini" )
(odcl_setini "settings" "strings1" "value1" "c:\\temp\\test.ini")
(odcl_setini "settings" "strings2" "value2" "c:\\temp\\test.ini")
(odcl_setini "settings" "strings3" "value3" "c:\\temp\\test.ini")
(odcl_setini "settings" "strings2" nil "c:\\temp\\test.ini")
(odcl_setini "settings" nil nil "c:\\temp\\test.ini")
Thanks :-)
-
Daniel, INI files can be read and written via lisp, so what is the advantage of writing them in C++?
-
Hi Owen,
An ODCL user requested I put this together,
I suppose this would be up to the community to decide if it finally does become a part of OpenDCL?
Dan
-
I think a AutoLisp library of ``supported'' or ``recommended'' methods should/could be put together for use instead of `functions'. -i.e. a set of functions is great, but tends to cause steeper learning curves (The Scheme language was kept `simple' for a reason--I say learn from their example).
-
Well it had already been done in a closed source c++ project. It was thought it would be useful in odcl
Window’s WritePrivateProfileString and GetPrivateProfileString are fast and efficient methods of providing this functionality to lisp
-
Is this for binary write/read?
-
Nope good ol text .INI stuff, This certainly could be done with lisp with a good bit of code
-
I dont think i totaly understand, but ok.
-
I asked Daniel if he had this functionality, with a view to adding it to the OpenDCL build.
Sorry for any wasted time I caused you Daniel.
-
Sorry for any wasted time I caused you Daniel.
Not a waste of time, but a pleasurable learning experience and IMO a valuable tool for the lisper’s toolbox.
-
Despite my initial thought of using a lisp lib proced for this task, i do think this could be a very valuable tool. Also I have a few more questions on this tool.
Can you document the args; i dont use doslib.
What version is this compiled for?
Can we add a feature or two? (like read and write to binary)
-
.............
Can we add a feature or two? (like read and write to binary)
http://www.theswamp.org/index.php?topic=16949.msg207059#msg207059
-
*click* ... *gasp!*
Thanx!!
-
Can you document the args; i dont use doslib.
Since the proggy is just calling the Win API methods WritePrivateProfileString and GetPrivateProfileString,
until I get something written up, please checkout
http://msdn2.microsoft.com/en-us/library/ms725501.aspx
and
http://msdn2.microsoft.com/en-us/library/ms724353.aspx
What version is this compiled for?
The arx is compiled for Acad 2007+ , but I can make builds for other versions too if needed
If it does not make it into odcl, I will post versions for Acad 2000 – 2008 and Intellicad.
-
good'nuff Thanx dude