How do I maintain control of my form?

This is a bit "wordy", but here is the scoop. I'm using Microsoft Visual
Studio for VC++ in Windows 2000.
I made an application which had no form in it. So when I ran the
application, I just got a DOS box that showed some progress info. I then
decided to add a form... So I made a new application and started with
creating the form. Then I copied and pasted cpp code into places where I
thought they should go - leaving out the stuff that would print to the DOS
box. Pfff.....
The program works, but as soon as it gets into the meat of the real
application, I lose control of the form and can't change things.
Now... it is very likely that this may be due to the fact that the real
application is running all over the place and doesn't have time to bother
with the form - but I really think I should be able to get back to the form
so I can change things on the fly.
I should let you know that I'm using an SDK. I've noticed that the form
creates an area in the .cpp with event handlers - but my application uses
event handlers involved with the SDK. These event handlers are not active
until I hit the "Connect" button - and that is when I lose control.
I'll try to be a little more exact. I'm using the 3d chat - Active Worlds
SDK. The form takes information from two ini files and loads it. I hit the
connect button, it connects and the application runs fine - but I have lost
my form control at that point. Funny thing... before I hit connect - I
can't close or minimize the form yet I have control of the edit boxes in the
form and can load and save to ini files - but after I hit connect, the
minimize and close functions work, yet I can't get to the edit boxes. I
think the basic code is good - I just got some stuff out of place or I'm
missing a message somewhere along the way.
Got any clues?
Maybe I should have the real application separate
from the form? As it is right now, the real application is in the form
..cpp - the form .cpp does not call up the real application because it is
already there. I think that is my problem... but I don't know how to run
another .cpp from the form. I hope I am making sense here... Should I
study up a bit more on resourcing stuff? Thinking to myself... the form
should be running in one section of memory - and the application in another.
When I change the form, the form sends a message to the application and the
application adjusts itself. As it stands right now, since the main
application is in the form, the form code is ignored once the connect button
is hit. If I am correct, or if you have other suggestions, please give me a
hand here.
P2

P2,
Are you developing an MFC application or a standard Win32 project?  For an MFC application, the project should automatically be set up to handle messages which would respond to your UI interactions.  For a Win32 application, you must ensure that you have a message dispatch loop.  The following link has a good description of the Message Loop:
http://www.winprog.org/tutorial/message_loop.html
It may be that you are performing some operation that takes a very long time so the Message Loop handling (either in the MFC or Win32 app) is not being called often enough.  In that case, you must see if it is possible to break up your operations so that the Mesasge Loop is still handled.  A good way to take care of this is to fork a separate thread for the heavy operations to take place in.
If this is not related to the use of Measurement Studio controls, you may get a better or more detailed answer if you post this question on a generic Windows programming forum.
Thanks,
Tyler Tigue
Applications Engineer
National Instruments

