Total players online: 10



Take the Tour | Site Map

It is currently Sat Sep 22, 2018 8:53 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Compiling error.
PostPosted: Mon Apr 24, 2017 5:22 am 
Offline
Novice Scripter
Novice Scripter

Joined: 10/08/2007 12:50
Posts: 47

Groups:
Hello,

Yesterday i tried to compile the source code "Demo 1" but had an error.

I followed the tutorial.

Image


Top
  Profile 
 Post subject: Re: Compiling error.
PostPosted: Tue Apr 25, 2017 2:06 am 
Offline
Developer
Developer
User avatar

Joined: 06/29/2003 11:05
Posts: 2453

You must be using a newer version of Lazarus. I bet they changed the API default from 32bit to 64bit.

Try something like this:
- Right click ReadProcessMemory and choose "find declaration" (or something like that) to see where it is defined in the API source.
- Look if there are several versions, something like ReadProcessMemory32, ReadProcessMemory64 and ReadProcessMemory (now a synonym for ...64).
- Change the code to use ReadProcessMemory32 explicitly.

If that doesn't help, you could probably import the kernel32.dll directly, it's not hard to do. I'll look into it when I get home.


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: Compiling error.
PostPosted: Fri Mar 30, 2018 5:33 pm 
Offline
Legendary Scripter
Legendary Scripter

Joined: 01/07/2008 12:51
Posts: 1695
Location: Kelowna, BC

Cheffe wrote:
You must be using a newer version of Lazarus. I bet they changed the API default from 32bit to 64bit.

Try something like this:
- Right click ReadProcessMemory and choose "find declaration" (or something like that) to see where it is defined in the API source.
- Look if there are several versions, something like ReadProcessMemory32, ReadProcessMemory64 and ReadProcessMemory (now a synonym for ...64).
- Change the code to use ReadProcessMemory32 explicitly.

If that doesn't help, you could probably import the kernel32.dll directly, it's not hard to do. I'll look into it when I get home.


Just wondering if you ever came to a solution to this Cheffe, I'm having the same problem today trying to compile and can't seem to find a simple solution.

_________________
Sig.


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: Compiling error.
PostPosted: Fri Mar 30, 2018 8:04 pm 
Offline
Novice Scripter
Novice Scripter

Joined: 10/08/2007 12:50
Posts: 47

Groups:
fixed when switch to 32 bits version


Top
  Profile 
 Post subject: Re: Compiling error.
PostPosted: Sat Mar 31, 2018 11:40 am 
Offline
Legendary Scripter
Legendary Scripter

Joined: 01/07/2008 12:51
Posts: 1695
Location: Kelowna, BC

azeziouali wrote:
fixed when switch to 32 bits version


Is it just a separate download of Laz?

_________________
Sig.


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: Compiling error.
PostPosted: Sun Apr 01, 2018 2:00 pm 
Offline
Administrator
Administrator
User avatar

Joined: 08/12/2003 07:28
Posts: 18872
Location: Switzerland

https://sourceforge.net/projects/lazaru ... 32%20bits/
maybe?

_________________
EUO Member and postwhore since: 19th Dezember, 2002; Loosing on freeshard Alexandria since: 5th January, 2005
Searches cure for cancer since: 17th November, 2003 on GRID.org & Worldcommunitygrid.org
Made scripts for Project 'Programmers for Alexandria' worth 50$
Image
Quote "mmorning": Where would theses boards be if Orn didn't miss all the sarcasm. Man its great having him here :)
Quote "author-unknown": Good idea. I gotta start doing that too. You're a trendsetter Orn. :)
Quote "dreyfus": #true is always #true


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: Compiling error.
PostPosted: Sun Apr 01, 2018 2:27 pm 
Offline
Legendary Scripter
Legendary Scripter

Joined: 01/07/2008 12:51
Posts: 1695
Location: Kelowna, BC

Orngrimm wrote:
https://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2032%20bits/
maybe?


Forgot to mention I figured it out. You have to use Lazarus 1.6 for it to work, for whatever reason it doesn't compile on 1.8.

_________________
Sig.


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: Compiling error.
PostPosted: Sun Apr 01, 2018 11:58 pm 
Offline
Administrator
Administrator
User avatar

Joined: 08/12/2003 07:28
Posts: 18872
Location: Switzerland

Ah! Nice!
It is https://sourceforge.net/projects/lazaru ... rus%201.6/ then :)

_________________
EUO Member and postwhore since: 19th Dezember, 2002; Loosing on freeshard Alexandria since: 5th January, 2005
Searches cure for cancer since: 17th November, 2003 on GRID.org & Worldcommunitygrid.org
Made scripts for Project 'Programmers for Alexandria' worth 50$
Image
Quote "mmorning": Where would theses boards be if Orn didn't miss all the sarcasm. Man its great having him here :)
Quote "author-unknown": Good idea. I gotta start doing that too. You're a trendsetter Orn. :)
Quote "dreyfus": #true is always #true


Top
  ProfileShow poster's scripts in the public script library 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Hosted by CalWeb Internet Services, Inc.