| 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?
|
Posted: Tue Jul 24, 2007 6:57 pm Post subject: |
|
|
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 |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Tue Jul 24, 2007 7:07 pm Post subject: |
|
|
It's called having good habits, some of use don't have some.
_________________
|
|
| Back to top |
|
 |
Lorrenzo Moderator
Reputation: 4
Joined: 02 Jun 2006 Posts: 3744
|
Posted: Tue Jul 24, 2007 7:09 pm Post subject: |
|
|
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 |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Tue Jul 24, 2007 7:12 pm Post subject: |
|
|
| yes
|
|
| Back to top |
|
 |
Lorrenzo Moderator
Reputation: 4
Joined: 02 Jun 2006 Posts: 3744
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Tue Jul 24, 2007 7:24 pm Post subject: |
|
|
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 |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Tue Jul 24, 2007 7:30 pm Post subject: |
|
|
| 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 |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Tue Jul 24, 2007 7:39 pm Post subject: |
|
|
| 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 |
|
 |
Lorrenzo Moderator
Reputation: 4
Joined: 02 Jun 2006 Posts: 3744
|
Posted: Tue Jul 24, 2007 7:45 pm Post subject: |
|
|
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 |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Tue Jul 24, 2007 7:45 pm Post subject: |
|
|
| GOOGLE IT
|
|
| Back to top |
|
 |
Lorrenzo Moderator
Reputation: 4
Joined: 02 Jun 2006 Posts: 3744
|
Posted: Tue Jul 24, 2007 7:46 pm Post subject: |
|
|
| appalsap wrote: | | GOOGLE IT |
you a spaz, holy..just asked for some help
_________________
LAWLrrenzolicious |
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Tue Jul 24, 2007 7:47 pm Post subject: |
|
|
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 |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Tue Jul 24, 2007 7:47 pm Post subject: |
|
|
| 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 |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Tue Jul 24, 2007 7:52 pm Post subject: |
|
|
| 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 |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Tue Jul 24, 2007 7:54 pm Post subject: |
|
|
| 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 |
|
 |
|