BASIC

Author Topic: iAd Banner - Technical only  (Read 41725 times)

Offline ampos

  • Prof. Inline
  • *****
  • Posts: 1594
    • View Profile
    • AMpostata Website
Re: iAd Banner - Technical only
« Reply #75 on: 2011-Feb-23 »
I get this error:

Code: GLBasic [Select]
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:2991:29: iAd/ADBannerView.h: No such file or directory
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:2995: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:2995: error: `interface' does not name a type
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3007: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3007: error: expected constructor, destructor, or type conversion before '(' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3009: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3009: error: expected constructor, destructor, or type conversion before '(' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3011: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3011: error: expected constructor, destructor, or type conversion before '(' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3015: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3017: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3019: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3021: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3027: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3039:30: AppViewController.h: No such file or directory
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3043: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3027: error: `end' does not name a type
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3047: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3049: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3049: error: `synthesize' does not name a type
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3051: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3051: error: `synthesize' does not name a type
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3063: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3073: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3099: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3141: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3161: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3163: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3173: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3179: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3189: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3225: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3233: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3243: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3265: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3269: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3277: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3283: error: expected constructor, destructor, or type conversion before "extern"
*** FATAL ERROR - Please post this output in the forum
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Offline ampos

  • Prof. Inline
  • *****
  • Posts: 1594
    • View Profile
    • AMpostata Website
Re: iAd Banner - Technical only
« Reply #76 on: 2011-Feb-23 »
I have created a dir called "iad" and inside placed the files "addbanner.h" & "iad.h" found in the mac, and now got this error:

Code: GLBasic [Select]
compiling:
In file included from C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3013:
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:8:24: UIKit/UIKit.h: No such file or directory
In file included from C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3013:
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:20: error: `NSUInteger' does not name a type
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:22: error: stray '@' in program
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:22: error: `protocol' does not name a type
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:34: error: stray '@' in program
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:34: error: `interface' does not name a type
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:38: error: stray '@' in program
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:41: error: stray '@' in program
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:41: error: expected constructor, destructor, or type conversion before '(' token
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:48: error: stray '@' in program
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:48: error: expected constructor, destructor, or type conversion before '(' token
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:54: error: stray '@' in program
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:54: error: expected constructor, destructor, or type conversion before '(' token
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:58: error: expected unqualified-id before '+' token
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:61: error: stray '@' in program
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:61: error: expected constructor, destructor, or type conversion before '(' token
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:65: error: stray '@' in program
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:65: error: expected constructor, destructor, or type conversion before '(' token
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:69: error: expected unqualified-id before '-' token
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:71: error: stray '@' in program
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:73: error: stray '@' in program
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:71: error: `end' does not name a type
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:74: error: stray '@' in program
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:83: error: expected unqualified-id before '-' token
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:92: error: expected unqualified-id before '-' token
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:97: error: expected unqualified-id before '-' token
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:99: error: stray '@' in program
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:101: error: expected constructor, destructor, or type conversion before "extern"
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:105: error: expected initializer before '*' token
D:/Programas/GLBasic/Proyectos/MagicBox/iAd/ADBannerView.h:106: error: expected initializer before '*' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3017: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3017: error: `interface' does not name a type
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3029: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3029: error: expected constructor, destructor, or type conversion before '(' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3031: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3031: error: expected constructor, destructor, or type conversion before '(' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3033: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3033: error: expected constructor, destructor, or type conversion before '(' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3037: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3039: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3041: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3043: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3049: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3061:30: AppViewController.h: No such file or directory
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3065: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3049: error: `end' does not name a type
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3069: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3071: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3071: error: `synthesize' does not name a type
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3073: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3073: error: `synthesize' does not name a type
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3085: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3095: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3121: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3163: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3183: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3185: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3195: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3201: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3211: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3247: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3255: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3265: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3287: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3291: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3299: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:3305: error: expected constructor, destructor, or type conversion before "extern"
*** FATAL ERROR - Please post this output in the forum
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1543
    • View Profile
Re: iAd Banner - Technical only
« Reply #77 on: 2011-Feb-23 »
You want fish or learn how to fish?

Try it without glb!

http://www.youtube.com/results?search_query=xcode+iad+tutorial&aq=f

Offline ampos

  • Prof. Inline
  • *****
  • Posts: 1594
    • View Profile
    • AMpostata Website
Re: iAd Banner - Technical only
« Reply #78 on: 2011-Feb-23 »
er.... I want a fish.  =D

How can I compile for iPhone, if GLBasic gives me an error when trying to compile for iphone?

Ig GLB does not generate the xcode proyect, I will not be able to compile in Mac-xcode for iphone...

Also, I can understand spoken english barely, so a youtube video is not an option for me.

I love you trying to teach me how to, but really, it exceeds me.

Coould you try a step-by-step how-to?
« Last Edit: 2011-Feb-23 by ampos »
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1543
    • View Profile
