Search found 6 matches

by Quark
Tue Dec 17, 2024 5:27 pm
Forum: Coding Questions
Topic: No functions found in a DLL
Replies: 12
Views: 1716

Re: No functions found in a DLL

If I can generate a PB compatible DLL I am tempted to follow this path. Which CPP compiler would you recommend for this purpose ?
I guess that it is not possible to just open the TWS API CPP project and quickly generate a DLL ? There will probably be millions of options to select as well as many ...
by Quark
Tue Dec 17, 2024 4:13 pm
Forum: Coding Questions
Topic: No functions found in a DLL
Replies: 12
Views: 1716

Re: No functions found in a DLL

> You can't use .net dll in PureBasic or any other programming language that doesn't run on .net.
OK, just to be clear: it is just not possible to use a C# or CPP compiler to generate a DLL that can be used by Purebasic. Right ?

A usable DLL could have been the simplest solution. Almost as simple ...
by Quark
Mon Dec 16, 2024 6:26 pm
Forum: Coding Questions
Topic: No functions found in a DLL
Replies: 12
Views: 1716

Re: No functions found in a DLL

So nobody knows what is wrong is wrong with this DLL ?

Maybe I should find a c# compiler and try to recompile TWS.lib in a more "standard" library, if I am given this possibility.
But this way could take hours or days (or weeks, who knows...) as I never did this kind of thing.

Anyway I now took ...
by Quark
Wed Dec 11, 2024 4:42 pm
Forum: Coding Questions
Topic: No functions found in a DLL
Replies: 12
Views: 1716

Re: No functions found in a DLL

> They do have a Web api which PureBasic should be able to handle easily. ( or with some effort anyway )
I have no idea of what is a Web API is. I will find out

> think about using C# for this one project.
I am a bit too old to learn a new language! I just know C and VB6 languages.
Initially I ...
by Quark
Mon Dec 09, 2024 9:36 pm
Forum: Coding Questions
Topic: No functions found in a DLL
Replies: 12
Views: 1716

Re: No functions found in a DLL

>Where is the DLL from? Is it 32 or 64 bit?

I think it is 32 bit but I am not sure. Does this make a difference?
It comes with TWS API installation, that is an API for interfacing with "Interactive Brokers" broker (financial info, placing orders, etc).
by Quark
Sun Dec 08, 2024 5:02 pm
Forum: Coding Questions
Topic: No functions found in a DLL
Replies: 12
Views: 1716

No functions found in a DLL

PureBasic 6.12 LTS (Windows - x64) and also x32

Hi,

Just a newbie to PB struggling with simple things...
I just would like to access the functions of a DLL.
Here is my code:

LibNum = 1
LibHandle = OpenLibrary(LibNum,"TWSLib.dll")

Result = IsLibrary(LibNum)
Result = LibraryID(LibNum ...