Old globals with new classes

Please forgive my ignorance:
I'm porting some old illustrator sdk code into the illustrator cs5 sdk.  I plan on making this a hybrid plugin where the UI is built in flash builder.  I am using the FreeGrid sample as a model.
My old code is based in the old "shell" model, where in there is a file called common.h which contains a the line "extern Globals *g;".
I was able to keep use these globals to store some preferences for the life of the plug-in.
Is there a way to achieve this using the new class model.  I tried to declare a public member variable in the FreeGridPlugin class called "selected".  Then I added a pointer to FreeGridPlugin instance as a member of the FreeGridDialogControler class.  But when I try to access the FreeGridPlugin methods from the FreeGridDialogControler methods I get the error "bool FreeGridPlugin::selected is private within this context".  I can't figure out what I'm doing wrong of if there's a better way to go about this, but really need to be able set edit some variables whether from the dialog controler and from elsewhere.  How can I have these variables persist, and not go away as instances of classes are created and deleted?
Or am I just completely backwards on all this?
Any help would be MUCH appreciated.  Thanks.

I know almost nothing about any of the Flash stuff, so take this with a grain of salt -- but if you're having trouble with things going away when the plugin reloads & unloads, have you tried making it persistent? I.e., make sure it never unloads? We avoid all that crap about the VTABLE fix and such by just making sure MAPublisher is in memory, all the time. You do that by doing this:
SPAccessRef m_pluginAccess = 0;
AIErr error = sSPAccess->AcquirePlugin(GetPluginRef(), &m_pluginAccess);
(you can get the plugin ref in any message, so StartUp will have one)
Just call
AIErr error = sSPAccess->ReleasePlugin(m_pluginAccess);
in the ShutdownPlugin message