Re: iAd Banner - Technical only
« Reply #79 on: 2011-Feb-24 »
1. Drag AdViewController.h and AdViewController.mm to the Class folder of the glb xcode project. Note my source as contains both the header (.h) and class (.mm). I presume your errors show that you may have not done this.
2. Add the iAd framework.

If that doesn't work then I'll have to make a video.

Offline ampos

  • Prof. Inline
  • *****
  • Posts: 1594
    • View Profile
    • AMpostata Website
Re: iAd Banner - Technical only
« Reply #80 on: 2011-Feb-24 »
Perhaps I dont understand you, but the problem is in GLB, it can not compile or create the xcode project.
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1543
    • View Profile
Re: iAd Banner - Technical only
« Reply #81 on: 2011-Feb-24 »
Instead of word, perhaps you need to make a video from start to finish of how you do it.  :whistle:

Offline ampos

  • Prof. Inline
  • *****
  • Posts: 1594
    • View Profile
    • AMpostata Website
Re: iAd Banner - Technical only
« Reply #82 on: 2011-Feb-24 »
Oh, it is really easy to know what I am doing...

This program:

Code: GLBasic [Select]
// --------------------------------- //
// Project: Test
// Start: Thursday, February 24, 2011
// IDE Version: 9.006


        // SETCURRENTDIR("Media") // seperate media and binaries?

ad_animate()

FUNCTION ad_animate:
        glb_BannerInit()
        WHILE TRUE
                PRINT "AdBanner Test", 10, 100
                SHOWSCREEN
        WEND
ENDFUNCTION

?IFDEF IPHONE
        IMPORT "C" void glb_BannerInit()
?ELSE
        FUNCTION glb_BannerInit:
                DEBUG "[WIN] Banner Init (sim) \n"
        ENDFUNCTION
?ENDIF

INLINE

// .h ////////////

// iAdBanner with GLB

#import "iAd/ADBannerView.h"

@interface AppViewController : UIViewController <ADBannerViewDelegate> {
        ADBannerView * bannerView;
        UIView * _appView;
        UIWindow * _appWindow;
}

@property (nonatomic, retain) IBOutlet UIView * appView;
@property (nonatomic, retain) IBOutlet ADBannerView * bannerView;
@property (nonatomic, retain) IBOutlet UIWindow * appWindow;

- (void)createBannerView;
- (void)showBanner;
- (void)hideBanner;
- (void)changeBannerOrientation:(UIInterfaceOrientation)toOrientation;


@end



// .mm ///////////////

#import "AppViewController.h"

@implementation AppViewController

@synthesize appView = _appView;
@synthesize bannerView; // = _bannerView;
@synthesize appWindow = _appWindow;

# pragma mark -
# pragma mark View


- (void)viewDidLoad {
        [super viewDidLoad];
//      NSLog(@"viewDidLoad");
}

- (void)viewDidAppear:(BOOL)animated {
        [super viewDidAppear:animated];
//      NSLog(@"viewDidAppear");
}

//- (void)viewWillAppear:(BOOL)animated {
//      NSLog(@"viewWillAppear");
//      if (bannerView) {
//              UIInterfaceOrientation orientation=self.interfaceOrientation;
//              [self changeBannerOrientation:orientation];
//      }
//}

- (void)dealloc {
    [super dealloc];
}

//- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
//
//              return (interfaceOrientation == UIInterfaceOrientationPortrait) | (interfaceOrientation == UIInterfaceOrientationLandscapeLeft) | (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
//}



#pragma mark -
#pragma mark ADBanner

//- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
        //if (bannerView) {
        //      [self changeBannerOrientation:toInterfaceOrientation];
        //}
        //      NSLog(@"shouldAutorotate");
//}

- (void)changeBannerOrientation:(UIInterfaceOrientation)toOrientation {
        if (UIInterfaceOrientationIsLandscape(toOrientation)) {
                bannerView.currentContentSizeIdentifier=ADBannerContentSizeIdentifierLandscape;
                self.view.frame=CGRectMake(0,0, 320, 120);
        } else {
                bannerView.currentContentSizeIdentifier=ADBannerContentSizeIdentifierPortrait;
                self.view.frame=CGRectMake(0,0, 480, 100);
        }
}

- (void)bannerViewDidLoadAd:(ADBannerView *)banner {
        NSLog(@"bannerViewDidLoad");
        //      self.bannerView.hidden=NO;
        [self showBanner];
}

- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error {
        //      self.bannerView.hidden=YES;
        //      NSLog(@"bannerView");
        NSLog(@"E R R O R: '%@'",error);
        //      [self hideBanner];
}


- (void)createBannerView {
//      NSLog(@"Banner creating...");
        _appWindow = [[UIApplication sharedApplication] keyWindow];

        bannerView=[[[ADBannerView alloc] init] autorelease];
        bannerView.delegate=self;

        self.view.frame = CGRectMake(0,0, 768, 66);
        bannerView.frame=CGRectMake(0,-66, 768, 66);
        bannerView.currentContentSizeIdentifier=ADBannerContentSizeIdentifierPortrait;

        [self.view addSubview:self.bannerView];

        [_appWindow addSubview:self.view];
        [_appWindow makeKeyWindow];
//      [_appWindow makeKeyAndVisible];
}

