Page 2 of 3

Posted: Tue Jun 17, 2003 6:00 pm
by Polo
there's only ASM sources :( Can you give me an exeample of your code ?

Posted: Tue Jun 17, 2003 6:15 pm
by tinman
Polo wrote:there's only ASM sources :( Can you give me an exeample of your code ?
I said already, look in the "ASM library" section, that's where they are. I think there are other libraries written in C too.

Posted: Tue Jun 17, 2003 6:57 pm
by Polo
yes, and I answer that I found only ASM sources :) I downloaded something like 8 library, but after I stopped...

Posted: Tue Jun 17, 2003 8:42 pm
by tinman
Polo wrote:yes, and I answer that I found only ASM sources :) I downloaded something like 8 library, but after I stopped...
One of my libraries is the 4th from the top. Did you pick random ones? :)

Even going through them in order, the first 3 do not have source, but the next two do and they are both in C.

Posted: Wed Jun 18, 2003 1:36 pm
by Polo
Well, I found that if I rename my files which was .CPP in .C it shoud work, but I want my files to be C++ and not C ... (some function need to be c++)

Posted: Wed Jun 18, 2003 2:47 pm
by traumatic
Polo wrote:(some function need to be c++)
my 2 ct. : no chance

Posted: Wed Jun 18, 2003 3:57 pm
by Polo
I think I don't understand you ...

Posted: Wed Jun 18, 2003 5:51 pm
by traumatic
Polo wrote:I think I don't understand you ...
AFAIK using c++ isn't possible

Posted: Wed Jun 18, 2003 5:54 pm
by Polo
Can't understand that :( That's a little stupid, but that's perhaps because Pure is coded in ASM ...
I'll try to do in C so :D

Posted: Thu Jun 19, 2003 9:47 am
by Polo
I'm working with tha, but that doesn't work :

Code: Select all

static PIXELFORMATDESCRIPTOR pfd= 
{
sizeof(PIXELFORMATDESCRIPTOR), 1,
PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER,
PFD_TYPE_RGBA, bits, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
16, 0, 0, PFD_MAIN_PLANE, 0, 0, 0, 0	
};
Can someone know why ? The file is a C file and I compile with VC++

Posted: Thu Jun 19, 2003 2:28 pm
by tinman
Polo wrote:

Code: Select all

static
Static data is not externally visible.

Posted: Thu Jun 19, 2003 3:55 pm
by Polo
but what I can put ?

Posted: Thu Jun 19, 2003 5:47 pm
by tinman
Nothing, just don't put static in. Not sure if it will export it, but I don't think you can use "extern" as that is usually to tell the compiler that the variable is in another source file, whereas for functions it makes it externally visible.

Posted: Thu Jun 19, 2003 11:09 pm
by GedB
Polo,

Have you tried compiling the test example in purebasic\Library SDK\LccWin32?

Posted: Fri Jun 20, 2003 8:32 am
by Polo
I think it works in VC, but I want to use that :

static PIXELFORMATDESCRIPTOR pfd=
{
sizeof(PIXELFORMATDESCRIPTOR), 1,
PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER,
PFD_TYPE_RGBA, bits, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
16, 0, 0, PFD_MAIN_PLANE, 0, 0, 0, 0
};

and that's that stuff which doesn't work