Do Sub Functions have to be declared as AS3_Val ?

Hi,
If you include additional cpp files which contain sub functions to  the  main function you are calling from AS3 do they have to be declared  as  AS3_Val as well... for example if returnString() itself  called a  function of an instance of a class in another file? Or is it  only the root functions in main that have to be declared as   AS3_Val?
thanks as always...
-Mike
The main C file:
#include "AS3.h" 
static AS3_Val returnString()
  char* text = "Hello World"; 
  return AS3_String(text); 
int main() 
  AS3_Val cMethod  = AS3_Function( NULL, returnString ); 
  AS3_Val result = AS3_Object( "returnString : AS3ValType" , cMethod); 
  AS3_Release( cMethod ); 
  AS3_LibInit( result ); 
  return 0; 

Mike6679 wrote:
My .c file at compile time links to a couple of  large unix based  library files (each 700k) . Now do they have to be available to my Flex application at runtime along with the swc (in the Flex build directory) or are they built into the swc already?
Neither. You need to compile the library code from source with Alchemy together with your application. A library that you (I assume) only have in compiled form is no good. Flash will not allow any bytecode it loads from an swf to run foreign machine code (*), no matter whether it arises from ActionScript or from C via Alchemy.
(*) Except if you do really horrible things like package up the machine code as an ActiveX component and marshal your calls through JavaScript glue somehow, and that is not even remotely close to being a solution for your question anyway.

Similar Messages

  • Does labview support dll which has sub functions that are static functions?

    Dear all,
    I wrote and compiled a C function into dll to be called by labview. The function calls a sub function. It works fine if it is a normal sub function. However I see that if I declare the sub function to be static, labview will crash. So is it that labview does not support static function in dll?
    Best,
    Miao

    A static function simply means that it is local to the C module that defines it and can't be seen from other C modules in a library. It should not change anything else about how it works.
    So in conclusion it should not make a difference in if it crashes or not but only create possible problems in linking the library. It seems extremely likely that you have another problem in your library that gets somehow triggered more easily when you compile your code with the static functions, but it should not have to do anything directly with the fact that you have static functions in itself.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Mdx error : Query (11, 9) Two sets specified in the function have different dimensionality.

    Hi all
    i am getting the fallowing error for the below mdx , what may be the issue?
    Query (11, 9) Two sets specified in the function have different dimensionality.
    WITH SET LastSample AS TAIL(NONEMPTY([Date].[Hierarchy].members *[Time].[Hierarchy].members,[Measures].[Overall LU SR]))
    MEMBER [KPI Name] AS "Overall LU SR"
    MEMBER [KPI Value] As KPIValue("Overall LU SR")
    MEMBER [KPI Status] AS KPIStatus("Overall LU SR")
    MEMBER ObjectName as "Overall LU SR"
    MEMBER [Critical Threshold] as  [KPI Thresholds].[Threshold1].&[Overall LU SR].member_value
    MEMBER [Major Threshold] AS  [KPI Thresholds].[Threshold2].&[Overall LU SR].member_value
    MEMBER [Minor Threshold] AS 0
    MEMBER latestDate as [Date].[Hierarchy].membervalue, format_string = 'mm/dd/YYYY'
    MEMBER latestTime as [Time].[Hierarchy].member_caption
    SELECT  {latestDate,latestTime,ObjectName, [KPI Name], [KPI Value],[KPI Status],[Measures].[Critical Threshold],[Measures].[Major Threshold],[Measures].[Minor Threshold]} ON COLUMNS
    ,nonempty(LastSample) ON ROWS
    FROM [DRA]
    Surendra Thota

    hi all
    i got the solution . i have add measures dimension to the name  ie ,[Measures].[KPI Name],
    WITH SET LastSample AS TAIL(NONEMPTY([Date].[Hierarchy].members *[Time].[Hierarchy].members,[Measures].[Overall LU SR]))
    MEMBER [KPI Name] AS "Overall LU"
    MEMBER [KPI Value] As KPIValue("Overall LU SR")
    MEMBER [KPI Status] AS KPIStatus("Overall LU SR")
    MEMBER ObjectName as "Overall LU SR"
    MEMBER [Critical Threshold] as  [KPI Thresholds].[Threshold1].&[Overall LU SR].member_value
    MEMBER [Major Threshold] AS  [KPI Thresholds].[Threshold2].&[Overall LU SR].member_value
    MEMBER [Minor Threshold] AS 0
    MEMBER latestDate as [Date].[Hierarchy].membervalue, format_string = 'mm/dd/YYYY'
    MEMBER latestTime as [Time].[Hierarchy].member_caption
    SELECT  {latestDate,latestTime,ObjectName,[Measures].[KPI Name], [KPI Value],[KPI Status],[Measures].[Critical Threshold],[Measures].[Major Threshold],[Measures].[Minor Threshold]} ON COLUMNS
    ,nonempty(LastSample) ON ROWS
    FROM [DRA]
    Surendra Thota

  • Cannot have multiple DOCTYPE declarations

    I discoverd that my application gives an error when i'm using Internet Explorer 6.
    It says: Cannot have multiple DOCTYPE declarations.
    With the view source option I see twice a doctype declaration. Although in my JDeveloper project there is only one jsp:output tag with the doctype declaration.
    When i'm using IE7 or Firefox i don't get the error. Can anyone tell me why JDeveloper generate the DOCTYPE declaration twice and how i can fix this?!

    I found out a solution...
    There is a jsp:output tag in the source who prints the Doctype ones and the other is being generated by the <afh:html> tag.
    If you delete the jsp:output tag the problem is solved...

  • HR Sub-Functional Area

    Guys,
    Which out of these HR Sub-Functional Area is the easiest to implement.......meaning less road blocks, challenges and time wise. 
    1.  Personnel Administration
    2.  Organizational Managment
    3.  Personnel Managment
    4.  Benefits
    5.  Training and Event Management
    6.  Payroll
    7.  Personnel Time Management
    Thx - SJ

    Hi,
    Except payroll and time all are very easy to implement. Best part is you can download the building blocks /best practice from help.sap.com (http://help.sap.com/bp_bw370/html/index.htm). SAP has delivered a very rich business content in SAP HR domain.
    Sugegst to use the standrad content and get the exposure on SAP HR. SAP HR major deals with master data except SAP payroll and respective accounting.
    It is very easy to implement just follow the step suggested by SAP in preconfigured HCM scenarios. ( http://help.sap.com/bp_bw370/html/index.htm > Business Information > Preconfigured scen>HCM)
    Best of Luck........
    Ambuj Kathuria
    Practice Head - SAP ILM/ BI

  • Query with sub functions

    Hi Experts,
    I have tried the below query with sub select function. could any one help me to fix this ?
    SELECT T0.[ItemCode], T0.[Dscription], T1.[OnHand],
    (Select distinct sum(T0.InQty) from OINM where T0.ItemCode = OINM.ItemCode and T0.DocDate = '2012/08/18' ) as 'OB Stock'
    FROM OINM T0  INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode
    WHERE T1.[OnHand] > 0   GROUP BY T0.[ItemCode], T0.[Dscription],  T1.[OnHand]
    thanks in advance,
    Regards,
    Dwarak

    Hi,
    This is for your Query.
    SELECT T0.[ItemCode], T0.[Dscription], T1.[OnHand],
    (Select distinct sum(T0.InQty) from OINM t0 where T0.ItemCode = T0.ItemCode and T0.DocDate = '2012/08/18'  ) as 'OB Stock'
    FROM OINM T0  INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode
    WHERE T1.[OnHand] > 0   GROUP BY T0.[ItemCode], T0.[Dscription],  T1.[OnHand]
    Regards,
    Kalaiyarasan.v

  • Adobe Muse: "Preview page in browser" and "preview site in browser" functions have stopped working.

    Working one day then not the next. Firefox just spins. The preview button works, as does the publish function.
    2.7Ghz i7 Macbook Pro with Retina Display
    Muse 2014.0.1
    Something else to add: When Firefox finally timed out it displayed the full url. Copying and pasting that into Safari and everything works. So it seems in someway this is a Firefox issue or a Muse -Firefox connection issue.
    So the new question is: how can I change the browser Muse chooses to use when I select these two functions?

    HI,
    Adobe Muse will use OS default browser for preview the page/site in browser. So you can change the default browser and preview the site again.
    Also, try to troubleshoot Firefox, using their official documentation
    Firefox can't load websites but other browsers can | Firefox Help
    Do let me know if you have any question.

  • How to find out which OOTB forms functions have built in parameters

    All,
    Is there a simple way to get a list of EBS R12 form functions that have parameters already built in. I have built an integration from OBIEE T navigate to a EBS Form and pass a parameter. I am looking for a simple way to get a list of all the FORM FUNCTIONS that have parameters and what those parameter names are? Is there a SQL query or a simple way in the GUI that I can get this information? I have access to FOrms Personalization but I cannot edit the forms as I dont have Forms Builder.
    For example the following form function PA_PAXTRAPE_SINGLE_PROJECT has a parameter PROJECT_NUMBER. SImilarly, how can I get a list of other forms that have parameters I can pass from external programs (without editing the form itself).
    Thanks

    amol_dev wrote:
    Thank you for your reply Brynjar.
    However, I was trying to figure out a way to do this without having to change the calling command line, because due to legacy reasons, it is not possible to change the command line calling the parent applications of this common code.You cannot change the command line, but you can change the applications?
    In main() do this:
    System.setProperty("whoami",(new Throwable().getStackTrace()[0].getClassName()));Elsewhere:
    String whoami = System.getProperty("whoami");

  • Report with sub-reports have to put ODBC credential several times

    I designed a report with several sub-reports in Crystal XI, which all have same  ODBC connection, when other developers got the .rpt file, they open the designer to run this report from their local PC, it will prompt them to put their user name and password for the ODBC SEVERAL TIMES. We all have the same ODBC connection set up, after they put the user name and password several times, the report works, but itu2019s so annoying.
    Is there a way to avoid putting ODBC user name and password in Crystal Designer? Or put once at main report and pass to all subreports?

    Hi,
    According to my understanding if we are using an odbc connection and the username and password for the database is same for the entire user, then you can just create an ODBC connection string in crystal report. Where in you will manually specify the dsn to be used, username and password will also be stored in that connection string.
    So next time you run a crystal report, it would take the username and password for this connection string.
    Thanks,
    kuldeep

  • BBC iplayer ceased to function, have upgraded Flash plugin but still no success, help please.

    Using Firefox on XP the BBC iplayer no longer functioned so upgraded Flash but iplayer will still not play

    *Regarding Safari:*
    Have you tried repairing permissions & restarting?
    If you have an Intel-based Mac, running Safari in Rosetta can also resolve some QT plug-in issues.
    First quit the app if it’s open & then, in your Applications folder, select Safari & press Command+I.
    In the General area of the Safari Info dialog that appears (click the disclosure triangle if this area is not already expanded), select Open Using Rosetta, & then close the Safari Info dialog.
    Relaunch Safari.
    =============
    If you are using Safari then I suggest that you check out Safari 2.0 Help Webpages aren't working (indicated by boxes with question marks)
    Also try the following:
    Unchecked the java option in the safari security prefrences.
    *Regarding FireFox:*
    Which version of FF are you using?
    See the following thread. It may be helpful.
    http://discussions.apple.com/message.jspa?messageID=5354645#5354645
    Good luck!

  • Do all E545 laptop sub-models have dual-graphics?

    Looking to purchase one soon, and will be used for occasional gaming. 
    I see the same sub-model listed on one site as having the HD 8570M along w/ the iGPU from the APU, but others do not. This is very confusing. To add to the confusion, the main product page for the E545 on lenovo's site shows it has it, but when you customize a unit, it doesn't.
    If all E545s do NOT have dual-graphics, can I please have a list(US, CA, and international models) of all sub-model codes that do?
    Thank you

    You won't see the 6459 in the current Jan 2009 version because Lenovo only keeps the latest models on that reference source.
    However, I found my answer at the ThinkPad Forum here:
    http://www.thinkpads.com/forum/viewtopic.php?f=29&t=60786
    It appears that there is indeed 256mb on the GPU in question and there are some typographical errors on the Product Info Pages.
    Message Edited by eecon on 01-16-2009 12:14 AM
    Two (I used to have Five) - T61p 15.4" WS T9300 2.5Ghz units, August 08/08 Builds with FX570M Nvidia Graphics; ... One W520 i7-2860QM w/2000M Nvidia Graphics (most recent acquisition and stupidly fast); .... One - T42 4:3 15" Flexview 1.8GHz with ATI Graphics (still perfect for traveling); ... Two - T500 15.4" units both with ATI HD3650 Graphics.

  • Exit from CIN within Error Handling Sub-Function

    I have a CIN which has the code divided betwee the CINRun() function, a number of other functions & a #included .C file. I want to put some error handling into my CIN, so if an error occurs I want execution to return from the CIN to LabVIEW immediately... however, my error handling is currently done in one of the other functions, and may be called from CINRun,
    functions, or the #included .C file. Is there any neat/handy/nice way of universally/globally breaking out of or bombing out of the CIN if the error handling code gets called?

    Michael.Johnson wrote:
    I have a CIN which has the code divided betwee the CINRun() function, a number of other functions & a #included .C file. I want to put some error handling into my CIN, so if an error occurs I want execution to return from the CIN to LabVIEW immediately... however, my error handling is currently done in one of the other functions, and may be called from CINRun,
    functions, or the #included .C file. Is there any neat/handy/nice way of universally/globally breaking out of or bombing out of the CIN if the error handling code gets called?
    You seem to want to do structured ecxeption handling. This however is something only really supported by C++ and other object oriented languages. Standard C can do that only with quite some header macro magic and in general is done in a way, patented by Borland, if I remember correctly. To make things more complicated, writing CINs in C++ is not supported by LabVIEW and requires quite some knowledge about your specific compiler environment and linker to get it right on your own, and no NI won't support C++ creation of CINs.
    You will prabably have to modify your C code quite a bit to get it the way you want. Considering that you will have to make more or less involved changes to your C code anyhow, I would recommend you look into creating a shared library instead and calling that through the Call Library Node. CINs are from the past and support for them will be getting less and less with time as it adds almost no advantages to shared libraries anymore and has some disadvantages in comparison, such as proprietary solution, difficult to support and possible compatibility issues in the future.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Keypad not functional, have tried everything.

    Hi, I have recently come into a serious problem with my Verizon BlackBerry Curve 8300, and a lot of people seem to share this problem:  The keypad is not working at all.  I can scroll the trackball across the different menu items, but I can't press the trackball, nor any of the buttons on the keypad- even the red and green call buttons.
    It all started a few days ago when my Curve was working normally.  It had worked fine early that morning, and then I had proceeded to keep it in my pocket during the later morning hours, just as I did every day before that.  However, when I took it out to check my messages, I encountered the issue described above.  This has actually happened to me before on some occasions, but those were few and far between.  A simple battery pull would usually solve the problem.
    As the day went on, though, I did numerous battery pulls and the keys still would not work, no matter what I did.  I researched this problem and found that it could be a sign of wetness.  But I was certain that my Curve has never gotten wet, and I was able to prove this by checking the moisture stickers on the battery and the device.  Both did not indicate that the device had gotten wet- the battery sticker was still white with a red strip, and the device sticker was still a white square.  Even so, I still tried all of the solutions given on the other forums, including putting the phone in the oven, freezer, and in dry rice.  None of those worked, so it's clear that this is not an issue of wetness.
    I then moved on to the more daring solution of physically taking apart the phone and cleaning the keys with isopropyl alcohol.  I made sure the cleaning was absolutely thorough; I cleaned the keyboard membrane, the trackball and its membrane, the keys themselves, the silver front plate, and even the protective case that housed the phone.  There was no corrosion, but there were tons of dust, dirt, and lint covering all these parts, so I figured that that MUST be the problem.  I put my phone back together and turned it on, though, and the keypad STILL would not respond.
    The final thing that I did was back up the phone, reinstall the OS (version 4.5), and reboot the entire phone.  That didn't work either, so it couldn't be a software issue.
    Later in the day, though, I did one last battery pull just because, and then I started randomly mashing the keyboard.  Lo and behold, the phone WORKED.  I was so dumbfounded that this is what caused it to work again; I couldn't believe it, and thought it was too good to be true.  Turns out, it was.
    For most of the day, the phone worked fine, but one of two things would happen:
    1. The keyboard would lock up completely like before while doing simple tasks, and I would mash the keyboard until it would work again.
    2. The phone would freeze completely and I would have to do another battery pull.
    #2 recently happened again a few hours ago, but this time on the battery pull, the keyboard would not function again, even after mashing it numerous times.  So now, I am literally back to square one and left with nothing to do.  I still have NO idea what is causing this problem or whether it is a software or hardware issue.  My phone had gone from working perfectly one day to being completely unusable the next.  Now it seems like it's doing whatever it can to make sure it doesn't work.
    By now, most people would probably say that the only solution would be to replace the phone.  However...I can't.  My phone never had a warranty to begin with, and I won't be able to get the phone replaced unless I pay a huge sum of money, as our local Verizon stores don't carry this model anymore.  I am most likely stuck with this phone until our 2-year contract expires in about 4 months.  Until then, I am in need of a way to salvage the phone and make it last those final 4 months.
    If you have ANY possible solutions to this doozy of a problem, it would be greatly appreciated.   I hope that RIM acknowledges the many people that have this kind of problem and fixes it soon, because a cell phone should NOT have these kinds of problems, especially in emergency situations when we need them most.

    I notice from your system specs that you're running a very old version of Flash. Could you try updating to the latest one which is 10.2.159.1 It also contains a patch to fix a recently discovered [http://www.h-online.com/security/news/item/Adobe-releases-security-update-for-Flash-Player-1228930.html Zero Day exploit]. You can get it from here: http://get.adobe.com/flashplayer/
    Have you experienced any unusual events watching Flash videos lately? It's possible that you may have been a victim of just such an attack. It might be worth doing a malware scan using this well-known scanner from http://www.malwarebytes.org/ The free version is more than adequate to eliminate any current threats.

  • For those who GPS not functioning . have got possible solution!

      got 8 gig 3G on Friday . for 2 days tried tried to make it identify location with no luck at all . went around the block etc couldn't get it to work . button on left bottom of the phone was rotating endlessly trying to find location with no luck . i decided to go to o2 store to complain and guess what right before the store i checked ii it was working and wala.. all fine worked as it should right from the start .
    o2 is on the oxford st in center of london where you good reception and lots of free WI-FI spots . on top of that i successfully logged in free wi-fi spots . came back to East London and it continues to work flawlessly . i've read people having same problem so try to find a spot in your towns where you can GPS  will function , i suppose one of o2 shops is a good idea to try and see how it might solve GPS disfunctionality issue . sounds strange but it worked .
    don't forget to feedback . good luck .
         

    I'm glad that you have it working, but I afraid it is still erratic. Sometimes it finds where I am, on other occasions, in the exact same location, it cannot. I took a picture today and it placed me in the location where I was yesterday. Quite hopeless really.

  • Basic develop functions have disappeared

    The basic develop functions such as changing exposure, contrast, etc have disappeared. If I try to scroll up (where they normally are) I just get the Histogram (see screenshot). What am I doing wrong? Thanks!

    It seems to happen much more on the Mac platform, because there's a bug there which means the whole panel is "right-clickable", not just the panel headers. So clicking on sliders, etc., means it's easier to do the inadvertent right-click and deselect a panel. Hopefully it'll be fixed for the next release.

Maybe you are looking for