Search found 15 matches

by MushroomHead
Wed Feb 09, 2022 12:06 pm
Forum: Windows
Topic: Purebasic 6 command line
Replies: 3
Views: 1105

Re: Purebasic 6 command line

Cheers, I'll take a look at it.
by MushroomHead
Wed Feb 09, 2022 10:52 am
Forum: Windows
Topic: Purebasic 6 command line
Replies: 3
Views: 1105

Purebasic 6 command line

Hello,

Apologies if I posted this in the wrong forum. I am using Purebasic 6 beta 4 compiler, I would like to know if it's possible to dump out the full command lines (i.e. options) the C backend is passing to gcc and linker? Thanks
by MushroomHead
Thu Oct 20, 2011 3:02 pm
Forum: Coding Questions
Topic: C to PB conversion needed
Replies: 3
Views: 1374

Re: C to PB conversion needed

Cheers Psychophanta, will try it later and see how it goes.
by MushroomHead
Tue Oct 18, 2011 4:55 pm
Forum: Coding Questions
Topic: C to PB conversion needed
Replies: 3
Views: 1374

C to PB conversion needed

Hi guys,

I have 2 "C" headers that need converting to PB. They are originally for DLL plugins for TrueBasic and I want make some DLLs for my own use ... I don't have much any C experience and would be glad if someone can convert them for me :-


typedef struct
{
long refcnt; /* Number of True ...
by MushroomHead
Fri Jun 26, 2009 4:18 pm
Forum: Off Topic
Topic: Question on Purebasic DX9 subsystem
Replies: 13
Views: 2621

Thanks!
by MushroomHead
Fri Jun 26, 2009 4:05 pm
Forum: Off Topic
Topic: Question on Purebasic DX9 subsystem
Replies: 13
Views: 2621

I just had a look, it says library subsystem ... what do you type in there?
by MushroomHead
Fri Jun 26, 2009 4:03 pm
Forum: Off Topic
Topic: Question on Purebasic DX9 subsystem
Replies: 13
Views: 2621

Thanks for the answer, one silly question, how do you specify DX9 subsystem? i.e. what command?
by MushroomHead
Fri Jun 26, 2009 3:52 pm
Forum: Off Topic
Topic: Question on Purebasic DX9 subsystem
Replies: 13
Views: 2621

Question on Purebasic DX9 subsystem

Hello,

I hope I have posted this in the right forum. I have been away from purebasic for a while and am just getting back into it. Looking at the history of changes in v4.30's manual, I see the following :-


[b]16th December 2008 : Version 4.30[/b]

- Fixed: DX9 subsystem on Windows


The manual ...
by MushroomHead
Thu Jul 06, 2006 10:46 pm
Forum: Coding Questions
Topic: Return a string via MSVC (Purebasic 4.00)
Replies: 4
Views: 1235

you might be interested of the sample code provided by the purebasic team:

see here :
[...]\PureBasic\Library SDK\LccWin32\SimpleLibrary

in particular, open the StringMultiply.c source file.

I've had a look, the problem is that code is for LCCWIN and I'm using MSVC 6.0 ... I don't know how ...
by MushroomHead
Thu Jul 06, 2006 10:42 am
Forum: Coding Questions
Topic: Return a string via MSVC (Purebasic 4.00)
Replies: 4
Views: 1235

Return a string via MSVC (Purebasic 4.00)

In Purebasic 3.94, I use the following code to return a string :-


#include <windows>
#include <stdio>

extern "C"
{

extern char *PB_StringBase;

extern char *PB_Getit()
{
char *ResultString = PB_StringBase;
int StringLength = strlen("HelloWorld!");

strcpy(PB_StringBase, "HelloWorld ...
by MushroomHead
Wed May 18, 2005 10:27 pm
Forum: Coding Questions
Topic: LibraryMaker Desc file.
Replies: 23
Views: 11336

Assuming you have already generated the required LIB files successfully, here's what your desc file would look like (I'm learning too and this is a modified version of the template provided with PB) :-


;
; Langage used to code th library: ASM or C
C
;
; Number of windows DLL than the library need ...
by MushroomHead
Wed May 18, 2005 10:11 pm
Forum: Coding Questions
Topic: Purebasic lib extern exports
Replies: 0
Views: 727

Purebasic lib extern exports

I'm playing around with Purebasic's Library SDK and using the examples, have created a simple lib which returns int's, floats and strings. I want to know if it's possible to share variables between the lib and PB e.g. if I do something like this :-


extern int PB_TestVal;


How do I access the ...
by MushroomHead
Wed Apr 27, 2005 5:37 pm
Forum: Coding Questions
Topic: MSVC .OBJ and Purebasic
Replies: 2
Views: 973

Re: MSVC .OBJ and Purebasic

Hello,

Looks like I missed the extern "C" bit ... thanks for clearing it up.
by MushroomHead
Wed Apr 27, 2005 3:01 pm
Forum: Coding Questions
Topic: MSVC .OBJ and Purebasic
Replies: 2
Views: 973

MSVC .OBJ and Purebasic

Hello,

Does anyone have a "C" source function done in MSVC which passes and returns a simple string to a PureBasic application? I have had a look at the LCCWin example but can't get it working in MSVC.

Any help appreciated.