Warning treated as error in VS2012.  Any idea to fix?

When I build, I'm seeing some errors popup and they are all on lines where I am setting up checkbox parameters.  The compiler is throwing the following errors:
error C2220: warning treated as error - no 'object' file generated
warning C4244: '=' : conversion from 'PF_ParamValue' to 'PF_Boolean', possible loss of data
These are being thrown on any line where I have the following:
PF_ADD_CHECKBOXX(STR(StrID_Input_Required), true, PF_ParamFlag_CANNOT_TIME_VARY, PLG_REQUIRED);
I could turn off the error by removing the /WX flag during compiling, but do I really want to do that?  It seems like all would be okay if I did, but thought I'd post here to see if anybody had a suggestion as to why the `possible loss of data` error ocurrs.  Any ideas?
Thanks,
Arie

Is this the AE CS6 SDK for Windows by chance?  I am still very new to AE plugin development, but I recall a few months ago back when I started messing around with this stuff I was getting the same kind of error when trying to add a checkbox parameter to my plugin.  Since I was starting fresh and using CS5 did not cost me any functionality I just rolled back, and thus far have not really had too many SDK related issues with the CS5 SDK, just issues with my own code and trying to get used to AE development
Fair warning, I tried figuring this out from the link below months ago and I never got it working right, so I just rolled back my SDK version I was building against from CS6 to CS5 and my checkboxes started working without any issues.
I also have compiled against the CS5 SDK on MacOS without any issues if you were to end up going that route, though it could simply be my inexperience talking here...but here are my findings
Google translate will be your friend on this one by the way...
Shortened Link: http://bit.ly/UbIxkz
Original Link: http://ae-users.com/jp/tutorials/2012/12/after-effects%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC %E3%81%AE%E3%81%9F%E3%82%81%E3%81%AE%E3%80%81%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F %E3%83%B3%E3%82%B0%E5%85%A5%E9%96%80%E3%80%80%E3%81%9D-19/
The breakdown of what I assumed to be a CS6 SDK bug when I got started was proposed from the site to be the following:
Error 1:
PR_Public.h on approx line number 5 is a character that needs to come out, right before "2005 by Adobe Systems Inc." is an imporperly encoded character
Error 2:
Param_Utils.h on about line 116 is a functions called PF_ADD_CHECKBOX is the one you are likely looking for
The proposed solution was to replace the following on approx line 123
Bad Line: def.u.bd.dephault = def.u.bd.value; \
Good Line: def.u.bd.dephault = (PF_Boolean) def.u.bd.value; \
so it would end up looking like this:
#define PF_ADD_CHECKBOX(NAME_A, NAME_B, DFLT, FLAGS, ID)\
do {\
   PF_Err priv_err = PF_Err_NONE; \
           def.param_type = PF_Param_CHECKBOX; \
           PF_STRCPY(def.name, NAME_A); \
           def.u.bd.u.nameptr  = (NAME_B); \
           def.u.bd.value                    = (DFLT); \
           def.u.bd.dephault = (PF_Boolean)def.u.bd.value; \
           def.flags                              |= (FLAGS); \
           def.uu.id = (ID); \
           if ((priv_err = PF_ADD_PARAM(in_data, -1, &def)) != PF_Err_NONE) return priv_err; \
    } while (0)

