How to avoid reloading prototype icon when string paramater in C/C++ adapter?

I have a function in my C++ DLL.
static BOOL InitializeConnection(unsigned char* receivedData, unsigned int* receivedDataLength,
                                                  ​               unsigned int* errorCode, unsigned char errorMessage[512]);
I would like to use a string for the last parameter. When it loads the prototype of function, the type is unsigned char [].
When I enter my Locals.str, it give me the error "Expecting nothing, array of number or array of booleans. Found string"
If I change in the right panel the Category to String and select the Type "C String Buffer", the error goes away and I receive the string value correctly from my dll.
However, I have the red '!" icon flashing next to my function name that says I need to reload the function. Is there a way to get rid of it? I don't want other programmers on my project to hit it and lose all the configuration.
 Also, do I need to do something special so when it loads the function, I dont get "arg1, arg2, arg3" as parameter name but the one from my dll?
I usually program in C# and it loads correctly the right parameters name.
Thank you.
-Mat, CTD

Thanks for the answer Adri.
I got rid of the red ! by switching to char instead of unsigned char.
For the second part, not being able to see the parameter names, I do use the __declspec(dllexport) at the class level. I switched to the way explained in the tutorial without any difference.
class DisplaySeriesComm : public CWinApp
public:
    DisplaySeriesComm();
    ~DisplaySeriesComm();
    static BOOL OpenInterface(CCommunication* ptrCom, signed int* errorCode, char errorMessage[512]);
    static BOOL CloseInterface(CCommunication* ptrCom);
    static __declspec(dllexport) BOOL InitializeConnection(unsigned char* receivedData, unsigned int* receivedDataLength, signed int* errorCode, char errorMessage[512]);
I have access to the function in TestStand, the parameters load with the correct types (the column: Description). It's only the names which are set by default to arg1, arg2, ...
By comparing to the tutorial, the dll I used is an MFC dll and it also uses a .def file. Not sure if it could be related to that.
Thanks.

Similar Messages

  • How to avoid submitting a page when tabular form rows are empty

    Hi,
    I have a master detail form in my application. There are 2 tables that are used Table A and Table B. Table A contains Ticket number and Table B refers to Table A through a foriegn key and Table B have columns like Date,Name, Age, ticket_id (that refers to the ticket_number of the Table A).
    This is how the application works:
    In a page there is a field for Ticket Number, once the user enters the Ticket Number and click Add Details, a tabular Form with 5 empty field appears... (Done through Page Process->Data Manipilation->Add Rows)
    This form contains fields Date, Name and Age. Once the user fills in all the details and click Submit button, the page is submitted. Whatever values that was entered is saved in Table B. Page Sucess message appears. This works fine.
    But once the Ticket Number is entered and Add Details is clicked, and without entering the values in the Tabular Form, if Submit button is clicked, there is no error showing up neither I see Page success message. But this should not be allowed. There should be some error showing up...
    Tabular Form Validations works only when user enters some values in the Tabular Form and click Submit. For the above scenario, where the form is untouched the validation doesnt work.
    How can I get this done? Any ideas?

    Hello Suzi,
    >> if (document.wwv_flow==null)
    The document.wwv_flow is an object representing the current form that was just rendered on your screen. As such, it can never be null.
    >> How to avoid submitting a page when tabular form rows are empty
    The correct way, especially for versions prior to APEX 4.0 is to use JavaScript, but for that, you need to know and understand how APEX generates your tabular form, HTML wise.
    To be very brief, APEX attached a unique ID to every updatable cell in the tabular form, using a certain pattern – each updatable column is getting a unique name (e.g. ‘f01’,’f02’ etc.) and the ID of a cell is a combination of this name with the serial row number the cell is on. For example, a cell on the third row in an updatable column called ‘f04’ will be given an ID of f04_0003. (More detailed explanation, with an example, can be found in my book).
    What you should do is to check these cells according to your validation policy (e.g. is all five row must be filled, is all the columns in a specific row must be filled, etc.).
    Regards,
    Arie.
    ♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    ♦ Author of Oracle Application Express 3.2 – The Essentials and More

  • How can we enable tick icon when user click any button

    how can we enable tick icon when user click any button in captivate 6@

    hi first of all thanks for imitate action.
    actually i want to make a menu (TOC) with tick icons, on starting all ticks are disabled but when i click on any button from my menu i want to enable tick for that particular button so that user can know easily the visited button.

  • How to avoid thread stops ? ( when try to read sockets inputstream ...)

    Hi ,
    When I try to call :
    Socket sok=new Socket (adres,poort);
    the thread looks to stop...
    How to avoid this ?
    Thx for tip etc !

    Take a look at NIO:
    http://www.google.com/search?num=100&hl=en&c2coff=1&q=non-blocking+java+socket

  • How to avoid security promotion message when opening file in 6630

    Hi, everyone!
    I'm using J2ME to open image in 6630, the code works ,but just got too many security messagebox , every time when i open a folder , open an image, the mobile will promote me a message to confirm this action.
    does anyone know how to avoid this message using java code?
    (not setup in mobile)
    Thank you!
    Any hint or link is much appreciated!

    The "PostToInsecureFromSecureMessage" warning can't be suppressed, it is too important.<br />
    You will get that warning if you go from a secure https connection to an insecure http connection and POST data entered in a form on a secure site is send to an http server.

  • How to avoid the split problem when uploading the data from csv file

    Dear Friends,
                  I have to upload data from the .csv file to my custom table , i have found a problem when uploading the data .
    i am using the code as below , please suggest me what i have to do in this regard
          SPLIT wa_raw_csv  AT ',' INTO
                    wa_empdata_csv-status
                     wa_empdata_csv-userid
                     wa_empdata_csv-username
                     wa_empdata_csv-Title
                     wa_empdata_csv-department.
    APPEND wa_empdata_csv TO  itab.
    in the flat file i can see for one of the record for the field Title  as
    Director, Finance - NAR............there by through my code the  wa_empdata_csv-Title is getting splited data as "Director, and  Department field is getting Finance - NAR" , i can see that even though  " Director, Finance - NAR"  is one word it is getting split .
    .......which is the problem iam facing.Please could any body let me know how in this case i should handle in my code that this word
    "Director,Finance - NAR"   wil not be split into two words.
    Thanks & Records
    Madhuri

    Hi Madhuri,
    Best way to avoid such problem is to use TAB delimited file instead of comma separated data. Generally TAB does not appear in data.
    If you are generating the file, use tab instead of comma.
    If you cannot modify the format of file and data length in file is fixed character, you will need to define the structure and then move data in fixed length structure.
    Regards,
    Mohaiyuddin

  • How to avoid leaving a gap when closing tabs on Firefox 5?

    Hello,
    I want to disable a new feature on Firefox 5. Or, at least, I don't recall it being a feature on Firefox 4.
    When I have various tabs open, and close one of them, they go to the left, leaving a gap to the right that will be filled the time I move the mouse somewhere else.
    Being graphical:
    Starting from this:
    |¨¨a¨¨||¨¨b¨¨||¨¨c¨¨||¨¨d¨¨||¨¨e¨¨|
    I close the last two tabs, first "d", then "e", keeping the mouse over the tabs zone:
    |¨¨a¨¨||¨¨b¨¨||¨¨c¨¨|_Blank Space_
    Then, I move the cursor somewhere else, and then it fills the blank space:
    |¨¨1¨¨||¨¨2¨¨||¨¨a¨¨||¨¨b¨¨||¨¨c¨¨|
    How can I avoid this gap when I close tabs?
    Turning browser.tabs.animate to false did nothing.
    Thank you very much :)

    Cor-el, when we close the tabs, there's an animation where the remaining tabs grow into the vacated space. I have browser.tabs.animate switched off and would, as a result, have expected the tabs to instantaneously resize, instead of doing an animation that slows things down slightly and which I thought I'd turned off.

  • How to avoid error "HTP 404" when working with "Google Suggest" and Apex 3?

    Hi,
    I am trying to implement the GOOGLE SUGGEST function in an APEX application (a sample of Google Suggest + APEX can be found in http://htmldb.oracle.com/pls/otn/f?p=22777:6:4312817919732414 or http://teradata.weizheng.net/2009/08/using-google-suggest-in-apex.html).
    The release of APEX is 3.2.1 and of RDBMS is 9.2.0.8 (64 bits). They are installed on a SOLARIS 9 SPARC 64-bits server, where i have an EBS 11.5.9 application. So, i´m using RDBMS and Apache of EBS 11.5.9 to work with APEX 3.2.1.
    I can see the list generated by javascript function when i type in P2_REPORT_SEARCH, but when i SELECT an item (pressing ENTER), i have got an "HTP 404 error". Looking in the logs in the apache, i have found this error:
    http://prigaudi1.sote.tasa.com.ar:8002/pls/apex/wwv_flow.accept
    [Tue Jul 26 10:12:53 2011] [error] mod_plsql: /pls/apex/wwv_flow.accept ORA-0
    wwv_flow.accept: SIGNATURE (parameter names) MISMATCH
    VARIABLES IN FORM NOT IN PROCEDURE: AQ,OQ
    NON-DEFAULT VARIABLES IN PROCEDURE NOT IN FORM:
    I think that "AQ" and "OQ" are variables of "ac.js" javascript.
    The JAVASCRIPT procedure that is situated on HTML HEADER of PAGE 2 is :
    <script src="/i/BASE_CONOCIMIENTO/ac_google/ac.js" type="text/javascript"> </script>
    <script language="Javascript" type="text/javascript">
    function iac()
    { InstallAC(document.wwv_flow,document.getElementById
    ('P2_REPORT_SEARCH'),"","ASKTOM.incsearch_articulo","en"); }
    </script>
    The JAVASCRIPT function that is situated on HTML BODY ATTRIBUTE is:
    onLoad="iac()"
    My "INCSEARCH" procedure is described below:
    CREATE OR REPLACE PROCEDURE IncSearch_ARTICULO(qu VARCHAR2, hl VARCHAR2, js VARCHAR2,
    client VARCHAR2 default null) AS
    l_List1 varchar2(10000);
    l_Query varchar2(255);
    l_separator varchar2(10) default '';
    BEGIN
    l_Query := qu || '%';
    FOR x IN (select TIT_TOPICO,NULL AS COMPLEMENTO from BAC_TOPICO where Upper(TIT_TOPICO) like Upper
    (l_Query) order by 1)
    LOOP
    l_list1 := l_List1 || l_separator || '"' || x.TIT_TOPICO || '"';
    l_separator := ',';
    END LOOP;
    owa_util.mime_header('text/html', false);
    owa_util.http_header_close;
    htp.p('sendRPCDone(frameElement, "'|| qu ||'", new Array(' || l_List1 || '), new Array(""), new Array(""));');
    END INCSEARCH_ARTICULO;
    I think this procedure is working fine on Apache Server:
    Example:
    http://prigaudi1.sote.tasa.com.ar:8002/pls/apex/asktom.incsearch_articulo?qu=A&hl=A&js=a <enter>
    sendRPCDone(frameElement, "A", new Array("Ayuda Como crear un topico en la base de conocimiento"), new Array
    (""), new Array(""));
    I would like to know how i can solve this problem of HTP 404 and "SIGNATURE (parameter names) MISMATCH"
    Best regards,
    Sergio Coutinho

    Hi,
    Maybe i provided too much information about my problem,
    Well, i tried to implement the solution "Google Suggest" in my APEX 3.2 application, but i´m having now an "HTTP 404 error" when i select an iten in the list buided by "google suggest".
    Can anybody make a suggestion of how i could analize this error and fix it?
    Best regards,
    Sergio Coutinho

  • How to avoid duplicate DN exception when creating Active Directory Account

    I am using OIM 9.1.0.2 to provision Active Directory accounts.
    I run into issues when the DN of the user to be created already exists and I would like to know if anyone has some logic I can use to generate a different DN for new user by adding a number or something like that to the DN
    Here is an example.
    User 1 exists already and their DN: cn=john smith, cn=users, dc=company,dc=org
    New user joins the company and his name is also john smith and he has no middle name: so system attempts to create his account as cn=john smith, cn=users, dc=company,dc=org
    how can I accomplish this by making the account say cn=john smith_1, cn=users, dc=company,dc=org

    855640 wrote:
    I run into issues when the DN of the user to be created already exists and I would like to know if anyone has some logic I can use to generate a different DN for new user by adding a number or something like that to the DN
    There are two different questions:
    1. How to generate a sequence of candidates for the name attribute
    2. How to check if a record with the given name candidate already exists in the Active Directory, and hence try the next candidate from the sequence.
    The answer for the first part is usually defined by the policy existing in your organization, in the simplest case you can append sequential integer numbers to the end of the original name.
    The answer for the second question is not so simple if you use are provisioning with MSAD connector.
    There are two places you can put the check:
    -- in the pre-populate adapter for the UD_ADUSER_COMMONNAME field
    -- in the adpADCSCREATEUSER event handler, which is responsible for new AD user record creation.
    Both cases need some coding, since you have to obtain the AD connection and search AD for matching records.
    Pros & cons
    Placing check code in the pre-populate adapter:
    Pros:
    the result is visible in the form, administrator can change the pre-calculated value if he wishes
    Cons:
    you need to have all access to connection parameters, and establish one extra connection
    this is not the way OIM is supposed to work :-(
    Placing check code in the AD user creation task:
    Pros:
    you have all access to connection parameters, and open a connection here anyway
    Cons:
    the result is not present in the form, so no way for manual interaction by administrator here
    BTW: this problem is not only related to DN generation, some other AD attributes (e.g. sAMAccountName, mailNickName, userPrincipalName, mail) should be unique in the AD domain scope.
    Edited by: madhatter on Sep 7, 2012 12:02 AM

  • How to avoid the pop up when pressing CTRL-SHIFT-DEL and delete the cache instantly?

    When pressing CTRL-SHIFT-DEL an additional dialog arises. How do I disable it to gain the behaviour of FF 2.0 which deletes the history instantly by taking the settings of the "Clear history when Firefox closes" menu?

    You did not get hacked through phone its that simple..
    Common sense will tell you not to open any suspect links
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • How to avoid IE pop-ups when running BIP reports(w/ SSO) from Oracle Forms?

    Hi all,
    We have an OID/SSO integrated Oracle Forms and BI Publisher environment in place. We/users expect the same behavior when running Oracle Reports or BIP reports from Oracle Forms... which means receiving no intermediate pop-ups and simply getting the report output to appear in the relevant target application(PDF, EXCEL, etc). Currently we get multiple security warnings when running BIP reports from Oracle Forms.
    Here's a list of Pop-ups contents:
    1. "File Download - Security Warning" Do you want to open or save this file? -> OPEN
    2. "File Download" Do you want to save this file? Name = ma01r500.pdf -> YES
    3. "Save AS" -> pick desktop and save.
    4. "Download Complete" -> OPEN
    We have experimented with setting various IE security settings to LOW/enabled and still get these pop-ups.
    Any suggestions is much appreciated.
    Thanks,
    Yahya

    FYI... Metalink Note 282996.1 has resolved the bigger issue with the extra pop-ups with SSO enabled environment.
    Cause:
    Internet Explorer (IE) has to cache PDF files in a temporary directory prior to opening the file. Without this IE cannot process PDF files. With SSO protected pages, the header cache settings are set to no-cache which prevents IE from downloading PDF files.
    Solution:
    In mod_osso.conf use the entry "OssoSendCacheHeaders off" which tells mod_osso to turn off all no-cache related headers, which the enables Internet Explorer to be cache the file in a temporary directory.
    Now I am not sure if anybody has any thoughts/suggestions as how we might be able to resolve this issue where Oracle Reports WEB.SHOW_DOCUMENT calls have no pop-ups so ideally BIP reports WEB.SHOW_DOCUMENT calls should behave the same as both are calls from Oracle Forms.
    But at least now our SSO enabled environment and un-secure DEV/UAT behave the same with a single pop-up. Ideally the users shouldn't have to come across this intermediate pop-up to open(save/cancel being the other options) the document(just like Oracle Reports calls).
    Yahya

  • How to avoid Entity Object validations when comiting a DB transaction

    Hello,
    I have a screen that have three sections:
    1. Header
    2. First tab that contains rows, lets call it User Details  - only the ability to add records and update existing
    3. Second tab that contains rows, lets call it Roles  - ability to create, modify and delete
    -- I have a Save and Cancel button
    I have an Entity Object that covers the whole page UserDetailsEO and it has its validation methods on the implementation UserDetailsEOImpl.java.
    On the second tab when deleting the record, the delete binding method its called and it has a row to commit the transaction. By doing so the validations for the EO are called.
    However I want to avoid performing validation at this point. I can delete rows without any validation, I just want to do the validation when clicking Save.
    Is there any way to accomplish this?
    Thank you,

    Hello Timo,
    Thanks for your answer, the delete action comes from an applicationTable, here is my code:
    The deleteImmediate is set to true.
    <fnd:applicationsTable tableId="t2" id="AT1"
                                             deleteEnabled="true"
                                             createPatternType="inline"
                                             createImmediate="true"
                                             createText="#{applcoreBundle.ADD_ROW}"
                                             deleteActionListener="#{ParticipantDetailPageBean.invokeConfirmationDelete}"
                                             deleteImmediate="true"
                                             styleClass="AFStretchWidth"
                                             deleteMsg="#{applcoreBundle.DELETE_CONFIRM}"
                                             deletePartialTriggers="_ATp:t2"
                                             duplicateEnabled="false">
    The popup does not have buttons itself. Here is the code
    <af:popup id="confirmDeletePopup"
                                      binding="#{ParticipantDetailPageBean.deleteYesNoPopup}"
                                      childCreation="deferred">
                              <af:dialog id="d1" type="okCancel"
                                         dialogListener="#{ParticipantDetailPageBean.handleConfirmDeleteDialog}"
                                         title="#{IcCnSrpTopGenBundle['Header.RoleAssignmentDeleteWarning']}">
                                <af:panelGroupLayout id="pgl4">
                                  <af:panelFormLayout id="pfl2">
                                    <f:facet name="footer"/>
                                    <af:activeOutputText value="#{applcoreBundle.DELETE_CONFIRM}"
                                                         id="aot1"/>
                                  </af:panelFormLayout>
                                </af:panelGroupLayout>
                              </af:dialog>
                            </af:popup>

  • How to avoid contact person deletion when partner function is assigned

    Hi All.
    I need your help for a contact person issue.
    I'd like to avoid a contact person relationship to be deleted when this contact person is assigned to one or more partner functions for any customer's sales area. In ECC I can't delete a contact person that is been used as a partner function in customer's sales data (KNVP). The system shows message F2 189. But it seems not to be the same in CRM as I'm able to delete this contact person relationship despite he's been used as a customer's partner function. Furthermore, when the contact person is deleted in CRM, no upload to ECC occurs, I mean, the contact person is still "alive" in ECC and linked to the customer.
    Thanks in advance for your help.

    Thanks, Prasenjit.
    Yes, we're using Web UI, so I'll try to check the partner function assignment as you told me.
    No problem regarding the concepts of contact person deletion and contact person relationship deletion, I know the difference. What I meant was that you can delete a contact person relationship in CRM (not the contact person itself but the relationship) and this relationship is not deleted en ERP due to the fact that this contact person is used as a partner function in the customer sales area. It seems CRM and ERP are working in a different way, using different checks that can lead you to inconsistencies.
    Kind regards,
    André

  • How to avoid redialing failed calls when unlocking an iphone

    when using my iphone 4 with ios7 in my car via bluetooth, i have the issue that when a call drops for one or other reason; the iphone wants to recall that failed call when unlocking my iphone at arrival.
    This is new since i upgraded my phone to ios7. with earlier versions i never had this issue.
    it looks to me to a mistake in the software statemachine where missed calls are kept in a buffer, even when i redialed the person using my car kit just some minutes later.

    And the worst and most stupid thing happens when that person already called you back. And while talking with them again you take your phone and try to unlock it to go to home screen (for ex to reply to a message you just received), and it starts calling a person you speak right now)). And they are asking: we are talking already, how did you just call me????

  • How to avoid  Error in SM13 when assign message type ?

    Dear experts,
    I have a request that when the user assign the a output type in VL02N, program check something if does not reached the requirement cancel output.I realized it but in SM13 I can see there are update termanited.
    Do you know how to aviod it ?
    Thanks in advance!

    Try not setting output type as "4 Send Immdialtely" instead setting as "1 send with periodically schedule job" and processing these output by backgroud job.

Maybe you are looking for

  • Java SE 6 runtime not updating properly after Mavericks update

    Since updating my 27-inch Late 2009 iMac to Mavericks I have an update that will not process. I keep getting a Software Update notification that says, "To open "java" you need a Java SE 6 runtime. Would you like to install one now?" When I click "ins

  • OBIA out-of-the-box reports functionality documentation?

    Hi, I am in search of the documents/functionality guide for the OBIA out-of-box reports. Version: Oracle Business Intelligence Applications 7.9.6.1 Please let me know where we can find the Document explaining the list of the Out-of-box reports and th

  • SQL Developer version 3.2.20.09 and Oracle Diff

        It is my understanding that from this version onwards this functionality would be available without licensing but it is not available for use actually, maybe I am doing something wrong or just "bad info" ? I downloaded jre version 32 bits. Thanks

  • Convert numbers to words

    Hello friends i am in search of a programme to convert the number in to words.If u have do post.

  • How to compare two libraries

    I recently bought a 17-inch MBP to replace my old WindTunnel G4 as my primary machine. (The G4 will still be in service as a server.) I'm in the process of bringing my iTunes library over to the MBP, a process that has been made much easier by Home S