CommandButton -- inside panelGroupLayout and without pGroupLayout. Skinning

There are two cases. af:commandButton inside a panelGroupLayout and af:commandButton alone.
Case One:
<af:panelGroupLayout id="pgl1" styleClass="inside">
<af:commandButton id="ot1" text="Inside Panel Group Layout"/>
</af:panelGroupLayout>
Case Two:
<af:commandButton id="ot1" text="No Panel Group Layout" styleClass="along"/>
The CSS file has "inside" and "along" classes defined.
/* For Case One: */
.inside af|commandButton:text-only {
background-image: none;
font-family: 'Trebuchet MS';
font-size: 1.1em;
color: #fff;
height: 30px;
background-color: #DC4435;
padding: 0px 7px 0px 7px;
border: 1px solid #DC4435;
margin-right: 1px;
font-weight: bold;
cursor: pointer;
/* For Case Two: */
af|commandButton.along af|commandButton:text-only {
background-image: none;
font-family: 'Trebuchet MS';
font-size: 1.1em;
color: #fff;
height: 30px;
background-color: Aqua;
padding: 0px 7px 0px 7px;
border: 1px solid #DC4435;
margin-right: 1px;
font-weight: bold;
cursor: pointer;
Case One works and new skin is applied to commandButtons inside PanelGroupLayout.
Case Two doesnot work. Skin is not applied to the commandButton having StyleClass "along". What is wrong with case Two?

Hi.
for case two.
af|commandButton.along:text-only {
background-image: none;
font-family: 'Trebuchet MS';
font-size: 1.1em;
color: #fff;
height: 30px;
background-color: Aqua;
padding: 0px 7px 0px 7px;
border: 1px solid #DC4435;
margin-right: 1px;
font-weight: bold;
cursor: pointer;
}it´s works

Similar Messages

  • PanelFormLayout Alignment inside panelGroupLayout

    Hi
    Following is the code of my jsff page. It has a panelGroupLayout in the top with two panelHeaders. Each of the panel Header has a panelFormLayout inside it.
    When i run this page, the panelFormLayout dont align with each other.
    Please suggest a method to fix this.
    Thanks in advance.
    Code starts here ----
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:f="http://java.sun.com/jsf/core">
    <af:panelGroupLayout id="pgl1" inlineStyle="pglCompanyProfile"
    layout="scroll" halign="left" valign="middle">
    <af:navigationPane id="npProfN" hint="bar"
    styleClass="AFStretchWidth">
    <af:commandNavigationItem text="Company Profile"
    id="cniCompProfile"
    selected="true"/>
    <af:commandNavigationItem text="User Profile"
    id="cniUserProfile"
    action="UserProfile"/>
    </af:navigationPane>
    <af:messages id="msgs" inline="true"/>
    <af:panelHeader text="Profile Information" id="phProfileInformation"
    partialTriggers="soc1 cbSubmit">
    <af:panelFormLayout id="pfl1">
    <af:spacer id="sp1" height="10"/>
    <af:inputText value="#{bindings.Name.inputValue}"
    label="#{bindings.Name.hints.label}"
    required="#{bindings.Name.hints.mandatory}"
    columns="#{bindings.Name.hints.displayWidth}"
    maximumLength="#{bindings.Name.hints.precision}"
    shortDesc="#{bindings.Name.hints.tooltip}"
    id="it3">
    <f:validator binding="#{bindings.Name.validator}"/>
    </af:inputText>
    <af:inputText value="#{bindings.Address1.inputValue}"
    label="#{bindings.Address1.hints.label}"
    required="#{bindings.Address1.hints.mandatory}"
    columns="#{bindings.Address1.hints.displayWidth}"
    maximumLength="#{bindings.Address1.hints.precision}"
    shortDesc="#{bindings.Address1.hints.tooltip}"
    id="it4">
    <f:validator binding="#{bindings.Address1.validator}"/>
    </af:inputText>
    </af:panelFormLayout>
    </af:panelHeader>
    <af:panelHeader text="Supplier Portal Punch-in Configuration"
    partialTriggers="soc1 cbSubmit" id="pb2">
    <af:panelFormLayout id="pflPunchIn" partialTriggers="soc1">
    <af:spacer id="sp3" height="10"/>
    <af:selectOneChoice label="Supplier Portal" id="soc1"
    autoSubmit="true"
    inlineStyle="vertical-align:middle; text-align:center; white-space:nowrap;"
    value="#{pageFlowScope.ProfilePageBean.supPortalValue}"
    valuePassThru="true"
    valueChangeListener="#{pageFlowScope.ProfilePageBean.supDropDown}">
    <f:selectItems value="" id="si1"/>
    <af:selectItem label="ISP" value="ISP" id="si2"/>
    <af:selectItem label="ESP" value="ESP" id="si3"/>
    </af:selectOneChoice>
    <af:inputText value="#{pageFlowScope.ProfilePageBean.ispMessagingUrl}"
    label="#{bindings.MessagingUrl1.hints.label}"
    required="false"
    columns="#{bindings.MessagingUrl1.hints.displayWidth}"
    maximumLength="#{bindings.MessagingUrl1.hints.precision}"
    shortDesc="#{bindings.MessagingUrl1.hints.tooltip}"
    id="msgurl"
    rendered="#{!pageFlowScope.ProfilePageBean.boolEsp}"
    partialTriggers="soc1 cbSubmit">
    <f:validator binding="#{bindings.MessagingUrl1.validator}"/>
    </af:inputText>
    <af:commandButton text="Test iSP URLs" id="cbTestiSP"
    rendered="#{!pageFlowScope.ProfilePageBean.boolEsp}"
    partialTriggers="soc1 cbSubmit"
    actionListener="#{pageFlowScope.ProfilePageBean.testIspMessagingUrl}"/>
    <f:facet name="footer">
    <!--af:panelGroupLayout id="pgl2" layout="horizontal"
    halign="end"
    styleClass="AFStretchWidth"></af:panelGroupLayout-->
    </f:facet>
    </af:panelFormLayout>
    <af:panelGroupLayout id="pg2" layout="horizontal"
    halign="right">
    <af:commandButton actionListener="#{bindings.Rollback.execute}"
    text="Cancel" immediate="true"
    id="cbCancel">
    <af:resetActionListener/>
    </af:commandButton>
    <af:commandButton text="Submit" id="cbSubmit"
    actionListener="#{pageFlowScope.ProfilePageBean.submitProfile}"></af:commandButton>
    </af:panelGroupLayout>
    </af:panelHeader>
    </af:panelGroupLayout>
    </jsp:root>

    If you mean that the PanelFormLayouts have different label width and different field width, then use the attributes <tt>labelWidth</tt> and <tt>fieldWidth</tt> of the tag <af:panelFormLayout> to set hardcoded equal label widths and equal field widths for both panelFormLayouts.

  • How to open a folder inside a folder, without closing the first?

    I can't find a way to open a sub-folder, inside a mainfolder, without closing the main folder.
    What's even worse, if you hold "option" or "command,"  (old OS9 muscle memory kicking in) it opens the new folder but wipes-out the ability to use the back button!  So then if you needed that main folder open, and it's deep inside some chain, you have to go searching for it again.
    So, is there any fix for this?
    <Edited by Host>

    Problems such as yours are sometimes caused by files that should belong to you but are locked or have wrong permissions. This procedure will check for such files. It makes no changes and therefore will not, in itself, solve your problem.
    First, empty the Trash, if possible.
    Triple-click anywhere in the line below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 -o -acl \) 2> /dev/null | wc -l
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    The output of this command, on a line directly below what you entered, will be a number such as "41." Please post it in a reply.

  • VA01: Creation of SD order with several material codes,with and without VAT

    hi guys,
    could someone tell me how to set up the system to not be able to create an SD orders with a mix of VAT condition?
    We don't want a sales order with an combination with and without VAT.
    Pls advise. Thanks.

    could someone tell me how to set up the system to not be able to create an SD orders with a mix of VAT condition?
    We don't want a sales order with an combination with and without VAT.
    H i
    1.The Vat ( Tax ) is applicable on basis of Customer and Mareial Tax classification.
    2. So as far as material is concerned , group all VAT applicable material in One Division
    Say in FMCG Company
    Divisions are Soaps , Skin Care , Shampoo etc
    Create Sub Divsions say for Eg Soaps-------Soaps 1( Taxable) & Soaps 2 .( Non Taxable ) and acordingly for other divisions
    And then Create Sales Areas accordingly.
    All this will need Reorganisation of your Sales Area
    Regards
    Rohit

  • Want to apply Css to Fields Inside PanelGroupLayout

    I have ADF Fusion Web Application with Jdeveloper 11g
    I have customize skin with my css file
    The Problem i face is that
    All the fields inside panelFormLayout works good with the css i use but when i put them inside panelGroupLayout they differ completely
    This is my css file
    af|panelFormLayout
             font-family: Arial, Helvetica, sans-serif;
          font-size: 12px;
            font-smooth: auto;
            border:solid 1px #6691bb;
            text-align: right;
            background: #f3f9ff;
            font-weight: bold;
    af|panelFormLayout::label-cell 
            font-family: Arial, Helvetica, sans-serif;
            font-size: 12px;
            text-align: right;
            color: #333;
            font-weight: bold;
    }i want to apply this style to all fields insied panelGroupLayout how to make this

    Hi,
    use
    af|panelFormLayout af|inputText { ... }
    if you need to apply this to other components, use the following pattern
    af|panelFormLayout af|<component>{ ... }
    Frank

  • Open discoverer report in new browser window and without connections page

    Hi All,
    We are using Oracle 11g Discoverer 11.1.1.4.  Requirement is to open the discoverer report in a new browser window and without connections page.
    When we are running discoverer reports with this parameters we unwantedly get the connections page of the discoverer plus which we don't want.
    Went through the documentation given in this page and followed it still the issue persists, and i see couple of threads with my issue and no updates.
    This excerpt is from the documentation available in the link
    " _plus_popup=true and framedisplaystyle=embedded launches Discoverer Plus in a new pop-up browser window that contains the Plus applet embedded in it "
    http://www.art2dec.com/documentation/docs/oas10g1012/linux/bi.1012/b13918/urlstart.htm
    and Here is what we use to invoke our reports.
    http://ipaddress:port/discoverer/plus?cn=cf_123&_plus_popup=TRUE&framedisplaystyle=EMBEDDED&wb=disc_wb_1
    Request the forum users from PRO discoverer group to help me out of this issue and expect a good discussion on this.
    Thanks in advance

    Closing the thread
    We were able to achieve by changing the browser settings in the IE 8 Browser. Disabled Tabbed browsing.

  • Get "Creation Script" of the existing table ( in SQL database) using C# and without using SMO dlls

    Hi All,
    I need to get the "Creation Script" of the existing table using c# and without using SMO dlls (is it possible? I don't know).
    I.e. In SQL Management Studio -> right click on any table -> Script table as -> Create To  - > open in the new query editor window. This will give you the schema of the table with the constraints of the table.
    For E.g. In Northwind database, for the table "Categories", I would like to get it as show below
    USE [Northwind]
    GO
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[Categories](
        [CategoryID] [int] IDENTITY(1,1) NOT NULL,
        [CategoryName] [nvarchar](15) NOT NULL,
        [Description] [ntext] NULL,
        [Picture] [image] NULL,
     CONSTRAINT [PK_Categories] PRIMARY KEY CLUSTERED
        [CategoryID] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    GO
    I would like to get the same schema using c#. Please help.
    Thanks & Regards,
    Kalai.

    SMO is the easiest way to get this. This is what Management Studio uses. If you can't use SMO, get a Profiler trace of the queries that SMO executes when generating the script and execute the same using ADO.NET.
    Regards,
    Farooq Mahmud
    Support Escalation Engineer 
    •  Microsoft Health Solutions Group

  • Running Win7 and ITunes 10.6 - loaded all my old CD's in one user acct. I want to share these with all other users on the machine without reloading the CD's and without having to make copies of their disk images, if possible. Also, want them on my WinXP

    Running ITunes 10.6, on a Win7 Home Premium SP1. Just loaded about thirty of my favorite CD's on my user account.
    I would like to be able to make all of them available to my other family members in their accounts on my machine, without needing to reload them all and without having to store their disk images multiple times. Can this be done, and if so, how?
    And can I copy the contents of a folder across to my wife's WinXP SP3 machine, and have them made available to each of us in our login accts on that machine?
    (There are three of us, plus an admin and a backup admin account, on each.)
    I will be really grateful if someone can help me do this for my family members, as we have shared the music on these CD's over the years, and I would like to make them available on the desktop for each of us.
    Also, I'd like to be able to load them, or a subset of them, to my wife and son's IPods. Any Tips, Traps or Tweaks for that process, as well?
    Thanks in advance for any help you can offer.
    Not sure about the OS level for the IPods. I am doing this for my wife and son, using an account here created for my son, which he shares with me for support purposes. But I do know they both have IPods, and our PC's and their OS's were described above.

    You can move the iTunes folder to a separate drive on your pc an then configure each account to use this drive / folder as iTunes library ... The problem is, that iTunes by default stores everything in your personal music folder which is separate for each user account in windows (and by default is on "C" drive).
    I create a separate partition on every pc/laptop (and map a drive name) where I store music, videos and other mass data. This will also keep the "C" drive small, which is backed up from time to time and so my backup is also small.

  • Print a file to printer wirelessly and without need to use CD drive to install driver?

    I have a HP-P1006 printer in my conference room and sometimes my guest want to send print to my printer and I have to connect their laptop with USB cable to my printer and install printer driver thought CD Drive. I want to know if there is a way to print a file to printer wirelessly and without need to use CD drive to install driver? (I don't have a wireless network in my conference room) 

    Is it possible to automate Adobe Reader to load files, then set the staple property and location, then print them out? I've seen in .NET 3.0 that there is a Enumeration for Stapling in the System.Printing Namespace. I need to figure out how to automate the printing in adobe but right before it prints, have .NET assign the printer and whether it should be stapled or not.

  • How to access unread mails of all users in Exchange server without having Passwords and without giving mailbox access to other user.

    Hi all,
       I am using Exchange server 2013, my task is to create
    Service , that
    need's to  monitor continuously for new mails of all Mailboxes in
    my server. if any user got new mail i need to get that Mail Subject, Mail Body, Sender Email Address [From emailId] .  
    Limitation
    : I don't have Passwords of mailboxes , so i gave all mailbox access permission  to one user , then i completed this   service using below code.
     But now, Client
    not willing to give Mailbox Permissions to one user because of security problems.
    How can i do this without passwords and without giving permissions to other user ?
    i don't want all mailbox access , i just need only
    access Mail Subject , Body and Sender mail address .
    How can i achieve
    this ?
    Process i follow
    => I created new user in server , and then i gave full permissions of all Mailboxes to newly created user[ex: james] in database level.
         i use below command for giving permissions in database level.
    Get-MailboxDatabase -Identity <Database Name> | Add-ADPermission -User <User> -AccessRights GenericAll
     => using below code i am searching unread mails of all user Mailboxes and then getting Subject, body and Sender Email            address . here i am have list of users,
    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013);
    service.Credentials = new WebCredentials("[email protected]", "password");
    service.AutodiscoverUrl("[email protected]");  foreach (Object obj in usersList) // here i have Mailbox users list in usersList
                 { var userMailbox = new Mailbox(obj.user);
    var folderId = new FolderId(WellKnownFolderName.Inbox, userMailbox);
    SearchFilter.IsEqualTo filter1 = new SearchFilter.IsEqualTo(EmailMessageSchema.IsRead, false);
    var itemView = new ItemView(50);
    var userItems = service.FindItems(folderId, filter1, itemView);
    foreach (var item in userItems)
    item.Load();
    var senderEmail = ((EmailMessage)item).From;
    var subject = item.Subject;
    var body = item.Body;

    You would need to check that possibilities via WebServices but suggest you to post this in Development forum to get help from programmers....
    http://social.technet.microsoft.com/Forums/office/en-US/home?forum=exchangesvrdevelopment
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

  • I run a Windows 8.1 -  Photoshop CS5 under Parallels on an iMac one year old and both having the latest OS. I use a NIK plugin "VIVEZA" which run fine for years without a problem. Latelt and without a reason, the NIK plugin has gone corrupt, (can not use

    @I run a Windows 8.1 -  Photoshop CS5 under Parallels on an iMac one year old and both having the latest OS. I use a NIK plugin "VIVEZA" which run fine for years without a problem. Latelt and without a reason, the NIK plugin has gone corrupt, (can not use it more the 2 corrections after a get a black background message that there is not enough memory) and the system stops running and a must restart is required. How do I fix this terrible problem?
    If it requires a Photoshop CS5 re-install, (I belief that it may fix the problem) and re-install the two third party plugins (NIK Viveza) and (Onone Perfect Resize) how and where do I get to the proper Adobe upload page to do that.
    I have tried to fix this problem by changing the memory allocations, I have spend many hours on it and are very disgusted with it but it needs to be fixed. The current memory settings are;
    Ram available = 1588 MB
    Range = 873 -1143 MB
    Recommended Photoshop usage range =  857  however I have tried every setting to max and in between. Nothing works. Current setting = 1588 (max)
    The Photoshop I use is registered, I have product # and order # .

    Contact NIK for updated/upgraded versions of their plug-ins.  They have been having a lot of issues with their plug-ins.

  • My husband purchased a Mac and without doing anything, it is picking up my itunes library.  How can he get it to recognize his instead? I was told I needed to turn off wifi sharing in mine, but can't find out how to do that.

    What a ding dong, I put my entire question in the subject line.  First time user, sorry.  My husband purchased  desk top Mac, and without importing anything via USB cord, it automatically is picking up my itunes library. He closed out, and signed in with his user id and password, and it still will only pick up mine.  Someone told me it is because I have turned on "share wifi" in my itunes account, and need to turn that off first, but cannot figure out how to do it.  Any suggestions?

    You either have an incredibly complex computer setup or I think you are confusing terminology here.  If you have iTunes set to share your library with others in your iTunes preferences then other computers in the area will see it as an item when they are running their iTunes and have it set to check for shared libraries.  Your husband is probably seeing this when running iTunes on his computer.  You can disable this sharing on your computer and/or he can set his not to pick up shared libraries.
    By the way, an iTunes account is something you log into when you want to buy something from Apple.  On your computer it is simply your iTunes collection or your iTunes application.  So you need to turn off sharing in your iTunes application preferences.
    Your husband is seeing "his" iTunes collection when running iTunes, but it is possible he doesn't have anything in it if it is a brand new computer.

  • Bex Report with and without BIA . . Fails with a dump EXPORT_TOO_MUCH_DATA

    Hi Folks,
    We have a report thats has been running well in production for more about 18 months. This month it did not complete execution.
    We did implement BIA couple of 4 months back and the run times have drastically reduced after the BIA. Now this query execution results in a Dump with and without BIA.  FYI the underlying cube has 195,876,020 records only.
    Name of Runtime error: EXPORT_TOO_MUCH_DATA
    Short text:     Too much data for export.
    What happened?     Runtime error
        The current ABAP program "CL_RSR_CACHE_DO_SPID==========CP" had to be
         terminated because one     of the statements could not be executed at runtime.
    Error analysis: The dataset stored under an EXPORT/IMPORT ID is restricted
    by
    1. The maximum possible size of 2 GB
    2. The length of a data record and the capacity of the sequence counter. This error occurs only if the capacity of the
    sequence counter does not go beyond 255.
    Source Code Extract:
        1 METHOD if_rsr_cache_data_object~get_xstring.
        2
        3   FIELD-SYMBOLS:
        4     <l_xstring>            TYPE xstring,
        5     <l_sp>                 TYPE ANY,
        6     <l_spinfo>             TYPE ANY.
        7
        8   CREATE DATA r_r_xstring.
        9   ASSIGN r_r_xstring->* TO <l_xstring>.
       10   ASSIGN n_s_spid-r_sp->*     TO <l_sp>.
       11   ASSIGN n_s_spid-r_spinfo->* TO <l_spinfo>.
       12
       13 *... Sp has to be the first component
    >>>>>   EXPORT sp = <l_sp> spinfo = <l_spinfo>
       15          TO DATA BUFFER <l_xstring> COMPRESSION ON.
       16
       17 ENDMETHOD.
    Referred to the below note 0001232573
    which says to have 'RSRCACHE_ITAB_COMPR'  parameter using report SAP_RSADMIN_MAINTAIN
    Note say the below (It might be a little tricky, to find an appropriate value for 'RSRCACHE_ITAB_COMPR' as it heavily depends on the query-specific data structures that are stored in the cache. The general recommendation would be to start with a value of about 5000. Test this with a query, that dumped previously. In case the dump persists reoccurs, reduce the value of the parameter significantly. Otherwise, if no dump occurs but you face noticeably longer runtimes, increase the parameter.)
    We are trying not able to get to the right parameter value. (changed it from 5000, 4000, 3000, & 1000) without much  help.  Did any of you had to change this parameter. How low or High can this parameter be changed?
    We would like to understand if changing any other parameters would help in RSADMIN table would help?
    Any thoughts from the experts would be appreciated
    Thanks,
    FHF

    Hi,
    Are you running the report for all the selections(all the data )?
    execute the report with data selection and check?
    Is the data in the Ic - compressed?
    Regards
    KP

  • CS2 Need to set text bounding box to snap to exact measurement, not em size and without leading

    I am currently using CS2 working in a sign shop designing signs, banners and vehicle lettering.
    When working with text I need to know the exact letter height, not the em and without the leading. I need it exactly the way it would measure if converting the text to outlines. The reason I need this information is that when I output the lettering to a cutter/plotter to cut vinyl media I need to know the exact measurement so I can nest my lettering on my media size. The media is typically 24" wide which gives me 22.5" of available space once the pinch rollers on the machine are considered. Pinch rollers are rollers that engage a knurled driving wheel and "pinches" the media between them and thus guides the media through the plotter. Of course, when using any media one must make the best use of it to avoid making scrap or using more than is needed for the job at hand. Converting text to outlines gives me that measurement.
    One time awhile back I did a google search on this and found a one or two button fix that made the bounding box snap to the exact "ruler" height of the text. It worked great. But I got away from design work for a short period. When I returned I'd forgotten the process. Back when I did find it I never bookmarked or made a text file explaining the process and I'm ost in finding it again.
    I don't know exactly how I worded the google search but the answer I was looking for came up on the first page. That's probably why I didn't feel the need to bookmark it or write it down. Now, I've googled dozens of different wordings for my question and get nothing. It's likely a nomenclature/jargon issue and I've yet to stumble on it again.
    If anyone could help out I would so greatly appreciate it. As it is, when I get to the point that I need to know the exact ruler height of my lettering I convert my text to outlines. But then, as sometimes happens, I'll desire to change the font or try someting different but the text is not live so I'll have to start over with that line of lettering.
    I sincerely hope my explanation of my questions makes sense to anyone who might be reading this.

    Jacob Bugge, you are a blessing. This effect not only saves me time but avoids a lot of frustration when a client wants to change some copy or I commit a spelling error or have some other brain malfunction. Not to mention the sometimes hundreds of single words or number groups I must fit onto an artboard set to my available media space.
    Option 2 is exactly what I was looking for and I'll remember it forever now as I've spent parts of the past week searching that answer only to hear over and over again, "You can't do that in Illustrator".
    Thank you so much for your quick response!

  • Can LabVIEW call a DLL built with VS(2005) C++ with /CLR and Without an Entry Point

    My project requires me to convert a C++ program to a DLL and having it called by LabVIEW. Due to the complexity of this C++ program (converted from fortran using f2c -C++ option), it cannot be compiled without using /clr option.  I did build the application standalone (/clr), and it functioned fine.  When I build it into DLL using VS2005, I was forced to use No Entry point option and without using DllMain in the C++ code. Eventually the DLL was built without error.  But after I call it from LabVIEW, I was not getting calculated results as expected.  I added a testing function to the C++ code of the DLL and just try to modify a parameter, it will not, but only return the input numbers.  I was passing data by pointer and not by value, so I expect this parameter output be modified.  I suspect that the DLL didnt get executed at all as it has no entry point specified.
    Am I on the right track to approach this task, or I am heading to totally wrong direction here?   I believe due to the fact that my C++ was from f2c and use vsf2c.lib and so on, the code is managed code, so that a regular DLL cannot be built from it with an entry point. How can LabVIEW call such a DLL? Am I right on that?  I really need your advice here for a right approach to this problem and possible implementation "watch outs"...Thanks!
    Bryan

    Hi...Finally I was able to compile my code with an entry point defined and without using /clr.  I can also call this DLL from LV and got back a variable from a little test function added to the DLL.  But the function that was used for my main application in the DLL crashed LV and I got a pop up box from Microsoft Visual C++ Runtime Library: Runtime Error! "This application has requested the Runtime to terminate it in an unusual way, please contact the application's support team for more information".  In Visual Studio I also got the following message: (I eliminated most of the "No symbols loaded" messages that are not errors but just info.)  I would apprciate if someone can take to look with your more "experienced eyes", many thanks! Bryan.
    'LabVIEW.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\WINDOWS\system32\xpsp2res.dll', Binary was not built with debug information.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\Shared\nicont.dll', Binary was not built with debug information.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\Shared\NICONTDT.dll', Binary was not built with debug information.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\nitaglv.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\WINDOWS\system32\lkbrow.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\WINDOWS\system32\lkrealt.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\Providers\lvdaq.mxx', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\Providers\lvdesktop.mxx', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\Providers\lvfp.mxx', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\WINDOWS\system32\mfc71.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\WINDOWS\system32\MFC71ENU.DLL', Binary was not built with debug information.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\FieldPoint\SubVIs\FPLVMgr.dll', Binary was not built with debug information.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\Providers\lvfprt.mxx', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\Providers\LvProjectProxy.mxx', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\Providers\LvRealTimeCoreProvider.mxx', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\Providers\MVEProvider.mxx', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\QtCore4.dll', Binary was not built with debug information.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\QtXml4.dll', Binary was not built with debug information.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\QtGui4.dll', Binary was not built with debug information.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\Providers\mxLvProvider.mxx', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\Providers\nimxlcpp.mxx', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\WINDOWS\system32\nimxlc.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\Providers\variable.mxx', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\lvMax.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\MAX\UI Providers\FieldPoint71.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\MathScriptParser.dll', Binary was not built with debug information.
    'LabVIEW.exe': Loaded 'Z:\bli\development\projects\galfitDLL\Debug\galfitDLL.dll', Symbols loaded.
    'LabVIEW.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700\msvcr80.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\mesa.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\WINDOWS\system32\mscms.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\WINDOWS\system32\icm32.dll', No symbols loaded.
    The thread 'Win32 Thread' (0xf94) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0x90c) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0xfd0) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x284) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0xdac) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0xa98) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x528) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x614) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0xa5c) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0xebc) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x5cc) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x700) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0xcf0) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0xc7c) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x4c8) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0xa4) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x52c) has exited with code 3 (0x3).
    The program '[804] LabVIEW.exe: Native' has exited with code 3 (0x3).

Maybe you are looking for

  • PDF Viewer - remove files

    Thought is was the file that caused the failures downloaded lost of files, as soon as I open them and try to zoom in - failure Question is how do I remove pdf files from viewer?  Post relates to: Pre p100ueu (O2)

  • How do I get my contract free iPhone unlocked from the first network it was connected to?

    My husband bought me an iPhone 5 from Carphonewarehouse Wharehouse which was contract free. I then signed up for a sim only contract from EE but was miss sold a service which they do not provide so I have now cancelled that contract. When trying to b

  • How to install .sf2 in GB 10.0.2

    Hello, some days I'm trying to install and play new instruments in garageband 10.0.2 sf2 format following the suggestions in various posts in the apple support forum. I could use other sounds such as the clarinet solo or solo instruments, however, th

  • Foreign currecy valuation issue

    Hello, F.05 was executed with valuation date 31.12.2010 first on 05/01/2011. The batch session was executed & it gave correct postings. The user again executed the program F.05 on 07/01/2011 & the batch session was executed again.So, I have the posti

  • Gui strategy question

    using the jbuilder wizard to construct a gui, two elements are constructed: 1) file.java 2) fileFrame.java what are the advantages of this approach? i have also seen implementations that wrap the 2 elements in one file. which is better, and why? than