Recent

Author Topic: Indenifier not found error  (Read 2654 times)

angrynewraze

  • Newbie
  • Posts: 2
Indenifier not found error
« on: May 11, 2024, 01:46:11 pm »
I keep getting an error on line 194: "url:=getbase+'?cewidth='+inttostr(clientwidth)+'&ceheight='+inttostr(clientheight)+'&fn='+extractfilename(ExtractFileNameWithoutExt(application.ExeName))+'&counter='+inttostr(counter)+getoptionalstring;" when trying to compile a undected cheat engine

Handoko

  • Hero Member
  • *****
  • Posts: 5546
  • My goal: build my own game engine using Lazarus
Re: Indenifier not found error
« Reply #1 on: May 11, 2024, 01:54:16 pm »
Hello angrynewraze,
Welcome to the forum.

To be able to use ExtractFileNameWithoutExt, you need to put LazFileUtils in the uses clause.

angrynewraze

  • Newbie
  • Posts: 2
Re: Indenifier not found error
« Reply #2 on: May 12, 2024, 12:34:22 am »
Hello angrynewraze,
Welcome to the forum.

To be able to use ExtractFileNameWithoutExt, you need to put LazFileUtils in the uses clause.

I don't know what that means. Where is the uses clause? And how do I get the LazFileUtils?

Josh

  • Hero Member
  • *****
  • Posts: 1458
Re: Indenifier not found error
« Reply #3 on: May 12, 2024, 12:40:58 am »
Hi in the unit that has your code in it, if you go the top of it, it should look similar to
Code: Pascal  [Select][+][-]
  1. unit Unit1;
  2.  
  3. {$mode objfpc}{$H+}
  4.  
  5. interface
  6.  
  7. uses
  8.   Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, Math,
  9.   StdCtrls, ComCtrls, Spin, bgrabitmap, BGRABitmapTypes;
  10.  
  11. type
  12.  
  13.   { TForm1 }
  14.  
  15.   TForm1 = class(TForm)          

you then add the unit name in the uses clause, something like

Code: Pascal  [Select][+][-]
  1. uses
  2.   Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, Math,
  3.   StdCtrls, ComCtrls, Spin, bgrabitmap, BGRABitmapTypes, LazFileUtils;

Hope that helps
« Last Edit: May 12, 2024, 12:42:47 am by Josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

 

TinyPortal © 2005-2018