Problem with "Treat WChar_t AS Built in Type" as "Yes (/Zc:wchar_t)" settings

I am working with VC++ proj having "Character Set" as "Use Multi-Byte Character Set" and "Treat WChar_t AS Built in Type" as "Yes (/Zc:wchar_t)"in proj settings. We are referring to 2 libs( one requires /Zc:wchar_t
- yes and other requires /Zc:wchar_t - no). On building project, it thows linker errors related to wchar_t, what changes should I need to do, to make build successfull.

i have the same problem but project is in unicode character set ,
/Zc:wchar_t set to YES  and im referring to ddao35ud.lib(file locations -> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib) and another project mysampleDLL with  /Zc:wchar_t
set to YES 
now my problem is with ddao35ud.lib imgetting wchar_t linker errors and when i set  /Zc:wchar_t
set to NO it links properly with ddao35ud.lib 
i tried below code
typedef unsigned short ushort;
#define wchar_t ushort
#include <dbdao.h>
#include <dbdaoerr.h>
#undef wchar_t
now how do i cast ? when i cast from wchar_t to ushort, from wchar_t* to ushort* program is not working

Similar Messages

  • Pairing problem with motorola v330: misdetected as another type of device

    ok, this actually seems to be a problem with the phone, but I'm posting here anyway in case someone has any ideas.
    My mini core duo recently arrived and one of the first things I did was to try to pair my bluetooth devices: apple keyboard and mouse, scala 500 headset, and the motorla v330. When I fire up the bluetooth setup assistant, go through setting up the keybpoard and mouse, and then try the phone. It sees the phone but it's listed as a keyboard (after choosing "any device" in the asssistant). Hmm, this never happened with the 12" powerbook.
    Get out the powerbook (that has previously paired with this phone) and run the assistant, choosing "any device". Two things pop up one after another, the mini and the phone. This time the phone is listed as a computer.
    Ok, this is getting really odd. I try again on the mini and this time it shows up as a computer. This time there were no other bluetooth devices powered on in the area.
    So, it seems that if you start the pairing process with any other unpaired device that is discoverable, the phone assumes and remembers the type of device that the other device is. Even after powering the phone off and on.
    btw, both machines are running 10.4.5
    mini duo core and 12" powerbook 1GHz   Mac OS X (10.4.5)  

    I just tried to pair it with a windows xp machine and it was detected as a phone.
    I just tried again on the mini, and it's still showing up as a computer. So I started the assistant again, and this time chose "mobile phone" instead of "any device" and it showed up!
    I swear it was showing "0 devices found" when I chose "mobile phone" before... anyway, finally, I have them paired, and the phone is available in isync. (I had previously paired up when it was showing up as a keyboard to see if it was in isync, but isync didn't see it)

  • For the last 2 days whenever I try to upload photos from my iPhoto page to facebook I get an error message: Bad Image There was a problem with the image file.  I haven't knowingly changed any settings on iPhoto or facebook. Can anyone help, please ?

    I need help with uploading photos from iPhoto to facebook. I could do it till 2 days ago. Now any new photo I try to upload gives me an error message:
    Bad Image
    There was a problem with the image file. 
    Please help.

    Can you drag it to the Desktop?

  • Problem with central build of Simple Date Type with Enumeration

    Dear gurus,
    I hope I'm posting this in the correct forum. Please advise if I'm in the wrong forum.
    I have a Web Dynpro DC in which I've created a simple data type with enumeration.  It is used for binding to a radio box. The data type is called DownloadType; the enumeration contains two vales: current and archive. To allow me to access the enumeration values, I turn on the "Generate a class representation of the enumeration" in the data type builder.
    I then reference the enumeration values with code like:
    if (downloadType.equals (DownloadType._CURRENT))
        yada yada yada
    This works fine when building locally and deploying directly. But when the DC is built by CBS (or doing a "Development Component->Build..." in NW Dev Studio), the build fails, stating that the DownloadType._CURRENT symbol cannot be resolved.
    For example:
    C:yadayadayada.java:227: cannot resolve symbol
    symbol  : variable _CURRENT
    location: class yadayadayada.DownloadType
                    equals(DownloadType._CURRENT))  {
    Apparently the central builder is not smart enough to handle the "Generate a class representation" flag.
    Is this a known problem? Are there any workarounds?
    Thanks in advance for any help you can provide.
    -Kelly
    P.S. Environment: 2004s

    Hi Kelly,
    works for me using SP10, what SP are you on?
    There's a line in the DC log that says:
         [ddgen] [Info]    Generating datatypes/com/x/x/x/MyEnum.java
    and the java compiler includes the matching path for compilation:
          [echo]   source paths:
          [echo]     ...\_comp\src\packages
          [echo]     ..\t\ABF37B5AFB3B2E8A76FFD29E7862EA48\gen_ddic\datatypes
    Regards,
    Marc

  • Problem with getLong for a column of type NUMBER

    When ever I am calling getLong on a column defined as NUMBER in the database, I get this error message. The number I am retreving is something like '320000000010'..
    What could be the problem? Has somebody encountered a
    similar problem?
    The database is 8.1.7.4 and the JDBC driver is a thin driver.
    java.lang.ArrayIndexOutOfBoundsException
    at oracle.sql.NUMBER._fromLnxFmt(NUMBER.java:3181)
    at oracle.sql.LnxLibThin.lnxsni(LnxLibThin.java:6571)
    at oracle.sql.NUMBER.toLong(NUMBER.java:373)
    at oracle.sql.NUMBER.longValue(NUMBER.java:2002)
    at oracle.jdbc.driver.ScrollableResultSet.getLong(ScrollableResultSet.java:807)
    at oracle.jdbc.driver.UpdatableResultSet.getLong(UpdatableResultSet.java:458)
    Thanks
    Ranga

    I had this problem after migrating to JDeveloper 10.1.3. Problem was with inconsistent DB column types. In our case, the DB column was CHAR containing only numbers, but VO defined it as NUMBER. This caused no problem in 9.0.3 we used before.
       <ViewAttribute
          Name="ParentFlagNew"
          IsPersistent="false"
          Precision="1"
          Type="oracle.jbo.domain.Number"
          ColumnType="NUMBER"
          AliasName="PARENT_FLAG_NEW"
          Expression="PARENT_FLAG_NEW"
          SQLType="NUMERIC" >
          <Properties>
             <Property Name ="DISPLAY_LIST" Value ="1=Yes,0=No" />
             <Property Name ="DISPLAY_LIST_sk" Value ="1=Áno,0=Nie" />
             <Property Name ="Renderer" Value ="sk.transacty.cm_iface.bc4j_common.ListFieldRenderer" />
          </Properties>
          <DesignTime>
             <Attr Name="_DisplaySize" Value="1" />
          </DesignTime>
       </ViewAttribute>

  • PLEASE HELP!!!  Problem with Java and SQLServer Text data type

    Hi there,
    I have a java app. that reads from an MS SQLServer database. Originally, all long text fields were declared as NVARCHAR(200). The program worked fine.
    Someone then advised that I change all long text fields to the TEXT data type. The program now crashes out with the following Exception:
    "java.sql.SQLException: [JRun][SQLServer JDBC Driver]This ResultSet can not re-read row data for column 25."
    Basically, I have a method that retrieves a resulset and iterates through it. The resultset is passed to another method during each iteration. In the example below, the 'specialNote' field used to be NVARCHAR(200). The code worked fine. Then when it was changed to TEXT, the program no longer works with the above Exception thrown.
    Anyone know any special way SQLServer TEXT data types need to be handled?
    Thanks for any advice!
    The code looks something like this in functionality:
    <CODE>
    public void method1 (Connection conn)
    Resultset rs = conn.createStatement().executeQuery("SELECT * FROM ProductBB");
    while (rs.next())
    method2(rs);
    public void method2 (ResultSet rs)
    String str = rs.getString("specialNote");
    </CODE>

    Hi JWoods,
    Thanks for the suggestion. I originally had the code do what you suggested, ie, get the resultset then retrieve the data all within the same method. The data is then used to set properties in an object.
    When I had to create another method that also retrieved a resultset but using a different primary key, then also use the returned data to set the properties in the same type of object, I didn't want to repeat the setter code. That's why I decided to pass the resultsets to the same method that did the property setting.
    Unfortunately, it stopped working with the data type change.
    Any other thoughts?

  • Problem with External List Management; Business Partner Type

    Hello experts;
    I created a mapping format for importing a simple notepad file. In the ELM i see all my fields populated correctly. Once i start the importing process it goes smoothly with no mistakes at all (green lights). The bp is actually imported and i can see it in the BP transaction with most of the fields correctly imported BUT the business partner type (PERS_PERS_BPKIND in ELM). For this field i have a Constant Assignment which is always HH and because of that i don't have it in my notepad file but i pass the value directly from ELM constant assignement=HH. Unfortunately this value is not copied. Any idea? Am i doing something wrong or i'm loosing some steps in between?
    Thank you very much

    Hello,
    the issue is most probably related to missing authorizations. As you know the processing in external list management happens in the background using WF-BATCH user.
    Please check the following notes:
    708557 - 'ELM: Troubleshooting' point 1.
    https://service.sap.com/sap/support/notes/708557
    1912414 - ELM upload: Error in the map data-step
    https://service.sap.com/sap/support/notes/1912414
    1664498 - External List will not execute
    https://service.sap.com/sap/support/notes/1664498
    The information provided in the notes should help to solve the issue.
    best regards,
    Johannes

  • Problem with gui_download when using DBF FILE type.

    Good Day Experts.
    I am trying to download excel file using function module  GUI_DOWNLOAD.
    declared  a table it_string type table string.
    initially I  appending my header to it_string. and then passing  my internal table to it  .
    this is how I am passing data into it_string.
    so in gui_download I am passing parameters as below. but I am not getting data into the excel file.
    I tried both ways passing field separator  as 'X' and '#'.
    please guide me where I am wrong.

    Hello Surendra,
    Can you please upload your code sample. Thanks.
    What i manage to find is using this function module  WS_DOWNLOAD.
    The file is downloaded in the directory -->  C:/
    Here is the code sample :
    TABLES: usr03,dd02l.
    DATA: zx030l LIKE x030l.
    DATA BEGIN OF zdfies OCCURS 0.
             INCLUDE STRUCTURE dfies.
    DATA END OF zdfies.
    DATA: BEGIN OF flditab OCCURS 0,
           fldname(11) TYPE c,
           END OF flditab.
    DATA itabusr03 LIKE usr03 OCCURS 0 WITH HEADER LINE.
    DATA tname LIKE dd02l-tabname.
    SELECT * FROM usr03 INTO TABLE itabusr03.
    tname = 'USR03'.
    PERFORM getfieleds.
    PERFORM dwdbffile.
    FORM getfieleds.
       CALL FUNCTION 'GET_FIELDTAB'
         EXPORTING
           langu               = sy-langu
           only                = space
           tabname             = tname
           withtext            = 'X'
         IMPORTING
           header              = zx030l
         TABLES
           fieldtab            = zdfies
         EXCEPTIONS
           internal_error      = 01
           no_texts_found      = 02
           table_has_no_fields = 03
           table_not_activ     = 04.
       CASE sy-subrc.
         WHEN 0.
           LOOP AT zdfies.
             flditab-fldname = zdfies-fieldname.
             APPEND flditab.
           ENDLOOP.
         WHEN OTHERS.
           MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH  sy-subrc.
       ENDCASE.
    ENDFORM.                    "GETFIELEDS
    FORM dwdbffile.
       CALL FUNCTION 'WS_DOWNLOAD'
         EXPORTING
    *      filename                = 'C:\USR03.DBF'
           filename                = 'C:\USR03.XLS'
           filetype                = 'DBF'
         TABLES
           data_tab                = itabusr03
           fieldnames              = flditab
         EXCEPTIONS
           file_open_error         = 1
           file_write_error        = 2
           invalid_filesize        = 3
           invalid_type            = 4
           no_batch                = 5
           unknown_error           = 6
           invalid_table_width     = 7
           gui_refuse_filetransfer = 8
           customer_error          = 9
           OTHERS                  = 10.
       IF sy-subrc <> 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ENDIF.
    ENDFORM.                    "DWDBFFILE
    Thanks and Kind Regards,
    Yovish.

  • Problem with select range for a character type field. Kindly Help! Urgent!

    Hi Experts,
        I have to write a report to pull data from a table BUT000 for a selected range of  BPEXT field values in selection screen.
        In the table BUT000, the BPEXT field is type char. Now what is happening is that if the user gives a range in selection screen from 1000 to 1010 the query pulls all the records where teh forst character starts from 1.
    For example if the table has
        BPEXT
        1
        10
        100
        101
        1000
        1001
        1002
        1005
        1010
        20
        200
        2000
    Then my query pulls
       BPEXT
        101
        1000
        1001
        1002
        1005
        1010
       Instead it should pull only
       BPEXT
        1000
        1001
        1002
        1005
        1010
        My guess this is because the BPEXT field is of CHAR type instead of numeric.
        What shall i do to solve this problem? Kindly help please!   
    Thanks
    Gopal
    Message was edited by:
            gopalkrishna baliga

    Hi Chakradhar,
        How to find the conversion exit for BPEXT field?
        How to use the conversion exit in a select query in my ABAP report? Any sample code will be really helpfull.
       Please help!
    Thanks
    Gopal

  • Problem with HRMD_A06 IDoc and HRMD_A msg. type

    Hi All,
    When we are transferring data from r/3 to r/3 systems... 0001 info type is not getting filled. All other data is getting posted successfully.
    The segments itself are not getting filled.
    Can any one help me in this regard.

    - I’m assuming you have distribution model with message type  HRMD_A06
    - You also schedule the change pointer job ( BD21) for  HRMD_A.
    -You also have WE20 ( partner profile with message )
    -you also have port
    -When you’re making change in IT0001 , you’re saying nothing is happening?
    Please check the above thing and let me know...
    Thanks
    Saquib

  • Problems with PROOF field in idoc (message type HRMD_A)

    Hello,
    I'm using the standard message type HRMD_A with IDOC base type HRMD_A06 and the function module IDOC_INPUT_HRMD.
    I have a doubt with field 'PROOF' when I fill the IDOC. Does anybody know for what is it used? For example, what's going to happen if I put PROOF = 'X' in an update operation?
    In my case I have tested that when PROOF = 'X', I receive the following warning in intotype 0001:
        The EMPLOYEE_ORG_ASSIGNMENT-ADMINISTRATOR_GROUP field is not maintainable in dialog, so it is ignored
        The EMPLOYEE_ORG_ASSIGNMENT-ORG_UNIT field is not maintainable in dialog, so it is ignored
        The EMPLOYEE_ORG_ASSIGNMENT-COSTCENTER field is not maintainable in dialog, so it is ignored
    but I cannot be sure if these warnings are due to PROFF.
    In the change data record screen, I have filled the following fields: plan version ('01'), object type ('P'), object id (employee number), PROOF ('X'), Operation ('U'). Structure for the idoc is EDIDC->E1PLOGI->E1PITYP.
    Any help on this?

    Hello,
    I'm using the standard message type HRMD_A with IDOC base type HRMD_A06 and the function module IDOC_INPUT_HRMD.
    I have a doubt with field 'PROOF' when I fill the IDOC. Does anybody know for what is it used? For example, what's going to happen if I put PROOF = 'X' in an update operation?
    In my case I have tested that when PROOF = 'X', I receive the following warning in intotype 0001:
        The EMPLOYEE_ORG_ASSIGNMENT-ADMINISTRATOR_GROUP field is not maintainable in dialog, so it is ignored
        The EMPLOYEE_ORG_ASSIGNMENT-ORG_UNIT field is not maintainable in dialog, so it is ignored
        The EMPLOYEE_ORG_ASSIGNMENT-COSTCENTER field is not maintainable in dialog, so it is ignored
    but I cannot be sure if these warnings are due to PROFF.
    In the change data record screen, I have filled the following fields: plan version ('01'), object type ('P'), object id (employee number), PROOF ('X'), Operation ('U'). Structure for the idoc is EDIDC->E1PLOGI->E1PITYP.
    Any help on this?

  • Problem with .prog file and host Executable type

    Hi All,
    Please help as m stuck in some issue. Its related to Unix shell scrip FTP program registered to apps.
    Requirement – Inbound program will run. It’s a request set. Last program in the set is FTP program that will MOVE the data file to archive folder.
    Steps used by me are as below. Plz suggest if m doing anything wrong.
    1)     Wrote the FTP scrip as below
    #default parameters for host concurrent program
    shellnm=$0 #-Shell script name
    usernmpw=$1 #- Oracle username/password
    userid=$2 #- User_id
    ora_user=$3 # - Oracle Applications username
    cnreqid=$4 #- Concurrent request id
    #Move the Data file to archive
    mv -f/apps/prodappl/xxics/11.5.0/bin/inbound/po_file/ICS_PO_IMP.csv /apps/prodappl/xxics/11.5.0/bin/inbound/po_file/backup/ICS_PO_IMP"_"`date +%F``date +%R`".csv"
    2)     Saved it in notepad in .PROG file type. Then keep it in apps BIN directory.
    3)     Register it with apps as HOST executable program name.
    4)     Then created the concurrent program and added to request set.
    5)     While running the request set the FTP program is errored out.
    Plz suggest if I am missing anything………
    Thanks,
    Samir

    Samir,
    5)     While running the request set the FTP program is errored out.What is the error?
    Plz suggest if I am missing anything………Please see if these documents help.
    Note: 156636.1 - How to Register a Host Concurrent Program in Applications
    Note: 266268.1 - How To Create a Custom Concurrent program with Host Method and Pass Parameters to the shell script
    Regards,
    Hussein

  • After my iPad 3 update to iOS 7.0. I have problem with keyboard . Too slow to type one word , it takes 10 second by type one word. If anyone know how to solve it , please kindly let me know. Thanks !

    Please help me with this problem , thanks !

    Try this now, reset all settings. You will have to enter all device settings again, but you will not lose any data. After you reset all settings, reboot the iPad again.
    Settings>General>Reset>Reset all settings.

  • Problems with upgrading interfaces of custom step types

    This question is about configuration management of custom step types.
    Here at Cummins, we have defined our own custom step types (CSTs) using MyTypes.ini. People all over the company use these CSTs in their seq files.
    All these CSTs are calls to individual sequences in a seq file (for simplicity, we'll call this file "Source.seq"). An example CST would be MyStep which calls the sequence MyStep_sequence in the file Source.seq.
    What we want to do going forward is: add one more parameter to the interface of this CST. That means, we will add one more parameter to the sequence MyStep_sequence and then upgrade the definition of the step in MyTypes.ini. We don't want to break existing users, and want the future users of this CST to be able to use this new parameter for newer functionality (ofcourse I did think about creating a new CST all together, but that seemed more maintenance in the future).
    In order to achieve this, my idea was to check mark the box "Use Default" in MyTypes.ini for the new parameter (I propose this because very few of the new users will want to care about this new parameter). At the same time, increment the version number of the step. So now, when an old file is brought up that was using this step, it should be usable just as is without any modifications (ofcourse it will need to be re-saved). When this step is used now by a new person, he will be able to see the new parameter and either not care about it (leave it checked as "Use Default") or pass a desired input to it.
    First question :, does this sound like a good long term approach for maintaining backward compatibility and CM control? Or are there any percieved issues with doing this due to which its recommended to just go ahead and create a new step?
    Second question: this seems to work only if the new parameter is added as a the last parameter in the sequence. if I move things around, (for ex: make this new parameter the first parameter of the sequence), it seems to mess things up. I am okay with making the new interface parameter the last one, but just wanted to throw out this observation I made and see if people had any comments..
    Third question: to make things a little more complex, some of the other sequences in Source.seq also USE MyStep. But I've realized that the only implication this has is, I'll have to open up Source.seq and re-save it beofore I send it out to the users..?

    Hi Anuj,
    Answer 1: Yes, this is a good long term approach in regard to compatibility, maintenance, and control.
    Answer 2: Yes, as of TestStand 4.0 this is expected behavior, as the programmatic reordering of prototypes is not a supported code generation teqnique.
    Answer 3: In short, yes you much open and save every sequence that contains your new CST. Be sure to save your step type first, making sure to increment your version number. This method will ensure that the step type conflict is automatically resolved in files that load this new type. If you forget to increment your version number you will have to manually resolve this conflict.
    Thanks
    Evan Prothro
    RF Systems Engineer | NI

  • Problem with getting the file name and type from OAMessageFileUploadBean

    Hi Tapash,
    I am trying the code below to get the file name and mime type from OAMessageFileUploadBean,
    DataObject fileUploadData = (DataObject)pageContext.getNamedDataObject("Documents");
    String uFileName = (String)fileUploadData.selectValue(null, "UPLOAD_FILE_NAME");
    String contentType = fileUploadData.selectValue(null, "UPLOAD_FILE_MIME_TYPE");
    But this piece of code gives errors saying that selectValue selectValue(null, java.lang.String) not found in class oracle.svc.DataObject
    Any ideas? why this code is giving error?
    Can i handle the event of browse button for OAMessageFileUploadBean?
    Regards,
    Nagesh Manda.

    Try using class oracle.cabo.ui.data.DataObject
    --Shiv                                                                                                                                                                                                       

Maybe you are looking for

  • To create a Crystal Report which will prompt for a value and if nothing is entered select the alternative value from the database record.

    Hi Experts, I am working on a report in Crystal (2008) which will prompt user to input a value, but if nothing is entered then it will select relevant database value. I created a string parameter prompt called "{?Pack_Qty_Overide}" and used the follo

  • Cannot update 10.3.2 to 10.3.9

    Help! I upgraded from 10.2.8 to 10.3.2 and am now trying to update to 10.3.9. Since the upgrade, software update will not download and install any software. I am able to manually download the update file but am not able to run the installation file o

  • How do I create a form that can be filled out, saved with data, and returned?

    We don't want to use EchoSign or any kind of service or account. We just want to send a form to clients via email and have them returned to us with their data. Simple. Intuitive. Requires virtually no explanation or bother. Why can't I find any way t

  • "Get Mail" moved on browser?

    I just noticed that when I did a clean install of Leopard, the "new" Mail browser toolbar has "Get Mail" placed in the extreme left hand corner. Unfortunately I later had to reinstall Tiger and then did an "update" to Leopard. Now the Mail browser to

  • PDF Embedded in an E-mail Does Not Open

    For the past year, Stewart Stone [email address removed] has been e-mailing an embedded pdf newsletter to several dozen recipients.  They open for everyone except me.  I have Windows 7 Home Premium Service Pack 1 and Microsoft Office Outlook 2007.  A