Can an ImageComponent object reference an image in other server locations?

Hello all -
I need display images stored in a folder on the server other than the folder where the web application is stored. However, pointing to any of those jpg images renders nothing as the application runs! To be able to render them, I must copy the images to the web directory of the application and reference them therein, just like in http://www.netbeans.org/kb/55/vwp-fileupload.html. So, this piece of code would work nicely:
String file = "/resources/1.jpg";
image1.setUrl(file);where of course file is a relative path inside the web app, and image1 of type ImageComponent is dropped straight from the pallette. But this would not:
String file = "c:/researcherData/images/1.jpg";
image1.setUrl(file);Is there a way to enable an imageComponent object to reference non-web-app files? Thank you.

Take a look at
http://developers.sun.com/jscreator/learning/tutorials
/2/file_upload.html#07.Thanks jetsons. That particular code sample (#7 in SJSC, #8 in Netbeans) shows only how to serialize a file to a different location on the server, not how to reference a file (not stored within the app forlder) to be rendered as a result of hyperlink click for example. Reading a little further in that page, it says:
Be careful when putting the uploaded files in the web application as anyone can access the files by URL, such as http://localhost:29080/MyWebApplication/faces/upload/images/myPicture.gif.
So, I am thinking that for added security, may be it is meant to be that I can't make an imageComponent reference a file outside of the wep app folder, but I am just guessing. In which case, I will simply have to store all such files within the web app folder before attempting to access them, unless someone has a better answer.