Similar Messages

  • I am trying to update to i-tunes 11.3 but when I download I get a message that itunes didn't install properly, and a reference to error 127. Any ideas?

    I am trying to update to i-tunes 11.3 but when I download I get a message that itunes didn't install properly, and a reference to error 127. Any ideas?

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • Updating ipod touch to os5.1  got an error message "cannot connect the ipod touch because the pairing record is missing"   don't know what this means or how to fix but am stuck, only option is to answer ok and close the error box.  Any ideas?

    Updating ipod touch to os5.1  got an error message "cannot connect the ipod touch because the pairing record is missing"   don't know what this means or how to fix but am stuck, only option is to answer ok and close the error box.  Any ideas?

    #1
    - Try another cable. The cable for 5G iPod (lightning connector) seems to be more prone to failure than the older cable.
    - If a 5G iPod               
    Iphone 5 lightning port charging problem - SOLUTION!
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar
    #1.1 n/a because the errror message overrides it
    #2 see #1
    #3 iOS: Device not recognized in iTunes for Mac OS X
    But could be caused by #1
    #4 Covered by previous ones
    #5 Obvious jpegs are photos and thus will not sync as videos. Also see:
    iTunes: May be unable to transfer videos to iPhone, iPad, or iPod
    iTunes: Frequently asked questions about viewing and syncing videos
    #6 iOS: If you can't back up or restore from a backup in iTunes
    First #7 See #6
    Second #7 You have so many other problems resolve those first
    #8 Resolve other problems first

  • When i try to load a new version of itunes i get an error message about a file MSVCR80.dll not being available and error message Windows error 126.  Any idea what to do?

    when I try to load a new version of itunes on my windows XP pc I get a message that file MSVCR80.dll is missing as well as a windows error 126 message.
    any idea what to do?

    Solving the iTunes Installation Problems in Windows
    1. Apple has posted their solution here: iTunes 11.1.4 for Windows- Unable to install or open - MSVCR80 issue.
    2. If the Apple article does not fully resolve the problem for you, then try Troubleshooting issues with iTunes for Windows updates - MSVCR80.

  • Hi, I am running windows 7 and currently firefox 3.6.... When i download and install firefox 4 or 5 it appears to be successfull but when i try open it, nothing appears to happen, although there is no error message. Any ideas?

    Hi, I am running windows 7 and currently firefox 3.6.... When i download and install firefox 4 or 5 it appears to be successfull but when i try open it, nothing appears to happen, although there is no error message. Any ideas?

    Hi, I am running windows 7 and currently firefox 3.6.... When i download and install firefox 4 or 5 it appears to be successfull but when i try open it, nothing appears to happen, although there is no error message. Any ideas?

  • HT201210 Error 7 (Windows error 126). Any ideas?

    I am getting Error 7 (Windows error 126). Any ideas?

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99710)

  • HT201210 i keep getting this message when trying to update my old 3g-"the iphone could not be restored-an unknown error occurred (-1)-any ideas? anyone?

    i keep getting this message when trying to update my old 3g-"the iphone could not be restored-an unknown error occurred (-1)-any ideas? anyone?

    i have done that
    same result
    the phone has a sim in it that is not active. does this cause the fault in question?

  • I am trying to convert a video clip so that i can slow down the clip speed, but i keep getting an error -34.  any ideas?

    I am trying to convert a video clip, already in imovie so that I can slow down the clip speed, but I keep getting an error -34.  Any ideas?
    Thanks!

    Hi Russ,
    Thanks for your response. I am not an experienced user of FC or other video editing software but if its that hit and miss I think I will go to the trouble of finding some better software - I have a busy enough life as is, I don;t want to get into second guessing what a software problem might be!
    I have just successfully exported my video to a master file using one of the Apple codec options so it looks like it could be to do with the H.264 codec.  I am wondering if Apples Compressor software would solve this problem - the only way to try this it to buy it, there is not trial for the compressor app.  Any ideas?
    Thanks
    Gerry

  • HT203128 "Unable to check for available downloads. The network connection was lost." I have 3 downloads from yesterday that I receive this error code. Any ideas?

    I have 3 downloads from yesterday that I receive this error code. Any ideas?
    Thank you!

    I may have stumbled upon something that could help. A type of "detour" around the problem.
    I just started experiencing this problem a few days ago. Anytime I'd try to download a song/video/movie, I would get the message, "Unable to check for available downloads. The network connection was reset".
    So, instead of selecting "Check for Available Downloads" under "Advanced" menu...
    I logged into "My Account" page in itunes. If there are available downloads it comes up at the top of the page with the option button "Download Now". When I select that -- it downloads immediately.
    Can't promise it will work every time. But it's worked for me so far. Good luck...

  • TS3988 I can log into my iCloud account on my iphone but when I try to log in on my pc I keep getting a connection error message.  Any ideas?

    I can log into my iCloud account on my iphone but when I try to log in on my pc I keep getting a connection error message.  Any ideas?

    Same problem. I can see the itunes store so not a problem with windows firewall. The account is active on my iphone so i know i am not locked out. I can connect the PC to my iphone so i know itunes is working ok. It is just logging into itunes on this pc which doesn't work. Only thing I can think of is that the email address I use for my apple id has been offline for a while and is working again now, I'm wondering whether this has been the case for others who are having this issue?

  • HT4528 my i phone four will not re-set it keeps giving me error code 1611 any ideas

    my i phone four will not re-set it keeps giving me error code 1611 any ideas?         

    Turned out that I had to delete the password first before I could change it.
    That's the first time I ever had to do that.
    In the past it would just accept the password that I entered when asked for it.
    Now I will remember - i hope! :)

  • When i was restoring iphone 4s-'unknown error occured (2)' Any Ideas Please?

    When i was restoring iphone 4s-'unknown error occured (2)' Any Ideas Please?

    Disable security software or firewalls. This article addresses every error code itunes has. If you aren't sure how to disabled your security software or firewalls look at this article under the section for error '2'
    http://support.apple.com/kb/TS3694

  • Dropped phone in coffee, turns on but sticks on the i tunes icon. Restore won't complete because of  error 29. Any ideas?

    dropped phone in coffee, turns on but sticks on the i tunes icon. Restore won't complete because of  error 29. Any ideas?

    After being submerged in coffee, did you power the iPhone off right away and if so, how long did it remain off to be completely dry - for the interior, not exterior?
    Did the coffee include cream and sugar? Electronics and moisture don't mix especially with moisture that includes sugar.
    Regardless, sounds like there is some hardware damage especially if not powered off and allowed to dry with the interior before being powered back on.

  • I cant get a photo project to email the moblile me address to someone else.  I know how, but it has stopped working for some reason.  Instead of pulling up the web address on the email form, it puts an error message?  Any ideas?

    I cant get a photo project to email the moblile me address to someone else.  I know how, but it has stopped working for some reason.  Instead of pulling up the web address on the email form, it puts an error message?  Any ideas?

    Michael,
    The link for the word 'HERE' directs to a Evergreen School District page, which outside of Mobile Me and/or Aperture. Your school district network might be intercepting the request from Aperture and displaying the 'network authentication page' that you see, instead of the email. I would get with the IT department to see if they can help you get around this.
    Have you also tried using the 'Tell a Friend' feature from another network location, like starbucks or your home?
    Cheers,
    Owen.

  • ITunes fails to install with error Ox800736FD. Any ideas?

    iTunes fails to install with error Ox800736FD. Any ideas?
    Trying to install on a Acer Aspire-- no CD/DVD

    Ox800736FD
    These ones are typically caused by underlying problems on the PC that also often cause Windows Updates to fail to install. If we can fix the Windows Update trouble, we can usually get the iTunes trouble cleaned up en passant.
    Go into your Windows update and try to check for new updates. If updates install, stock up on the ones you're behind on, restarting the PC if requested to do so. After the restart, try installing iTunes again. Does it go through this time for you?
    If windows updates fail to install, go into your Update History and doubleclick the failures. What alphanumeric codes appear for you? Are they also 800736FD, or some other number? (If they're another number, what number are you getting?)

Maybe you are looking for

  • I Need Help Plz

    Dear Friends, I'm Using Oracle Forms6i , I Have Three Questions : 1- When I Try To Type Fields In Arabic For Example , Or Try To Type Anything In The Arabic Language , It shows The Character In An Un Recognized Character Set , Not The Arabic Alphabet

  • Any experts on embedding a video in a page?

    I have created a video that I would like to embed in my website. My goal is to have the video actually play on the page automatically and have a button to click for sound. Currently I have a link to a page explaining that a media player is required a

  • Xi integration with third party error /incident management tools

    Hello XI folks, Has anybody experience with integration of XI monitoring and error management tools with external tools like HP-Openview, Tivoli or EARS, etc...? Any feedback is appreciated. Thanks, R.

  • Tempo needs to be 63.5bpm's in Garage Band

    My tempo needs to be 63.5bpm's in Garage Band. Can Garage Band do it? How?

  • Ipod touch software is screwed up.

    I had to restore my ipod touch about 5 times now, because it went into recovory mode, and the screen didnt turn on one time, with a fully charged battery. I am not impressed with the softare for my ipod touch, when i updated it, itunes did not recogn