* * *

Recent Posts

Pages: [1] 2 3 ... 10
1
Lazarus Extra Components / Re: Can't compile THtmlViewer
« Last post by GetMem on Today at 01:46:19 pm »
2
General / Help conversion string UTC to Datetime
« Last post by critter on Today at 01:45:43 pm »
Hello everyone, I am new to the forum and first to the lazarus team for their effort and congratulations for a wonderful product.

Then ask for your help, since I have to convert a string of the type "2017-04-03T20: 43: 02 + 02: 00" to datetime and I do not know how. Can someone help me?
 Thank you.
3
if you need to share some common code that isn't GUI stuff, you can do all of that in a DLL, does not matter which RAD you
use, Delphi or Lazarus
 
 I suppose you could even share some visual items as long as you use the direct windows API method in the DLL which means
writing forms the old way..



And what happens with strings? If I compile with FPC, I must use delphi unicode?

Also is possible to instantiate objects, and return a reference to it? (Having all methods, properties, etc..)

Thanks! Really awesome answer. I'm now a bit more conscious of what I need to do.

Back in the day, I wrote some design components for ExtPascal that had both .dpk and .lpk packages. You can see them here under ExtP_Toolkit:

https://github.com/farshadmohajeri/extpascal

Both extp_ctrls and extp_grids have both Delphi and Lazarus packages.


Thanks. I will look at it.

I usually do only:
Code: Pascal  [Select]
  1. {$ifdef fpc}{$mode delphi}{$H+}{$endif}
for non-visual packages and make sure the same units compile in both Delphi and Freepascal. That is most of the time easy.
I have some code as {$mode delphiunicode} IOW try to avoid unit duplication because of dialect and don't ever use {$mode objfpc} if you need to share code between the two flavors. That's asking for trouble. I only have separate dpk and lpk projects because of differing format but the sourcecode is the same and does usually not contain any other $ifdef than the above except for platform defines.

Thankyou, I will include that for sure.
4
Lazarus Extra Components / Re: Can't compile THtmlViewer
« Last post by Sniper on Today at 01:28:01 pm »
Try the one from OPM, the issue is fixed there AFAIK.
What OPM is?
5
Lazarus Extra Components / Re: Can't compile THtmlViewer
« Last post by Sniper on Today at 01:23:42 pm »
Ok. I have tried

master:
HTMLSubs.pas(758,5) Warning: Constructor should be public
HTMLSubs.pas(1830,25) Hint: Variable "CountsPerType" does not seem to be initialized
HTMLSubs.pas(1949,53) Hint: Local variable "MargArray" does not seem to be initialized
HTMLSubs.pas(3971,23) Warning: Implicit string type conversion from "AnsiString" to "WideString"
HTMLSubs.pas(3974,23) Warning: Implicit string type conversion from "AnsiString" to "WideString"
HTMLSubs.pas(4031,41) Warning: Implicit string type conversion from "AnsiString" to "WideString"
HTMLSubs.pas(4333,46) Error: Illegal qualifier
HTMLSubs.pas(4357,46) Error: Illegal qualifier
HTMLSubs.pas(7669,18) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"
HTMLSubs.pas(7865,33) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"
HTMLSubs.pas(7865,15) Warning: Implicit string type conversion from "AnsiString" to "WideString"
HTMLSubs.pas(7866,63) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"
HTMLSubs.pas(7892,40) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"
HTMLSubs.pas(8262,49) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"
HTMLSubs.pas(8266,49) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"
HTMLSubs.pas(8284,30) Hint: Local variable "Algn" does not seem to be initialized
HTMLSubs.pas(8601,44) Hint: Local variable "Point" does not seem to be initialized
HTMLSubs.pas(8609,48) Hint: Local variable "SizeV" does not seem to be initialized
HTMLSubs.pas(8610,46) Hint: Local variable "SizeW" does not seem to be initialized
HTMLSubs.pas(8717,71) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"
HTMLSubs.pas(11493,29) Hint: Local variable "Align" does not seem to be initialized
HTMLSubs.pas(11534,29) Hint: Local variable "Align" does not seem to be initialized
HTMLSubs.pas(13688,46) Warning: Implicit string type conversion from "AnsiString" to "WideString"
HTMLSubs.pas(13688,67) Warning: Implicit string type conversion from "AnsiString" to "WideString"
HTMLSubs.pas(14087,33) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"
HTMLSubs.pas(15510,29) Hint: Local variable "Align" does not seem to be initialized
HTMLSubs.pas(15817,38) Hint: Variable "IY" does not seem to be initialized
HTMLSubs.pas(15817,34) Hint: Variable "IX" does not seem to be initialized
HTMLSubs.pas(15952,40) Hint: Local variable "Y" does not seem to be initialized
HTMLSubs.pas(15952,37) Hint: Local variable "X" does not seem to be initialized
HTMLSubs.pas(16368,42) Hint: Variable "IY" does not seem to be initialized
HTMLSubs.pas(16368,38) Hint: Variable "IX" does not seem to be initialized
HTMLSubs.pas(16392,38) Hint: Variable "IY" does not seem to be initialized
HTMLSubs.pas(16392,34) Hint: Variable "IX" does not seem to be initialized


11.7:
htmlmisc.pas(164,18) Error: Identifier not found "GCP_RESULTS"
htmlmisc.pas(164,29) Error: Error in type definition
htmlmisc.pas(309,36) Warning: Symbol "CM_WININICHANGE" is not implemented

11.6
htmlmisc.pas(163,18) Error: Identifier not found "GCP_RESULTS"
htmlmisc.pas(163,29) Error: Error in type definition
htmlmisc.pas(308,36) Warning: Symbol "CM_WININICHANGE" is not implemented

11.5
htmlmisc.pas(163,18) Error: Identifier not found "GCP_RESULTS"
htmlmisc.pas(163,29) Error: Error in type definition
htmlmisc.pas(308,36) Warning: Symbol "CM_WININICHANGE" is not implemented

11.4
htmlmisc.pas(141,18) Error: Identifier not found "GCP_RESULTS"
htmlmisc.pas(141,29) Error: Error in type definition
htmlmisc.pas(286,36) Warning: Symbol "CM_WININICHANGE" is not implemented

6
General / Re: DBGrid: crypt field side client
« Last post by taazz on Today at 12:56:26 pm »
you go to the field, you write an onGetText event where you decrypt the string and onSetText event where you encrypt it.
7
General / Re: DBGrid: crypt field side client
« Last post by GetMem on Today at 12:55:46 pm »
Double click the query, select Field2 then go to OI and create the OnGetText event, then:
Code: Pascal  [Select]
  1. procedure TfMain.SQLQueryGetText(Sender: TField; var aText: string;
  2.   DisplayText: Boolean);
  3. begin
  4.   aText := Decrypt(Sender.AsString);
  5. end;
  6.  

Where Decrypt is your custom algorithm.
8
Lazarus Extra Components / Re: Can't compile THtmlViewer
« Last post by GetMem on Today at 12:49:51 pm »
Try the one from OPM, the issue is fixed there AFAIK.
9
General / DBGrid: crypt field side client
« Last post by xinyiman on Today at 12:48:30 pm »
Hi guys, a question. I have a dbgrid that displays 3 fields

field1, field2, field3

I want to encrypt the field2 (it does not matter the algorithm, now I'm interested in the procedure). How do I display plain data in column2, but save the data in the database in an encrypted way? This only for field 2 is clear.
10
General / Re: Build project failed on ReactOS,use Lazarus IDE 1.8.2
« Last post by tianya on Today at 12:41:57 pm »
@Handoko thanks
Pages: [1] 2 3 ... 10

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus