How to prepare results of imgGrab() for AVI output in C++?

I hope this is an appropriate forum for this. I'm using VC++ 6.0 My image data is stored in a buffer that is populated via imgGrab(). I then go on to copy the buffer contents to a Direct Draw surface. This all works just fine.
I am also opening an AVI file, and attempting to write this image as a frame to the file. So far I am able to open the AVI, write the correct number of frames to it at the correct dimension, and close the AVI file without failure. The problem is that all of the buffer data is being written into the top 25% of vertical space only, the remaining 75% of vertical space in my AVI frames are black.
I'm attempting to add it as follows:
(note, all hard-coded numeric values below are actually calculated, I've shown actual values for clarity)
int iSize = 4000000; // (it's a 1000x1000 pixel 32bit image)
CBitmap* pBitmap;
pBitmap = new CBitmap();
pBitmap->CreateBitmap(1000, 1000, 1,32, pBuffer);
HBITMAP hbm = (HBITMAP)pBitmap->operator HBITMAP();
HDIB pDIB = BitmapToDIB(hbm, NULL);
if (pDIB==NULL)
return VIDEO_DIBCONVERSION;
if (ADD_FRAME_FROM_DIB_TO_AVI(pDIB, "DIB", 9) == FALSE)
this attempts to add a frame based on the device independant bitmap I've created.
The ADD_FRAME... method looks like this:
bool ADD_FRAME_FROM_DIB_TO_AVI(HANDLE dib, CString _compressor, int _frameRate)
LPBITMAPINFOHEADER lpbi;
if(count == 0)
lpbi = (LPBITMAPINFOHEADER)GlobalLock(dib);
if(! AVI_CreateStream(pfile, &ps, _frameRate,
(unsigned long) lpbi->biSizeImage,
(int) lpbi->biWidth,
(int) lpbi->biHeight))
//printf("Error - AVI_CreateStream()\n");
GlobalUnlock(lpbi);
return false;
if(! AVI_SetOptions(&ps, &psCompressed, lpbi, _compressor))
//printf("Error - AVI_SetOptions()\n");
GlobalUnlock(lpbi);
return false;
GlobalUnlock(lpbi);
lpbi = (LPBITMAPINFOHEADER)GlobalLock(dib);
if (lpbi)
if(! AVI_AddFrame(psCompressed, count * 1, lpbi))
//printf("Error - AVI_AddFrame()\n");
GlobalUnlock(lpbi);
return false;
GlobalUnlock(lpbi);
count++;
return true;
return false;
I've tried doing everythign the same, but rather than actually creating the bitmap with the buffer data:
pBitmap->CreateBitmap(1000, 1000, 1,32, pBuffer);
I've created a CBitmap instance and loaded into it a "known good bitmap" that's actually an export from my current app.
When I do that, I get an AVI that is X number of frames of my known good bitmap. So I'm pretty certain all the AVI setup/writing functionality is working properly, it seems something is lost in the buffer, or I'm not translating the buffer that imgGrab() is producing correctly.
Does anybody have any suggestions?
thanks!

Paul,
The example is no longer available because of its age and the fact that
a new AVI API has since then been released.  The API is available
for VB, and will have to be called using ActiveX for it to be used in
C++.  The container for the AVI session is called
CWIMAQAVISession, and the various functions can be found in the NI
Vision for Visual Basic Reference Help in the Start menu under Programs
>> National Instruments >> Vision >> Documentation.
Regards,
Mike T
National Instruments

Similar Messages

  • Work flow? How to link multi-cam sequences for DVD output?

    Pr cs4 (very new)
    Still taking baby steps each day... please take my hand and help me!
    Final output will be 2 DVD's (each DL) each about 2 hrs. Content are chamber music student groups in two recitals.
    I have assets from two camera angles. I have successfully practiced on one of the groups performance (10 min.) following the steps illustrated in a multi-cam tutorial.  http://www.adobe.com/designcenter/video_workshop/?id=vid0234
    This leaves me with a great multi-cam sequence for that group located in the Project Panel, exactly what I want.
    Now, I want to know what is the best method (workflow?) to ultimately produce a DVD containing about 10 of these type performances (one after the other) with chapter markings for each group, titles etc.?
    I have yet to use Encore and I'm guessing that is where I'll send the finished edit for DVD production, though I don't know at what step I jump there?
    Do I try to create one very long multi cam sequence of all the content, then send to Encore? Or can I create seperate multi-cam sequences (each performance) then link them together, adding transitions and make the DVD? This would be my preference to keep things more manageable, especially with audio synching.
    With my practice multi-cam sequence on the timeline, I tried to drag the same sequence from the Project Panel to the end of the timeline to simulate how this would work, but it does not add to the timeline as a clip would.
    This is probably childs play for you pro's, but we were all baby's at one time...I just happen to still be one!
    Thanks for your patience and advice,
    Kenny

    Yes I did...now toss me a cookie please.
    I am trying to quickly get up to speed in Pr CS4 to get this project completed. In the process, I'm trying to learn and understand the interface and correct terminology so as to make my questions intelligible to a community that posses vastly greater understanding than myself.
    Is there anyone who can help with my main question at hand? Namely, how to go about creating a full length sequence (in the timeline) made via the nesting of synchronized multi-camera clips within a new "multi-cam sequence"?
    As I said, I have completed a small test sequence in this fashion, nesting clips in a new sequence then using multi-cam monitor to record cuts. Now I need to add about 10 more of these together in a completed sequence to then send to DVD production.
    Is this intelligible?
    Thanks, Kenny 
          __0
       _ \<,_
    Date: Wed, 4 Nov 2009 09:11:06 -0700
    From: [email protected]
    To: [email protected]
    Subject: Work flow? How to link multi-cam sequences for DVD output?
    please take my hand and help me!
    Well, at least you had the gumption to admit that up front.
    >

  • How to maintain a condition record for a output type ?

    Hi All
    How to maintain a condition record for a output type ?

    Hi,
    Goto NACE and there is a button for maintiaining the Condition Reocrds.

  • How to Convert spool which is for smartform output  to PDF?

    how to Convert spool which is for smartform output  to PDF?
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF' is not working for smartform output,
    if i use this there will be error spool not contain list output?
    than whats the function module or way to convert spool contain smartform output to pdg?
    regards,

    <b>Procedure</b>
         When we activate the Smartform the system generates a Function Module. The function module name we can get from Smartfrom screen from menubar
    “Environment => Function Module_Name” . In a report we can get this Function module name by calling a Function Module standard SSF_FUNCTION_MODULE_NAME. This function module  at runtime calls the FM generated by smartform, which in turn is then used to pass data from the report to Smartform. In the report given below the FM generated is “ /1BCDWB/SF00000152 ”. In this FM we can see CONTROL_PARAMETERS in import tab. This is of type SSFCTRLOP. We need to set the GETOTF of this to be ‘X’. Setting this field will activate the OTF field in smartform.
    In export tab of the FM generated by smartform we can see a parameter JOB_OUTPUT_INFO which is of type SSFCRESCL. The SSFCRESCL is a structure of having one of fields as OTFDATA. OTFDATA in turn is a table of type ITCOO. ITCOO has two fields TDPRINTCOM and TDPRINTPAR. TDPRINTCOM  represents command line of OTF format data and TDPRINTPAR contains command parameters of OTF format data.
    In every Smartform output in OTF format, TDPRINTCOM begins and ends with ‘//’. ‘EP’ represents the end-of-page value for TDPRINTCOM field.
    In addition we need to set few fields at the place where we call this FM(generated by smartform) in our program. While calling this FM we should set control_parameters, output_options, user_settings and job_putput_info fields as shown in program.
    Once these settings are done we can call Function Module CONVERT_OTF to convert the OTF data of smartfrom output to PDF data format. Once these are done we can call method “cl_gui_fronted_services=>file_save_dialog” to specify the directory path where we want to save the output PDF file. After this we can call Function Module GUI_DOWNLOAD to download the PDF file on our local system.
    <b>Here is a sample code of program to perform the function.</b>
    SAMPLE CODE
    [code]*&---------------------------------------------------------------------*
    *& Report  ZAMIT_SMART_FORM_PDF                                        *
    REPORT  ZAMIT_SMART_FORM_PDF                    .
    data: carr_id type sbook-carrid,
          cparam type ssfctrlop,
          outop type ssfcompop,
          fm_name type rs38l_fnam.
    DATA: tab_otf_data TYPE ssfcrescl,
          pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE,
          tab_otf_final TYPE itcoo OCCURS 0 WITH HEADER LINE,
          file_size TYPE i,
          bin_filesize TYPE i,
          FILE_NAME type string,
          File_path type string,
          FULL_PATH type string.
    parameter:      p_custid type scustom-id default 1.
    select-options: s_carrid for carr_id     default 'LH' to 'LH'.
    parameter:      p_form   type tdsfname   default 'ZAMIT_SMART_FORM'.
    data: customer    type scustom,
          bookings    type ty_bookings,
          connections type ty_connections.
    start-of-selection.
    ***************** suppressing the dialog box for print preview****************************
    outop-tddest = 'LP01'.
    cparam-no_dialog = 'X'.
    cparam-preview = SPACE.
    cparam-getotf = 'X'.
      select single * from scustom into customer where id = p_custid.
      check sy-subrc = 0.
      select * from sbook   into table bookings
               where customid = p_custid
               and   carrid in s_carrid
               order by primary key.
      select * from spfli into table connections
               for all entries in bookings
               where carrid = bookings-carrid
               and   connid = bookings-connid
               order by primary key.
      call function 'SSF_FUNCTION_MODULE_NAME'
           exporting  formname           = p_form
    *                 variant            = ' '
    *                 direct_call        = ' '
           importing  fm_name            = fm_name
           exceptions no_form            = 1
                      no_function_module = 2
                      others             = 3.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        exit.
      endif.
    * calling the generated function module
      call function fm_name
           exporting
    *                 archive_index        =
    *                 archive_parameters   =
                     control_parameters   = cparam
    *                 mail_appl_obj        =
    *                 mail_recipient       =
    *                 mail_sender          =
                     output_options       =  outop
                     user_settings        = SPACE
                     bookings             = bookings
                      customer             = customer
                      connections          = connections
          importing
    *                 document_output_info =
                     job_output_info      = tab_otf_data
    *                 job_output_options   =
           exceptions formatting_error     = 1
                      internal_error       = 2
                      send_error           = 3
                      user_canceled        = 4
                      others               = 5.
      if sy-subrc <> 0.
    *   error handling
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      tab_otf_final[] = tab_otf_data-otfdata[].
      CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
       format                      = 'PDF'
       max_linewidth               = 132
    *   ARCHIVE_INDEX               = ' '
    *   COPYNUMBER                  = 0
    *   ASCII_BIDI_VIS2LOG          = ' '
    IMPORTING
       bin_filesize                = bin_filesize
    *   BIN_FILE                    =
      TABLES
        otf                         = tab_otf_final
        lines                       = pdf_tab
    EXCEPTIONS
       err_max_linewidth           = 1
       err_format                  = 2
       err_conv_not_possible       = 3
       err_bad_otf                 = 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.
    CALL METHOD cl_gui_frontend_services=>file_save_dialog
    *  EXPORTING
    *    WINDOW_TITLE         =
    *    DEFAULT_EXTENSION    =
    *    DEFAULT_FILE_NAME    =
    *    FILE_FILTER          =
    *    INITIAL_DIRECTORY    =
    *    WITH_ENCODING        =
    *    PROMPT_ON_OVERWRITE  = 'X'
      CHANGING
        filename             = FILE_NAME
        path                 = FILE_PATH
        fullpath             = FULL_PATH
    *    USER_ACTION          =
    *    FILE_ENCODING        =
    *  EXCEPTIONS
    *    CNTL_ERROR           = 1
    *    ERROR_NO_GUI         = 2
    *    NOT_SUPPORTED_BY_GUI = 3
    *    others               = 4
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *************downloading the converted PDF data to your local PC********
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
       bin_filesize                    = bin_filesize
       filename                        = FULL_PATH
       filetype                        = 'BIN'
    *   APPEND                          = ' '
    *   WRITE_FIELD_SEPARATOR           = ' '
    *   HEADER                          = '00'
    *   TRUNC_TRAILING_BLANKS           = ' '
    *   WRITE_LF                        = 'X'
    *   COL_SELECT                      = ' '
    *   COL_SELECT_MASK                 = ' '
    *   DAT_MODE                        = ' '
    *   CONFIRM_OVERWRITE               = ' '
    *   NO_AUTH_CHECK                   = ' '
    *   CODEPAGE                        = ' '
    *   IGNORE_CERR                     = ABAP_TRUE
    *   REPLACEMENT                     = '#'
    *   WRITE_BOM                       = ' '
    *   TRUNC_TRAILING_BLANKS_EOL       = 'X'
    IMPORTING
       filelength                      = file_size
      TABLES
        data_tab                        = pdf_tab
    *   FIELDNAMES                      =
    EXCEPTIONS
       file_write_error                = 1
       no_batch                        = 2
       gui_refuse_filetransfer         = 3
       invalid_type                    = 4
       no_authority                    = 5
       unknown_error                   = 6
       header_not_allowed              = 7
       separator_not_allowed           = 8
       filesize_not_allowed            = 9
       header_too_long                 = 10
       dp_error_create                 = 11
       dp_error_send                   = 12
       dp_error_write                  = 13
       unknown_dp_error                = 14
       access_denied                   = 15
       dp_out_of_memory                = 16
       disk_full                       = 17
       dp_timeout                      = 18
       file_not_found                  = 19
       dataprovider_exception          = 20
       control_flush_error             = 21
       OTHERS                          = 22
    IF sy-subrc <> 0.
    ENDIF.
    [/code]
    Thanks and Regards,
    Pavankumar

  • How to prepare Block Structure data for D/A output from DIAdem

    Dear Sir:
    I'm trying to do D/A convert from DIAdem and DAQCard6062E,whereas when I located the data file to be output, and specified the channel, DIAdem gave the Error as following:
    --Error-- DIAdem
    Error from DAC simulation input file(read data file)
    The DAT file'...'must have Block Strucure!!!
    What I want to know is how to prepare or how to save my *.tdm file to a file of Block Strucure.
    Thank you very much
    jing

    Hi jing,
    i think there´s no chance to do online reading with tdm-files.
    There are two ways to solve your problem:
    1. Using the "channel simulation block" to read data out of DIAdem data cache.
    2. Store as DAT.File named in 8.3-notation using block-format.
    I don´t know the english menue-items, but all you need is in the Files.menu selection "DAT-Files".
    By the way:
    If you change the setting in the "datastorage-dialog" from "data area" to "file" for recording data, you´ll get a "playable" DAT-File.
    CU
    Martin

  • How to get result behave differently for one column?

    Hi,
    I have 3 columns in a Bex report say A, B and C.
    C = A % B.
    Results for columns as desired :
    Result of A = Summation of all values of A
    Result of B = Summation of all values of B
    <u><b>Result of C = Result of A % Result of B.</b></u>
    But at present result for C = Summation of all values of C.
    How to achieve the result for C as desired i.e Result of A % Result of B?
    Plz note formula for column C is already there and equal to A% B.
    All help appreciated and rewarded by points.
    Thanks,
    Gaurav
    Message was edited by:
            Gaurav
    Message was edited by:
            Gaurav

    Gaurav,
    Just interested ..
    Isn't your scenario something like this?
    A     B     C (%)
    2     4     50
    2     8     25
    4     12     75  (Result)  this is right 4%12
    Would n't the Result of percentages C be equal to Result of A % Result of B?
    Maybe I am missing something completely.
    Mathew.
    Message was edited by:
            Mathew Muthalaly

  • How to prepare 2009 MacBook Pro for sale

    I am selling my MacBook Pro with OS X version 10. 5. 8.  And want to erase all my personal files and saved passwords from the computer. How do I do that? I'm not very tech savy either, so I would appreciate any help.

    KristinaHerb wrote:
    I am selling my MacBook Pro with OS X version 10. 5. 8.  And want to erase all my personal files and saved passwords from the computer. How do I do that? I'm not very tech savy either, so I would appreciate any help.
    If it still has 10.5 Leopard on the machine use the 10.5 factory disk, else use the 10.6 Snow Leopard retail disk you upgraded with at one time, or if the 10.5 disk no longer works.
    The 10.6 disk can be gotten from Apple's online store. The 10.5 disk is obsolete, but good enough for your purposes provided it works.
    1: Backup any information and user files you want to preserve to a external storage drive. (not only TimeMachine!)
    2: If your going to use a Windows PC in the future, then take the new/soon to be erased drive to the oldest Windows version you plan to use the drive with and right click and format exFAT.  (not NTFS, not exFAT on the Mac as it might not work on Windows)
    If all your files are under 4GB in size, you can opt to format it FAT32 (or MSDOS as Apple calls it) on either a Windows machine or a Mac. Any files over 4GB in size needs the exFAT format on Windows.
    If you plan on getting another Mac, then you can format the drive the default format it gives when you erase in Disk Utility (in your Applicaions > Utilities folder), whatever OS X version your using as newer Mac's operating systems are backwards compatible with older drive formats.
    3: Once the files are backed up (drag and drop copied to the external drive, unmouned and physically disconnected), stick the 10.5 or 10.6 disk into the machine and select the Restart command from the Apple menu and quickly hold the C key down. (you can also hold the option/alt key for Startup Manager and wait and click the arrow).
    You then boot from the disk itself, it takes longer. If it doesn't work or gets stuck, just press and hold the Power button down for a hardware shutdown and press to boot normally again, eject the disk.
    4: Once you have booted from the installer disk, the second screen in at the top menu is Disk Utility, select that and then your drive makers name and size at the top right.
    Click Erase and Secure Erase select "Zero All Data" and click Erase. (If you need military style scrubbing, then select 7x overwrite) come back in a few hours. Quit Disk Utility.
    5: Now back in the Installer, select your drive and click to install OS X. When it's finished it will reboot and your at the "Welcome video" press and hold the power button to force a hardware shutdown.
    The Mac is ready for resale for the next owner.

  • What happened to MPEG2? How to prepare material in FCP for DVD Studio Pro?

    I have made DVDs using DVD Studio Pro before when usig a manual that my teacher had put together. It all worked fine. After preparing my videos on FCP I exported the material "Using Quicktime Conversion" and selected MPEG2. But thats no longer an option! How do I go about burning DVDs now?
    Hope someone have time to answer.

    Either:
    - export to Compressor, select your settings from its options then drag the generated video and audio files into DVDSP
    or
    - export a quicktime file using 'current settings' and drag that directly into DVDSP. DVDSP uses Compressor internally to generate the audio and video files.
    If you decide to let DVDSP do the encoding, you need to read through the manual to find the section where you set the bitrates and output files.
    x

  • How to get result from query for ssrs?

    DECLARE @meter_number int
    SET @meter_number=25112
    IF @meter_number IN (SELECT meter_number FROM ods.pmc.meter_registers)
    BEGIN
    SELECT 'LA' as [data_center]
    , t.request_time_gmt
    , aca.transaction_id
    , aca.meter_number
    , CONVERT(date, aca.ship_date_gmt) as ship_date
    , aca.user_name
    , p.confirmation_number
    , p.origin_zip
    , p.destination_zip
    , p.destination_zip_addon
    , p.base_postage_cost
    , p.mail_class_id
    , p.weight_ounces
    , p.delivery_confirmation
    , cil.ascending_register
    -- , ih.transaction_date_gmt
    , ih.from_name, ih.from_company, ih.from_address_line_1, ih.from_address_line_2, ih.from_city, ih.from_state, ih.from_zip
    , ih.to_name, ih.to_company, ih.to_address_line_1, ih.to_address_line_2, ih.to_city, ih.to_state, ih.to_zip
    FROM ods.sws.create_indicium_log aca --#USPS_Amazon_Cust_Activity aca
    JOIN ods.sws.prints p (NOLOCK)
    ON aca.transaction_id = p.transaction_id
    JOIN ods.sws.transactions t (NOLOCK)
    ON aca.transaction_id = t.transaction_id
    JOIN ods.sws.create_indicium_log cil (NOLOCK)
    ON aca.log_id = cil.log_id
    LEFT JOIN ods.pmc.indicium_history ih
    ON p.confirmation_number = ih.confirmation_number
    END
    ELSE IF @meter_number in (SELECT meter_number FROM ods.pmc_dr01.meter_registers)
    BEGIN
    SELECT 'PHX' as [data_center]
    , t.request_time_gmt
    , aca.transaction_id
    , aca.meter_number
    , CONVERT(date, aca.ship_date_gmt) as ship_date
    , aca.user_name
    , p.confirmation_number
    , p.origin_zip
    , p.destination_zip
    , p.destination_zip_addon
    , p.base_postage_cost
    , p.mail_class_id
    , p.weight_ounces
    , p.delivery_confirmation
    , cil.ascending_register
    , ih.from_name, ih.from_company, ih.from_address_line_1, ih.from_address_line_2, ih.from_city, ih.from_state, ih.from_zip
    , ih.to_name, ih.to_company, ih.to_address_line_1, ih.to_address_line_2, ih.to_city, ih.to_state, ih.to_zip
    FROM ods.sws.create_indicium_log aca--#USPS_Amazon_Cust_Activity aca
    JOIN ods.sws_dr01.prints p (NOLOCK)
    ON aca.transaction_id = p.transaction_id
    JOIN ods.sws_dr01.transactions t (NOLOCK)
    ON aca.transaction_id = t.transaction_id
    JOIN ods.sws_dr01.create_indicium_log cil (NOLOCK)
    ON aca.log_id = cil.log_id
    LEFT JOIN ods.pmc_dr01.indicium_history ih
    ON p.confirmation_number = ih.confirmation_number
    END
    I executed this query it says command completed successfully how can it return results?

    Hi,
    Create a procedure as shown below in the database and while creating the Dataset in SSRS , Select Stored procedure as a source and call this newly created procedure using command EXEC Usp_Meter_Number 25112.
    The columns will automatically generated and u can use the columns.
    CREATE PROCEDURE Usp_Meter_Number
    @meter_number int
    AS
    BEGIN
    IF @meter_number IN (SELECT meter_number FROM ods.pmc.meter_registers)
    BEGIN
    SELECT 'LA' as [data_center]
    , t.request_time_gmt
    , aca.transaction_id
    , aca.meter_number
    , CONVERT(date, aca.ship_date_gmt) as ship_date
    , aca.user_name
    , p.confirmation_number
    , p.origin_zip
    , p.destination_zip
    , p.destination_zip_addon
    , p.base_postage_cost
    , p.mail_class_id
    , p.weight_ounces
    , p.delivery_confirmation
    , cil.ascending_register
    -- , ih.transaction_date_gmt
    , ih.from_name, ih.from_company, ih.from_address_line_1, ih.from_address_line_2, ih.from_city, ih.from_state, ih.from_zip
    , ih.to_name, ih.to_company, ih.to_address_line_1, ih.to_address_line_2, ih.to_city, ih.to_state, ih.to_zip
    FROM ods.sws.create_indicium_log aca --#USPS_Amazon_Cust_Activity aca
    JOIN ods.sws.prints p (NOLOCK)
    ON aca.transaction_id = p.transaction_id
    JOIN ods.sws.transactions t (NOLOCK)
    ON aca.transaction_id = t.transaction_id
    JOIN ods.sws.create_indicium_log cil (NOLOCK)
    ON aca.log_id = cil.log_id
    LEFT JOIN ods.pmc.indicium_history ih
    ON p.confirmation_number = ih.confirmation_number
    END
    ELSE IF @meter_number in (SELECT meter_number FROM ods.pmc_dr01.meter_registers)
    BEGIN
    SELECT 'PHX' as [data_center]
    , t.request_time_gmt
    , aca.transaction_id
    , aca.meter_number
    , CONVERT(date, aca.ship_date_gmt) as ship_date
    , aca.user_name
    , p.confirmation_number
    , p.origin_zip
    , p.destination_zip
    , p.destination_zip_addon
    , p.base_postage_cost
    , p.mail_class_id
    , p.weight_ounces
    , p.delivery_confirmation
    , cil.ascending_register
    , ih.from_name, ih.from_company, ih.from_address_line_1, ih.from_address_line_2, ih.from_city, ih.from_state, ih.from_zip
    , ih.to_name, ih.to_company, ih.to_address_line_1, ih.to_address_line_2, ih.to_city, ih.to_state, ih.to_zip
    FROM ods.sws.create_indicium_log aca--#USPS_Amazon_Cust_Activity aca
    JOIN ods.sws_dr01.prints p (NOLOCK)
    ON aca.transaction_id = p.transaction_id
    JOIN ods.sws_dr01.transactions t (NOLOCK)
    ON aca.transaction_id = t.transaction_id
    JOIN ods.sws_dr01.create_indicium_log cil (NOLOCK)
    ON aca.log_id = cil.log_id
    LEFT JOIN ods.pmc_dr01.indicium_history ih
    ON p.confirmation_number = ih.confirmation_number
    END
    END
    Please have look on the comment

  • How to Prepare my imac G4 for recycling

    Hello
    I have an imac G4 about 9 months ago the screen died and I decided to get a new 27" imac. I've gotten all the information I need from the G4 and I'm ready to recycle it but I would like to know what is the best way to remove "ALL" information from the G4.
    I can access the G4 with the new 27" so if I need to perform any specific commands (format disk) on the G4 that can be done using the 27".
    Thanks for your help.

    You have to be booted from the grey system CD/DVD that shipped with the computer and use the version of Dusk Utility on the optical disk to modify the hard drive. The system "protects" the boot volume from unintentional changes this way.
    Insert the CD/DVD in the optical drive and hold the "c" key while booting. The installer will launch but instead choose Disk Utilities from the menu. It's different for 10.3 and 10.4, so you may have to explore a little.
    If you've misplaced the optical disks that came with the computer, this is going to be harder. Post back if that is the case. You can use another Mac to reach the drive on the iMac.

  • Need guidance on how to prepare BI - IP  topic for certification

    Hello,
    I have just started reading basics of BI-IP topic. I am reading help.sap.com. I am planning to take up certification exam in BI 7.0. Can anyone guide me what kind of questions are asked, so I can concentrate on any specific area. Also if possible can anyone send me any kind of sample questions on BI- IP.
    Vidya

    Javaranch has some resources on the SCJP.

  • Ask Intronis: How to prepare my MSP business for Windows 10 release

    When cloud vendors turn their eyes to China, they see a huge market, but don't expect China to simply cede the market to western technology giants. It plans to compete in its own right in a big way. Just this week, according to a report in the Taiwanese publication WantChinaTimes,the Chinese are working hard to encourage a domestic cloud business. What's more, there is some feeling in China, according to that article, that it can compete because it believes the western market is really just starting too.
    Read More
    This topic first appeared in the Spiceworks Community

    When cloud vendors turn their eyes to China, they see a huge market, but don't expect China to simply cede the market to western technology giants. It plans to compete in its own right in a big way. Just this week, according to a report in the Taiwanese publication WantChinaTimes,the Chinese are working hard to encourage a domestic cloud business. What's more, there is some feeling in China, according to that article, that it can compete because it believes the western market is really just starting too.
    Read More
    This topic first appeared in the Spiceworks Community

  • How can I have 2 variables for one output?

    I need it so that the spacebar does one thing on one frame and another thing on the other.
    I have solved this but now I need to know how can I have it so 2 variables = 1 output.
    This is my code at the moment:
    while (menu)
    if (changecharacter)
    gotoAndStop(2);
    menu = false

    My whole code is:
    var menu:Boolean = true
    stop();
    var leftPressed:Boolean = false;
    var rightPressed:Boolean = false;
    var changecharacter:Boolean = false;
    Block.addEventListener(Event.ENTER_FRAME, fl_MoveInDirectionOfKey);
    stage.addEventListener(KeyboardEvent.KEY_DOWN, fl_SetKeyPressed);
    stage.addEventListener(KeyboardEvent.KEY_UP, fl_UnsetKeyPressed);
    Block.gotoAndStop(1)
    function fl_MoveInDirectionOfKey(event:Event)
              if (leftPressed)
                        Block.x -= 3;
              if (rightPressed)
                        Block.x += 3;
              if (changecharacter)
                        Block.gotoAndStop(2);
              while (menu)
              if (changecharacter)
                        gotoAndStop(2);
                        menu = false
    function fl_SetKeyPressed(event:KeyboardEvent):void
              switch (event.keyCode)
                        case Keyboard.LEFT:
                                  leftPressed = true;
                                  break;
                        case Keyboard.RIGHT:
                                  rightPressed = true;
                                  break;
                        case Keyboard.SPACE:
                                  changecharacter = true;
                                  break;
    function fl_UnsetKeyPressed(event:KeyboardEvent):void
              switch (event.keyCode)
                        case Keyboard.LEFT:
                                  leftPressed = false;
                                  break;
                        case Keyboard.RIGHT:
                                  rightPressed = false;
                                  break;
                        case Keyboard.SPACE:
                                  changecharacter = false;
                                  break;

  • Install codec for avi Premeire Elements 12

    How does one install a codec for .avi in Premiere Elements 12 ? or do what ever is needed to allow .avi files created with a Canon G9 camera to be edited.

    Bondz2
    What computer operating system is your Premiere Elements 12 running on? Can we assume Windows 7, 8, or 8.1 64 bit?
    From what I have read, your camera is recording with video compression = MotionJPEG. This video compression can be a problem
    for Premiere Elements. It is a toss up whether the issue involves the MotionJPEG codec not being available to Premiere Elements versus
    the MotionJPEG being absent.
    The classical remedies include...
    a. Look for a utility that camera with the camera so that you can install the utility and get the MotionJPEG codec
    or
    b. Download and install the Morgan MotionJPEG codec as the tryout. If it works, then consider if it is worth the investment.
    Morgan Multimedia - Product - M-JPEG Codec
    This codec might be available from other sources. Not sure.
    c. Convert the MotionJPEG to another format which is compatible with Premiere Elements and import that into the project.
    Example: MotionJPEG.avi to DV.AVI with MPEGStreamclip.
    http://www.squared5.com/
    All details can be customized and fine tuned depending on the follow up information that you post.
    Please let us know the outcome.
    Thank you.
    ATR

  • Convert spool (which is for smartform output) to PDF?

    how to Convert spool which is for smartform output  to PDF?
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF' is not working for smartform output,
    if i use this there will be error spool not contain list output?
    than whats the function module or way to convert spool contain smartform output to pdg?
    regards,

    hi,
    use this instead
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname                 = 'ZNAK_SMARTFORM_CORRESPONDENCE'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
         IMPORTING
           fm_name                  = func_name
         EXCEPTIONS
           no_form                  = 1
           no_function_module       = 2
           OTHERS                   = 3
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        printer-getotf = 'X'.
        printer-no_dialog = 'X'.
        CALL FUNCTION func_name
          EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
       control_parameters         = printer
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
            validity                   = ls_smart-validity
            lifnr                      = ls_smart-lifnr
            name1                      = ls_smart-name1
            pstlz                      = ls_smart-pstlz
            regio                      = ls_smart-regio
            stras                      = ls_smart-stras
            smtp_addr                  = ls_smart-smtp_addr
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
       job_output_info            = printer1
      JOB_OUTPUT_OPTIONS         =
         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.
        t_otf[] = printer1-otfdata.
    DATA gt_tline like TABLE OF tline occurs 0 with header line.
        CALL FUNCTION 'CONVERT_OTF_2_PDF'
      EXPORTING
        USE_OTF_MC_CMD               = 'X'
        ARCHIVE_INDEX                =
         IMPORTING
           bin_filesize                 = w_file
          TABLES
            otf                          = t_otf
            doctab_archive               = gt_docs
            lines                        = gt_tline
      EXCEPTIONS
        ERR_CONV_NOT_POSSIBLE        = 1
        ERR_OTF_MC_NOENDMARKER       = 2
        OTHERS                       = 3
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.

Maybe you are looking for

  • Spry Menu Bar is not doing what I want it to do

    I am attempting to work with the Spry Menu Bar, which was starting to work, but then I made the mistake of trying to resize it using the resize handles around the menu. And now I can't figure out how to get it back to the right size. I've tried undoi

  • Error while approving change document(TR lost project code)

    Hi All, I am having issue in change document approval, when we are approving change document for unit testing or if release management approving change for pre-production or production approval, we are getting error, I started coming from last two da

  • How to extract  DB  FILE  FROM NONSAP  SYSTEM  IN BI-7

    how to extract  DB  FILE  FROM NONSAP  SYSTEM  IN BI-7

  • Nokia HF-510 and N97 mini

    Hi, just a quick question... is the HF-510 compatible with the N97 Mini, it's not listed as a compatible device and wanted to check before buying. Thanks in advance! Solved! Go to Solution.

  • SPM related queries

    HI, I have few queries with regard to SPM, please share if you have any info:- 1. If we are using flatfile mechanism(data extraction) to load data in SPM, is there any program to FTP the file from ECC to SPM(BI). We have extracted the data in ECC sid