How to include a C++ module in an existing C application ?

I'm working on an existing C application, roughly 70,000 lines, using Visual Studio 2010.
I would like to include a C++ class into this; how do I do this??
I tried just adding my C++ source file to the project, not even accessing the class yet, and I get errors right on the first line of the class header file:
3>ClCompile:
3> i64tostr.cpp
3>c:\sourcecode\vci\vctpi\bandagecommserver\i64tostr.h(21): error C2061: syntax error : identifier 'i64tostr'
3>c:\sourcecode\vci\vctpi\bandagecommserver\i64tostr.h(21): error C2059: syntax error : ';'
3>c:\sourcecode\vci\vctpi\bandagecommserver\i64tostr.h(21): error C2449: found '{' at file scope (missing function header?)
I'm guessing it's treating the file as C, in spite of the file extension.  How can I fix this??
ddd

Excellent!!  That article gave the the answer.  Thanks!!
For anyone else who reads this article:  In VS, after adding file to project, right click on file and select:
Properties: C/C++: Advanced, Compile As - and select C++

Similar Messages

  • Adding modules to an existing J2me application

    Hi,
    I want to develop an application where users can download and add additional modules to the same j2me application.
    For example our current j2me app may have a customer and products modules. When the accounts module is availble the user should be able to download the accounts module and add it to the same application.
    Is there a way to add additional screens and java classes to the same j2me application.
    If so what are the area's that I should look in to and learn.
    Thanking You,
    Chamal.

    Thanks a lot for ur replies...
    Can one 2me application open up another midlet application?
    For example I might need to have one main j2me application which contains buttons which opens up other 2me applications (Customer application, Accounts application etc).
    Othert hing is I do not want users to invoke customer and accounts applications directly. So Is there a way that I can hide these applications from phone's menu system.
    Thanking You,
    Chamal.

  • How to include DMS in module pool?

    hello,
    i want to incorporate DMS[]Document data] in my module pool program, the same  is there in MM03 transaction(document data).How can we do this?
    below is the syntax tht i have used.
    PROCESS BEFORE OUTPUT.
    *&SPWIZARD: PBO FLOW LOGIC FOR TABSTRIP 'TAB'
    MODULE TAB_ACTIVE_TAB_SET.
        break-point.
      CALL SUBSCREEN:
          1002_SCA INCLUDING G_TAB-PROG '1002',
            1002_SCA  INCLUDING SAPLCV140 '0204',
           1003_SCA INCLUDING G_TAB-PROG '1003'.
    MODULE STATUS_1001.
           tab-activetab = 'TAB1'.
           DYNNR = '0204'.
            MODULE TAB_ACTIVE_TAB_SET.
    PROCESS AFTER INPUT.
    *&SPWIZARD: PAI FLOW LOGIC FOR TABSTRIP 'TAB'
      CALL SUBSCREEN:
           1002_SCA,
    *CALL SUBSCREEN TABFRA1.
           1003_SCA.
      MODULE TAB_ACTIVE_TAB_GET.
    MODULE USER_COMMAND_1001.
    in MODULE TAB_ACTIVE_TAB_SET
    MODULE TAB_ACTIVE_TAB_SET OUTPUT.
      break-point.
      TAB-ACTIVETAB = G_TAB-PRESSED_TAB.
      CASE G_TAB-PRESSED_TAB.
        WHEN C_TAB-TAB1.
          G_TAB-SUBSCREEN = '1002'.
         CALL subscreen 1002_SCA  INCLUDING SAPLCV140 '0204'.
        WHEN C_TAB-TAB2.
          G_TAB-SUBSCREEN = '1003'.
        WHEN OTHERS.
    *&SPWIZARD:      DO NOTHING
      ENDCASE.
    ENDMODULE.

    I think that the best way is to call directly class/function or form present in standard cvxxn transaction.
    For example, take a look to d100_display_document form in include LCV110F19 (see also d100_consume_events in LCV110F19)
    For example, function for displaying document is CV110_DOC_DISPLAY

  • How to include xml file without embedding in flex web application?

    Hi
    I have a big XML file around 11 mb. I want to include this xml in my web application without embedding.
    So anyone have idea to include.
    Please suggest me any idea.
    Thanks

    If you don't want to embed the XML file into a SWF, then the SWF can download the XML file from the server at runtime when it needs it. But there will be a delay while that happens. Maybe it would be better to put the data in the XML file into a database and then access only the parts of it that you need.
    Gordon Smith
    Adobe Flex SDK Team

  • How to include .css file into jsp file in portal application

    Hi,
    I have included a .css file in a .jsp file using following tag :
    <link rel="<%=componentRequest.getWebResourcePath()%>/css/ts.css">.
    I have kept .css file under /dist/css folder.
    Preview of jsp file is fine but when I upload the jsp file and .css file to server, Look and feel of the screen is changing. When I paste the style code in jsp file, look and feel is fine.
    Can some body suggest me that why the look and feel is changing when I put the style code in css file and include it in jsp.
    Thanks in advance.
    Manish

    Hello
    We're using <link rel="stylesheet" type="text/css" href="http://ourserver/eclib/css/ecstandard.css">
    between <head> and </head>
    It works.
    Hope it helps.
    Regards
    Benoit

  • How to create copy or test instance of existing weblogic application?

    How can I create a copy or test instance of an existing weblogic 8.1 application? Is there a white paper that outlines the process?

    Hi All,
    I need some help in recreating new database instance.
    Here are the steps I have done so far:
    1. Created a database with name 'LASTDB' using DBCA
    2. Connected to RMAN.
    3. RMAN>SET DBID=******; (of the source database)
    4. Connect to target. RMAN>connect target SYS/*****;
    5. Executed controlfile restore on RMAN.
         RMAN>Run{
    Allocate channel D1 Type DISK;
              Set controlfile autobackup format for device type DISK to
    ‘\\<ip_address>\Backup\Prod\%F’;
    Restore controlfile from autobackup;
    6. RMAN> ALTER DATABASE MOUNT;
    Now got an error saying ORA-01103: database name ‘PRODDB' in control file is not ‘LASTDB’
    I tried using NID to change the database name but it's throwing an error that database is not mounted.
    I have browsed a lot and found that I need to recreate a control file of the production database using ALTER DATABASE BACKUP CONTROLFILE TO TRACE and should edit the trace file. But it also says to shutdown the source database which is production database and I cannot try that.
    Also I have tried adding a line to init.ora like lock_space_name = LASTDB. Also tried replacing everything from LASTDB to PRODDB but that didn't work either.
    I have been trying to find a solution to this. Please bear with me as I'm a beginner and please let me know how I can fix the error.
    I am running oracle 10.1.0.2.0 enterprise edition on windows 2000.
    Thanks for your patience,
    KG

  • How to include custom modules in eclipse

    Hi,
       We have ATG 10.1.2 knowledge and self service module with some project specific custom module on Production UNIX machine.
    I have installed ATG 10.1.2 on local machine(Windows 7 64 bit) for development purpose.
    1> If I copy custom module from the unix machine and paste it in my local windows machine and generate EAR, will it work?
    2> How to include the custom module in eclipse for development activity.
    I am new to ATG. Any help is much appreciated.
    Thanks.

    when the jsp page is loaded for the first time it contains a select box containg names created by a taglib.but there is a feature i want to add wherein though javascript the name selectebox will keep on coming on each row i want to add. and this is row addition and deletion is being handled by the javascript. there i encounter the bug how to interact the javascript with taglib so tha with each row addition i will have populated taglib created select box on each row.
    Thanks,
    Javaqueue

  • How to include BW Web Templates in a BSP ?

    Hi guys,
    I am new to BSP stuff.  Can anybody throw some light on how to include a BW Web Template in a BSP application?  Any documentation available in this direction? 
    Thanks in advance.
    Cheers,
    Ramana.

    Hi,
    Check the forums,
    Create BSP from WAD Web Template in BW
    BW WEB Template  inside a BSP
    Skipping login screen when clicking a  BW Web Template link in a BSP
    Regards,
    Azaz Ali

  • How to INclude TEXT MOdule created in SForm?

    How to INclude TExt Module created in Samrt forms into a text node...?
    PLease explain.....ANy suggestions will be appreciated...
    REgards,
    Kittu

    Hello Netaji,
    IN general attributes, from the drop down menu. I had selected Text Module then It is asking me for the
    Name : zxxx(Name of the Text module created in SForm)
    Language : ENGLISH
    Selected the option - No error if no text exists
                         - ALways copy style from text module
    Then I had clicked on COPY button...Then it is automatically turning into Text Element
    It is showing nothing in that Text area. Am I going right?
    Please correct me....If I am wrong....I am trying to put this in Text node.
    I had created a Text module in the Smart form by selecting the Radio Button in Smart form.
    Please help....
    Regards,
    Kittu

  • How to include text modules into text modules

    Hi experts,
    is there any possibility to include smartform text modules or sapscript standard texts into
    a text module?
    For example:
    Text module "B" and "C" are supposed to be used in text module "A".
    Regards
    CHRIS

    Hi,
    thanks to all for your answers.
    Obviously, there's no way to include a textmodule into a textmodule in SmartForms.
    Regards from Germany
    CHRIS

  • How to use BAPI_MATERIAL_AVAILABILITY Function Module....

    Hi Experts,
    I want to know actual free available quantity (ATP Qty.) for mass materials,
    How to use BAPI_MATERIAL_AVAILABILITY function module ?
    I have select all material from MARA and inserted in itab.
    LOOP AT ITAB.
    CALL FUNCTION 'BAPI_MATERIAL_AVAILABILITY'
      EXPORTING
        PLANT                    =
        MATERIAL                 =
        UNIT                     =
      CHECK_RULE               =
      STGE_LOC                 =
      BATCH                    =
      CUSTOMER                 =
      DOC_NUMBER               =
      ITM_NUMBER               =
      WBS_ELEM                 =
      STOCK_IND                =
      DEC_FOR_ROUNDING         =
      DEC_FOR_ROUNDING_X       =
      READ_ATP_LOCK            =
      READ_ATP_LOCK_X          =
    IMPORTING
      ENDLEADTME               =
      AV_QTY_PLT               =
      DIALOGFLAG               =
      RETURN                   =
      TABLES
        WMDVSX                   =
        WMDVEX                   =
    I dont know how to use it.
    pl. guide us.
    Yusuf

    Hi,
           data:  iwmdvsx type table of bapiwmdvs with header line,
           iwmdvex type table of bapiwmdve with header line.
    parameters: p_matnr type mara-matnr,
                p_werks type marc-werks,
                p_meins type mara-meins.
    call function 'BAPI_MATERIAL_AVAILABILITY'
      exporting
        plant            = p_werks
        material         = p_matnr
        unit             = p_meins
      CHECK_RULE       =
      STGE_LOC         =
      BATCH            =
      CUSTOMER         =
      DOC_NUMBER       =
      ITM_NUMBER       =
      WBS_ELEM         =
      STOCK_IND        =
    IMPORTING
      ENDLEADTME       =
      AV_QTY_PLT       =
      DIALOGFLAG       =
      RETURN           =
      tables
        wmdvsx           = iwmdvsx
        wmdvex           = iwmdvex.
    check sy-subrc = 0.
    Text
    ATP information
    Functionality
    Using this function module, you can determine the receipt quantity still available for a particular material in a certain plant according to ATP logic (MRPII).
    The availability check is carried out on transferring the material number, the plant and the input table (WMDVSX). The scope of the check, that is, which stocks, receipts and issues are to be included in the check is defined by the combination of checking group (material master) and cheking rule. In the function module, the system uses the checking rule defined in Sales & Distribution (A). You can overrule this checking rule by using an interface or a user-exit (exit_saplw61v_001). A similar procedure is also valid for the plant parameters. The customer number in the user-exit means that the plant selection can be controlled via the customer. If no plant parameters are given via the interface, the system uses the parameter 'WRK' saved in the user's fixed values.
    The results of the availability check are recorded in the output table (WMDVEX). This table contains dates and available receipt quantities (ATP quantities). The results of the check depends on the following entries:
    If no date and no quantity is transferred, the system displays the ATP situation from today's date into the future as the result.
    If only a date and no quantity is transferred, the system displays the ATP situation from the corresponding date as the result.
    If both a date and a quantity are transferred, the system calculates the availability situation for the quantity specified.
    In the last two cases, the parameter 'DIALOGFLAG' is supplied. This can result in the following:
    ' ' (blank)   <=> quantity completely available
    'X'           <=> only partial quantity available or not available at
                      all
    'N'           <=> Material not included in the availability check
                      (Material not relevant to the availability check)
    The system also displays the end of the replenishment lead time (ENDLEADTME).
    regards

  • How to use SO_OBJECT_SEND function module

    Hi friends,
       how to use SO_OBJECT_SEND function module in 4.0B Server .

    hi
    good
    check this code
    REPORT ZTSAPMAIL.
    DATA: X_OBJECT_TYPE LIKE SOOD-OBJTP.
    DATA: BEGIN OF X_OBJECT_HD_CHANGE.
    INCLUDE STRUCTURE SOOD1.
    DATA: END OF X_OBJECT_HD_CHANGE.
    DATA: BEGIN OF X_OBJCONT OCCURS 10.
    INCLUDE STRUCTURE SOLI.
    DATA: END OF X_OBJCONT.
    DATA: BEGIN OF X_OBJHEAD OCCURS 0.
    INCLUDE STRUCTURE SOLI.
    DATA: END OF X_OBJHEAD.
    DATA: BEGIN OF RAW_HEAD.
    INCLUDE STRUCTURE SORH.
    DATA: END OF RAW_HEAD.
    DATA: BEGIN OF X_RECEIVERS OCCURS 0.
    INCLUDE STRUCTURE SOOS1.
    DATA: END OF X_RECEIVERS.
    PARAMETERS: RECEIVER LIKE X_RECEIVERS-RECNAM. " Name
    *BUILD MESSAGE HEADER
    MOVE 'Sort field goes here' TO X_OBJECT_HD_CHANGE-OBJSRT. " Sort field
    MOVE 'Name of the object goes here' TO X_OBJECT_HD_CHANGE-OBJNAM. " Name
    MOVE 'Document title goes here' TO X_OBJECT_HD_CHANGE-OBJDES. " Title
    MOVE 'F' TO X_OBJECT_HD_CHANGE-OBJSNS. " Functional OBJECT
    MOVE 'E' TO X_OBJECT_HD_CHANGE-OBJLA. " Language
    Object type of the new document
    MOVE 'RAW' TO X_OBJECT_TYPE.
    CLEAR X_OBJCONT.
    MOVE 'Contents of mail' TO X_OBJCONT-LINE.
    APPEND X_OBJCONT.
    CLEAR X_OBJCONT-LINE. APPEND X_OBJCONT.
    MOVE 'More contents' TO X_OBJCONT-LINE.
    APPEND X_OBJCONT.
    MOVE 'Still more contents'
    to x_objcont-line.
    APPEND X_OBJCONT.
    MOVE ' ' TO X_OBJCONT-LINE.
    APPEND X_OBJCONT.
    Specific header (Dependent on the object type, here RAW)
    REFRESH X_OBJHEAD.
    DESCRIBE TABLE X_OBJCONT LINES RAW_HEAD-RAWSIZ.
    MOVE RAW_HEAD TO X_OBJHEAD.
    APPEND X_OBJHEAD.
    *RECEIVERS table
    CLEAR X_RECEIVERS.
    REFRESH X_RECEIVERS.
    MOVE RECEIVER TO X_RECEIVERS-RECNAM. " Name
    MOVE 'B' TO X_RECEIVERS-RECESC. " Receiver type
    MOVE 'X' TO X_RECEIVERS-SNDCP. " Send as a copy
    MOVE 'X' TO X_RECEIVERS-SNDEX. " EXPRESS DOCUMENT
    APPEND X_RECEIVERS.
    CALL FUNCTION 'SO_OBJECT_SEND'
    EXPORTING
    folder_id = 'OUTBOX'
    forwarder = x_forwarder
    object_fl_change = x_object_fl_change
    OBJECT_HD_CHANGE = X_OBJECT_HD_CHANGE
    object_id = x_object_id
    OBJECT_TYPE = X_OBJECT_TYPE
    OUTBOX_FLAG = 'X'
    OWNER = SY-UNAME
    store_flag = x_store_flag
    importing
    object_id_new = x_object_id_new
    sent_to_all = x_sent_to_all "May need to use
    TABLES
    OBJCONT = X_OBJCONT
    OBJHEAD = X_OBJHEAD
    objpara = x_objpara
    objparb = x_objparb
    RECEIVERS = X_RECEIVERS.
    reward point if hlepful.
    thanks
    mrutyun^

  • How to include HTML page on a screen

    Hi,
      How to include HTML page on a module-pool screen. i want to handle hyperlinks on that page. how ca n i do that?....plz send me reply vvvery fast

    Hi Amarnath,
    1. RSDEMO_HTML_VIEWER
       Check the above program.
    Regards,
    Amit M.

  • How to include script program in nace

    Hi experts,
    I developed one script program now i want to transport this program to production.How to include this program in the NACE tcode
    and this program belongs which application type (how to decide).This program belongs to MM module.(creating a material issue slip).I am basic abaper and i am handilng first time the script task  and also i am seraching sdn forums.Please gine me the steps.

    Hi,
    1. Goto in NACE
    2. You need to ask your functional buddy to let you know about Application area, I suppose u need to take EF.
    3. Select EF from the list and than click on Output Types, select any output type (Which you wud like to give to your script)
    4. Else if you like to create a new one for your script, then on same screen click on change button, then click on New Entries
        And give all the detailed info.
    5. To use existing output types, select a output type like "ZEDI", at the left hand side double click on Processing Routines.
    6. In the Processing Routines block , Give the Program name as print program and here you need to give your SAP scrip name in Form option.
    save it.
    I Hopr I have covered everything, that you need.
    Regards,
    Lokesh

  • How to use the function module ....

    hi
    how to use the function module ssf_function_module_name in smartforms

    Hi..
    If you are using this Function module, you can get the generated function module name of smartform dynamically. It is good progrmaming practice to get the fucntion module name dynamically because there might be some problems if you are hard coding in program.
    This will return the name of the function module and then from the exporting parameters you can use the fucntion module name to pass parameters to Smartforms.
    Check this link.I am expalining here how to use this function module.
    https://wiki.sdn.sap.com/wiki/pages/pointstab/viewpageversion.action?pageId=36109&version=2
    Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    <b>Reward points if useful</b>
    Regards
    Ashu

Maybe you are looking for

  • Creative Cloud doesn't include everything?

    Hi, I thought Creative Cloud was supposed to include all adobe services. So why doesn't it include SendNow, and Export/Create PDF when it includes Story Plus.. This confuses me, and kind of upset me as I thought it was supposed to be everything, and

  • VOLUME THROUGH CAR STEREO

    When I first played my 40g ipod HP through my car stereo with a cassette adaptor it sounded great! Now when I do it it won't play loud enough to hear it. Even with the ipod volume and stereo volume cranked. What did I do wrong? Does it have something

  • How to install application server (10.1.3.x) on Oracle enterprise linux 4

    the installer said that =============================== Starting Oracle Universal Installer... Checking installer requirements... Checking operating system version: must be redhat-Red Hat Enterprise Linux AS release 3, redhat-Red Hat Enterprise Linux

  • Beats audio controls

    Hi all, So i've been forced to change the hard drive and therefore had lost all the data and drivers. After downloading all new drivers i found that i'm missing a pictured message of changing volume ( it was disk with beats logo, which was turning de

  • Set up JCE

    I just installed j2sdk1.4.0-beta3 and compiled the following sample program from JCE doc: import java.security.*; import javax.crypto.*; import com.sun.crypto.provider.SunJCE; public class initMac { public static void main(String[] args) throws Excep