Similar Messages

  • Can you use objects as "cut outs" for other objects when they are only bitmaps?

    Hi, If this is possible, this would help me a TON.
    I am using Flash CS4 professional
    I will explain the issue. I have made a tree with a tree trunk and on top of the trunk I have made steps. I am making a Flash Game and you have to go up this steps to continue on the level, while being able to collide with the parts of the tree that aren't the steps. To do this, I would have to cut out the parts on the trunk that are the steps. I have already made the steps. It would take a long time to remake them when the trunk is isolated as a selection and delete the part. If there is a way to just put the already made steps on the bit map and then use it as some kind of cookie cutter-like thing, it would be VERY useful for many things. If something like this exists, or if there is any way to do something like this, PLEASE TELL ME !

    For all,
    This page has some Jabber info on linking to MSN amnd other service with the Jabber side of iChat (at the top_
    http://ralphjohns.co.uk/page5.html
    And in the Other Apps section number 11 and 12 point to two apps that can Video only from the Mac to MSN Buddies.
    9:16 PM Tuesday; February 26, 2008

  • How can I import objects of one schema into others ?

    Hi all,
    I want to import the objects of a schema into another users schema. e.g I want to import the whole schema of user Scott into another user... Robert's schema ? Is it possible to do so ?
    Any help would be precious.
    Thanx
    Zaaf.

    Hi,
    Lets imagine that you have two users, scott and user1.
    Step 1. take export of scott schema
    exp scott/tiger file=scott.dmp
    step 2. import into user1 schema
    imp user1/password file=scott.dmp full=y
    hope this will help you.

  • Pass object reference from TestStand to C#

    Hi,
    I have created a GUI in .NET which i invoke in TestStand (through a custom step type). User can enter a object reference teststand variable in the UI input expression box. So i need to get the object value in that variable and use it to call some .net functions. To get the values from expression box of UI and put in TestStand step variable i use:
             PropertyObject.SetValInterface("Step.TestStationObj", 0, tsexprTestStationObj.DisplayText.Trim()); To check the value in the step variable if i do:
             MessageBox.Show("TestStation obj after setting:",PropertyObject.GetValInterface("Step.TestStationObj",0).ToString());
    But i do not get any value. Guess it is null. Is this a correct way? My intension is to get the value corresponding to a teststand object reference and pass it to C#. The C# UI control is of type NationalInstruments.TestStand.Interop.UI.Ax.AxExpressionEdit

    Thanks Andy.
    I still get the error when i am trying to pass the object created from C# to Teststand. I have explained what i am trying to do. Kindly requesting your assitance on this issue.
    I have 2 classes in C# (code given below), I am trying to pass the object of "Counter" (c1) class from the "Mainfrm" to teststand. In teststand(counter.seq), I am trying to access the function "GetCount() and SetCount()". I have attached the snapshot of the error that i get from teststand.
    Class Counter
        private int count;
        public int GetCount ()
           return (count);
        public void SetCount(int _count)
           count = _count;
    Class Mainfrm : Form
        public Counter c1;
            private void Mainfrm (object sender, EventArgs e)
                InitializeComponent();
                axApplicationMgr1.Start();
                mEngine = axApplicationMgr1.GetEngine();
                currentFile = axApplicationMgr1.OpenSequenceFile(@"Counter.seq");
                pobj = mEngine.NewPropertyObject(NationalInstruments.TestStand.Interop.API.PropertyValueTypes.PropValType_Container, false, "", 0);
                pobj.NewSubProperty("Parameters.ObjRef1", NationalInstruments.TestStand.Interop.API.PropertyValueTypes.PropValType_Reference, false, "", 0);
                pobj.SetValInterface("Parameters.ObjRef1", 0, (object)c1);
                mExecution = mEngine.NewExecution(currentFile, "MainSequence", null, false, 0, pobj, null, null);
    Attachments:
    ErrorFromTestStand.JPG ‏28 KB

  • WebDynpro Abap MSS: Access via "NULL" object reference not possible

    hi,
    My customer send me the following link to Appraisal Documents (Manager) MSS
    http://server.sap.portal:1810/sap/bc/webdynpro/sap/HAP_START_PAGE_POWL_UI_MSS/
    http://a.imageshack.us/img685/5959/mss3.jpg (logon in Costumer SAP System)
    http://a.imageshack.us/img225/4008/mss4.jpg (Appraisal Documents (Manager) MSS run succesful)
    Link that also run by the SICF in my customer is correct.
    But when I run in my SAP System see the following error
    http://a.imageshack.us/img715/5355/mss1j.jpg (SCIF in my SAP System)
    http://a.imageshack.us/img44/5346/mss2.jpg (SCIF - test service)
    http://a.imageshack.us/img840/1677/mss2b.jpg (Error, without window logon)
    <b> Access via "NULL" object reference not possible</b>
    Other question is:  In what part of MSS is this option? because the ESS is in Career and Jobs / Appraisals Documents
    http://a.imageshack.us/img683/9900/careerjob3.jpg (Employee Self Service / Career and Jobs / Appraisals Documents)
    thanks for your posts and answer
    Ivan

    Hello
    The most important information is (again) missing: which object reference is initial ("NULL")?
    The ABAP dump will tell you.
    Below I show an example how this can happen (and be avoided):
    LOOP AT lt_accountings INTO ls_accounting.
      lo_po_account ?= ls_accounting-accounting.
    ENDLOOP.
    " QUESTION: Are you sure that lo_po_account hold an instance ???
    " If LO_PO_ACCOUNT is empty the following statement will give you the dump.
    ls_mepoaccounting = lo_po_account->get_data( ).
    " And that is how to avoid this (at least the dump. Whether your logic is still ok is another matter...)
    CHECK ( lo_po_account IS BOUND ).
    ls_mepoaccounting = lo_po_account->get_data( ).
    Regards
      Uwe

  • Object Reference Column in a SqlCe Data Table

    This may be a strange question...
    I've defined a table in a SqlCe database (using VS C#2010 Express) that will never have any data persisted in it.  I did this so I can instantiate versions of it using the designer generated strongly typed table definition without ever directly using
    the one that's in the database.  (That may be obtuse, but it seems to work quite well, I don't need to worry about the database overhead, and I get all the documentation and code creation the designer provides).
    I've now run into a situation where I'd like one of the columns in the instantiated tables to contain references to C# objects (always requiring casting of course to use them).  Can I do that and, if so, what SqlCe datatype would I use to get a column
    that can contain an object reference?
    Thx.  Steve

    Erik -
    I'll admit to trying to cut some corners, which I'd like to do if there's a way that doesn't cross some .Net, Visual Studio  or C# line.
    As you noted, I do want to store a reference to the object ONLY during runtime.  I can certainly use a List or a DataTable created for that purpose, which is really what I want to do.  I'd like to use a DataTable that I already have setup
    to store other variables, so that as I traverse it (e.g. using foreach DataRow), I can reference the object as well as the other variables using the foreach DataRow reference. 
    The trick I want to use is to define the DataTable using the VS database designer rather than manually creating the code that defines it.  The designer is visual, easy to use, self-documenting, and of special note makes the code that uses
    the DataTable easy to read because the resulting DataTable is strongly-typed.  I should have more clearly exhibited in the sample code how I use the strong-typing in the line that sets myDataRow.  It should read: "MyDatabaseDataSet.MyTableDataRow
    myDataRow = myDataTable.Rows[I];", where "MyDatabaseDataSet.MyTableDataRow" uses to the VS generated strongly-typed DataRow definition.  Note that the code does not store data in the database's
    DataTable itself.  It merely uses the database's DataTable DEFINITIONS to instantiate other tables.
    I have used this approach when the all data in the DataTable is of one or more native C# types (int, decimal, etc) for which there are corresponding SqlCe types.  However, I'd like to use it with a custom type (MyObject), if that's possible, and am
    looking for what SqlCe type might work for that purpose, if any.
    I admit that this may be an unusual way to create a DataTable definition.  I'm not sure where I can up with the idea.  I may have read it somewhere or just cooked it up myself.  But I really like what the strong-typing provides (without having
    to manually create it myself).
    Is there any way to include custom types using this idea?

  • Registering call back object reference

    hello to all.
    I am developing a RMI application and I have a problem while registering the call back reference object of client.
    I have followed what ever thing required to register the clients object reference to register at the server side and server can call my client and it works fine in local environment. But when I use live environment my client can register the object but server cannot call my client.
    When I use following code while registering the client reference object
    System.out.println("Call me back registered as \n"+cmb); //cmb the the clients reference objectit gives following output
    Call me back registered as  
    Admin_Stub[UnicastRef [liveRef: [endpoint:[192.168.1.2:56851](remote),objID:[-57856c9e:124db6554b6:-7ffe, -7745666993431596650]]]]  At localhost it works fine even if my IP address changes to 192.168.1.2 to 192.168.1.4 or 6 i.e. works fine in local environment but when registering to the live environment it registers with the same IP address as shown in the output. So what can I do to register the object so that server can call me.
    Also when server get the reference of my client's object and try to connect my client it gives an exception of connection time out, which means it cannot find my client to reply.
    So, please suggest me what to do.
    Thank in advance.

    Very difficult, in fact impossible. You have to allolw for the presence or absence of:
    (a) client-side firewalls
    (b) client-side NAT
    (c) misconfigured client-side DNS, e.g. the Linux /etc/hosts issue described in the FAQ item.
    So some client-side configuration is inevitable. Most people avoid callback-based applications over the Internet for these reasons, as well as the security reasons that cause this issue in the first place.

  • How do I take an object from an image and save it so I can use it in other images?

    I am trying to figure out how to take an object from an image and save it so I can re-use it again in other pictures?  I know how to use the magic wand to select the object and place it in a blank image.... but I do not know how to re size the selected object or keep it for later use.  Basically I would like to use the object the same way that I use the graphics ... so I guess I am wondering if there is a way that I can make my own graphics... I have Elements Photoshop 13.  Thanks for any help/advice....  Jerrie

    Hi Jerrie,
    You can re-size using Transformation tool. Ctrl + T will give you a box to re-size the image or object.
    You can save these object as PNG file with Transparent layer. You can use these objects later in another projects.
    Regards,
    Sandeep

  • 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 a "object reference" type from TestStand be used for Labview VIs

    I am creating a test sequence in Test Stand and I am looking to use a "object referrence" type stored in the globals of TestStand as an input to VIs that I will use later in TestStand.  The object can be from .NET or ActiveX.  I need to know if I can use a input that will support either type.

    Hi Mcfrenzy36,
    Object references can be used for LabVIEW. I have found an article that teaches how TestStand handles Activex object references. Here is the linkt o it:
    http://zone.ni.com/devzone/cda/tut/p/id/2984
    I hope that this helps.
    Regards,
    Perry S.
    Applications Engineer
    National Instruments

  • Render a swf object(contains an image) in navigator not possible

    Hy, I have a swf object that is an image(a circle). I have tried to render it in firefox but it doesnt render anything but I have tried with other swf object(not an image, an application) and it renders it ok. So can I render a swf file that is an image or is not possible? should I extract the image in it first to render on the navigator?
    Thanks

    Take a look at
    http://developers.sun.com/jscreator/learning/tutorials
    /2/file_upload.html#07.Thanks jetsons. That particular code sample (#7 in SJSC, #8 in Netbeans) shows only how to serialize a file to a different location on the server, not how to reference a file (not stored within the app forlder) to be rendered as a result of hyperlink click for example. Reading a little further in that page, it says:
    Be careful when putting the uploaded files in the web application as anyone can access the files by URL, such as http://localhost:29080/MyWebApplication/faces/upload/images/myPicture.gif.
    So, I am thinking that for added security, may be it is meant to be that I can't make an imageComponent reference a file outside of the wep app folder, but I am just guessing. In which case, I will simply have to store all such files within the web app folder before attempting to access them, unless someone has a better answer.

  • Error occurred in deployment step 'Activate Features': Object reference not set to an instance of an object: feature receiver error

    I cretaed a Visual web part in SP 2013. It needs a SharePoint list. So wrote below code in web part feature receiver. When I deploy the solution I get error says Error occurred in deployment step 'Activate Features': Object reference not set to an instance
    of an object. I set ActivateOnDefault="FALSE" and AlwaysForceInstall="TRUE" . Take a look on my feature manifest file.
    I cretaed a Visual web part in SP 2013. It needs a SharePoint list. So wrote below code in web part feature receiver. When I deploy the solution I get error says Error occurred in deployment step 'Activate Features': Object reference not set to an instance
    of an object. I set ActivateOnDefault="FALSE" and AlwaysForceInstall="TRUE" . Take a look on my feature manifest file.
    <Feature xmlns="http://schemas.microsoft.com/sharepoint/" Title="SharePointProject1 Feature1" ActivateOnDefault="FALSE" AlwaysForceInstall="TRUE" Id="8f7163d5-6c65-40d8-9045-8f74192f07d7" ReceiverAssembly="SharePointProject1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9c2f0c3a8e22f6a0" ReceiverClass="SharePointProject1.Features.Feature1.Feature1EventReceiver" Scope="Site">
    <ElementManifests>
    <ElementManifest Location="VisualWebPart1\Elements.xml" />
    <ElementFile Location="VisualWebPart1\VisualWebPart1.webpart" />
    </ElementManifests>
    </Feature>
    This is my Feature1EventReceiver code.
    SPWeb spWeb = properties.Feature.Parent as SPWeb;
    SPList laptopList = spWeb.Lists["Laptops"];
    if (laptopList != null)
    laptopList.Delete();
    SPListCollection lists = spWeb.Lists;
    lists.Add("Laptops", "The Laptops", SPListTemplateType.GenericList);
    laptopList = spWeb.Lists["Laptops"];
    laptopList.Fields.Add("Name", SPFieldType.Text, true);
    laptopList.Fields.Add("Model", SPFieldType.Text, true);
    laptopList.Fields.Add("Image", SPFieldType.URL, false);
    I can deploy if I have only below code
    SPWeb spWeb = properties.Feature.Parent as SPWeb;

    hi
    features containing webparts must be site scoped, so you must get spweb as bellow:
    SPSite spSite = properties.Feature.Parent as SPSite;
    SPWeb spWeb = spSite.RootWeb;
    yaşamak bir eylemdir

  • "Object reference not set to an instance of an object." in Visual Studio 2012 Entity Framework Model-First

    Hello
    We're trying to use a Model-First with Entity Framework in Visual Studio, targeting an Oracle XE 11g installation.
    No matter from what angle we're approaching the issue, we always end up with an "Object reference not set to an instance of an object" in Visual Studio:
    First way:
    - Add new ADO.NET Entity Framework Model to a .NET Framework 4.5 project
    - Empty model
    - Add some entities and associations
    - Set Database Generation Workflow to "Generate Oracle Via T4 (TPT).xaml"
    - Set DDL Generation Template to "SSDLToOracle.tt"
    - Generate Database From Model
    - VS asks for DB connection ==> Click "New Connection"
    - Enter the connection properties to the Oracle XE database. "Test Connection" tells me the connection is okay.
    - Click OK. Visual Studio shows the following error message:
    (here's the image if it's not visible: https://dl.dropboxusercontent.com/u/35614983/vs2012_oracle_ef_error.png)
    We also tried to generate the model in VS2010 and then manually transform it to an EF5 / VS2012 model. At the "Generate Database from Model" step, the same error appeared.
    We also tried to generate the model from database (Database-First approach). Same error.
    My configuration:
    - Windows 7 Ultimate 64-bit
    - Installed Oracle client: ODTwithODAC1120320_32bit.zip, so the version is 11.2.0.3.20
    - Visual Studio 2012 Update 3 (11.0.60610.01)
    Thanks for any hints!
    EDIT: I just read that ODP.NET doesn't seem to support Entity Framework 5, so I tried a new project with Entity Framework 4.1, but I get the same errors.
    EDIT 2: On a 32-bit Windows 7 virtual machine, everything works fine. Seems the problem is only there on my 64-bit Windows 7 machine.

    Sorry for the delay on this one. Let me know if you are still seeing this and I will see if we can get more diagnostic info somehow.
    That error is basically an exception fault. It means a bug or a misconfiguration of Oracle Developer Tools. Can you try to reinstall ODT and see if you notice any unusual errors during install.. and see if a reinstall fixes the problem?

  • The Ole #1009: Cannot access a property or method of a null object reference ...

    To anyone that can help me I say thank you first I also say thank you to anyone else that attempts to help.  I am sure this will be an easy one for most of you but I am completely stumped.  I am a newbee to AS.
    I have a movie that has navigation butttons and they all work find.  On a scene in the movie I have an image that grows grows from alpha 0 to 100%.  When you Mouse_Over the alpha drops to -.6 and when you Mouse_Out it goes back to 1.  I have this in frame 1 and this scene takes place between frames 115 and 166.  When I execute a Mouse.Click on the movieClip (contact_us_gel) I am moved to the emailScene.  The bad news is when I click the movieClip I get the below.  I change the movieClip to be on the stage for entire movie from frame 1 to 166 in hopes to loose this error.  As you can tell that didn't work.  Below is the AS code that I have written. I use this same code for my navigation buttons and I have no issues.  I have officially had my butt kicked by this one.
    I have tried removing the eventListner and that just really messes me up until I go to the homeScene (frame 1) and add the event listner back for he contact_us_gel.
    The Trace & Error from the outPut.....
    Frame on Gel MouseOut 228 <<-- Trace statement when I click the gel / This is also where the email scene stars
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at barnumRealtyGroup_fla::MainTimeline/outCUG()[barnumRealtyGroup_fla.MainTimeline::frame1:1 31]
    The code
    //-- ContactUsGel --\\
    contact_us_gel.addEventListener(MouseEvent.MOUSE_OVER,rolloverCUG);
    contact_us_gel.addEventListener(MouseEvent.MOUSE_OUT,outCUG);
    contact_us_gel.addEventListener(MouseEvent.CLICK,playHomeSceneCUG);
    function rolloverCUG(event:MouseEvent):void{
    contact_us_gel.alpha -= 0.6
    function outCUG(evnt:MouseEvent):void{
        trace("Frame on Gel MouseOut "+this.currentFrame);
        contact_us_gel.alpha = 1; //this is where I am dying.... This is frame1:Line131
    function playHomeSceneCUG(event:MouseEvent):void{
        trace("Frame on Gel Going to Email "+this.currentFrame);
        gotoAndPlay("emailScene");
    Thank you in advance...

    I follow you and something that I failed to mention is that this is happening only when I execute a MouseEvent.Click on contact_us_gel.  While looking at this after my post and testing what is happening is outCUG() is called during the MouseEvent.Click which calls playHomeSceneCUG() << takes me to emailScene.  That is what is killing me I have  not found a proper way to isolate that MouseEvent.Click and not allow it to call outCUG().  I know you are the GURU but did I confuse you.

  • Detecting an object in an image

    hi all
    i need to know how to detect a particular object like a ball or a rectangular block within an image
    i tried opencv but it failed to detect an object within an image the C code used in JNI is given below
    #include <stdio.h>
    #include <stdlib.h>
    #include <jni.h>
    #include "sift.h"
    #include "imgfeatures.h"
    #include "kdtree.h"
    #include "utils.h"
    #include "xform.h"
    #include <cv.h>
    #include <cxcore.h>
    #include <highgui.h>
    #include "helloworld_HelloWorld.h"
    #define KDTREE_BBF_MAX_NN_CHKS 200
    /* threshold on squared ratio of distances between NN and 2nd NN */
    #define NN_SQ_DIST_RATIO_THR 0.49
    /******************************** Globals ************************************/
    char img1_file[] = "..\\football.png";
    char img2_file[] = "..\\sift.png";
    JNIEXPORT jint JNICALL
    Java_helloworld_HelloWorld_printNat(JNIEnv *env, jobject obj)
    IplImage * img1, * img2, * stacked;
         struct feature* feat1, * feat2, * feat;
         struct feature** nbrs;
         struct kd_node* kd_root;
         CvPoint pt1, pt2;
         double d0, d1;
         int n1, n2, k, i, m = 0;
         img1 = cvLoadImage( img1_file, 1 );
         if( ! img1 )
              fatal_error( "unable to load image from %s", img1_file );
         img2 = cvLoadImage( img2_file, 1 );
         if( ! img2 )
              fatal_error( "unable to load image from %s", img2_file );
         stacked = stack_imgs( img1, img2 );
         fprintf( stderr, "Finding features in %s...\n", img1_file );
         n1 = sift_features( img1, &feat1 );
         fprintf( stderr, "Finding features in %s...\n", img2_file );
         n2 = sift_features( img2, &feat2 );
         kd_root = kdtree_build( feat2, n2 );
         for( i = 0; i < n1; i++ )
              feat = feat1 + i;
              k = kdtree_bbf_knn( kd_root, feat, 2, &nbrs, KDTREE_BBF_MAX_NN_CHKS );
              if( k == 2 )
                   d0 = descr_dist_sq( feat, nbrs[0] );
                   d1 = descr_dist_sq( feat, nbrs[1] );
                   if( d0 < d1 * NN_SQ_DIST_RATIO_THR )
                        pt1 = cvPoint( cvRound( feat->x ), cvRound( feat->y ) );
                        pt2 = cvPoint( cvRound( nbrs[0]->x ), cvRound( nbrs[0]->y ) );
                        pt2.y += img1->height;
                        cvLine( stacked, pt1, pt2, CV_RGB(255,0,255), 1, 8, 0 );
                        m++;
                        feat1.fwd_match = nbrs[0];
              free( nbrs );
         fprintf( stderr, "Found %d total matches\n", m );
         cvNamedWindow( "Matches", 1 );
         cvShowImage( "Matches", stacked );
         cvWaitKey( 0 );
    cvReleaseImage( &stacked );
         cvReleaseImage( &img1 );
         cvReleaseImage( &img2 );
         kdtree_release( kd_root );
         free( feat1 );
         free( feat2 );
         return m;
    i donot want help exactly with opencv but a java code to detect an object within an image will be helpful and
    help on any modification i can make on the above program will be also helpful
    thank u                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi friend!
    I have the following issue:
    I'm trying to build a C++ DLL that uses OpenCV.
    But when I try to compile, I have the following errors:
    [Link Error] undefined reference to 'cvQueryFrame'
    [Link Error] undefined reference to 'cvReleaseCapture'
    [Link Error] undefined reference to 'cvReleaseImage'
    I'm using Dev-C++, and I set all the libraries directories correctly. If I try to compile an .exe file that uses OpenCV, it compiles successfully.
    Please help me! I'm getting "crazy" with that...

Maybe you are looking for