coffee callback COMPILE



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 01/09/2003 at 15:08, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   8.100 
    Platform:   Windows  ; Mac  ;  
    Language(s) :     C++  ;

    ---------
     
    i cant  find a way to read the error messages in my CoffeeEditorCallback function.I need to get the error string and position numbers and put them in a container to pass back .But I cant figure out how to read these 3 values.

        
        
        
        
        GeData mycallback(BaseList2D *obj, const BaseContainer &msg)  
        {  
         GeData res;  
         Atom *node = (Atom* )obj; if (!node) return res;
        
        
        
        
         switch (msg.GetId())  
         {  
          case COFFEEEDITOR_COMPILE:  
           {  
            BaseContainer r;  
            String err_string;  
            LONG err_line,err_pos;
        
        
        
        
        // how can i read the error info and set the data to pass back
        
        
        
        
        // so i can see error messages in the compiler
        
        
        
        
            err_string=?????  
            err_line=??????  
            err_pos=?????  
             
             r.SetLong(COFFEEEDITOR_GETERROR_RES,FALSE);  
             r.SetString(COFFEEEDITOR_GETERROR_STRING,err_string);  
             r.SetLong(COFFEEEDITOR_GETERROR_LINE,err_line);  
             r.SetLong(COFFEEEDITOR_GETERROR_POS,err_pos);  
           res=r;    
           }  
           break;  
         }  
        return res;  
        }
        
        
        
    

    thanks for any help you can offer.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 02/09/2003 at 00:21, xxxxxxxx wrote:

    You need to use GeCoffeeGetLastError after you compile the script, store the result, and off you go :)



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 02/09/2003 at 03:42, xxxxxxxx wrote:

    yes your right , I couldnt see the wood for tree`s :)


Log in to reply