DLLImport variable and library Linking question

Hello All,
I am using a CVI program with an external DLL file.
My program is designed to be able to load a specific DLL file from a collection  of possible files depending on the required task.
I am making a common variable "result" in each DLL fille.
In my CVI program it is defined as int DLLIMPORT result;
In my DLL I have the variable defined as int DLLEXPORT result;
When I use the DLLIMPORT function for my program to get the variable "result" from the DLL, I get error:Undefined symbol "_imp...
If I include the library for one of my DLL's in my CVI program, this error goes away, of coures.
But because I am using multiple DLL's, one at a time, I do not want to link any librarys to a specific DLL.
I haven't had any issues using my DLL's with DLLEXPORT, but DLLIMPORT is giving me this linking issue when I build it.
What can I do to define my DLLIMPORT variable so I can bypass linking a library to my CVI program?
Veni Vidi Duci

I defined a DLLEXPORT variable inside the DLL header file.
In my main program, I have a DLLIMPORT statement in my global header file for my main declaration, and then a EXTERN DLLIMPORT for any additional files in my program.
Basically I have multiple c files
In my main.c file I define MAIN.
In all my C files I include a global.h
Inside global.h I have:
#ifdef MAIN
DLLIMPORT variable;
#else
EXTERN DLLIMPORT variable;
#endif
That's what I was doing. I changed my desgin though.
I moved away from using DLLIMPORT in my program.
I am now passing a pointer to a structure everytime I call my DLL functions using DLLEXPORT, similar to the sample above.
Then my DLL can save data to memory in my main program using that pointer.
As long as my DLL's use consitent formatting (which is the idea), this should be adequate.
I have tested this and so far it works pretty well.
Veni Vidi Duci

