Interface Generator 1.0 - Get it!

Share your advanced PureBasic knowledge/code with the community.
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

codearchiv ????
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

..

Post by NoahPhense »

GedB wrote:codearchiv ????
dont tell me you dont have this.. ;)

Click CodeArchiv (on the left) ..

http://www.purearea.net/pb/english/index.htm


- np
Last edited by NoahPhense on Tue Jul 13, 2004 8:39 pm, edited 1 time in total.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

you dont have codearchive?

Thats very handy, nearly a must!!
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

I can download the whole library! Way cool 8)
akj
Enthusiast
Enthusiast
Posts: 668
Joined: Mon Jun 09, 2003 10:08 pm
Location: Nottingham

Post by akj »

When I run the Interface Generator (on Windows ME) on very large interfaces e.g. Word.Application, Excel.Application I consistently get the following error message:

303: An attempted read or write to/from an address to which that process isn't allowed (C000005)
Severitycode 0
Facilitycode 0
Errorcode 0

The address is (it seems) always the same: C000005

How can I prevent this error message?
Anthony Jordan
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

..

Post by NoahPhense »

akj wrote:When I run the Interface Generator (on Windows ME) on very large interfaces e.g. Word.Application, Excel.Application I consistently get the following error message:

303: An attempted read or write to/from an address to which that process isn't allowed (C000005)
Severitycode 0
Facilitycode 0
Errorcode 0

The address is (it seems) always the same: C000005

How can I prevent this error message?
Install windows 2000... ;)



j/k

- np
User avatar
bingo
Enthusiast
Enthusiast
Posts: 210
Joined: Fri Apr 02, 2004 12:21 pm
Location: germany/thueringen
Contact:

interface to "MakeCab.MakeCab.1"

Post by bingo »

simple vbs to packing any file to cab ... (xp)

Code: Select all

Set Cab = CreateObject("MakeCab.MakeCab.1")
Cab.CreateCab "C:\Tmp\tmp.cab", False, False, False
Cab.AddFile "C:\windows\explorer.exe", "explorer.exe"
Cab.CloseCab
it is interface "catsrvut.dll"

with interface-generator:

Code: Select all

; Interface generated by Interface Generator 1.0, Date 08/04/2004 

; COMEXPLib, ComExp 1.0 Type Library

; Structures

Structure _tagCLASSINFO
  Clsid
  pszClassName.l
  nProgIDs.l
  ppszProgID.l
EndStructure

Structure _tagPSCLASSINFO
  PSClsid.l
  pszPSClassName.l
  nInterfaces.l
  pPSItfInfo.l
EndStructure

Structure _tagPSITFINFO
  iid.l
  pszInterfaceName.l
EndStructure

; Interfaces

Interface IComExport Extends IUnknown
  ExportAsMSI(a,b,c,d)
  GetRemoteClassInfo(a,b)
  GetTypeLibInfo(a,b)
  GetPSDlls(a,b)
  GetPSClassInfo(a,b,c)
EndInterface
where is
CreateCab(...)
AddFile(...)
interface ?
:roll:
["1:0>1"]
aXend
Enthusiast
Enthusiast
Posts: 103
Joined: Tue Oct 07, 2003 1:21 pm
Location: Netherlands

Post by aXend »

If I use the progID "MakeCab.MakeCab.1" with the Interface Generator I get the following:

Code: Select all

; Interface generated by Interface Generator 1.0, Date 08/04/2004 

; COMMKCABLib, COM MakeCab 1.0 Type Library

; DispInterfaces

Interface IMakeCab Extends IDispatch
  CreateCab(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p)
  AddFile(a,b,c,d,e,f,g,h)
  CloseCab()
  CopyFile(a,b,c,d,e,f,g,h)
EndInterface
This shows all the methods that you wanted. I think you used a differt progID.
User avatar
waffle
Enthusiast
Enthusiast
Posts: 129
Joined: Mon May 12, 2003 1:34 pm
Location: USA
Contact:

Post by waffle »

so would this work with the newton physics lib to freely incorporate it with the 3D engine .... ?
Code is good... Its an international language.
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Anybody ever get this working for ActiveX controls? Particularly activex controls created in VC++? I tried and it constantly returns nothing.
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

*bump*
techjunkie
Addict
Addict
Posts: 1126
Joined: Wed Oct 15, 2003 12:40 am
Location: Sweden
Contact:

Post by techjunkie »

Where did aXend go?!?!

What I understand the last post from aXend was Thu Sep 01, 2005 20:56.

:cry:
Image
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
Lebostein
Addict
Addict
Posts: 830
Joined: Fri Jun 11, 2004 7:07 am

Post by Lebostein »

Hi, great tool!

Why the Interface generator creates simple named parameters? Could you implement an "extended output" with original names, types and pseudotypes, for example:

from:

Code: Select all

Interface Test
  GetText(a,b)
  SetText(a,b)
EndInterface
to:

Code: Select all

Interface Test
  GetText(*pstrText, *plResult)
  SetText(strText.p-bstr, *plResult)
EndInterface
I can see this special informations on the right side in the generator, when I select a method in the interface but not in the generated code... it would be very useful
S.M.
Enthusiast
Enthusiast
Posts: 118
Joined: Sat Apr 24, 2004 1:11 pm
Contact:

Post by S.M. »

@Lebostein
You could use my tool instead, it supports all your wishes (and a bit more)
See here:http://www.purebasic.fr/english/viewtopic.php?t=23370
User avatar
Frontier
User
User
Posts: 74
Joined: Thu Dec 22, 2005 2:43 pm
Location: Chios, Greece
Contact:

Post by Frontier »

Hi,

Is it possible to have both COMLIB and Droopy's lib? I'm asking because there is a keyword conflict in functions Ansi* and Uni* which exists on both libraries, which causes the compiler not to load.

Many thanks in advance.
Post Reply