Git Product home page Git Product logo

Comments (19)

Mikanoshi avatar Mikanoshi commented on June 29, 2024 3

Works on Delphi 10 32- and 64-bit with Sciter 3.3.1.7:
https://github.com/Mikanoshi/SciDe

from scide.

Mikanoshi avatar Mikanoshi commented on June 29, 2024 2

All of that was done years ago :)
https://github.com/Mikanoshi/SciDe/blob/master/source/Sciter.pas

from scide.

aolko avatar aolko commented on June 29, 2024

Nope, it doesn't

[dcc32 Warning] SciterApi.pas(1133): W1000 Symbol 'StrNew' is deprecated: 'Moved to the AnsiStrings unit'
[dcc32 Hint] SciterApi.pas(1410): H2077 Value assigned to 'S2V' never used
[dcc32 Warning] SciterNative.pas(335): W1057 Implicit string cast from 'AnsiString' to 'WideString'
[dcc32 Warning] SciterNative.pas(364): W1000 Symbol 'StrDispose' is deprecated: 'Moved to the AnsiStrings unit'
[dcc32 Warning] SciterNative.pas(377): W1000 Symbol 'StrDispose' is deprecated: 'Moved to the AnsiStrings unit'
[dcc32 Warning] SciterNative.pas(386): W1000 Symbol 'StrDispose' is deprecated: 'Moved to the AnsiStrings unit'
[dcc32 Warning] SciterNative.pas(415): W1000 Symbol 'StrNew' is deprecated: 'Moved to the AnsiStrings unit'
[dcc32 Warning] SciterNative.pas(428): W1000 Symbol 'StrNew' is deprecated: 'Moved to the AnsiStrings unit'
[dcc32 Warning] SciterNative.pas(452): W1000 Symbol 'StrNew' is deprecated: 'Moved to the AnsiStrings unit'
[dcc32 Warning] SciterNative.pas(642): W1058 Implicit string cast with potential data loss from 'WideString' to 'AnsiString'
[dcc32 Warning] SciterNative.pas(660): W1057 Implicit string cast from 'AnsiString' to 'WideString'
[dcc32 Warning] SciterNative.pas(686): W1057 Implicit string cast from 'AnsiString' to 'WideString'
[dcc32 Warning] SciterNative.pas(693): W1057 Implicit string cast from 'AnsiString' to 'WideString'
[dcc32 Warning] SciterNative.pas(712): W1058 Implicit string cast with potential data loss from 'WideString' to 'AnsiString'
[dcc32 Warning] SciterNative.pas(725): W1057 Implicit string cast from 'AnsiString' to 'WideString'
[dcc32 Warning] SciterNative.pas(741): W1057 Implicit string cast from 'AnsiString' to 'WideString'
[dcc32 Warning] SciterNative.pas(801): W1058 Implicit string cast with potential data loss from 'WideString' to 'AnsiString'
[dcc32 Warning] SciterOle.pas(107): W1057 Implicit string cast from 'AnsiString' to 'WideString'
[dcc32 Warning] SciterOle.pas(485): W1058 Implicit string cast with potential data loss from 'WideString' to 'AnsiString'
[dcc32 Warning] SciterOle.pas(509): W1058 Implicit string cast with potential data loss from 'WideString' to 'AnsiString'
[dcc32 Warning] SciterOle.pas(537): W1058 Implicit string cast with potential data loss from 'WideString' to 'AnsiString'
[dcc32 Warning] SciterOle.pas(635): W1057 Implicit string cast from 'AnsiString' to 'WideString'
[dcc32 Hint] Sciter.pas(1390): H2164 Variable 'pbHandled' is declared but never used in 'TSciter.CreateWnd'
[dcc32 Warning] Sciter.pas(2067): W1058 Implicit string cast with potential data loss from 'WideString' to 'AnsiString'
[dcc32 Error] Sciter.pas(2134): E2010 Incompatible types: 'PUINT' and 'Cardinal'
[dcc32 Error] Sciter.pas(2137): E2010 Incompatible types: 'PUINT' and 'Cardinal'
[dcc32 Fatal Error] SciDe.dpk(35): F2063 Could not compile used unit 'Sciter.pas'

from scide.

Mikanoshi avatar Mikanoshi commented on June 29, 2024

Yes, it does. 3.3.2.6 + Delphi 10 32/64-bit.
And I just commited some changes.

