i have some code that wont compile because it has too many args.

This is a discussion on i have some code that wont compile because it has too many args. within the C Programming forums, part of the General Programming Boards category; Code: static void spa_on_export_movie(GtkWidget *widget, gpointer user_data) { GtkWidget *file_selector = (GtkWidget *)user_data; const gchar *selected_filename; SWFMovie *movie = NULL; ...

  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    1

    i have some code that wont compile because it has too many args.

    Code:
    static void
    spa_on_export_movie(GtkWidget *widget, gpointer user_data) {
       	GtkWidget *file_selector = (GtkWidget *)user_data;
       	const gchar *selected_filename;
    	SWFMovie *movie = NULL;
    	
    gpointer ptr = g_object_get_data(G_OBJECT( user_data ), "view");
    	SpaView *view = SPA_VIEW(ptr);
       	selected_filename = gtk_file_selection_get_filename (GTK_FILE_SELECTION (file_selector));
    	//movie = spa_swf_movie_new( );
    	
    	movie = spa_swf_movie_new( SPA_CANVAS(view->canvas) );
    	SWFMovie_save(*movie,  selected_filename, 9);
    	
    }

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    1) that's not enough information we need to see both the function and how you're calling it.
    2) don't revive 3 year old threads... start your own.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why wont this compile:
    By ItchyBob in forum C++ Programming
    Replies: 5
    Last Post: 01-21-2011, 12:25 PM
  2. Why wont this compile?
    By Dieselfreak in forum C Programming
    Replies: 5
    Last Post: 12-13-2010, 10:37 AM
  3. WTF MS VC++ wont compile
    By EvilPickles in forum Tech Board
    Replies: 1
    Last Post: 09-23-2006, 09:36 AM
  4. WTF MS VC++ wont compile
    By EvilPickles in forum C++ Programming
    Replies: 0
    Last Post: 09-23-2006, 08:00 AM
  5. Why wont anything compile?
    By Crazyflanger in forum C++ Programming
    Replies: 7
    Last Post: 12-14-2003, 01:18 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21