Tailbite residents?

Everything else that doesn't fall into one of the other PB categories.
Justin
Addict
Addict
Posts: 956
Joined: Sat Apr 26, 2003 2:49 pm

Tailbite residents?

Post by Justin »

it is possible to make a resident with TB?, there is a button but does not work. i would like to make a resident with some MS interfaces(using extends) and constants, when i use Make Resident TB hangs, it can be done?
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Yes, I thought this already worked (this is what happens when you put the button before actually writing the code XD ).

EDIT: it DOES work. Browse for your pb file with Interfaces and what not, and press the 'Make resident' button. If it doesn't work, make sure you're using the last version: 1.0 Beta 9.04.

EDIT2: I think the problem is you didn't select any file. I've just fixed that so it doesn't hang (just doesn't do nothing).

http://www.terra.es/personal5/temporald ... taller.exe

I'm doing the help docs right now, so the current version is more or less like the final one (but I must check this).
El_Choni
Justin
Addict
Addict
Posts: 956
Joined: Sat Apr 26, 2003 2:49 pm

Post by Justin »

Thanks, I updated to the last version, there is a little bug in the updater, after downloading and installing the files says

PB Compiler: ...\TBCompiler.pb


Syntax Error!
Ha terminado la canalizacion

although the files are copied, maybe deleteing the previous ones before installing would work, i haven't tried

Residents don't work with interfaces using extends, this hangs TB:

Code: Select all

Interface ICatalog extends IDispatch
  get_Tables(a.l)
  get_ActiveConnection(a.l)
  put_ActiveConnection(a.l)
  putref_ActiveConnection(a.l)
  get_Procedures(a.l)
  get_Views(a.l)
  get_Groups(a.l)
  get_Users(a.l)
  Create(a.l, b.l)
  GetObjectOwner(a.l, b.l, c.l, d.l)
  SetObjectOwner(a.l, b.l, c.l, d.l)
EndInterface
IDispatch is already declared in PB.
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Please, download the latest version (again ;) and you'll see now what's going on (you'll see the error reported by the compiler). Seems that you must include IDispatch in your resident file or the compiler doesn't recognize it, funny.

About that error the updater gave you, it's fixed now thanks. Better delete current install and download the installer again (I have to work a bit more in the updater to download only new files).
El_Choni
Justin
Addict
Addict
Posts: 956
Joined: Sat Apr 26, 2003 2:49 pm

Post by Justin »

The updater worked. Strange it does not recognize declared interfaces, but just declaring IDispatch in the resident worked, thanks.
freak
PureBasic Team
PureBasic Team
Posts: 5947
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

This is the usual behaviour of the PB compiler. When compiling
residents, it doesn't load those that are allready there.
It is the same with structures/constants

Timo
quidquid Latine dictum sit altum videtur
Post Reply