from scide.

aolko avatar aolko commented on June 29, 2024

hmm
oh, what's this then?

[dcc32 Hint] Sciter.pas(1390): H2164 Variable 'pbHandled' is declared but never used in 'TSciter.CreateWnd'
[dcc32 Warning] Sciter.pas(2069): W1058 Implicit string cast with potential data loss from 'WideString' to 'AnsiString'
[dcc32 Error] Sciter.pas(2136): E2010 Incompatible types: 'PUINT' and 'Cardinal'
[dcc32 Error] Sciter.pas(2139): E2010 Incompatible types: 'PUINT' and 'Cardinal'
[dcc32 Fatal Error] SciDe.dpk(35): F2063 Could not compile used unit 'Sciter.pas'

Delphi 10.1 btw

from scide.

Mikanoshi avatar Mikanoshi commented on June 29, 2024

It's magic :)

1

from scide.

aolko avatar aolko commented on June 29, 2024


yeah right

from scide.

Mikanoshi avatar Mikanoshi commented on June 29, 2024

So what? It's working fine for me. ActiveX.SYSUINT must be OS specific or something. I'm on 10 64-bit.

from scide.

aolko avatar aolko commented on June 29, 2024

same here, win10 x64, faulty lines are

    OleCheck(pLang.ConvertStringFromUnicode(pdwMode, enc, PWideChar(sHtml), pcSrcSize, nil, pcDstSize));
    OleCheck(pLang.ConvertStringFromUnicode(pdwMode, enc, PWideChar(sHtml), pcSrcSize, pRet, pcDstSize));

from scide.

Mikanoshi avatar Mikanoshi commented on June 29, 2024

Obviously) Must be because of pcSrcSize and pcDstSize an their ActiveX.SYSUINT type.
Try changing it to something else, e.g. to LongWord, to make sure it's them.

from scide.

aolko avatar aolko commented on June 29, 2024
pcSrcSize: LongWord;
pcDstSize: LongWord;
[dcc32 Error] Sciter.pas(2136): E2010 Incompatible types: 'PUINT' and 'Cardinal'
[dcc32 Error] Sciter.pas(2139): E2010 Incompatible types: 'PUINT' and 'Cardinal'

from scide.

Mikanoshi avatar Mikanoshi commented on June 29, 2024

IMultiLanguage interface:
https://msdn.microsoft.com/en-us/library/aa741009(v=vs.85).aspx

pSrcStr and pDstStr should be pointers to UINT, Windows.PUINT = ^Cardinal

from scide.

aolko avatar aolko commented on June 29, 2024

i think no matter what is the type it continues to throw these errors

from scide.

synnefo avatar synnefo commented on June 29, 2024

D10.1 Berlin -> same error
XE5 and Seattle -> OK

from scide.

aolko avatar aolko commented on June 29, 2024

told you

from scide.

Mikanoshi avatar Mikanoshi commented on June 29, 2024

You're so helpless))) I'll have to update to 10.1 to fix this I guess.

Edit: Well, you are out of luck, my version of SciDe compiles perfectly on 10.1

P.S. And how to disable floating form designer completely in 10.1? I want a standalone form! Bummer.

from scide.

Mikanoshi avatar Mikanoshi commented on June 29, 2024

Error appears only if compiling SciDe package (I just use SciDe source files in my project, that's why I didn't have it). Here's a fix, I removed local MLang, Delphi has it's own bindings in Winapi.MLang:
Mikanoshi/SciDe@fd7c98b#diff-7d2a15a69b3c0d5662c830b86de88295R937

from scide.

waleson avatar waleson commented on June 29, 2024

I changed pcSrcSize TO Puint(pcSrcSize) ,error disapeared.

But who can tell me , it is the proper way to fix this bug?

from scide.

murrto avatar murrto commented on June 29, 2024
  1. Change MLang to WinAPI.MLang in the uses
  2. In the procedure TSciter.SaveToFile change:
    • type of pcSrcSize and pcDstSize from ActiveX.SYSUINT to SYSUINT
    • erroneous lines correct as follows:
      OleCheck(pLang.ConvertStringFromUnicode(pdwMode, enc, PWideChar(sHtml), @pcSrcSize, nil, pcDstSize));
  3. I also had to correct PChar cast to PAnsiChar in the SciDeDemo unit
    👌

from scide.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.