can I use dlls with class?

Everything else that doesn't fall into one of the other PB categories.
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 627
Joined: Fri Dec 04, 2015 9:26 pm

can I use dlls with class?

Post by skinkairewalker »

hello, I have been looking for ways to use the SteamWorks API for a while, the only way I found was to create a procedural DLL that calls the SteamWorks API and import it into purebasic ...

I would like a way that I can call the SteamWorks functions directly, without having to create a dll wrapper ....

official page : ( only for SteamWorks developer )
https://partner.steamgames.com/download ... dk_151.zip
google drive :
https://drive.google.com/file/d/1_aBiFv ... 8mX52/view
Last edited by skinkairewalker on Sat May 22, 2021 8:12 pm, edited 1 time in total.
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: can I use dlls with class?

Post by IceSoft »

You cannot download it without a steamwork account.
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 627
Joined: Fri Dec 04, 2015 9:26 pm

Re: can I use dlls with class?

Post by skinkairewalker »

sorry, I uploaded the sdk to the google drive
https://drive.google.com/file/d/1_aBiFv ... sp=sharing
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: can I use dlls with class?

Post by IceSoft »

skinkairewalker wrote: Sat May 22, 2021 8:11 pm sorry, I uploaded the sdk to the google drive
https://drive.google.com/file/d/1_aBiFv ... sp=sharing
Is this allowed to store it out of the official download page, usable for everybody without a license few?
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 627
Joined: Fri Dec 04, 2015 9:26 pm

Re: can I use dlls with class?

Post by skinkairewalker »

IceSoft wrote: Wed May 26, 2021 11:01 am Is this allowed to store it out of the official download page, usable for everybody without a license few?
yes, it's free for everyone ...
you just need to have an account, go to > https://partner.steamgames.com/downloads/list
and sign the terms of use contract
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: can I use dlls with class?

Post by IceSoft »

skinkairewalker wrote: Wed May 26, 2021 2:57 pm
IceSoft wrote: Wed May 26, 2021 11:01 am Is this allowed to store it out of the official download page, usable for everybody without a license few?
yes, it's free for everyone ...
... which has an account. Not for everybody.
Your external download is not needed.
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Rinzwind
Enthusiast
Enthusiast
Posts: 636
Joined: Wed Mar 11, 2009 4:06 pm
Location: NL

Re: can I use dlls with class?

Post by Rinzwind »

@Ice
Please be quiet if you dont have anything to add to a solution.

Anyway, guess you need a c++ c wrapper…
Possibly PB interface can be of use, but I only saw that used with COM objects (ActiveX).
User avatar
StarBootics
Addict
Addict
Posts: 984
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: can I use dlls with class?

Post by StarBootics »

Hello everyone,

The answer is probably NO, You can't ! According to some tests I have presented in C++ OOP library and Interface even if it's possible, the C++ code need to be written and compiled in a certain way with some extra functionalities.

So if you compile the libraries yourself you can add these functionalities. But if it's already compiled and released as is, forget about it. You are better off to switch to C++ altogether.

Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
User avatar
Mijikai
Addict
Addict
Posts: 1360
Joined: Sun Sep 11, 2016 2:17 pm

Re: can I use dlls with class?

Post by Mijikai »

I only used some steam stuff a year ago when i wrote a clan mod for a game that needed authentication.
It wasnt to hard, interfaces worked for me back then so give it a try.
Im pretty sure i also saw some steam stuff in the forum which might be helpful, good luck.
Post Reply