Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Help me learn~
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Tue Jul 24, 2007 6:57 pm    Post subject: Reply with quote

He can still learn that, and how is not using what appal says the wrong way. Oops, that came out bad. I mean appal gives super great advice that you should almost always use. But if you really don't need it then you really don't have to use it.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Tue Jul 24, 2007 7:07 pm    Post subject: Reply with quote

It's called having good habits, some of use don't have some.
_________________
Back to top
View user's profile Send private message
Lorrenzo
Moderator
Reputation: 4

Joined: 02 Jun 2006
Posts: 3744

PostPosted: Tue Jul 24, 2007 7:09 pm    Post subject: Reply with quote

Still lost on..

Code:
SHGetFolderPath
 &
PathStripToRoot


Anyone have some good resources I could see..or tuts I guess?

I've been looking around..havn't found much..

You all seem to know what your doing tho..

Oh, and does this mean anything..

Code:
function LocalAppDataPath : string;
const
   SHGFP_TYPE_CURRENT = 0;
var
   path: array [0..MAXPATH] of char;
begin
   SHGetFolderPath(0,CSIDL_LOCAL_APPDATA,0,SHGFP_TYPE_CURRENT,@path[0]) ;
   Result

_________________
LAWLrrenzolicious
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Tue Jul 24, 2007 7:12 pm    Post subject: Reply with quote

yes
Back to top
View user's profile Send private message
Lorrenzo
Moderator
Reputation: 4

Joined: 02 Jun 2006
Posts: 3744

PostPosted: Tue Jul 24, 2007 7:16 pm    Post subject: Reply with quote

Code:
procedure TForm1.Button10Click(Sender: TObject);
begin
function GetMyDocuments: string;
var
Res: HResult;
Path: array[0..Max_Path] of Char;
begin
Res := ShGetFolderPath(0, csidl_Personal, 0, shgfp_Type_Current, Path);
if S_OK <> Res then
    raise Exception.Create('Could not determine My Documents path');
Result := Path;
end
end;


Uhm, whats wrong with that??
I get the errors
Build
[Error] Launch.pas(69): Statement expected but 'FUNCTION' found
[Error] Launch.pas(74): Undeclared identifier: 'ShGetFolderPath'
[Error] Launch.pas(74): Undeclared identifier: 'csidl_Personal'
[Error] Launch.pas(74): Undeclared identifier: 'shgfp_Type_Current'
[Error] Launch.pas(79): ';' expected but 'END' found
[Fatal Error] Launchs.dpr(Cool: Could not compile used unit 'Launch.pas'


I haate learning..and having to ask things like this..
makes me feel dumb..

_________________
LAWLrrenzolicious
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Tue Jul 24, 2007 7:24 pm    Post subject: Reply with quote

function should be above the begin

u did
end
end;
write just 1 end;
just take this:

function GetMyDocuments: string;
var
Res: HResult;
Path: array[0..Max_Path] of Char;


above the first begin
and the rest should be solved i think...
and do 1 begin not 2...
u got:

begin
function GetMyDocuments: string;
var
Res: HResult;
Path: array[0..Max_Path] of Char;
begin //delete this line

functions and variables always above begin...
u can see it becuase u took the code from a site so paste it uder procedure if u see
begin
..
..
..
end;
if not paste it between the existing begin .. end;
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Tue Jul 24, 2007 7:30 pm    Post subject: Reply with quote

UnLmtD wrote:
It's called having good habits, some of use don't have some.


So its a good habit to search for where something is when you already know where it is?

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Tue Jul 24, 2007 7:39 pm    Post subject: Reply with quote

oib111 wrote:
UnLmtD wrote:
It's called having good habits, some of use don't have some.


So its a good habit to search for where something is when you already know where it is?


*Sigh* It's a good habit to not hardcode path when there's no need to.

_________________
Back to top
View user's profile Send private message
Lorrenzo
Moderator
Reputation: 4

Joined: 02 Jun 2006
Posts: 3744

PostPosted: Tue Jul 24, 2007 7:45 pm    Post subject: Reply with quote

ok..is there like any "uses" think I need for this..


Code:
function LocalAppDataPath : string;
const
   SHGFP_TYPE_CURRENT = 0;
var
   path: array [0..MAXPATH] of char;
begin
   SHGetFolderPath(0,CSIDL_LOCAL_APPDATA,0,SHGFP_TYPE_CURRENT,@path[0]) ;
   Result

_________________
LAWLrrenzolicious
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Tue Jul 24, 2007 7:45 pm    Post subject: Reply with quote

GOOGLE IT
Back to top
View user's profile Send private message
Lorrenzo
Moderator
Reputation: 4

Joined: 02 Jun 2006
Posts: 3744

PostPosted: Tue Jul 24, 2007 7:46 pm    Post subject: Reply with quote

appalsap wrote:
GOOGLE IT


you a spaz, holy..just asked for some help

_________________
LAWLrrenzolicious
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Tue Jul 24, 2007 7:47 pm    Post subject: Reply with quote

well do u get this undeclared indifinder: ' ' error??

Last edited by Symbol on Tue Jul 24, 2007 7:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Tue Jul 24, 2007 7:47 pm    Post subject: Reply with quote

UnLmtD wrote:
oib111 wrote:
UnLmtD wrote:
It's called having good habits, some of use don't have some.


So its a good habit to search for where something is when you already know where it is?


*Sigh* It's a good habit to not hardcode path when there's no need to.


Oops, didn't realize he was hardcoding...

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Tue Jul 24, 2007 7:52 pm    Post subject: Reply with quote

oib111 wrote:
UnLmtD wrote:
oib111 wrote:
UnLmtD wrote:
It's called having good habits, some of use don't have some.


So its a good habit to search for where something is when you already know where it is?


*Sigh* It's a good habit to not hardcode path when there's no need to.


Oops, didn't realize he was hardcoding...


You do realize you make absolutely no sense right?

_________________
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Tue Jul 24, 2007 7:54 pm    Post subject: Reply with quote

UnLmtD wrote:
oib111 wrote:
UnLmtD wrote:
oib111 wrote:
UnLmtD wrote:
It's called having good habits, some of use don't have some.


So its a good habit to search for where something is when you already know where it is?


*Sigh* It's a good habit to not hardcode path when there's no need to.


Oops, didn't realize he was hardcoding...


You do realize you make absolutely no sense right?


I don't think he quite understands what hardcoding means....
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites