Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / quick help

Author
Message
CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 17th Jun 2008 16:09
i wrote this in a header file,



but when i go in the main program and type



in the header i do have #include "darkgdk.h" so i can call those cammands later, but why doesnt the HudImageFileName Work

SunDawg
19
Years of Service
User Offline
Joined: 21st Dec 2004
Location: Massachusetts
Posted: 17th Jun 2008 16:20


That isn't a function, therefore you can't specify or feed it parameters.


My site, for various stuff that I make.
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 17th Jun 2008 16:28
Try this:

CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 17th Jun 2008 17:28
when i try this
Quote: "char* hudimagefilename;

char* HudImageFileName ( char* hudimagefilename )
{
this->hudimagefilename = hudimagefilename;
}"


i get these errors


CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 17th Jun 2008 17:29 Edited at: 17th Jun 2008 17:30
Quote: "char* HudImageFileName ( char* hudimagefilename );
That isn't a function, therefore you can't specify or feed it parameters.
"

how do i make that a fuction

CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 17th Jun 2008 17:31
i think i got it to work with


Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 17th Jun 2008 17:34 Edited at: 17th Jun 2008 17:34


That qualifies as a function, but it does nothing whatsoever. If you want the function to assign the parameter to a char* value, then try this:

Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 17th Jun 2008 18:15
Only if filename points to a static character string.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office

Login to post a reply

Server time is: 2024-09-29 23:24:31
Your offset time is: 2024-09-29 23:24:31