Controling a user interface with extern DLL

Hi,
I am currently developing an application that is based on a graphical interface. I divide my code into multiple DLLs. By going this route, I met several problems. I want to know some facts:
1 - from the DLL can I  assign values ​​to textbox,  read listbox of the GUI:GetCtrlVal (panelHandle, PANEL_TEXTBOX, val); (the GUI is integrating in the project who call the DLL)
2 - I use global variables "extern int" in my files. h and my functions. How do I change this variable declaration when I migrate to the DLL.
If you have any exemple describing how can i control a GUI with extern DLL.
Thanks

Hey Fishingman,
It looks like this post is very similar to your other post on Application Architecture.  If this is the case, let's continue this discussion on this thread so that it is easier to follow for anyone else who may be keeping up with this. 
To expand on my original response a little though - if you are just looking to be able to modify the user interface in a dll then take a look at this link.  It explains how to set up dll function calls to modify a user interface.  Again, I wouldn't suggest building your entire GUI through different dlls but it is definitely possible to modify it within a dll.
Regards,
Trey C.

Similar Messages

  • Creation of Server Proxy for  Message interface with External Defination

    Dear All,
    I am getting a problem while generating a server proxy for the inbound interface . The request message used in the inbound interface is a external definition which is uploaded using a XSD file. The XSD file was supplied by a third party which is having very high complex strucuture and used lot of abstract data types in the design. When i tried to generate the proxy in the R/3 system (Transaction SPROXY) for the inbound interface i am getting following error.
    Interface uses external and internal message definitions
    Message no. SPRX122 *
    Diagnosis
    In a message interface you can use messages from different sources:
    Message types and fault message types edited in the Enterprise Services Repository
    Messages imported into the Enterprise Services Repository (external definitions, RFC, IDoc)
    In the current message interface, message types from different sources have been used. Since messages from these different sources must be handled differently during proxy generation, such a mixture of messages within a message interface is not possible.
    System Response
    The interface cannot be generated.
    Procedure
    Change the interface definition accordingly in the Enterprise Services Repository.
    Please guide me, how to generate the proxy for the interface with external defination message. I could nt geneate manullay, because it is having very high complexity and its a big structure.
    Is there is any way to generate the proxy for interface with external definition
    Regards
    Vijayanand

    Hi,
    i.       Import your message schemas from external definitions, or RFCs or IDocs from SAP systems. These definitions already contain data types.
    ii.       Create a message interface and reference the messages of the external definition, or the RFC or IDoc message.
    Check this, it may help you
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/01623c4f69b712e10000000a114084/content.htm
    REgards
    Seshagiri

  • Developing a User Interface with ADF Faces - Tutorial - Questions

    Hello everybody,
    I am a forms developer and I am totally new to ADF.
    I started from the tutorials : Developing Business Services with ADF BC and Developing a User Interface with ADF Faces...
    Everything was easy and very clear, as far as the material covered in the tutorial is concerened.
    But when I tried to modify a little bit the application, to perform a different task... disaster!!! :-)
    One of the "simple" things that I tried to do -for example- is :
    In the login.jspx, where we have created an ADF Parameter form (that accepts as a parameter the customer ID) and
    retrieves in the next page the Orders of the specific customer.... to Display a message, such as "+Customer Does Not Exist+"
    if the user types in the parameter form an not existent customer ID...
    I understand that I should use a validator.... But I cannot find the list validator (from query) in the bind variables not in the ADF Parameter Form Fields....
    Does anyone know?
    Regards,
    Maira Kotsovoulou

    Dear Grant,
    CustomerID is in the UI Project, and appears as a part of an ADF Parameter Form... and I can not find key exists in the UI Validators....
    CustomerID in the .entities is a bind variable in a query. select ... from customers where customer_id = :p_customer_id. Again KEYEXISTS validator is not available in the bind variables sections... Only in the attributes!!!
    I understand that the "normal" behavior in a query with bind variables where there is no match is to display nothing as it does!!!
    But I was just wondering, if I could even trap that before I display the empty form...? Or could I display a text in my ADF form, that says no rows... (as I can do in an ADF Table???)

  • Is anyone know how to run the examples in 3d user interfaces with java 3d

    hi dear ,
    I am trying to run the examples in 3d user interfaces with java 3d.
    I hope i can load the library in jcreator. but the libarary for this book are classes files , it do not have jar file for it . the jcreator do not read these classes . i do not know why ? i am wonder if there any one run these code before can give me some idear .
    thanks so much .
    the code u can get from this link.
    http://www.manning.com/books/barrilleaux/source
    thank you for u to have a look for me .
    regards
    xiaocui

    <h2>{color:red}CROSS POSTED{color}</h2>
    [t-5289810]
    Cross posting is rude.
    db

  • Can we use applets as user interfaces with sockets, RMI and J2EE

    Dear Sir or Madam,
    Since I am a TA for software architecture class, some one ask me the following question: I think the answer is "No" based on the document on http://java.sun.com/sfaq/
    How I answer the quesions? Looking forward your help!!!
    1.You may have 2 applets and 2 html files. One applet with one html file may stay at a client PC and run on this PC, and the other applet with the other html file may stay at a server PC and run on this PC. In this case, all the applets are run locally.
    2.Could applets works with sockets, RMI and J2EE?
    3.Can we use applets as user interfaces with sockets, RMI and J2EE?
    Thank you very much!
    Best regards,
    Jing

    The scenario you paint doesn't quite make sense. The "server PC" wouldn't be running an applet, normally, since applets are by definition in a web browser page, and most likely involve user interaction, and "server processes" generally are done without user interaction.
    The security rules around applets are that -- by default -- applets can connect with sockets ONLY to the server from whence the applet was loaded. RMI uses sockets (J2EE is too broad a spec) and hence RMI calls would also be limited to the server from whence the applet was loaded. Within that limitation, an applet could open all the sockets it wants, so long as they are all on the server from whence the applet was loaded.
    If you want two applets on two different systems to communicate with each other, the simplest way is to have them rendevous through a server process on the server(s) from whence each applet was loaded. Maybe it's PC-a <-> server-a <-> server-b <-> PC-b ...? Or maybe PC-a and PC-b both are talking to the same server.
    The limitation is rooted in the security subsystem. You can specify a policy file and override anything in the security subsystem. That does mean signing the applet and then cajoling the user into agreeing to grant greater levels of security than the default. In such a case you can open sockets more broadly and then PC-a could talk directly to PC-b without going through any servers.
    - David

  • Vi with access via both user interface and external communicat​ion

    Hi,
    Maybe a little bit too general but I'll risk it:
    It concerns a project to stear a tensile machine. Data acquisition is relative straightforward via a few analogue and digital channels.
    The interaction of the operator with the tensile machine can be done at two levels:
    1. Directly via an user interface on the computer next to the machine. Here I would typically use a state machine in combination with event structures.
    2. Remotely,  via TCP protocol. Here different clients (external program, written in C) should be able to connect to the LabVIEW program and send simple commands such as 'read force', 'write force', 'read status', ...
    It is relatively easy to setup a small daemon that accepts TCP connections from multiple clients. Furthermore I would put the commands from the clients into a message queue (using a producer/consumer structure).
    I was wondering what the best method is to allow both the user interface and the external clients to stear the machine (e.g. using an event structure to respond to interactions via the user interface, and create user events from the commands of the clients to access the same actions).
    Steven
    LV8.5

    Hi VPS,
    one way could be to build your TCP receiver in one while loop and your event structure in another while loop. if you want to send a command from the event structure you can send this over tcp to the TCP receiver.
    Another way could be to use a queue or notifier to send the commands from the event structure and the TCP receiver to another while loop which work with the received commands.
    Mike

  • How can I make a flash user interface with buttons to open up and navigate other flash files?

    Hello I would like to make a user interface that will serve as a tool to load and unload other flash materials like a slideshow. I would like to make a kind of slideshow with Flash that opens up other flash files which could be around 10-15 slides (frames) long each. I would want to ask if there is any way to make a link between navigation and other slides easily. And if there are ways, what action codes should I use for this. Thank you very much.

    All you need to do is load a swf into the main swf and target it with whatever controls you intend.  If you are using AS3 then you could use the Loader class to load the swf and then target the Loader.content with your control buttons.

  • LabView user-event from external dll source

    Hi!
    I'm dealing with the following issue:
    I use a CAN sniffer device, wich sends data over USB to a PC. The main goal is to create a vi that can process the incoming data. I already have a vi wich works with polling mechanism. It calls external DLL functions with the "Call library function node". The main problem is the polling mechanism.
    I would like to recreate this vi so that it would work event-driven. I have an other application, written in C++, that does the same thing, and it gets interrupts from a DLL, when a new data is available in the input buffer.
    The callback mechanism is implemented in the DLL.
    In LabView I would like to do tha same thing. There is the "event case structure", but there is no option for defining such user-events, that i would prefer.
    I have found a similar topic, there the solution is "occurrences". The occurrence is called from a DLL, too. But this solution uses the "waiting for occurrence to set", that is an endless-loop-like thing.
    The other thing I've found is the ActiveX and .NET events. I don't know, probably that is the solution.
    Anyway: is there a possibility to create such events, that can be generated from a simple external DLL and can be handled by "event case structure"? How should I do this?
    Or how NI does this? I mean that NIs DAQ cards must use some similar methods for data processing. Is there some tutorial or support about it?
    Thank you for your answer!

    2716jag wrote:
    Hi Wiebe,         From your answer i have a doubt that What it exactly means "If the dll is used from within LabVIEW". Also i want to know Is there any way to access the functuions defined in the .SYS file in Labview Environment. Regards,Jagan Can you be a litte more specific with your first sentence. I have no good idea what you mean. A .sys driver is usually a kernel device driver. This driver has to be started and run in the kernel subsystem which LabVIEW can not access directly. Such a driver is initialized using the CreateFile() Windows API. The returned handle is then used with other API functions such as ReadFile(), WriteWile(), DeviceIoControl(), and finally CloseHandle().Theoretically you could call all this APIs directly from within LabVIEW using the Call Library Node. In practice you do not want to do this even for fairly simple kernel drivers since the parameters for those APIs do get fairly complex in most cases, and you usually do also want to have some sort of asynchronous operation using events or such to make the driver access user friendly. All these things are most easily handled in a user space DLL written in C that exports a more LabVIEW friendly API that you can then import into LabVIEW using the Call Library Node. Usually most kernel device drivers do come with a accompagning user space DLL already, as this is the only sensible way of accessing such a driver. So you can usually look for the documentation of that user space DLL API and go from there trying to import that into LabVIEW using the Call Library Node. Even then it may not be easy at all if that API uses complicated function parameters and even completely impossible if it uses callbacks or such, requiring you to write a so called wrapper DLL that translates between the native API and a more LabVIEW friendly API.  You don't have to believe me but I can guarantee you that if writing such a user space DLL or wrapper DLL is beyond your capabilities, trying to go directly about accessing the Windows APIs in LabVIEW to access a kernel device driver is going to make you squirm in real pain. And those knowing how to write such a DLL would never even consider spending the time to try to access a kernel device driver directly from LabVIEW. Rolf Kalbermatter

  • Modern User Interface with PB12.5/PB12.6 Classic

    Hello all,
    we want to modernize  the user interface to our PB applications, so that it will become state of the art. We are using PB12.5/12.6 Classic with PFC.
    - What possibilities do we have to do that?
    - I have found the "PB Ultimate Suite": does somebody have experience with that product?
    - could somebody post screenshots of modern PB user interface, respectively user interfaces created with "PB Ultimate Suite"?
    Thanks for your answers.
    Best regards
    Heiko

    Hi Heiko;
      FWIW: I like to build my own controls using either Custom User Objects and/or DataWindows. This gives you exact control over the design of menus, tool bars, controls, etc for any application. It also makes them 100% upward compatible to newer PB and MS-Windows versions.
        For example, I have a UO that emulates Tab Pages and was initially written back in the PB 4.0 days. It still works perfectly in PB 12.6. I can also use this control in Appeon Web 2015 and it renders perfectly in either the Safari, IE, FireFox, or Opera web browsers. The control also works perfectly with Appeon Mobile and renders perfectly on either the iOS or Android devices. All I have done recently is given the UO a sharper Tab Page look & feel like you see in Ultimate Suite.
       Of course, this assumes that you have some time to code and test your own suite of UO/DWO's that give you the look & feel your application is looking for. If you don't have the time or the need for various environmental support other than native MS-Windows - then the PB Ultimate Suite is a great investment!
      Here is a real web application that I just put into production last December. It uses UO's and DWO's exclusively to give the application a CLF web standard look & feel (FYI: Common Look and Feel - Wikipedia, the free encyclopedia ).
    PS: The UO's also work great with Webform, Winform and PB.Net (WPF) based applications as well. So I think that speaks highly that your initial investment can move you into the future no matter where PB goes!  
    HTH (Just my $0.02)
    Regards ... Chris

  • How can I display step info in User Interface with Tracing Disabled?

    I'm trying to modify the CVI Operator Interface application to update the execute panel with some step information during the execution of the program. i.e. I want to display the measurement, high & low limits during the run WHEN TRACING IS DISABLED. (Doing this, when tracing is enabled is easy, all you do is access the step record that's been constructed (I can cope with that!))
    I've successfully implemented a User defined execution event to signal the User Interface application when the current step is a result (using TS_UIMsg_UserMessageBase etc. I'm posting a UI Message in the Process Model under the ProcessModelPostStep so that I will only display if its a result step.) I've added a user defined
    entry in the execute.c module execution event switch statement which will call a function in the exedisp.c module to update the display. However, I don't have a context to the step that I can use. (I can't use e.g. the exeRec record since this is only completed with the context if tracing is enabled.) I've got a handle to the correct panel to write the information to, but how do I get the context to the current step when tracing is disabled?
    Regards,
    Brian

    Hi,
    no problem - btw, if you wanted to acheive this in TS 1.x, you could always write to a local variable with the ActiveX reference for the step concerned, and then use the msg reference that you have in the OI within the UI Message handler, to dig through to the Execution ->Sequence File->Sequence->Locals, or Execution->Thread->SequenceContext (and you can get almost anywhere from that).
    Hope that helps
    S.
    // it takes almost no time to rate an answer

  • How to create Labview User Interface with buttons?

    Hello,
    I try to create a user interface, where the TestStand sequencies can be selected one by one not only Test UUT, Single run and run Mainsequence (about 20 buttons needed).
    I'm playing with the simple UI shipped with TS and can load the sequence file and run automatically a sequence (Main or another).
    How can I create and assign buttons to all sequence files in my TS project?
    Any help would be appreciated.
    Thanks. (TS 4.0, LV 8.0)

    I've modified my main VI with the below steps.
    I still don't know how to create and assign front panel buttons to the user interface.
    Anybody could explain to me how do I need to modify the attached part of my main vi and how to assign buttons.
    Thanks.
    Attachments:
    InteractiveArgs_2.png ‏12 KB

  • User Interface with variables in BPS0

    Dear All,
    We are planning for selective retraction using user defined variables assigned at planning level.  It is working well in BPS0 transaction.
    But, we want to have a front end to be given to the user other than BPS0 tcode to execute this.
    We have tried to create Ztransaction by calling  SAP standard function module 'API_SEMBPS_FUNCTION_EXECUTE' in an executable program .  The pop-up window that comes for inputting variables in BPS0 doesn't come here.
    Also, please let me know if there is any other approach to give a user interface other than a Ztransaction code.
    Thanks in advance.
    Regards,
    Srini.

    hi,
    I have created a variant for my planning folder.
    In SE93, when I create a custom transaction, I have selected the option 'Transaction with Variant'.
    I have given the transaction code as UPSPM and for the variant  when I press F4, it gives 'No variants for this transaction'.
    Any views?
    Regards,
    Srini.

  • Controlling Leopard user permissions with launchd-user.conf

    INTRODUCTION:
    For the uninitiated OS X file permissions are still being developed and documented. In the meantime some default permissions are not prudently set, eg new items created by users grant read access to 'everyone'.
    There is growing interest in the use of a launchd-user.conf file to control the default permissions for all users without endangering system performance in the way which launchd.conf can do. This is documented by Apple for OS X Server at http://support.apple.com/kb/HT2202 although it also works for my non-server Leopard installations.
    PROCEDURE:
    The following Finder based procedure is adequate:
    1 - Create a new text file containing:
    umask 077
    2 - Set its permissions to:
    user (Me) - Read and Write
    everyone - Read only
    3 - Name the file:
    launchd-user.conf
    4 - Use the Finder's 'Go to Folder' command to open:
    /etc
    5 - Put the new file in the 'etc' folder - you will be asked to authenticate this step.
    6 - Restart.
    7 - Test for at least two users. All new items created by Users should now have the following permissions:
    user (Me) - Read and Write
    everyone - No Access
    8 - If you want to undo the above you only have to remove launchd-user.conf from /etc and restart.
    DIFFICULTIES:
    The common reasons for the above not working first time are:
    A - Incorrect file name - at least one site got it wrong
    B - Use of Log Out - Restart is necessary for this
    C - Incorrect permissions for launchd-user.conf - 2 above works and so does replacing 'everyone' with 'staff' although this can be slightly more tedious in the Finder.
    WARNINGS:
    The few users who use Root access will find that this fails to alter anything for them, ie new items created by Root will still have the original default of: 'everyone - Read only'.
    I anticipate that this procedure will stop 'Public' and 'Sites' folders from functioning as intended so if any user requires these you may need a more elaborate approach.
    GOING FURTHER:
    I have also asserted equivalent permissions by selecting 'Apply to enclosed items' for each user folder. This is irreversible and you are strongly advised to backup before attempting it particularly as any pitfalls may not be evident for a while. I have not, so far, experienced the difficulties described at http://discussions.apple.com/thread.jspa?threadID=1788541 but you are advised to read it.
    QUESTIONS:
    X - Is there a satisfactory way of doing the same for Root users?
    Y - Is there a simple way to reinstate satisfactory defaults for 'Public' and 'Sites' folders?
    Z - Since I started playing with OS X about two years ago I have often thought that I would prefer all permissions to be controlled solely by the directory address of folders. Can this be done with Leopard and if so how?
    RELATED LINKS:
    At the time of writing there were only 12 related links at:
    http://www.google.co.uk/search?num=100&newwindow=1&q=%22launchd-user.conf%22&lr= lang_en

    François L wrote:
    Neville Hillyer wrote:
    Y - Is there a simple way to reinstate satisfactory defaults for 'Public' and 'Sites' folders?
    On http://www.apple.com/support/security/guides/?aosid=p204&siteid=982861&program_i d=2701&cid=OAS-EMEA-AFF&tduid=04ef3a9b9d2b80c382ed275fbba9df74,
    you can get the +Mac OS X Security Configuration Guide (2nd Ed)+,
    and page 135, you can read :
    "To change the global umask file permission:
    1 Sign in as a user who can use sudo.
    2 Open Terminal.
    3 Change the umask setting:
    $ sudo echo “umask 027” >> /etc/launchd.conf
    This example sets the global umask setting to 027.
    changing umask by modifying /etc/launchd.conf is a very bad idea IMO and should be avoided. that security guide is outdated. 10.5.3 introduced the ability to change umask for users only by modifying /etc/launchd-user.conf as mentioned by the original poster and in the KB article that he cites. Changing umask by modifying /etc/launchd.conf changes it for absolutely everything including all system files and operations. this would pose a huge security risk if one chooses a more permissive umask than the default one and potentially make the system unusable if the umask is set to be too restrictive. apparently 027 umask mentioned in that article is safe to use but I wouldn't want to test the limits.

  • User interface with Netflix is clumsy

    I just got Apple TV so I could watch Netflix in HD instead of SD using the Wii. I am very surprised that Apple TV has such a cumbersome navigation when using Netflix. Using a Wii it was relatively easy to read what a movie was about without having to click the icon and going one level deeper. In the Wii one could browse, get a quick look, save and then move one. Apple TV does not have the year a movie was made, which is a really nice thing to know about a movie, the text is really small and so are the movie icons. If you are interested in a series, you can not even see how many segments are in the series. You have to scroll down the entire list to know. On the Wii, certain TV series gave a brief synopsis, Apple TV does not. I just find the whole Apple TV experience less intuitive, less informative and not as functional as the Wii set up. I am disappointed in the UI.

    hi,
    .For every proj in RT may contain host and target vis, you try  building   a Host vi to meet ur need,i.e use FPGA interface functions to build ur vi..u can get all the controlls and indicators in the FPGA read write control .
    Still if u r not clear ,pls check with the examples
    thanks&regards
    Senthilnathan

  • Using Testexec user interface with test stand

    Hi,
    I want to use the testexec UIR (from cvi) with my Test Stand sequence. My goal is when this operator interface is opened directly, the specified sequence opens automatically.
    Any suggestion!
    Best Regards,

    You can approach this 2 ways:
    1- Hard code the name and path of the sequence file into the CVI code and rebuild testexec.exe.
    2- Associate .seq files with testexec.exe such that when someone clicks on an .seq file it opens in the UI.  Then place a shortcut to your sequence file on the desktop and have users start it by clicking on that.
    I recommend 2.
    As a side note: By default a UI will open the last sequence file that was opened.
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