Similar Messages

  • How to intigrate old APPL_TOP with new Product. R12

    hi All,
    I am upgrading APPS 11.5.10 to R12.
    I am sucessfully upgrade Apps file system and database.
    And R12 services and Database service are running sucessfully.
    But Problem is that i want to use OLD Business Flow means I want all old form and report behiver.
    Means how to intigrate old APPL_TOP with new Product. R12.
    thanks
    c2

    Hi,
    For custom forms and reports, you need to open it using Forms/Reports Builder 10g, compile it, and upload it again to the server.
    For the CUSTOM_TOPs, make sure it is set in the custom<CONTEXT_NAME>.sh file under $APPL_TOP, and in default.env file on the Applications tier.
    Note: 563258.1 - How To Upgrade 11i Custom Forms And Reports To R12
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=563258.1
    Note: 552010.1 - Can't Open Custom Forms After R12 Upgrade
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=552010.1
    Note: 451934.1 - Accessing Custom Forms After Upgrading From To R12
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=451934.1
    Regards,
    Hussein

  • Can we add new condition in old PO with new pricing schema

    We have created new pricing schema for addition of new condition type at header level on
    25/11/2010 in client server but the problem is for old purchase order client want new condition
    on header condition tab.It is obvious that in old po on analysis tab it shows old pricing schema.
    Is there any solution to get new condition in old Purchase order????
    It means we can add new condition in old po???
    Regards
    Jyoti Thakur

    Jyoti,
    Let me know the basic Price Condition if its PB00 or PBXX.
    Let me know how you have called the pricing schema. if you had attached it with document type and you have changed the document type, you will be required to create new PO with new doc type.
    If you have taken Vendor Schema group as a criteria, then you will be required to end the validity of old pricing conditions in condition table and need to activate new conditions on this date.
    Check for other basic keys like Purchasing Organization as well.
    Let me know if you have any existing Source List or QA for the vendor too.
    Thanks and Regards
    Raghavan

  • Can't replace old text with new text in a text box

    Hello everyone. This is my first time posting in the forum, so I'm hoping this works out well. We recently purchased a few copies of Adobe Acrobt X for the office, and one of the users is having an issue with editing text in a field. She can type new text into a box, but when she goes back to replace that text with something else, the old text stays. New text appears on top of the old text, and you can see both. Is there a way to simply highlight the old text, delete it, and then replace it with new text? Thanks in advanace for your assistance. I understand this might be confusing, so let me know if you have questions.
    Thanks,
    Dan

    You have to use the text touchup tool (there is a new name like text edit tool in AA X) to edit such text. It sounds like you are using the typewriter tool or something like it. Text editing in Acrobat is not for the weak at heart. It can be very frustrating and is not recommended except for very minor changes. If at all possible, you should edit the original and just recreate the PDF.

  • Change inbound IDoc 860 overlay the old text with new text

    Currently whenever change inbound IDoc 860 gets posted new text gets appended. My requirement is: old text needs to be overwritten with new text.  Can you please advice
    Thanks

    Hi Hock,
    thanks for your answer. Unfortunately i think your are right.
    Yesterday i got an answer from debopriyo mallick, does anyone know,
    why this answer is dissapear?
    Regards, Dieter

  • Migration of old system with new version and 64bit hardware

    HI Sapguru's,
    Our req: Build New CRM system with all latest version of software & 64 bit hardware. Details mentioned below.
    Old System:
    CRM 4.0 ABAP System
    win 2003
    Oracle 9i
    non-unicode
    32 bit hardware
    New System( which i want to build):
    CRM 5.2 (rampup version) ABAP+JAVA
    win 2003
    Oracle 10g
    Unicode
    64 bit hardware
    Above mentioned is an new requirement for us.
    Our Plan:
    1. Old system -Conversion from non-unicode to Unicode system
    2. Old system - System copy export method for create exports
    3. Build New system with new unicode version(5.2) with Old system exports
    Questions to Sapguru's:
    1. Our plan will work or not?
    a. If Yes - give me the guidelines ,Notes ,documentation paths
    b. If No - Please provide your opinions/advices
    2. 32 bit exports will work on 64 bit hardware SAP system?
    Thanks Advance.
    Regards,
    Ramu,

    Hello Markus,
    Thanks for your quick response!!!!
    I understood - what you have mentioned for my question but i have  one clarification on your answer and one new questions to you.
    Clarification:
    My oldsystem is non-unicode system. As you said i will do system copy export method on old system(non-unicode) then i will use that  exports(non-unicode) to build new system.
    Here my clarification is:
    Will that exports(non-unicode) work while installing new system with unicode? or Will it give any problem?
    Question:
    1. will old system with oracle 9i exports work on new system with oracle 10g?
    Thanks Advance,
    Bhaskar Rapelli

  • Old Archive with New Blog?

    I am changing my blog template from the Travel theme to the Gazette theme. I've been using the travel one for months now. What do I do with my archive? Is there a way to move the Travel Blog Archive to the new blog? I like the Gazette Blog main page better as well as each blog entry page. As far as I've been able to figure out, I am unable to just change the theme of my travel blog page to the gazette, I have to start a new page. Is anyone able to offer any advice?

    Hi Esther...
    As you have concluded, there is no way to transfer your blog entries from one theme to another. Your only option is to start a new blog page. Of course, you can still leave your current blog online...maybe just put a final entry with a link to the new blog page. Then have both links available in the navigation menu....like old blog and new blog. Sorry I don't have better news for you.

  • Replaced my old 3GS with new 3GS

    Hi,
    I had to return my old 3gs with a bad battery and got a new one. I had undated the old one with the new software. When I try to sync the new phone with itune, I get a message telling me that itune was sync with a new version iphone, and I don't know how upgrade the new phone. Does anybody know how to do that?
    Thanks

    Well 2 weeks ago, I updated my old 3gs to the new iphone version iso4 . Before I returned it to Apple store, I backed up my phone and when I try to sync the new phone I get a message saying something like" itune has been synched with a newer version" and I get the choice of starting as a new phone. In other words, the new phone is a 3.0 version and my itune was backed up with a 4.0 phone. I guess I can't ( or at least i don't know how to ) upgrade the new phone to a 4.0.
    Sorry if it's not clear.

  • Replacing Old characteristic with new ones in a Cube

    Hi,
    I have 3 Z InfoObjects for capturing time information like the month, year and week. The user is requesting for variables like current month, current year etc on these variables frequently. I have written customer exit for bringing the current week etc values on the Z InfoObjects.
    However, I want to avoid writing of the code in future and hence have created 3 more InfoObjects which reference to the standard time characteristics, i.e. the Z month InfoObject will refer 0CALMONTH etc. so that the standard variables of 0CALMONTH can be used for our Z InfoObjects also. Now I want to replace the old InfoObjects with these new InfoObjects(the ones referencing the standard time characteristics) in a InfoCube. My question is how do we get the historic data for these new InfoObjects as the Historic data is in the old Z InfoObjects. Any thoughts/suggestions would be helpful..
    thanks in advance.

    <i>Generated export Datasource of the InfoCube after adding the new 3 characteristics. Then in the Update Rules mapped only these 3 characteristics with the old characteristics and did a full upload.</i>
    You need to map the 3 old Characteristics to the 3 new ones, and you need to map all the other InfoObjects too.
    In the following I refer to the 3 old temporal Charactersitcs as T1, T2 and T3 - and to the 3 new temporal Chars as T1', T2' and T3'. The other (old) Chars are referred to as Cn, and the Key Figures as KFn:
    T1 --> T1'
    T2 --> T2'
    T3 --> T3'
    C4 --> C4
    C5 --> C5
    KF1 --> KF1
    KF2 --> KF2
    After the load you should delete the old requests to avoid data duplication.
    <i>I was expecting that the record will have the new characteristic and also the value in it after the load. But it is not happening.</i>
    I reckon you don't have any value because you haven't mapped the Key Figs (as well as severlal Characteristics) in the Update Rules.
    Regards, Davide

  • Replacing old TC with new larger capacity TC and using old TC as an external HDD

    I currently have a 500GB 1st gen TC.  I am running out of space for back ups and running out of room on my iMAC HDD.  I would like to purchase a nw 2TB TC to back up both my iMAC, macbook, and expected Macair when the new ones are released.
    Questions:
    1. Can I use the old TC as an external HDD only?  I would like to place my iTunes Library and photos on it so it is visilble accross the network via wi-fi.
    3.  If I move my libraries is there a method to make them available to me when I travel via the internet?  Or is this the upcoming cloud sharing I've heard so much about? 
    2. My understanding from vaious discussions is that I can not connect the old TC (via the TC USB port) directly to the the new TC and have the old one continuously backed up to the new one (iMAC---new TC usb---old TC).  In other words, if I were to move my itunes and photo media to the 500GB old TC then they would not be backed up.  However, what if I conencted the old TC directly to the iMAC? 
    old TC----iMAC---new TC
    Would it back-up to the new TC now?  Can I connect it to the iMAC ethernet port or would i have to use the USB connection?
    3.  Can I daisy chain them together in a way that the new TC will backup both the iMAC and the old TC?
    iMAC---old TC----new TC

    golf and fly wrote:
    I currently have a 500GB 1st gen TC.  I am running out of space for back ups and running out of room on my iMAC HDD.  I would like to purchase a nw 2TB TC to back up both my iMAC, macbook, and expected Macair when the new ones are released.
    You can connect a USB drive to the TC, and back up some or all of your Macs to it instead of the TC's internal HD.  See #Q2 in Using Time Machine with a Time Capsule.
    And you can put other data there, too, such as your iTunes library, but for best results you'll want to partition the disk. Otherwise, Time Machine will, eventually, use up all the empty space.
    Also note that Time Machine cannot back up from any network drive, so you'll need to find an alternative way to back up that "other" data.  The Chronosync app might be viable.

  • Clash of old passwords with new

    Hi there,
    I've just got a new Intel iMac and have used target mode to successfully transfer all my old settings and other files to the new computer from the old. Now that I have done so I still want to use my old iMac on a home network and on the internet. Because I have transferred everything from the old computer will all my old passwords and other settings clash when I go to use Airport? Is the best option to wipe the old machine clean and start it afresh with new passwords (safe in the knowledge all that I want is on the new machine)? I look forward to your help.
    Cheers
    Intel iMac   Mac OS X (10.4.9)  
    Intel iMac   Mac OS X (10.4.9)  

    You shouldn't be required to do anything with the old Mac unless you want to.
    Assuming you have your Airport wireless network password protected and encrypted, this won't or shouldn't cause a clash or conflict since all you are doing is connecting each computer to your wireless network via the wireless network password saved in your login Keychain which is identical on both Macs. No different from any other computer - Mac or PC connecting to your wireless network via the password you enter or provide someone else which will be saved on that computer for later/future access.
    I made use of the Migration Assistant when I purchased my PB 1&1/2 years ago transferring everything from my TiBook. No problems accessing anything with either Mac after doing so including my Airport wireless network.
    Even if you do wipe everything on your old Mac, in order to access your wireless network will require entering the same password again for your wireless network and the same for any other passwords required for access - websites, email, etc., etc.
    Really no point in performing an Erase & Install unless you plan on giving this Mac to someone else or allowing someone else to use it as if their own.

  • Need to back up old phone with new computer to purchase new phone with different service

    I need assistance in backing up my old phone on a new computer to purchase a new phone with a new service provider so I can sync after purchase. Any daring souls know what I talking about?

    See if this helps you,
    Old Phone to New Phone
    http://support.apple.com/kb/HT2109

  • Accidently replaced old photos with new imports

    I have a Dell PC.  I hadn't used this computer for a few months. When I started importing multiple memory cards into Lightroom, it replaced all old files with the same file name.  I have 40 folders missing from my computer.  What can I do to recover the original files? 

    I have Windows Vista.  I have LR3. I have pictures from 2010-2014 in there.  Every time I have pictures, I plug in my memory card and import straight to Lightroom.  I always classify by date and leave the files named as they are on my camera.  For example DSC_4067.NEF   We moved for the summer, then moved back into our house and have five memory cards to upload/import.  I uploaded all of them in the same day.  Now I am finding that the most recent files had the same file names as files from 2012 and now the 2012 files will not show in Lightroom, nor in any searches on the rest of my computer.  I have search manually for each .jpg and .nef file on my computer and the only results are the most recent ones.  Not any from 2012. 

  • How to integrate old formula with new as needed?

    I have a report which displays /processes rows based on the 'Product Family' which we have as a 3 char code.
    stringVar  first3 ;
    first3 := Mid ({REFERRF.RFDTA},1,3);
    if isnumeric(first3) then
        Mid ({REFERRF.RFDTA},4,30)
    else
        Mid ({REFERRF.RFDTA},1,30)
    However, the current report makes it's own grouping which the user wants to keep. he does want the new groups that I can get from that table as well. how do I integrate this formula?
    also new ones are custom and need to be separate from retail. so need to process this old way first. then not process these groups again (TRR, TRC etc) when processing by getting from table.
    SELECT {Command.PROD_FAMILY}
        CASE "TRR","TRC","TRP":
            "Trophies"
        CASE "PLQ":
            "Plaques"
        CASE "SGL", "TGL":
            "Crystals"
        CASE "MDL":
            "Medals, 2 in."
        CASE "MDM":
            "Medals, Insert"
        CASE "PIN","PNI":
            "Pins"
        CASE "CAC":
            "Acrylics"
        default:
            "UNDEFINED: " & {Command.PROD_FAMILY};
    so when my table has "CAC" I need the display heading to read 'ACRYLICS' in my logic i am getting the description from the same table but he doesn't want that for the above, only for any others.
    the report looks like this> so u see for CAC they want it displayed as ACRYLICS. If I keep the current logic when i read the table i have to not read for CAC. or do this some other way.
    Acrylics
    Price Break
    Range
    Number
    of Orders
    Number
    of Units
    Total Cost
    Total Sales
    1.  1 - 5
    837
    1,642
    5,327.06
    42,384.95
    2.  6 - 9
    121
    862
    2,403.05
    20,956.90
    3.  10 - 24
    150
    2,148
    5,718.42
    44,584.85
    4.  25 - 49
    32
    1,083
    2,956.16
    22,714.85
    5.  50 - 99
    21
    1,354
    3,532.94
    24,846.30
    6.  100 - 249
    7
    868
    2,586.26
    14,712.60
    7.  250+
    2
    1,800
    2,470.17
    12,258.50
    1,170
    9757
    24,994.05
    182,458.95

    Hi,
    The standard behaviour is that new instances of the process will use the most recent version of the process that has been deployed to the database. This allows you to deploy new versions of the processes without impacting on processes which are already in progress.
    When the workflow engine determines what activity to run next in the process, the engine checks what the start date of the process instance was, so that it can check what version of the process was active at that time. If you update the start date for each running process, so that it reflects the date that you saved the most recent version of the flow, then the workflow engine will use the latest version instead of the version that it was running.
    This is not supported. I would never suggest that you do this in a production environment - it does not make sense to be making frequent changes to the process in a production environment, since there is no supported mechanism for forcing existing flows to use the new definition. The engine is designed specifically to run the same version of the process for the duration of the process instance - what you want to do is to blow this out of the water completely. If you do change this, then all timing that is recorded against the activities becomes useless, and the other impact on the workflow process us something that you would need to consider incredibly carefully before deciding whether you want to take the risk.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://thoughts.workflowfaq.com ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • How to read old library with new instal

    My old G4 finally died. I bought a new G5 iMac, set it up and used back up to reload all my old prferences. Now I check iphoto and it looks like these preferences were not backed up. My library lives on an external drive. These are the files in that folder; AlbumData.xml, Dir.data, iPhoto Selection (folder), iPhoto.db, iPhotoLock.data, Library.iPhoto, Thumb32.data, Thumb64.data, ThumbJPG.data. When I open iphoto it askes if I would like to create a new library of find an old one. When I direct it to my external drive it does not see any of these files as the ones to use to read this library. I have iphoto v 5.0.4. Does anyone know how I can get iphoto to see this old library? You can also email answers to [email protected] Thanks.

    Hi KRA,
    Take a look at the screenshots. When asked to choose the iPhoto Library, do you choose the iPhoto Library on the external. The iPhoto Library is the file you should choose.
    When you launch iPhoto holding down the Option key this is the window you will get.
    Create a new library or choose a library to open
    Choose to create a new library if that is what you want to do, or choose a library to open by clicking the "choose" button.
    If you click the "create library" iPhoto will open with a brand new library for you to import images to. If you click "choose" then you will get this window.
    Open library
    Navigate to where the library is on your computer and then choose it.
    Lori

Maybe you are looking for

  • Can any one tell me how to select latest record

    Hi, Can any one tell me how to select latest record. Below is the requirement select * from a where a_Date=v_date. out of thousand records with matched condition i need to select latest record Thanks in advance

  • How to provide view selection dropdown like ALV

    Hi all, As you know, ALV can save your own view but it's embeded in component SALV_WD_TABLE. And I want to provide such a dropdown on selection screen before searching. Can I reference this dropdown directly? I've found out the db tables that store t

  • Hello, i want to delete my account.

    Hey I want to delete my account. Can you helpe me? I allready have one account and dont need this one.

  • Using an external numberpad with L10

    How can this be done without using the FN+F10 key. The Tecra a2 has a setting in the Toshiba hardware to enable an external keyboard how come this model doesnt?

  • Playback stutters on MacBook Pro, not on another computer

    Hi, I have a strange problem with QT's exported from QT player PRO. The base file is a 1280x720 HD QT in Apple ProRes which I exported in H264 640x360. When I playback the exported movie it stutters (jumps back and forth rappidly). No, it's not a fie