PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 4 5 [6] 7 8 ... 10
 51 
 on: May 15, 2020, 09:43:26 PM 
Started by raymw - Last post by James Padgett
AOMEI has a real value in backup software.

www.aomeitech.com

 52 
 on: May 15, 2020, 05:06:12 PM 
Started by Bumblebee - Last post by Bumblebee
Thank-you :)
Have you found the reason for the String(50,"-") error?

 53 
 on: May 15, 2020, 02:39:06 PM 
Started by raymw - Last post by raymw
Thought I'd update this thread, in case anyone is interested. So far, the four external wd drives and the small/cheap pc are running fine. I'm using the free version of synchback, every night it copies files from the server to 2 of its drives. I then copy those drives to the other two (mirroring, I guess).

A recent w10 update failed on the Acer tablet. Acer support is non-existent for a four year old device. They want it to be sent in to their repair centre, but it is not worth the cost of delivery, never mind their charges.

A Samsung drive in the windows server has failed. The drives are striped, and the server has been off line for three days, trying to find space to re-copy the files I guess. I'll terminate that server system, it was at end of life, anyway.

I've bought a PCI express esata card, so I'm going to use 5 of the server discs (which were in an external esata drive) as extra shared drives in my main desktop pc, and rejig my other machines to look to there, instead of the server. It'll take a few days to copy the data back from the small pc drives to the desktop drives, and then I'll have to modify the synchback commands to copy from the desktop instead of the server.

I need to sort out some disc imaging software for drive C: I've looked at Veeam, but It is only a partial solution, afaik, unless I buy an annual license. Windows 10 still has the old w7 disc imaging software, but not sure if that will always be around. Although it is relatively easy to re-install the basic windows operating system, other software puts stuff in the registry and elsewhere, making it tedious recovering drive c:


 54 
 on: May 15, 2020, 12:24:09 PM 
Started by Bumblebee - Last post by Paul Squires
Another small issue with the 2.1.5 version.
One of the final lines in my code gets modified from "\(_)/" to "¯\(º_º)/¯"
The .bas file is in UTF-16 (BOM)

Code: [Select]
  Print #3, "\(_)/" 'original line
  Print #3, "¯\(º_º)/¯" 'line in WinFBE_VD_MAIN.bas


Hi, this error is also now fixed. It was indeed a Utf8 to UTF-16 conversion error.
The fix will be in 2.1.6.

 55 
 on: May 15, 2020, 10:47:47 AM 
Started by Bumblebee - Last post by Paul Squires
Hi,

I have found the problem with the Registry code that you posted. When the code is added as part of a Form then the functions will automatically try to use the UNICODE versions of the api functions. So, in your case, it would have to be a LPCWSTR incoming parameter. This is because any Forms used in WinFBE MUST have Unicode enabled. You can get around this by explicitly appending "A" to your registry functions (ie. RegOpenKeyA, RegQueryValueExA, RegSetValueExA). Basically, any key that handles strings.

Another issue that I found (and have now fixed), is that if you open both your files in the editor at the same time (registry.bas and registry2.bas) then you will get errors. This is because in non-projects, only the file with focus is supposed to be compiled. This worked until you tried to compile the registry2.bas Form file. There was code in the code generation that would aggregate code from all loaded files in the editor. Basically, it treated compiling the Form as if it was part of a Project when in fact it is not.

 56 
 on: May 14, 2020, 09:47:32 PM 
Started by Bumblebee - Last post by Paul Squires
Thanks for the files. I will look at them tomorrow and hopefully pinpoint what the issues may be.

 57 
 on: May 14, 2020, 09:28:21 PM 
Started by Bumblebee - Last post by Bumblebee
backup.bas - console version
backup2.bas - gui version (in progress)
registry.bas - console version
registry2.bas - gui version (under construction)

 58 
 on: May 14, 2020, 07:48:37 PM 
Started by Bumblebee - Last post by Paul Squires
Is it possible that you can zip up that project and email it to me at  support@planetsquires.com ?
I am thinking that it may have to do with the way in which your project is structured in addition to the file types. It is hard to debug without a concrete example in front of me.

 59 
 on: May 14, 2020, 07:09:56 PM 