Similar Messages

  • Shared Library Linking Question

    I'm building my first site using a shared library swf file.
    I'm wondering about what elements have to be linked for everything
    to work properly. For example:
    In my shared library swf, I've got a menu movie clip built.
    Within it, there is another movieclip with 6 buttons, a couple
    motion tweens, and a couple graphics inside. So, in my menu
    movieclip folder, there are about 12 different elements (buttons,
    graphics, a couple movie clips, etc.
    In any other swf file that uses the menu from the shared
    library, do I just need to link and bring over the main menu
    movieclip, or do I need to link every element and bring it over to
    any swf that uses the menu? Or, is there even a better way to do
    all of this? I've got at least 6 different swfs that will use this
    menu. I'd only use it once on the master.swf, but it's nestled
    within layers on the other seperate swfs for visual
    purposes.

    plaing the menu in every .swf file will increase the size of
    each file. the shared library file will be larger than it needs to
    be.
    Why not just make one .swf that only contains the just the
    menu. Then you could create a master file that loads the menu.swf
    at a high enough level that it is always on top. The other movies
    (webpages) could be loaded inbetween the master.swf, which you'd
    probably put on level 1, and the menu.swf. That way only the bare
    essentials would need to be stored in the shared library keeping
    its size as small as possible.
    (see Shane Rebenschied's book,
    Flash MX 2004: Beyond the Bsasics)

  • KM Search and External Link Question

    Q1: I have created a Meta Data Properties for a Folder, so any document Created in this folder will require these data to be entered, I want to put a Filter Option on the this folder Iview where user can filter data on the basis on Meta data Property or Search document based on Multiple Meta Data Property using TREX or any other search.
    Q2. If I create a External link to a document in KM folder, will TREX search in that document.
    Thanks in Advance
    Jagraj Dhillon

    Hi Jagraj,
    Q1: You have to define the Meta Property as Indexable than you can use TREX for searching for documents with the specific value of this property. Of cause you can as well filter the documents when displaying the content of the folder. In this case you have to implement a resource list filter.
    Q2: TREX is able to index links as well.
    The question is it you really mean External Links for referencing documents in KM folders because normaly you do this by an internal link. A external link in most cases is a reference outside the portal. Nevertheless see http://help.sap.com/saphelp_nw70/helpdata/en/73/66c090acf611d5993700508b6b8b11/frameset.htm so you can see you can define a parameter indexContentOfExternalLink and you can define a parameter IndexInternalLinks. In this case the index will contain as well the content of the links.
    Best Regards
    Frank

  • Suppressing table continuation variable and other table questions

    Hello all,
    Is there any way to suppress the table continuation variable from being converted? Is the only way to conditionalize all the occurences in Framemaker?
    Also, for some reason, the Framemaker to Robohelp paragraph mapping for my table caption paragraphs aren't being converted properly. Do table captions need to be treated differently from other paragraph tags?
    Thanks.
    Sue

    James, I'm also curious about using a period after the table title, as I can't remember noticing periods after titles in any publications -- is it required by a specific style guide? My Chicago Manual of Style (12th, can't put my hands on 13th or 14th at the moment) does not use periods after titles, an in fact it eschews repeating the title, even. (ref. 12.17)
    In FM 7.2 the table continuation variable is a bit schizophrenic, because while the variable content is suppressed (as expected) on the first page of the table, the variable symbol's on-screen horizontal space is not. If the variable's space had been suppressed it would be possible to do
    Table 1. XYZ Operation//var//.
    and thus have the result that you would like. Very annoying...

  • I have 1 itunes library with an iphone and ipod linked to it.  My daughter bought a ipod touch.  Can we download music from my library into her library.  We want to keep them separate due to I do not want all her games in my phone

    I have 1 itunes library with a phone and ipod linked to it.  My daughter just got a touch.  She would like to have some of my music downloaded into her touch.  How can I do that without having her linked to my library?

    Sync all the devices to the same computer.
    If you do not want her apps, then simply do not select them to sync to your device.
    Each device will only sync what you select to sync.
    lllass gave you a great link for several options.

  • If I get a user to enter their name as a variable and I am linking one movie to another using a button, is there a way to carry the user name forward into the second movie?

    If I get a user to enter their name as a variable and I am linking one movie to another using a button, is there a way to carry the user name forward into the second movie?

    Hi there
    See if the link below helps
    Click here
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How do I rid my iTunes library of duplicates and broken links?

    How do I rid my iTunes library of duplicates and broken links?

    Well nevermind! It appears that if I just add my entire music library and run a Match update, it ends up making the associations and showing the tracks as being stored in my local music library.

  • Question about shared variables and report generator

    I have a project with about 200-250 shared variables and at every 12 hours i want to make a report containing information about some boolean and double front panel variables linked to the shared variables... Now, i've tried with both the "Write Trace to SpreadSheet File" function from DSC->History and with different functions from NI Report Generation Toolkit. My problem is this: i would like to get my xls file to contain just the timestamps when my shared variable changed value. As it is, the number of rows in the file depends, obviously, on the sampling interval given as input. As an example, in 12 hours, my shared variable would change value maybe 5-6 times. Thus i would like my xls file to contain just 5-6 rows with those 5-6 changes. If i set the sampling interval to say, a matter of seconds, that would mean too much unneeded information in my xls file. Instead, if i set it to let's say 15 minutes, i would probably lose the moment the shared variable changed value. Is there a way for me to achieve my desired functionality with functions from DSC or Report Generation Toolkit? Thanks in advance, Sabin 

    Hi Mike and thanks for the reply. Actually, my first idea was exactly this: in an event case structure, whenever my variable changed value, i would retain the relevant data in an array and then at the 12 hour period write all of it in a report. However, my boss deeemed it memory unefficient and compelled me to use only one function. Thus my predicament... If you have more advice on this new info, i would be grateful... Cheers, sabin

  • Variable and Formulas Question

    Hi folks,
    I use BOXI r2 sp 4 and I have a general question re: variables and formulas in Webi reports.
    Billing Year Month and Cost of Service are standard time dimensions and measures that I use in my Webi reports and they were created at the semantic level.
    Normally, I create cross tab reports with the Billing Year Month along the horizontal axis and the Cost of Service in the Body (Business Unit or Department would be placed along the vertical axis).
    For some reason, when I use formulas/variables to modify the standard time dimensions (like changing Billing Year Month to Year), the values for the Cost of Service are returned incorrectly.
    Example.
    Semantic object: Billing Year Month = (yyyy-MM) returns correct values
    Report variable: Substr([Billing Year Month;1;4) returns incorrect values
    Can anyone please explain this problem?
    Thanks,
    Wannetta

    Hi John,
    The attribute of the Billing Year Month at the semantic level is a character type.
    After reading your response, I realize that I may not have been clear regarding the problem.
    The following formula does return the correct value in and of itself.
    >=Substr([Billing Year Month];1;4
    If I create a variable and then drag it onto my crosstab, it returns the correct value ONLY within the header.
    When I drag the cost of service measure onto the crosstab; the header values remain the same but values in the body either disappear or the change to reflect incorrect values.
    I thought one of the prime features of Webi was the ability of the Report Developer to create variables/formulas and use them in the headers to manipulate the semantic "measures" in the body (read: output) at the report level.
    Is this a matter of semantic design or does Webi not possess this capability?
    Or, is the issue entirely different?
    Thanks!
    W.

  • Basic Question on Copy and Delta link which one to use when?

    Hi
    Its basic question
    My understanding about copy and Delta link is
    Copy doesnot ahve direct relationship with source object (but it acts as a sibling) any changes done to spurce object does not affect target object.
    Where as Delta link will have a parent child relation ship between source object bacially its a copy of source and inherits id properties. in case if i change source object does this affect target object, we can delete, add content to delta link target object.
    let's say if i want to use standard quickpoll iView do i need to use copy or delta link similarly for other iviews, worksets, roles which one will be better.
    Regards,
    Murali

    Murali,
    Yes, your understanding is right.
    Case 1 : Copy
    A- Object
    B- Copy of A
    Both of them are independent.Any changes in A are not dependent on B and vice versa.
    Case 2 : Delta Link
    A - Object
    B - Copy of A (via Delta link)
    Any changes to A are reflected in B, as A is a parent and B a child.
    But B would be an independent entity.Any changes to B would not effect A.
    When you use either of them, depends on your need. When you are working with standard iviews or roles or workset, you can do a copy of the original, because in most cases we would not make changes to the standard roles or worksets or iviews. There by eliminating the process of making a delta copy.
    But, if you are dealing with the roles that you have created and want to make a copy of it, you can use a delta link, because, even if you want to add more iviews and worksets to that role, they would get reflected when you make a delta copy.
    Hope that helps.
    Consider rewarding points for handy posts!
    Cheers,
    Sandeep Tudumu
    Edited by: Sandeep Tudumu on May 6, 2008 2:10 AM

  • Podcast and library questions

    1) How do I move my podcasts and library database between old and new PC's?
    2) Why do Video Podcasts not play the ALL episodes when pressing PLAY the same as Audio Podcasts?
    {Content against terms of use removed by host. Technical questions left. Title edited to reflect quesitons.}

    Any chance of a response? What is wrong with this question?

  • Every time I try to get on youtube or netflix on safari all I'm getting is a white background and a lot of links and boxes with question marks in them, what is going on?

    Every time I try to get on youtube or netflix on safari all I'm getting is a white background and a lot of links and boxes with question marks in them, what is going on?

    Make sure your system software is up to date.
    Click the Apple  menu (top left in your screen) then click:  Software Update ...
    And try troubleshooting Flash. Uninstall then reinstall.
    http://kb2.adobe.com/cps/865/cpsid_86551.html#ostype=m,prob1=fnctn,prob2=game,

  • Question about session variables and binding

    Hi All,
    I'm a newbie with Application Express. I've gone through several tutorials and a book, and now I'm actually getting started with apex. My first adventure is a tiny little form, where all you do is fill it out and it sends an email. Pretty simple.
    And, i have it working just fine - but I have a question about something I don't quite understand. Basically, I am generating the email text in a page process. And some of the form fields work fine if i reference them as *:ACCT_NAME*, but some give me the dreaded "not all variables bound" error. For the ones that give me the error, I can reference them like V('ACCT_NAME').
    So, as a newbie, I'm a little confused. When is it appropriate to use the V function, and when it is appropriate to use binding? Why would one of the fields work with binding but not another from the same form?
    Thanks for any clarification you can offer,
    Lisa

    Lisa,
    A bind variable is a place holder variable available in an environment.It is used quite frequently(outside Apex Context) in SQL and PLSQL scripts and especially in Dynamic SQL statements.Many times using a bind variable gives better performance. In the Apex environment,page items and many other variables related to the session are available as bind variables and hence their value can be referred in SQL,PLSQL contexts as :VARIABLE_NAME.
    Now V() function is an apex specific function which returns the value of an apex session variable outside the apex environment. So as Machaan pointed out, it is used in
    procedures and triggers that gets called from within an apex session. This is required since the bind variables themselves are not directly available in the SQL environment but their values from the corresponding session can be accessed by this apex built-in function.
    The length of any Bind variable name is limited to 30 characters, this is a limitation inherited from Oracle SQL itself and hence session variables(page or application items) whose name has a length which exceeds 30 characters cannot be used as the :ITEM_NAME format. In such cases you would have to use the v() method again. This might be happening in your case.

  • I forgot the answers to my security questions and the link to send an email to my email to reset them is not there.

    I forgot the answers to my security questions and the link to send an email to me let me reset them is not there.

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (105268)

  • I forgot my security questions and the link the reset them wont show up on my phone or computer what do i do??

    I forgot my security questions answers and  the reset questions link isnt showing up on my computer or on my phone what do i do??

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (114371)

Maybe you are looking for

  • Every effect must be rendered?

    Been combing the forums for some time looking for an answer. I've captured about 10 mins of HD footage from my HDR-FX7. I can drop my clips right in the time line with no rendering needed; however, any effect added needs to be rendered, even somethin

  • COst center planning upload

    Hi , My question is more specific to FI (functional). Watz the best way to upload the COst center planning?(KP06)? this is done for every quarter at my client. BDC pgm is looking more complicated.(table control, there are few disabled fields which ne

  • I have loaded the software for my new printer but am unable to get eprint to work properly. the prin

    I have a new HP deskjet 3070A printer which I have loaded the software as per the disc that came with the printer but I am unable to get the printer to print emails Presumably something is wrong with the ePrint set up. I operate Windows Vista

  • Bridge CS6 GIF animation view crashes

    Since I don't see another Adobe Labs forum for Bridge CS6, I'm posting here. I was pleased to finally see an animated GIF preview in Bridge CS6. I'm unhappy to report that attempting to view an animated GIF crashes Bridge CS6. I've allowed the app to

  • Cannot open premiere pro 8.0 on new mac running 10.9.4

    I can open on 10.9.2   10.9.3  but not on 10.9.4  eve thing i have looked at says the problem was fixed I hace re-installed reset permissions restored disc pestored permissions from another machine why and what can i do to get this going also prelude