Similar Messages

  • Query about use activex control in Developer form

    I'm an oracle developer and My name is milton datta.I cant' use activex control in forms.Pls. anybody would help me how to use activex control in developer forms.If possible provide me with some examples.
    my email address is [email protected]

    Download the Oracle Forms demos and you'll see a sample.
    Also read the documentation for Oracle Forms 6i the developer guide has a section about Active/X.
    Just remember that they will not work once you take your Forms to the Web. So think twice before you use them.

  • How we will maintain screen resolution for tmaintaining able control in BDC

    how we will maintain screen resolution for tmaintaining able control in BDC. can you give the code or how we have to set it

    Hi,
    You need to use the CTU_PARAM options with the call transaction method.This is used if you would like to do a commit work once call trnasaction is done. This has also got very important property, for example if your Screen resolution is different from others then the screen (Application) will be different that is you'll be having say 5 lines in your screen where as your friend will be having 8 or 10 so your program might fail in this case. If you set variable DEFSIZE as 'X' it will always use the default screen size and hence avoids error.
    Use CALL TRANSACTION 'XXX' OPTIONS FROM w_ctu_params.( type CTU_PARAMS)
    This structure contains the follwing.
    DISMODE : Display mode (like the MODE addition)
    UPDMODE: Update mode (like the UPDATE addition)
    CATTMODE: CATT mode (controls a CATT)
    CATT mode can have the following values:
    ' ' No CATT active
    'N' CATT without single-screen control
    'A' CATT with single-screen control
    DEFSIZE : Use default window size (Here we are handling those transaction by giving default window size)
    RACOMMIT: Do not end transaction at COMMIT WORK
    NOBINPT : No batch input mode (that is, SY-BINPT = SPACE)
    NOBIEND : No batch input mode after the end of BDC data.
    The components DEFSIZE , RACOMMIT, NOBINPT, and NOBIEND always take the following values:
    'X' Yes
    This might help u in better understanding...
    Re: regarding bdc
    Re: ctu_params
    Regards
    Sudheer

  • How can we run and control live images form a camera plz help

    hi
    i want to now how can we run and control live images form a camera on to a aaplet.what technologyi used for this project . u can check the url http://www.jal.co.jp/en/live/ as a demo.plz can anyone guide me.how to start and which technologies to use,
    regards
    sheetal

    Hi,
    You can try a package named: JTwain, which is available at http://asprise.com/product/jtwain.
    JTwain supports all kinds of digital cameras and scanners. You can use Java to access, contorl digital cameras and scanners, and of course, to acquire images with flexible settings.
    The developers' guide is available @ http://asprise.com/product/jtwain/devGuide.php
    In the simplest case, one line of Java code can solve your problem.
    Good luck!

  • How to Maintain Control Code Field in Foraign Trade Export Tab.

    Hi All,
    How I Maintain Control Code Field in Foraign Trade Export Tab. U can check this field with executed MM02 and Tab "Foraign Trade Export Tab"
    How I  add one more value in masters.Where is the screen and what is the T-code or Options for maintain the above data.
    Urgent
    Thanks all,
    Tapovardhan

    Hi
    I just checked the Documentation and it is for Poland. This might not be useful. Try the T-code that I had given or the path is SPRO->SD->Foreign Trade/Customs--->Basic Data for Foreign trade and Define comodity codes/Import codes by country.
    Please reward if this helps.
    Thanks

  • How to print page numbers in adobe form

    Hi,
    Can anybody tell me how to print page numbers in adobe form.
    Thanks in advance
    Chaitanya

    Hi,
    Yes the field page n of m is used normally for printing page numbers. But it won't display the current page of total pages by itself. You have to set the run time property to n (current page ) and m (Total number of pages). Carefully select the # (current page ) and ## (Total number of pages). Hope this works for you.
    My requirement is to have the user control on current page. For Example:
    Example for a Invoice with 5 PO items (stands on 2 pages) :
    1st  page is the letter : no page number
    2nd page is the 1st page of the 1st copy of the invoice : we should read u201C1 / 2u201D
    3rd page is the 2nd page of the 1st copy of the invoice : we should read u201C2 / 2u201D
    4th page is the 1st page of the 2nd copy of the invoice : we should read u201C1 / 2u201D
    5th page is the 2nd page of the 2nd copy of the invoice : we should read u201C2 / 2u201D
    Presently i cam getting the current page number for page 4th as 3 / 2 and for 5th page 4 / 2. I could able to control the total number of pages from print program. But when i am printing the second copy (4th and 5th pages), I couldn't able to control the current page number. I need to initialize the Current page count (4th page ) as 1.
    I have used the follwing java scripting:
    this.rawValue = wv_pages - xfa.layout.page(this)
    where wv_pages is total no of pages calculated from print program.
    Please help me in this regard with some formcal or java scripting conditions.
    Thank You,
    Regards,
    Naresh.

  • SharePoint People picker control in Windows form

    Hi All,
    I have a requirement wherein, I have to create an outlook add in to save data into sharepoint list. I have created a sample outlook add in to save the data into sharepoint list (all columns are of text) using windows form and it works fine. However there
    is one field in form which requires people values to be picked from AD and saved to sharepoint list.
    I have browsed the net but could not find any useful information. Is it possible to use OOB people picker in windows form? If not what are the other ways to achieve people picker functionality in windows form.
    Thanks in advance.
    Regards,
    Vinayak

    Hi,
    The
    PeoplePicker control is part of the Microsoft.SharePoint.dll, it will only work on SharePoint hosted pages. 
    Here is a link about how to use PeoplePicker control:
    http://karinebosch.wordpress.com/sharepoint-controls/peopleeditor-control/
    Anyway, you can fetch Active Directly users as the link below:
    http://www.codeproject.com/Tips/599697/Get-list-of-Active-Directory-users-in-Csharp
    Best regards
    Patrick Liang
    TechNet Community Support

  • How can I maintain multiple white spaces in a PDF written from InDesign?

    I need to have 2 white spaces maintained (within a part #) in the PDF I write, but when I open in Acrobat it converts it to one space.
    I've tried word spaces, set spaces and applying "no color" to a placeholder character and nothing is working!
    Any ideas or suggestions?

    I am talking about normal white space. Multiple fixed widt spaces are not a problem. How the space is handled in a PDF depends on how it is created.
    Viele Grüße
    Wilhelm Georg Adelberger
    Von meinem iPhone gesendet
    Am 21.08.2014 um 12:01 schrieb Peter Spier <[email protected]>:
    How can I maintain multiple white spaces in a PDF written from InDesign?
    created by Peter Spier in InDesign - View the full discussion
    It may not be a great idea to use multiple spaces, but it certainly is not prohibited and sometimes is necessary -- you might want a 2em space, or a thin space before and after a tab you underline in a form.
    I'm able to select the multiple spaces just fine in Acrobat 9 using the text touch-up tool.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6661037#6661037
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in InDesign by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Version Control for adobe forms

    Dear All,
    We have a situation where we already go live with version 0 of our adobe form. Now, we have an enhancement to the form i.e.: some new functionalities and new field. Previously we have tried to transport the new changes to the production without any version control and those processes that have been already started prior to the new changes encounter error when the user continues the process.
    I am wondering how do the version control works and any documentation on how to configure it?
    Thanks in advance
    Regards,
    Bryan

    Hi Brian,
    Here is some information that I found in the IMG on Create ISR Scenario...
    Create ISR Scenario
    Use
    In this IMG activity, you create an ISR scenario that has a one-to-one relationship with a form scenario. To be able to use a form scenario in a process, one ISR scenario must exist for each form scenario. The ISR scenario and the form scenario must be linked with each other. You make this setting in Customizing for HR Administrative Services in the IMG activity Link ISR Scenario with Form Scenario.
    In the form scenario, you define primarily the basic set of form fields and their processing through the backend services. In the ISR scenario, you specify the definition of the user interface. You also specify which form is used for the display and how the layout of this interactive form is designed. You use interactive forms based on Adobe software to create and process the forms.
    ISR scenarios and form scenarios are version dependent. The version numbers of the ISR scenario are assigned automatically. Note that a form scenario must have exactly the same version as the linked ISR scenario. For this reason, you should always create a new version in the ISR scenario first and then use the same version number when you create a version in the form scenario manually.
    Note
    If an ISR scenario or form scenario (with an existing version) has already been used in a productive process, you should not change the configuration. If you want to make changes to a process or an ISR scenario or form scenario, you should always create a new version, and only ever use that new version in the future. In this way, processes that have been started can be concluded with the old version and new processes can be started simultaneously with the new version.
    This is from the Create Form Scenario documentation...
    Create version
    Form scenarios are version dependent, which means that there is at least one version of each form scenario. Versions are linked with processes. Since processes can vary, you must also be able to adjust the associated scenarios. To be able to provide different forms for process variants, you create versions.
    You can still process and change an existing version at a later point in time. Once a version has been used to execute a process, you should not make any more changes to this version; instead, you should create a new version.
    The form scenario and the (linked) ISR scenario are both version dependent. They must always have exactly the same version numbers. Note that the version number of the ISR scenario is generated and cannot be entered manually. When you create a new version in the form scenario, you therefore have to use the version number generated in the ISR scenario.
    If you have already made extensive Customizing settings for the form scenario and want to create a new version based on the settings, you should use the IMG activity Manage Form Scenario.
    Hope this helps...
    Cheers,
    Kevin

  • How do I maintain a single iTunes library for two separate iMac user accounts?

    How do I maintain a single iTunes library for two separate iMac user accounts?...without having to manually do something every download?

    Pardon me, I am brand new at using an iMac.  I understand the concept but I don't know exactly how to "move" the library.  I found a shared folder under users on the hard drive.  If I move it, won't I have to redirect each iTunes user to the new shared location?
    If I point iTunes to anything other than the music folder under that user name, it shows as a "shared library".  Preferences still shows it as that users library, regardless of where the advanced gear button says it is pointing to.
    Am I asking for too much to have each user control the exact same music files, apps and playlists?  I just want the two different itunes sessions to mirror each other without any frequent updating or copying.
    We use the same id for itunes music and apps so we could just sync all devices under one iMac user id and not use it under hers.

  • How we can maintain challan qty in receiving

    Hi !
    I want to maintain the challan qty along with the received qty, accepted qty and rejectect qty.
    Example,
    invoice /Challan have 10 no of pens (Challan qty= 10)
    actual received qty is 8 no. 2 piece are shortage (received qty = 8)
    out of 8, 2 no of pens were found defective (2 no rejected, rejected qty=2). Hece after inspection 6 no of pens accepted (accepted qty = 6) and 6 no of pens goes to inventory also.
    In standard receving form how i can maintain the challan qty ? In this case that is 10 no of pens.

    Saroj:
    From what you have described, you can use a Quality Plan. The plan would need to include the columns you mentioned and require the input of the different values mentioned.

  • Active x controls in oracle forms 11g

    I have read a post regarding, the embeding of active x controls in oracle forms. Can anybody explain it in detail, tat how it can be done on Oracle forms 11g. My database is also 11g. And please explain how to draw activex control on canvas, coz i cant find any icon related to it on tool palette. please help me...
    Regards
    Vibin

    Vibin,
    Welcome to Oracle Forums!
    Please acquaint yourself with the FAQ and forum etiquette if you have not already done so.
    >
    I have read a post regarding, the embeding of active x controls in oracle forms.
    >
    You must have read some post of a client-server version of Forms. It is always better to post the link that you are referring to
    Can anybody explain it in detail, tat how it can be done on Oracle forms 11g. My database is also 11g. And please explain how to draw activex control on canvas, coz i cant find any icon related to it on tool palette. please help me...In web forms you use (Java) Beans.
    Cheers,

  • Using OCX controls in oracle forms 6

    Hi,
    I wanted to use the ocx control (filenet idmviewer control) in my forms. I imported the control using the ole importer. But i dont know how to reference it or so to say, how to use it to access my documents in the repository.
    Any help would be very much appreciated.
    Thanks

    Hi,
    Thanks for your info. I tried that. But i could not complete. It gives me compilation errors.
    If you have any sample apps. can u forward it to me?
    Balaji

  • How to change IDoc control record

    Hi all,
    How to change the control record of the ORDERS (purchase order) outbound IDoc? The partner type and partner number is always the logical system. I want to change it to other partner type, e.g. KU.
    Is there any user exits availalbe?
    Thanks!
    Regards,
    Hui

    Hi,
    <b>Option-1</b>
    User user-exit<b> EXIT_SAPLEINM_001</b> of <b>enhancement MM06E001</b> to change the control record.
    But make sure that whatever control record you put here, there should be a corresponding partner profile exist in partner profile ( WE20 ).
    <b>Option-2</b>
    You are saying that you are always getting 'LS'. This is  because the output type is only configured with partner function 'LS'. We are using Purchase order idoc and we generate our all idocs for partner type 'KU'.
    To do this, follow these steps.
    - go to transaction <b>NACT</b>
    - enter application 'EF' and select 'maintain'.
    - select the output type you are using in PO for EDI.
    - with this output type selected, select "partner functtions" from left hald side options.
    - Hit "new entries" button on the top
    - create an entry with, MEDIUN = 6 (EDI) ; Funct = VN ( vendor )
    - Save your settings and come out
    - Now on WE20, remove the partner profile you have created under partner type 'LS' and instead create a same partner profile for your vendor under partner type "KU".
    Now it is upto you to decide, either to user the user-exit i have mentioned to change the control records OR create a outout config and partner profile for "KU".
    Let me know if you have any question.
    Regards,
    RS

  • How to use table control in LSMW

    Hello All,
    I have requirement to use LSMW , in my using transaction have table control ,I need to pass values in table control . how to use table control in LSMW .Can any one give me the solution for this.
    Best regards,
    Satya.

    Note: The recording function records a fixed screen sequence. It cannot be used for migrating data containing a variable number of items or for transactions with dynamic screen sequences!
    Tip: It is possible to create a recording via SHDB, generate a program out of this recording, and adopt the program to your needs and registrate the program to be able to use it in LSMW.
    That’s means, for creation of project and WBS Elements is not possible through
    1. LSMW-BDC (For both CJ01 and CJ20n)
    2. LSMW-BAPI (Method: Maintain is not listed )
    3. LSME-Standard Batch Direct Input.
    It’s possible through programmatically(SE38.) either using BAPI Or BDC.
    Thanks,

Maybe you are looking for

  • Can I use a LCD Hdtv as a monitor?

    I am in the market to upgrade my system to edit DVCproHD content using FCP6 and would like to upgrade my monitor to view the HD content in all it's glory. Thinking about the apple 23" HD display but was wondering if I put down all that cash for a app

  • Mail app crashes when moving email into a folder

    Hi, I have an iphone 3GS, with a few email accounts, using Google premier mail (exchange), been fine for a year,now when I read and email and try to place it into a folder, as soon as I press on the folder icon, the app closes and returns to the home

  • How to get the date/time of flush shared_pool commands?

    I think there´s some script, which in been runned with a privileged user, that is recurring flushing the shared_pool. Is there a way to know the last date/time when an 'alter system flush shared_pool' was issued? Or, better, how can I tell Oracle RDB

  • Error in bdc programing code-pls help

    hi friends,             I was tring to do a bdc program.But it shows me an error. MY bdc program is jus to upload a 2 fields in vendoe master table. That is LIFNR,NAME1 field for the new vendors. I worked out an execl sheet for this, and jus copied i

  • Hi i have hp pavilion DV 7 when i plug to tv i cant find the hdmi connection to my computer help

    hi  i i have hp pavilioondv 7-1428ca,when i bought this the hdmi worked in my tv but after format and then installed the window 7 now i have no sound when i plung my hdmi cable to tv, even it not showing to my sound menu.please helpme how to fix this