Started by Bumblebee - Last post by Bumblebee
I may as well include another problem I encountered on another program I'm working on. On the console version of my program, the code below doesn't cause any compile warnings. But on the GUI version, the LPCSTR type appears to have issues.

Code: [Select]
' You should always include a resource file that references a valid manifest.xml
' file otherwise your application will not properly display Windows themed controls.
' Sample resource.rc and manifest.xml files can be found in the WinFBE \Settings folder.
' The following WinFBE directive includes the resource in your application. Simply
' uncomment the line.
' If you are using WinFBE's project management features then delete the following line
' because a resource file will be generated automatically.
'     '#RESOURCE "resource.rc"


''
''  Remove the following Application.Run code if it used elsewhere in your application.
Application.Run(Form1)

#Include "windows.bi"
#Include "vbcompat.bi"

'Possible registry data types
Enum InTypes
  ValNull = 0
  ValString = 1
  ValXString = 2
  ValBinary = 3
  ValDWord = 4
  ValLink = 6
  ValMultiString = 7
  ValResList = 8
End Enum

Sub WriteRegistry(Byval Group As HKEY, Byval Section As LPCSTR, Byval Key As LPCSTR, Byval ValType As InTypes, value As String)
  Dim lResult As Integer
  Dim lKeyValue As HKEY
  Dim lNewVal As DWORD
  Dim sNewVal As String * 2048 
  lResult = RegCreateKey(Group, Section, @lKeyValue)
  If ValType = ValDWord Then
    lNewVal = Cuint(value)
    lResult = RegSetValueEx(lKeyValue, Key, 0&, ValType, Cast(Byte Ptr,@lNewVal), Sizeof(DWORD))
  Else
    If ValType = ValString Then
      sNewVal = value & Chr(0)
      lResult = RegSetValueEx(lKeyValue, Key, 0&, ValString, Cast(Byte Ptr,@sNewVal), Len(sNewVal))
    EndIf
  End If
  lResult = RegFlushKey(lKeyValue)
  lResult = RegCloseKey(lKeyValue)
End Sub

Successful Compile (Errors 0 Warnings 3)

Primary Source: C:\Decoy\Software\fb\WinFBE_VD_MAIN.bas
Target Compilation: C:\Decoy\Software\fb\plfm.exe (116 KB, 118272 bytes)
Compile Time: 1.6 seconds (2020-05-14 10:01:14)

Command Line:
C:\Users\Laura\AppData\Local\WinFBE\FreeBASIC-1.07.1-gcc-5.2\fbc32.exe -m "C:\Decoy\Software\fb\WinFBE_VD_MAIN.bas" -v -s gui   -x "C:\Decoy\Software\fb\plfm.exe"

FreeBASIC Compiler - Version 1.07.1 (2019-09-27), built for win32 (32bit)
Copyright (C) 2004-2019 The FreeBASIC development team.
standalone
target:       win32, 486, 32bit
compiling:    C:\Decoy\Software\fb\WinFBE_VD_MAIN.bas -o C:\Decoy\Software\fb\WinFBE_VD_MAIN.asm (main module)
C:\Decoy\Software\fb\WinFBE_VD_MAIN.bas(84) warning 3(1): Passing different pointer types, at parameter 2 of REGCREATEKEY()
C:\Decoy\Software\fb\WinFBE_VD_MAIN.bas(87) warning 3(1): Passing different pointer types, at parameter 2 of REGSETVALUEEX()
C:\Decoy\Software\fb\WinFBE_VD_MAIN.bas(91) warning 3(1): Passing different pointer types, at parameter 2 of REGSETVALUEEX()

 60 
 on: May 14, 2020, 04:12:05 PM 
Started by Bumblebee - Last post by Paul Squires
Hi, I am not 100% sure yet what this problem would be. Scintilla handles the screen code using UTF-8 whereas you are saving and loading from UTF-16. It is quite possible that some of save/conversion code is not translating those characters correctly from UTF-8 to UTF-16.
I have logged the problem and will investigate.

Pages: 1 ... 4 5 [6] 7 8 ... 10