Can I use C++ objects as Host variables in Pro*C++

Hi,
I have a C++ object in my Pro*C++ program. The objects has
members representing all the fields of a oracle table record.
e.g. For a table TEST_PRODUCT ( product_id, name),
the C++ class is :
class prd
public:
int id;
char name[50];
Can I use the Object of this class as a Host Variable ? In SQL
select query , I want to directly fetch record into this object.
When I declare this object within EXEC SQL BEGIN DECLARE SECTION
and END DECLARE SECTION , it gives me compilation error.
Is that supported by Pro*C++ ? If yes, how to do it?
Pls help.
Thanks

I find it easier to decalre a local variable in the EXEC SQL
block and then assign that to your class variable at the end of
the statement. It makes it easy to check for nulls and db
errors without affecting the C++ object.
PT

Similar Messages

  • Can we use OFFSETs in Hierarchy Node Variable in BEx ???

    Hi all,
      I have the need of using the OFFSETs in Hierarchy Node Variables. Can we use OFFSETs in Hierarchy Node Variable, PLEASE ???
        Thanks in advance.
    Regards,
    Venkat.

    I havent had such scenario - but I dont think you can do a offset on a hierarchy variable.

  • I can't use remote object in Flex to save an image to the server.

    I have a situation where I can't use remote object in Flex to save an image to the server.
    Could someone help me with an alterntaive?
    private function doSave():void {
                    var bd:BitmapData = new BitmapData(canvas.width,canvas.height);
                    var pe:PNGEncoder = new PNGEncoder;
                    bd.draw(canvas);
                    var ba:ByteArray = pe.encode(bd);
                    myService.doUpload(ba,sIP);
        <cffunction name="doUpload" displayname="Save Signature" hint="Saves a PNG Signature" access="remote" output="false" returntype="any">
            <cfargument name="sigbytes" required="true" type="binary">
            <cfargument name="ip_suffix" required="true" type="string">
            <cfset myUUID =  RandomString('ABCDEFGHIJKLMNOPQRSTUVWXYZ',15)>
            <cfset name = expandPath("converted_pngs/signature_#arguments.ip_suffix#_#myUUID#.png")>
            <cffile action="write" file="#name#" output="#arguments.sigbytes#" />
        <cfset SigFileName = "#arguments.ip_suffix#_#myUUID#">
            <cfreturn SigFileName />
        </cffunction>

    Try assigning binary arg to <cfimage/> then save.

  • Can I use an USB disc with my macbook pro bought in 2005.  What capacity will it take 2.00 or 3.00?

    can I use an USB disc with my macbook pro bought in 2005.  What capacity will it take 2.00 or 3.00?

    The first MacBook Pro's were not released until the beginning of 2006, and they had USB 2 ports.
    Anything available new in 2005 would have been a PowerBook G4 and they also had USB 2 ports.
    A USB 3 disk will just transfer data slower then it could do, if you plug it into a USB 2 port though, so you can buy either.

  • Can i use a thunderbolt display for my macbook pro and hp laptop with windows 7 and what adapters will i need

    Can i use a thunderbolt display for my macbook pro and hp laptop with windows 7 and what adapters will i need

    Hi jayhrab,
    Currently, the system requirements listed for an Apple Thunderbolt Display are:
    Thunderbolt-enabled Mac computer, including MacBook Air, MacBook Pro, Mac mini, and iMac
    OS X v10.6.8 or later
    Apple - Thunderbolt Display - Read the tech specs.
    Regards,
    - Brenden

  • Can i use my mini Mbox 2 with logic pro 9 on iMac os x lion?

    Can i use my mini Mbox 2 with logic pro 9 on iMac os x lion?

    Hi there,
    Did you find out anything more in regard to this?
    I have been using Pro Tools 8 with the MBox 2 connected to my iMac operating Leopard. It worked a treat for nearly four years.
    However the hardrive has just been replaced on the iMac which now has Snowleopard.  I don't want to have to update to Lion and then fork out £500 for Pro Tools 10. 
    I would be content to get Logic Pro 9 if I can attach the MBox 2 to it.
    Your advice would be appreciated
    PXC

  • You can't use this version of the application "logic pro" with this version of os x

    After installing all of Logic Studio (i.e. install dvd, audio content 1-3, jam packs 1-3), my laptop concludes that everything is installed successfully, however, when going to open to Logic, error icon appears and says:
    'you can't use this version of the application "logic pro" with this version of os x'

    Thank you! I found that just after I entered the question. I reinstalled everything two times, updated software, but was still having issues. But, I specifically updated the 9.1.8 (which was supposedly included in my standard software update). Guess I needed to give it some extra attention and affection.
    P.S. - Why do I feel like the more I upgrade versions of OS X, the worse off I am getting or am? Isn't it supposed to be opposite...isn't it supposed to make things better...come on, mac...where you at? mt. lion or mavericks. I'm downloading Snow Leopard to make some programs run. (um, yeah).

  • I m havind 15inch 2011 late macbook pro lap i7 processor 8gb ram 1tb hdd can i use avid media composer and final cut pro in this specifications?

    i m havind 15inch 2011 late macbook pro lap i7 processor 8gb ram 1tb hdd can i use avid media composer and final cut pro in this specifications?

    Can't speak about avid, since I am not familiar with the software.
    You can certainly use FCP X on that machine. It should work better if you use a fast external drive for your media and projects.
    There is a free trial, so try it out and see how it goes. You should also follow some good video tutorials, if you are not familiar with the application. FCP X is a lot different from Avid, Premiere or even Final Cut Pro 7.

  • Logic Pro 9 (9.0.0).   Message You can't use this version of the application Logic Pro 9 with this version of Mac OS X You have Logic Pro 9 9.0.0.   I have been told that I can use the Logic Pro 9.1.4 Update (.dmg) which you can download from Apple Logic

    Since upgrading to lion, I can't use Logic pro, hope someone can help.  thank you
    Logic Pro 9 (9.0.0).
    Message
    You can't use this version of the application Logic Pro 9 with this version of Mac OS X
    You have Logic Pro 9 9.0.0.
    I have been told that I can use the Logic Pro 9.1.8 Update (.dmg) which you can download from Apple Logic Support, although when I try to upgrade my I get this message:
    An eligible Logic Pro version was not found in the Applications folder. This update requires Logic Pro version 9.0 or higher.

    Since upgrading to lion, I can't use Logic pro, hope someone can help.  thank you
    Logic Pro 9 (9.0.0).
    Message
    You can't use this version of the application Logic Pro 9 with this version of Mac OS X
    You have Logic Pro 9 9.0.0.
    I have been told that I can use the Logic Pro 9.1.8 Update (.dmg) which you can download from Apple Logic Support, although when I try to upgrade my I get this message:
    An eligible Logic Pro version was not found in the Applications folder. This update requires Logic Pro version 9.0 or higher.

  • How can i use audio through hdmi on mac book pro i have video no audio version10.6.8

    how can i use audio through hdmi on mac book pro i have video no audio version 10.6.8 in audio it just has internal speaker options

    Hello,
    Open Audio Midi Setup in Applications>Utilities, see the input & output options & KHz setting there.

  • HT1338 can I use epson 2880 with my mac book pro? 10.9.2

    can I use epson 2880 with my mac book pro? 10.9.2

    Epson names their printers (in addition to numbers). What is your printer designation?
    http://support.apple.com/kb/HT3669#epson
    Barry

  • Can I use Dell AOI 922 printer with MacBook Pro?

    Can I use Dell AOI 922 printer with MacBook Pro?

    Cisco:
    Very helpful!   My set up was Mac/ Lion trying to Print off a Dell Photo A10 922
    Lion does not store any Lexmark, nor dow Apple, but I went to the lexmark site, and found this-
    http://support.lexmark.com/index?productCode=LEXMARK_X5270&page=product&locale=E N&userlocale=EN_US#1
    Downloaded that, then hooked up the printer, Cmd-P, and the Mac found the drivers I had loaded.
    Works fine.  Now when I go to my sisters, I can print!
    byw, I'm probably just a Level 2  "GIYF"er, but your the only one ( of MANY folks) who thought to search Lexmart. I've seen posts by MANY geeks saying a Mac could not print to ANY Dell printer.
    Nice job,
    Rich

  • You can't use this version of the application Logic Pro with this version of Mac OS X.

    You can't use this version of the application Logic Pro with this version of Mac OS X. why am i getting this message after upgrading to lion

    <Bump>
    See this thread.
    https://discussions.apple.com/message/15700842#15700842
    and this one.
    https://discussions.apple.com/message/15700505#15700505
    pancenter-

  • Using HttpServletRequest object to share variables between static methods.

    Does anyone know of the overhead/performance implications of using the HttpServletRequest object to share variables between a static method and the calling code?
    First, let me explain why I am doing it.
    I have some pagination code that I would like to share across multiple servlets. So I pulled the pagination code out, and created a static method that these servlets could all use for their pagination.
    public class Pagination {
         public static void setPagination (HttpServletRequest request, Config conf, int totalRows) {
              int page = 0;
              if (request.getParameter("page") != null) {
                   page = new Integer(request.getParameter("page")).intValue();
              int articlesPerPage = conf.getArticlesPerPage();
              int pageBoundary = conf.getPageBoundary();
                int numOfPages = totalRows / articlesPerPage;  
                // Checks if the page variable is empty (not set)
                if (page == 0 || (page > numOfPages && (totalRows % articlesPerPage) == 0 && page < numOfPages + 1)) {    
                 page = 1;  // If it is empty, we're on page 1
              // Ex: (2 * 25) - 25 = 25 <- data starts at 25
             int startRow = page * articlesPerPage - (articlesPerPage);
             int endRow = startRow + (articlesPerPage);           
             // Set array of page numbers.
             int minDisplayPage = page - pageBoundary;
             if (minDisplayPage < 1) {
                  minDisplayPage = 1;     
             int maxDisplayPage = page + pageBoundary;
             if (maxDisplayPage > numOfPages) {
                  maxDisplayPage = numOfPages;     
             int arraySize = (maxDisplayPage - minDisplayPage) + 1;
             // Check if there is a remainder page (partially filled page).
             if ((totalRows % articlesPerPage) != 0) arraySize++;
             // Set array to correct size.
             int[] pages = new int[arraySize];
             // Fill the array.
             for (int i = 1; i <= pages.length; i++) {
                  pages[i - 1] = i;
             // Set pageNext and pagePrev variables.
             if (page != 1) {
                  int pagePrev = page - 1;
                  request.setAttribute("pagePrev", pagePrev);
             if ((totalRows - (articlesPerPage * page)) > 0) {
                 int pageNext = page + 1;
                 request.setAttribute("pageNext", pageNext);
             // These will be used by calling code for SQL query.
             request.setAttribute("startRow", startRow);
             request.setAttribute("endRow", endRow);
             // These will be used in JSP page.
             request.setAttribute("totalRows", totalRows);
             request.setAttribute("numOfPages", numOfPages);
             request.setAttribute("page", page);
             request.setAttribute("pages", pages);          
    }I need two parameters from this method (startrow and endrow) so I can perform my SQL queries. Since this is a multithreaded app, I do not want to use class variables that I will later retrieve through methods.
    So my solution was to just set the two parameters in the request and grab them later with the calling code like this:
    // Set pagination
    Pagination.setPagination(request, conf, tl.getTotalRows());
    // Grab variables set into request by static method
    int startRow = new Integer(request.getAttribute("startRow").toString());
    int endRow = new Integer(request.getAttribute("endRow").toString());
    // Use startRow and endRow for SQL query below...Does anyone see any problem with this from a resource/performance standpoint? Any idea on what the overhead is in using the HttpServletRequest object like this to pass variables around?
    Thanks for any thoughts.

    You could either
    - create instance vars in both controllers and set them accordingly to point to the same object (from the App Delegate) OR
    - create an instance variable on the App Delegate and access it from within the view controllers
    Hope this helps!

  • How can we use business object (e.g. crystal report ) in webdynpro abap

    Hi All,
    We all know that business object has been part of sap products.
    But even though in SAP, I really don't know much about business object.
    and how can we use the great function of BO and integrate into our development to make
    user have much better function and user experience.
    Do we have some learning material of BO?
    Could someone share some material here?
    Thanks and Regards
    Aaron.

    One of the main ways that you can integrate some Business Objects content with WDA is via FlashIslands.  If you are on 7.01 or higher, you have the option to use FlashIslands UI element.  There are many tutorials on FlashIslands available on SDN. FlashIslands work well with Xcelsius content, since the output of Xcelsius is a Flex component.  It is pretty easy to set the Xcelsius interface to External Connection and then write a wrapper Flex Component around the generated output, so that it can be used in the FlashIslands interface.
    For Crystal Reports integration you will need NetWeaver 7.02 (comming early next year).  We have integrated Crystal Reports as an output option in the Web Dynpro ABAP ALV and the Classic Dynpro ALV.  You don't need to do any development to enable this.  You can use two different SAP delivered Crystal Reports templates for the ALV output, or create and add your own templates.
    Some of ther BOBJ integration is still in prototype and demo phase within SAP.  For instance we have a data interface to send data to Explorer onDemand from any ABAP application. We have a prototype FlashIsland for WebI to run in place within Web Dynpro ABAP.  Over future enhancement packages you will see increased integration opportunties with the BOBJ capabilites.

Maybe you are looking for

  • How to port database changes from development to a production environment

    How do I port database changes from the development to the production environment? I am using v8 and have always had to redo everything using the schema manager all over in the production environment. Is there an easy way to generate a script, for ex

  • My resolution of Apple wireless keyboard failure.

    I’ve seen a lot of posts on this Forum pertaining to wireless keyboard disconnect problems. There are many, many suggestions for how to resolve (rebooting, removing plists, updating firmware, suspicions about Leopard, disconnecting all USB devices, e

  • Get Error message R6043, how do I resolve this issue with Itunes

    I got the update message and I usually immediately download and install the update, but this day I ignored the message.  A few days later I got this POP Up stating that a C++ runtime Microsoft Visual app is attempting to load a program in the wrong p

  • Issue with smart tv freezing

    Just got new smart tv and keeps freezing when I go to the home page? The only way to get it out of the home page is to unplug the tv. It will work until you go into the home page 2-3 times and it will freeze up on the home screen. Any suggestions?

  • IPhoto unexpectedly quits when viewing or editing certain photos

    I have just returned from three weeks abroad and had hoped this issue would have been handled by Apple in the interim, but the same status message is still on their web site as when I left. "After updating to QuickTime 7.1.3, iPhoto may unexpectedly