- (void)showBanner {
//      NSLog(@"Show banner");
        CGRect bannerFrame=bannerView.frame;
        bannerFrame.origin.y=0;
        [UIView beginAnimations:@"showBanner" context:NULL];
        bannerView.frame=bannerFrame;
        [UIView commitAnimations];
}

- (void)hideBanner {
//      NSLog(@"Hide banner");
        CGRect bannerFrame=bannerView.frame;
        bannerFrame.origin.y=-bannerFrame.size.height;
        bannerView.frame=bannerFrame;
}


#pragma mark -
#pragma mark GLB

- (void)initBanner {
        NSAutoreleasePool *pool = [[NSAutoreleasePool alloc]init];
        [self performSelectorOnMainThread:@selector(createBannerView) withObject:nil waitUntilDone:YES];
        [pool release];
}

@end


extern "C" void glb_BannerInit() {
        AppViewController * UIGlbasic;
        UIGlbasic = [[AppViewController alloc] init];
        [UIGlbasic createBannerView];
        //      [UIGlbasic release];
        [UIGlbasic retain];
}

ENDINLINE


Then I press F5 in GLBasic and get this error:

Code: GLBasic [Select]
_______________________________________
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.7.826 SN:bf7232e1 - 3D, NET
Wordcount:8 commands
compiling:
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:140:29: iAd/ADBannerView.h: No such file or directory
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:144: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:144: error: `interface' does not name a type
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:156: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:156: error: expected constructor, destructor, or type conversion before '(' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:158: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:158: error: expected constructor, destructor, or type conversion before '(' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:160: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:160: error: expected constructor, destructor, or type conversion before '(' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:164: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:166: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:168: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:170: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:176: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:188:30: AppViewController.h: No such file or directory
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:192: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:176: error: `end' does not name a type
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:196: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:198: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:198: error: `synthesize' does not name a type
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:200: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:200: error: `synthesize' does not name a type
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:212: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:222: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:248: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:290: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:310: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:312: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:322: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:328: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:338: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:374: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:382: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:392: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:414: error: expected unqualified-id before '-' token
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:418: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:426: error: stray '@' in program
C:\Users\AMpos\AppData\Local\Temp\glbasic\gpc_temp0.cpp:432: error: expected constructor, destructor, or type conversion before "extern"
*** FATAL ERROR - Please post this output in the forum
_______________________________________
*** Finished ***
Elapsed: 1.2 sec. Time: 10:45
Build: 0 succeeded.
*** 1 FAILED ***
 

(I am at work now and have not access to any mac)
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Offline Moebius

  • Dr. Type
  • ****
  • Posts: 315
    • View Profile
Re: iAd Banner - Technical only
« Reply #83 on: 2011-Feb-24 »
You don't add the objective-C files (aka ADBannerView.h, and ADBannerview.mm) in GLBasic.  In GLBasic, all you do is use the IMPORT command.

Then, when you've compiled your XCode project, you add these objective-C files in XCode in the way matchy described before.

- Add the iAd files in XCode not GLBasic!
Endless Loop: n., see Loop, Endless.
Loop, Endless: n., see Endless Loop.
- Random Shack Data Processing Dictionary

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1543
    • View Profile
Re: iAd Banner - Technical only
« Reply #84 on: 2011-Feb-24 »
Example:


Well...I'm off to have some cheesecake now.  :rant:

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10715
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: iAd Banner - Technical only
« Reply #85 on: 2011-Feb-24 »
the gbas files are compiled as C++ files. You must make the objC code in a .m or .mm file, and then:
REQUIRE "iphonestuff.mm"
IMPORT "C" void IPhoneStuff()


Offline ampos

  • Prof. Inline
  • *****
  • Posts: 1594
    • View Profile
    • AMpostata Website
Re: iAd Banner - Technical only
« Reply #86 on: 2011-Feb-24 »
Everytime one of you talk, make it worse  ;/

What is this "make objC" thing you are talking?

Again you are supousing I understand C, and again, I said I have ZERO idea of C.  :giveup:

what is "iphonestuff.mm" and where should I put it?
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Offline ampos

  • Prof. Inline
  • *****
  • Posts: 1594
    • View Profile
    • AMpostata Website
Re: iAd Banner - Technical only
« Reply #87 on: 2011-Feb-24 »
I am at work and I have not access to my mac. Can someone sent me the ADBannerView.h and ADBannerview.mm files, so I can continue testing?
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1543
    • View Profile
Re: iAd Banner - Technical only
« Reply #88 on: 2011-Feb-24 »
...and with strawberry topping too.  :zzz:


That's why posted an image but obvious tutorial video is required.  ;/

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10715
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: iAd Banner - Technical only
« Reply #89 on: 2011-Feb-24 »
I'm very glad GLBasic itself seems so easy, that you are able to write such a cool game as the Krakout remake.

Can someone please do a video of how to put the iADs in a GLBasic app?