Maybe you are looking for

  • Ipod 4th gen affected by ios6

    i have had my ipod 4th gen for 11 months and recently it had started to play up and so i went to the apple store who agreed and replaced it with a new one which i was unable to pick up until the day after the launch of the new iphone as they had run

  • Improving Intel X1300 Video playback

    Hey all. I was wondering if you could help me. At the moment my video playback in Arch Linux is not as good in Ubuntu. As ubuntu has the 'Configured Device' etc in the xorg.conf, I cannot see what settings I have for my GPU. I have compiz enabled, I

  • "Authorize" on Flickr export plugin doesn't open browser

    I'm trying to authorize Lightroom to export to my Flickr account, but when I click "Authorize" nothing appears in my browser. I am using Lightroom 4.1, and upgrading to 4.2 RC1 didn't resolve the issue. I've tried clearing my temporary files and re-i

  • Roles in ora_aspnet_sitemap table

    Hi All. I'm trying to use the Oracle sitemap provider and my menus show up perfect right until I set securityTrimmingEnabled true. Then no menu items show up. I can see that ora_aspnet_sitemap table has a column called roles where I wrote everything

  • Book won't delete

    Ok I downloaded a text book called Creative Writing off the ibooks store from iTunes. i synced it with the ipad but it won't launch. At first I got the text book with a full blue bar(download bar) , but it wont launch. I restarted the iPad then I got