It is currently Sun May 19, 2013 12:40 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Error at line 12: '[' is not a valid argument type
PostPosted: Thu Jan 22, 2009 3:16 am 
Offline
Addict
Addict
User avatar

Joined: Sat Jun 30, 2007 8:04 pm
Posts: 2704
The following source produces this error when compiled with Tailbite:

Code:
Declare Proc(a)
Declare Proc2(a)
Declare ProcLoader(a)

ProcedureDLL Proc(a)
   ProcedureReturn ProcLoader(a)
EndProcedure

ProcedureDLL Proc2(a)
EndProcedure

Procedure ProcLoader(a)
   ProcedureReturn Proc2(a)
EndProcedure


Code:
---------------------------
TB_Test.desc
---------------------------
Error at line 12: '[' is not a valid argument type
---------------------------
OK   
---------------------------


TB_Test.desc:

Code:
ASM
;
1
KERNEL32
;
LIB
;
0
;
Some.chm
;
Proc, Long, [ (a)
Long | StdCall
;
TB_Test_Init
InitFunction | StdCall
;

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 22, 2009 6:54 am 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 4714
Location: Berlin - Germany
Rename Proc2(a)
This Syntax is reserved for Proc(a) with optional parameters

_________________
PureBasic 5.11 | Windows 7 SP1 (x64) | Linux Mint 14 (x64) | RealSource

The use of EnableExplicit is free of charge and avoids errors.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 22, 2009 10:56 am 
Offline
Addict
Addict
User avatar

Joined: Sat Jun 30, 2007 8:04 pm
Posts: 2704
My mistake. :oops:

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 22, 2009 12:25 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
TailBite is not bulletproof :shock:

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye