Using const in PDA external calls

LabVIEW PDA Module 7.1
WIndows XP
I am trying to use the Palm Data Manager library calls in my application.  I want to be able to save data between Palm sessions and look up data within the file by index or key value in order to identify and avoid storing duplicates.  The database would be transferred to a streaming file when I wanted to upload data to the PC. 
However, I have run into  problem as these calls include parameters such as  "const char* nameP".
I built a stub, per the PalmBatt sample, and a companion Palm OS C program, in which I define the constant to pass to the library function:
#include <PalmOS.h>
#include <SystemMgr.h>
#include <DataMgr.h>
Err LvDmCreateDatabase (UInt16 cardNo, char *NameP, UInt32 creator, UInt32 type, Boolean resDB)
const char* dbName = "PKSTagDB";
return DmCreateDatabase (cardNo, dbName, creator, type, resDB);
However, the library function, DmCreateDatabase, apparently calls other Palm OS functions that also have const parameters.  When I built a simple VI that called the DmCreateDatabase function, I got errors:
"Error   : illegal implicit conversion from 'unsigned char *' to
'const char *'
file2.c line 23    return DmFindDatabase (cardNo, nameP);
Error   : illegal implicit conversion from 'unsigned char *' to
'const char *'
file2.c line 34     appInfoIDP, sortInfoIDP, typeP, creatorP); "  [I believe this is the second line of a call to DmSet(or Get) DatabaseInfo.]
Is there a way to make these calls work from LabVIEW?
Thanks,
BevP

"Error   : illegal implicit conversion from 'unsigned char *' to
'const char *'
file2.c line 23    return DmFindDatabase (cardNo, nameP);
Error   : illegal implicit conversion from 'unsigned char *' to
'const char *'
file2.c line 34     appInfoIDP, sortInfoIDP, typeP, creatorP); "
The error says that nameP was declared as an "unsigned char" pointer, but the function DmFindDatabase expects nameP to be a "const char" pointer.
Did you declare the variable nameP yourself? It should be declared as
"const Char* nameP" instead of "unsigned char* nameP".
Regards,
miko

Similar Messages

  • I am using both PSE 13 and Lightroom 5.  When I use Lightroom as an external editor and save the photo, it shows up in PSE13 as an edited file but does not look any different.  Why doesn't it appear edited?

    I am using both PSE 13 and Lightroom 5.  When I use Lightroom as an external editor and save the photo, it shows up in PSE13 as an edited file but does not look any different.  Why doesn't it appear edited?

    People who have Photoshop, but don't have Lightroom, need ACR so that they can use Raw files. Without ACR they could do nothing with those (they may also like having ACR so that they can work on other kinds of image using the same kinds of adjustments and techniques, as are used with Raw files).
    People who have Lightroom, can get access to Raw files regardless whether ACR is present or not. They can use Lightroom on other kinds of image also, using the same methods. LR can pass images directly into Photoshop without passing via ACR (or else does so transparently, which amounts to substantially the same thing).
    ACR does not, strictly speaking, even need to be installed for this external editing to happen. In fact, not even PS needs to be - since a different image editor can be used instead, while still retaining the Adobe Raw conversion etc.
    Lightroom "subcontracts out" specialised external tasks, in this workflow, but is still your "main contractor": the image is otherwise located, viewed, managed, adjusted/presented and output entirely using LR.
    So IMO we can divide image processing into:
    operations that involve pixels and layers and layer masks and adjustment layers etc (of the kind done inside Photoshop)
    operations that involve parametric edits (of the kind done in ACR where you are not using a Lightroom based workflow; otherwise, done inside Lightroom)
    When PS is called in, that's because those tasks are impossible or unsuitable to do in Lightroom. But those tasks can't be done in ACR either - by definition, since LR and ACR have exactly the same image processing "feature set".
    Lightroom is irrelevant to the Bridge + ACR + PS workflow. This workflow requires both your PS and your ACR to be current enough, to support your Raw format etc.
    ACR and Bridge are irrelevant to the LR + (image editor) workflow. It is in this case, only LR which needs to be current enough to support your Raw format etc.
    RP

  • Block External calls h.323 gateway CM4.1(3)

    Is there a way to block external calls from getting through the gateway. The gateway is H.323, Callmanager 4.1(3)

    You can use Class of Restriction on the gateway.
    http://www.cisco.com/en/US/tech/tk652/tk90/technologies_configuration_example09186a008019d649.shtml

  • Initiating External Calls in Adobe Edge

    Can I do external calls with edge? For example: can I access external music and build a list which could be played back by a user? Additionally could i use some library that would allow me to record in Edge and save the recording? I am thinking like some browser api or some external call that would allow me to create a stand alone Adobe Edge html file that someone could launch on their desktop. I know this is asking a lot but I would greatly appreciate any info.

    Hell0,
    I did this example a long time ago. Maybe this could help you.
    https://www.box.com/s/ygym12tza9s9x2gfrgja

  • How to add external call from Report Painter

    Hi experts,
    I'm working on a report painter, and I need to do an external call, from the generated code.
    add something like this    PERFORM Z_CALCULO_IMPORTE_COMPENSADO(ZCASS_FFMRBCS)
                                                                                    USING CUR-TAB
    Is there any way to do it without an SSCR key?
    Thanks in advance

    HI  Pradeep,
    Goto the transaction code (Change Report) GR32.
    Give you library name and report name
    And click on the column (application tool bar or F7) button then place the curser on the screen where you want column (please note you have to keep curser on the header section u2013Red column text) right click and insert element. Then you select formula as selection element  and enter. You will get the enter formula box. Then you can type your formula and continue. This will add new column to the report.
    How to enter formula: you can see the formula components in that id and description.
    Id is columns that are present and description indicates explanation of that column.
    Enter formula according your requirement.
    Examples:
    Enter formula screen:
    ID :    des
    X001  amount
    X002  pt000
    X003  test
    1. Enter formula as: ( X001 u2013 X002)
    The above formula is for fist column u2013 second column.
    2. ( ( X001 u2013 X002) / X003) * 100
    First column u2013 second column and devide by third column after that multiple with 100.
    Hope this will help you
    Regards
    Manohar

  • How to specify a constant value in external tables??

    Create table cp_portfolio_ext
    rec_type                                                varchar2(1),
    acct_nbr                                                varchar2(23),
    acct_title                                              varchar2(50),
    prod_type_cd                                            varchar2(5),
    acct_desc                                               varchar2(35),
    country_code                                            varchar2(2),
    acct_ref_ccy_cd                                         varchar2(3),
    nom_accr_int_amt                                        number(20,4),
    ineligible_cash                                         number(20,4),
    pldg_amt                                                number(20,4),
    posn_as_of_dt                                           date,
    moody_rating                                            varchar2(5),
    sp_rating                                               varchar2(4),
    mat_dt                                                  date,
    anl_pct_rt                                              number(20,6),
    acct_pp_cd                                              varchar2(10),
    filler                                                  varchar2(229),
    process_status                                                  char(1)
    Organization External
    type                    oracle_loader
    default directory     TEST_DIR
    access parameters
                             records delimited by newline
                             fields
                                  REC_TYPE                            POSITION(1:1),
                                  ACCT_NBR                            POSITION(2:24),
                                  ACCT_TITLE                          POSITION(25:74),
                                  PROD_TYPE_CD                        POSITION(75:79),
                                  ACCT_DESC                           POSITION(80:114),
                                  COUNTRY_CODE                        POSITION(115:116),
                                  ACCT_REF_CCY_CD                     POSITION(117:119),
                                  NOM_ACCR_INT_AMT                    POSITION(120:139),
                                  INELIGIBLE_CASH                     POSITION(140:159),
                                  PLDG_AMT                            POSITION(160:179),
                                  POSN_AS_OF_DT                       POSITION(180:187) DATE "DDMMYYYY" NULLIF POSN_AS_OF_DT ='00000000',
                                  MOODY_RATING                        POSITION(188:192),
                                  SP_RATING                           POSITION(193:196),
                                  MAT_DT                              POSITION(197:204) DATE "DDMMYYYY" NULLIF MAT_DT = '00000000',
                                  ANL_PCT_RT                          POSITION(205:215),
                                  ACCT_PP_CD                          POSITION(216:225),
                                  FILLER                              POSITION(226:454),
                                  process_status               
    location('ODS_CP_DAILY_EXTRACT.DAT')
    )reject limit unlimited;I wont recieve process_status from feed file ,but I would like to have a default value 'N' to be provided.How to achieve this??I tried using defaultif but it doesnt work him.
    I know it can be donw using CONSTANT keywork using sqlloader.But how about in external tables.??
    Edited by: 792353 on Sep 30, 2010 9:21 PM

    I think it should helpful to you
    http://jiri.wordpress.com/2010/03/29/oracle-external-tables-by-examples-part-4-column_transforms-clause-load-clob-blob-or-any-constant-using-external-tables/
    kanish

  • Different MOH for Internal and External Calls

    Is it possible to have a different MOH source for internal vs external calls.
    I know that Network MOH is for transfering but can this be used for external MOH source from the PSTN?

    There's really no way to do this easily. The issue is that the call to a PSTN phone would flow through a gateway and if an IP phone put this call on hold, then the Audio Source configured on the IP phone would determine the MoH file/source and the MRGL of the gateway would determine which MoH server it actually came from. As a result, there's really no way that the IP phone placing the call on hold could specify a different audio source for an internal call (to another IP phone) because even if the other phone has a different MRGL (and therefore a different MoH server), the MoH audio source will be the same

  • Netweaver 7.01 ABAP Trial Version - External Call Into Possible?

    I am trying to do any kind of external call into the Netweaver 7.01 ABAP Trial Version.
    Is it possible with either VS 2003 using the .NET Connector or even via a web service call to a BAPI?
    Here are my results in both technologies:
    1 - Deplaying a BAPI as a Web Service - Receive Error Message Object Director R3TR WEBI does not exist.
    (Note: Also when trying to acces SOAMANAGER, I receive a 500 Connection Time-Out Error Web page).
    2- VS2003 using the .net Connector - When I try to list the BAPIs, I receive the error message "Open file c:\windows\sapmsg.ini failed".
    Note: All services have been enabled in SICF.

    And which problem was? And how you solved it?
    Because im trying to acces SOAMANAGER and it starts loading but it never finishies. IE says waiting for reply...

  • Caller display says external call

    My caller display only works sometimes. The rest of the time it says external call. I phoned BT who said it was an exchange fault. It then worked for a short time but back to only working sometimes again.

    Hi annegray01,
    Thanks for you post.
    I'm sorry for the problems you're having using Caller Display.  I can help get you sorted from here.
    To get in touch, click on my username and under the "about me" section you'll see the link to "contact the mods".
    Cheers
    Robbie
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Big problem- using ipod as an external Drive

    Hello
    Right now i am tring to save my School work (i do Homeschool) on myipod, using it as an External Drive. I plug my ipod, amd i go to my computer, and i see the ipodd drive, i open it, and after 5 seconds it colses by itself. Itunes does not open eiter, what shall i doÉ its really urgent!
    (doe sit have to do ith disabling Disk Mode? if yes, tell me how...cuz my itune is in French...and i do now how ou call that in French)
    Chris

    If you restore the iPod you will delete the files, so don't do it unless you have backups. Sorry I don't know about the error code.

  • C++ STL library error: Non-const function ... called for const object

    Hello,
    I'm using the Forte Developer 6 Update 2 C++ compiler and standard library on Solaris 9 SPARC. I've installed the recommended patch set for C++ (both the workshop and platform patches).
    In my code, I have a STL set with some elements that I want to modify, say:
    typedef set<SomeClass> MySet;
    typedef MySet::iterator MySetIter;
    I'm trying to look for an element, then update some of its fields:
    MySet theSet;
    SomeClass sci;
    MySetIter it = theSet.find(sci);
    if (it != theSet.end()) {
    it->update_some_fields();
    The above code fails with the following error (some details scrapped):
    Error: Non-const function SomeClass::update_some_fields() called for const object
    Which is weird, since set::find() seems to return a set<...>::iterator, not a set<...>::const_iterator!
    If I try a workaround, like this:
    if (it != theSet.end()) {
    SomeClass &tmp = *it;
    tmp->update_some_fields();
    I get this other error:
    Initializing SomeClass& requires an lvalue.
    Is there some way to convince the Forte compiler to work around this situation (most likely a compiler / library bug)?

    This was fixed, too, by replacing the set with a map. It seems that the issue was related to the fact that any change made to a set member is supposed to not modify the elements that make up the key (the elements that are used in the comparison function to determine the ordering). The Windows (dinkumware) implementation of the STL allows set modifications, though I don't know how they check that the key fields are not modified. The Solaris implementation (and the GNU implementation, too) disallows any modifications made to set members. At least that's what a person more knowledgeable of C++ in our office found out. So I don't think the issue was related to template constructors or any unimplemented features after all.

  • CME:how to block external call to external call

    cme have the four fxo and AA,when the external calls come in,and dial 9+ pstn num,it can call from external call to another external call,how can blocking?

    Hi,
    try to use this command
    #call application voice aa max-extension-length 5
    This option declares the maximum length of the extension that the user can dial when dial-by-extension-option is chosen. The default value is 5. The value can be 0 with no restriction up to x digits.
    or try
    3.
    Configure Class of Restriction (COR) to block call transfers from B-ACD to PSTN numbers. The sample configuration below prevents the B-ACD from transferring calls out to local and long distance PSTN numbers. The B-ACD can still transfer calls to internal extensions.
    Below is an example of such a configuration:
    dial-peer cor custom
    name longdistance
    name local
    dial-peer cor list call-longdistance
    member longdistance
    dial-peer cor list call-local
    member local
    dial-peer cor list block-pstn
    dial-peer voice 1 voip
    corlist incoming block-pstn
    application aa
    destination-pattern 1000
    session target ipv4:192.168.1.1
    incoming called-number 1000
    dtmf-relay h245-alphanumeric
    codec g711ulaw
    no vad
    dial-peer voice 2 pots
    corlist outgoing call-longdistance
    destination-pattern 91..........
    port 0/2/0
    dial-peer voice 3 pots
    corlist outgoing call-local
    destination-pattern 9[2-9]......
    port 0/2/0
    Thanks
    Najeeb

  • JTAPI, CallManager 3.3 and external calls problem

    Hi everyone,
    I'm putting together an application that uses JTAPI to track call times.
    When I'm tracking an internal call, the call time is pretty much exact and my application gets notified about all call events.
    But when tracking external calls (calls that go to the public telephone network) I've noticed that as soon as the call is directed to the router (a Cisco 3800), CallManager sends a connected event when in fact the phone on the other side is still ringing.
    Even if the external call never gets answered I get a connected (active call) event.
    I have a trace dump of my application that shows the events when they happen and I can provide that if needed but for now I was wondering what, if anything, should be configured either in CallManager 3.3 or the Cisco 3800 so that events are triggered correctly, i.e. get one connected event when the call is actually answered and not when CallManager passes the call to the router.

    Hey all
    Just got a 17" i7 MBP a few weeks ago, anxious of all the spinning beachball freezes people have reported in the Apple forums. Thankfully, I have none of these problems, however, I have a problem that's just as annoying.
    I have my laptop connected to an Eizo 24" Widescreen via a display port to DVI adapter, using the extended desktop functionality. I started fine, and I have pretty much the external monitor connected 90% of the time. But then after a few days (and this happens now 2-5 times ever day), the screens will go black, once entering sleep mode for the screens only, and I can't wake them up, only do a hard reboot via the power button. it's really annoying, as I can't leave the monitor plugged in, while I go do other stuff. When the MBP is on it's own, there's no problem.
    Also, sometimes when starting up, a few seconds into the desktop showing, I get severe graphics corruption, all kind of colours on both monitors, and I can only o a hard reboot to recover it. No problem as well when only using the MBP without the external monitor.
    The only good thing about these problems are that wen I push the machine hard (I am a graphic designer, so it get's pushed to max maybe 5 hours a day), there's no problems what so ever, it's like it's more tend to crash when cold. No problems during intense gaming as well.
    I run solely on the geforce card, as I have read a lot of problems are due to the switching of cards.
    Anyway, just wanted to chime in, hopefully Apple will deliver a solution for this soon. My old 2007 MBP was rock-solid, and so far this has been the least stable Mac I have owned. Love it still though.
    Lars

  • Choppy voice on IP Phone with external calls

    Hi,
    Having a issue where the IP Phone side of the call hears choppy voice (jitter) on some external calls coming in/out a MGCP PRI Gateway across WAN from the users. The PSTN (outside party) is fine and doesn't hear a problem.
    The users can call other IP Phones at the main location fine and don't have this problem, problem is only with calls going out the PRI on the gateway now and then.
    QoS is in place and no drops on the policies.
    The WAN connection is a Multilink frame relay connection with 2 T1s. FRTS is configured and set to shape to 10ms with a fragment size of 1600 bytes.
    The 'mgcp playout adaptive' command was added and set to 250 which improved things a little and it happens less often then before but still there.
    The gateway is IOS 12.4(3b) and CCM is 4.1(3)Sr1 with 7.2(2) phone load on the 7940/7960 phones. Using G729 codec across WAN.

    Fragment size 1600 ? It should be quite smaller to be effective.
    Also, how big the the queues ? If too large, you can experience delay without drops.
    Finally, check your FRTS values and perhaps bumping up a little. More often than not WAN networks are a little more tolerant of what the contract guarantees.

  • VOICE_IEC-3-GW error - no external calling available

    Anyone have any thoughts on this? I've been getting this error on the logs of my router,
    "%VOICE_IEC-3-GW: C SCRIPTS: Internal Error (Interface busy): IEC=1.1.182.11.26.0 on callID" 
    It was happening last Thursday about the same time it was reported that the location could not make or receive external calls. Users could still dial 5 digits inside company.
    It's a 2851 router, running c2800nm-adventerprisek9-mz.151-4.M6.bin and has analog lines connected to FXO card. We had a problem with one of these analog lines previously. I'm wondering if it's not a telco issue again. Suddenly the problem cleared up and calls were successful again without me doing anything.
    Thanks

    Hi,
    From the error decoder tool
    %VOICE_IEC-3-GW: [chars]: Internal Error ([chars]): IEC=[dec].[dec].[dec].[dec].[dec].[dec] on callID [dec] [chars]
    An internally-detected error has caused a voice call to be released or terminated. An Internal Error Code (IEC) has been generated to report the error. This IEC will be logged in the accounting record for this call. In addition it is being reported through syslog because of the voice iec syslog configuration.
    Recommended Action: To display more information on the details of this error, enter the show voice iec description IECvalue command, with IECvalue being the value of the IEC that was received. Debugging actions might also indicate the cause of the error.
    Regards,
    Alex.
    Please rate useful posts.

Maybe you are looking for

  • BI 7.0 Left outer join in Infoset

    Hi Everybody, I am using BI 7.0 and have two cubes in my Infoset. How do we set left outer join option in Infoset. Thanks Shilpa

  • Unable to run a form(FOrms 5.0) on Web. Security exception E

    Hi, I am trying to run a simple form developed in Forms 5.0 over our intranet. Environment: On NT I am using Oracle 8.0.5, Developer/2000 Server and Internet Information Server 4.0. I have created a simple form and deployed on the server. (created th

  • Search help in webdynpro abap

    hi all, I am new to webdynpro abap.i want to implement search help for input feilds in my application,.can anyone give me step by step procedure to create search help thanx in advance. regards, Anusha

  • Payment  Card Processing - CRM 4.0

    Hi, I have done all the config and customisation required for the Payment Card Processing in CRM 4.0. I was wondering if I have to make some changes on the R/3 4.6 c side? Right now the authorisation is happening in CRM. Once the document goes to R/3

  • Upgrading my Graphics card on a pavilion touchsmart 23 f250

    Hello  I am wanting to upgrade my graphics card.  and i am not sure what kind of cards to use.  Also, am not sure how to go about installing one since this is my first all in one computer.  any help would be great System Specs Processor       AMD a4