en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en it en en en en nl en en en en en en en en en en en en en en en en it en en en en de it en en en en nl en en en en en en it en en en en en en en en de en en en fr en en en en en en en en en pt en en en en en en
By logging into your account, you agree to our Privacy Policy, personal data processing and storage practices as described therein.
Forgot password or user name?
Search in titles only Search in PowerBASIC for Windows only
You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
All Time Today Last Week Last Month
All Discussions only Photos only Videos only Links only Polls only Events only
Join Date: Aug 1998
11 Jul 2001, 02:55 PM
Well I just wrote a two page letter explaining my registry problem, but I went back FURTHER in the code to the point where the variable is retrieved from a textbox in the OPTIONS screen.
This is baffling, this app started as a PB/DLL 5.0 app, used a resource file etc and slowly but surely it's almost 99% DDT now.
But I missed this line...
The app would retrieve the value from the textbox, write it to the registry.
It always WROTE to the registry: C:\Winlog\
But then I READ the registry and it immediately came out as C:\Winlog\\ so I suspected my registry reading code got changed somehow..
So I go back to where the value is obtained in the options dialog and do a msgbox on the ascii value of the right character and walah, it's 0...
So, WHY does GetText append a chr$(0) but DDT does not?
Control Get Text CbHndl,%IDTEXTBOX To g_sLogPath
' g_sLogPath = GetText(GetDlgItem(CbHndl, %IDTEXTBOX))
[This message has been edited by Scott Turchin (edited July 11, 2001).]
True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi
Join Date: Aug 1998
11 Jul 2001, 02:59 PM
PS< I prefer the NOT portion of appending a Chr$(0)..
On the other hand, my registry code is now TIGHT Very tight, very happy with it since I just spent 4 hours debugging it once again looking for a bug that was not there
True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi
Copyright © 1998-2022 PowerBASIC Tools, LLC - All Rights Reserved.
Powered by vBulletin® Version 5.7.0
Copyright © 2022 vBulletin Solutions, Inc. All rights reserved.
All times are GMT-5. This page was generated at 07:40 PM.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.