64 bit static library sets invalid custom properties for components

I have 32 bit components I wrote in C++.  They work fine and have worked for years

I created a new package and imported one into the package.  Works fine in 32 bits.  Now I created a 64 bit static library of the same name and added all the component files cpp, res, and h to the library.  Compiled the program in 64 bits and the component almost works.

The background turned out to be black.  After debugging, I discovered the that this happens for ALL my components IF there are values in the DFM file and that is a published property NOT from the inherited component.

For the package
class PACKAGE TMTIProgressBar : public TGraphicControl

For example: in the DFM
  object MTIDBMeter1: TMTIDBMeter
    Left = 96
    Top = 32
    Width = 200
    Height = 20
    BackgroundColor = clBtnFace
    WarningLevel = 80.000000000000000000
    BorderColor1 = clBtnShadow
    BorderColor2 = clBtnHighlight
    Max = 100.000000000000000000
    PosTextSuffix = '%'
    ShowPosText = False
  end

If I remove the BackgroundColor from the file, it is not set to 0 (but of course the defaults don't work).  Same is true of strings, I'm not sure about other values.  

Any idea of what is going on and how to fix it.  

This happens for PosTextSuffix and ShowPosText which are my own.

Thanks
0
John
4/5/2013 6:43:27 PM
embarcadero.cppbuilder.writing 359 articles. 0 followers. Follow

3 Replies
471 Views

Similar Articles

[PageSpeed] 46

> {quote:title=John Mertus wrote:}{quote}
> I have 32 bit components I wrote in C++.  They work fine and have worked for years
> 
> 
> If I remove the BackgroundColor from the file, it is not set to 0 (but of course the defaults don't work).  Same is true of strings, I'm not sure about other values.  
> 
> Any idea of what is going on and how to fix it.  
> 

I have the same problem. They almost work in 64 bits..... 

No idea how to fix it.

Regards,
Andre
0
Andre
4/7/2013 8:15:59 PM
So I'm not crazy:)

Did you try wrapping them in a DELPHI component?  
I wonder if that would work.

Thanks Andre N(orton?)

> {quote:title=Andre N wrote:}{quote}
> > {quote:title=John Mertus wrote:}{quote}
> > I have 32 bit components I wrote in C++.  They work fine and have worked for years
> > 
> > 
> > If I remove the BackgroundColor from the file, it is not set to 0 (but of course the defaults don't work).  Same is true of strings, I'm not sure about other values.  
> > 
> > Any idea of what is going on and how to fix it.  
> > 
> 
> I have the same problem. They almost work in 64 bits..... 
> 
> No idea how to fix it.
> 
> Regards,
> Andre
0
John
4/8/2013 5:30:46 PM
> {quote:title=John Mertus wrote:}{quote}
> So I'm not crazy:)
> 

Not yet ;-)

> Did you try wrapping them in a DELPHI component?  
> I wonder if that would work.
> 

I do not use/know DELPHI. I don't know if it would work.

> Thanks Andre N(orton?)
No. 
Regards
Andre Noel
0
Andre
4/10/2013 9:12:01 AM
Reply:

Similar Artilces:

invalid property value in 64 bit static library.
I used 32 bit OpenGLPanel component in BCB6. I moved my project to XE3. In XE3 x86 it works fine. Now I am trying to compile my project with 64 bit compiler. As I understood I can't create 64 bit bpl. I compiled OpenGLPanel with 64 bit compiler to static library. I linked test project with it and I have got error message: "Error reading OpenGLPanel1.cColorBits: Invalid property value"'\ cColorBits declared as __published: __property BYTE cColorBits = {read=FcColorBits, write=SetPFDNNumDepthBits, default =32}; What is wrong? Thank you for your help. He...

64 bit static library for C++ components
I'm in the process of transitioning from BCB6 to XE3. One of the problems I'm having is with a component I created as a slight variation on the standard TMemo component. It's called TLimitMemo and has one additional property, MaxLines, and a customized Change function to delete the oldest (i.e. topmost) messages whenever it would otherwise exceed that limit. I built a package to install that component and it works for 32-bit applications. Since C++Builder XE3 doesn't support packages for 64-bit components, I then created a static library with the same name and...

Custom Component 64-bit suport
I ve created new package and a new component using Component\New Component.. menu. Compiled and Installed new component. It is getting disabled in Tool Palette when i select 64-bit target platform. How can i add 64-bit and OSX supoort to a custom component? i ve tried ComponentPlatformsAttribute but it did not work. [ComponentPlatformsAttribute(pidWin32 or pidWin64 or pidOSX32)] TMyControl = class(TControl, IViewport3D) private ... end; procedure Register; implementation procedure Register; begin RegisterComponents('Example Group', [...

Custom Component 64-bit suport
I ve created new package and a new component using Component\New Component.. menu. Compiled and Installed new component. But i cannot use the new component in 64-bit firemonkey application. It is getting disabled in Tool Palette when i select 64-bit target platform. How can i add 64-bit and OSX supoort to a custom component? Eray HANOGLU wrote: > I ve created new package and a new component using Component\New > Component.. menu. > > Compiled and Installed new component. But i cannot use the new > component in 64-bit firemonkey application. It is getting d...

Custom component 64 bit [Edit]
I have a custom component compiled on target platform Win32, everything works fine. For Win64bit application it needs 64bit-compiled component. In doc is written simply create 32bit and compile and next set Target platform to 64bit and compile. When i open the package with component, in Project manager/Add platform there is NO selection for 64-bit windows( only OSX and 32bit win). When i create application, there IS a selection 64-bit in Project manager/Add platform. Linker needs "package.a" library instead of "package.lib" but how to create "package.a"? What ...

Custom component and form in a static library
Currently I have two static libraries: one that holds a component and another that holds a form. The component is declared like: class PACKAGE TREdit : public TWinControl { ... }; The form is like: class TOKBottomDlg_CkNum : public TForm { __published: TREdit *REdit_CkNum; }; I'm trying to create a static library that merges the two. When I put the source code for both in the same library I get this message: "Class TREdit not found. Ignore the error and continue? NOTE: Ignoring the error may cause components to be deleted or property values to be lost." I can click ...

Boost 64 bit static library? [Edit]
Argh, I posted the instructions needed for this once here but that was at least one forum wipe ago. Anyone have tips for getting 64 bit Boost static libraries working? Edited by: Sean Hoffman on Oct 3, 2014 2:05 PM > {quote:title=Sean Hoffman wrote:}{quote} > Argh, I posted the instructions needed for this once here but that was at least one forum wipe ago. Anyone have tips for getting 64 bit Boost static libraries working? > > Edited by: Sean Hoffman on Oct 3, 2014 2:05 PM See [http://blog.marionette.ca/cross-platform-threading-for-c-builder-using-boostthread/] for...

64 bit cpu // 64 bit Os version // 64 bit powerbuilder?
Hi guys, Does anyone know if Powebuilder is available in 64 bit? Kind regards A 64-bit version of PB does not (yet) exist. -- HTH Arnoud Url: http://www.gloriant.be Also check out my PB Reference site : http://www.pbinfo.be "Gunther Huygens" <ghuygens@be.xrt.com> wrote in message news:eoSjDRaCDHA.331@forums-1-dub... > Hi guys, > > Does anyone know if Powebuilder is available in 64 bit? > > Kind regards > > > > Since there are no OS Windows 64 bits, i wonder how it could be possible. Since there is a 64 bi...

Property is not setting in custom control property
hi ,         I am adding an image control programmatically in a webpartzone which is adding successfully but the properties i am setting in image control are not setting .following is the code that i am using .the code 'img.ImageUrl = "~/images/atlas_title.jpg"     do not set the property in it.Dim webmgr As WebPartManager = WebPartManager.GetCurrentWebPartManager(Me)Dim img As New Web.UI.WebControls.Imageimg.ID = "Img"'img.ImageUrl = "~/images/atlas_title.jpg"     ...

Custom components in 64-bit C++ Builder (creating standalone executable) [Edit]
As stated http://docwiki.embarcadero.com/RADStudio/XE3/en/C%2B%2BBuilder_64-bit_Windows_Differences#Producing_64-bit_Packages_Not_Supported , creating 64-bit packages (meaning installing custom components for 64-bit target) isn't yet supported in C++ Builder. But as creating and using 64-bit libraries is supported, is possible to use custom components in standalone (without runtime packages) 64-bit executable too. There is our temporay solution, maybe useful for someone else too: * create 32-bit component package, * create parallel 64-bit library project (New, Other, Static Library) t...

install both, 64-bit and 32-bit libraries
Hi, I need to install a 32-bit app (Oracle Client) on my 64-bit OpenSuSe 11.3, however switching some of the 64-bit libraries (e.g., glibc) to 32-bit creates all kinds of dependency issues for existing apps. So, is it possible to install both, 64-bit and 32-bit libraries? Thanks in advance for your comments! -- Slipstream00 ------------------------------------------------------------------------ Slipstream00;2262239 Wrote: > Hi, > So, is it possible to install both, 64-bit and 32-bit libraries? > > Thanks in advance for your comments! Yes it is...

Custom property editor accessing other component properties
I have a component which has a custom property editor for one of its properties. The custom property editor is derived from TStringProperty and works as expected. I need to, however, modify the editor to show a number of user selectable items which depends on the value of another property in the same component. How do you design a property editor for a component that can reference other properties of the component besides the one that it is designed to edit? I am using BCB6. Regards FarmerJo John wrote: > I have a component which has a custom property editor for one of its &...

32-Bit Libraries on 64-Bit OpenSuSE
I'd like to install ZSNES on 64-bit OpenSuSE, however when I go to install the rpm which I downloaded from the openSuSE build service it will not install due to missing dependencies (libao, libGL, libSDL). ZSNES was written in 32-bit asm so it is not possible to build an x64 version. When I go to install the 32-bit libraries through YaST they are only offered as a downgrade and I can't seem to be able to install them separately alongside the 64-bit versions of them, surely clicking downgrade would mean first removing the 64-bit version and replacing with the 32-bit versio...

superreview denied: [Bug 303508] Add freebl shared libs that do only 64-bit integer math : [Attachment 193768] Add integer library builds for 64-bit sparc; split DEFINES and arch flags into separate
Wan-Teh Chang <wtchang@redhat.com> has denied Nelson Bolyard <nelson@bolyard.com>'s request for superreview: Bug 303508: Add freebl shared libs that do only 64-bit integer math https://bugzilla.mozilla.org/show_bug.cgi?id=303508 Attachment 193768: Add integer library builds for 64-bit sparc; split DEFINES and arch flags into separate sections https://bugzilla.mozilla.org/attachment.cgi?id=193768&action=edit ------- Additional Comments from Wan-Teh Chang <wtchang@redhat.com> Sorry, Saul. Although I didn't test this patch, I saw strong evidences in my ...

Web resources about - 64 bit static library sets invalid custom properties for components - embarcadero.cppbuilder.writing

Properties of water - Wikipedia, the free encyclopedia
This article is about the physical and chemical properties of pure water. For general discussion and its distribution and importance in life, ...

Facebook Surpasses All Google Properties In Brazil
Facebook overtook Orkut to became Brazil’s top social network in January, but has only overtaken all of Google’s properties in that nation just ...

Extended Profile Properties - Facebook-Entwickler
These Permissions cannot be revoked in the Login Dialog during the login flow, meaning they are non-optional for Users when logging into your ...

PortPerry Properties (@brian14mckinlay) on Twitter
Sign in Sign up To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content, tailor ...

Hawaii Real Estate Properties on the App Store on iTunes
Get Hawaii Real Estate Properties on the App Store. See screenshots and ratings, and read customer reviews.

Qld climate change pilot study shows 4400 properties could flood in Townsville
The Queensland Government is silently preparing Queensland for an 80cm sea rise, which would impact tens of thousands of homes by the end of ...

Properties pass in as 1000 auctions unfold after last week’s Melbourne Cup lull
Melbourne's declining real estate clearance rate was reflected by mixed auction results on Saturday.

Golden Mile a 'basketcase' as commercial properties lose value
Kings Cross will never again function as Sydney's late-night entertainment precinct, property owners say, with residential developers snapping ...

Nobody's home: Housing boom leaves swathe of empty properties
The nation's three-year property boom is leaving its biggest cities awash with empty homes, a report shows.

Queensland storms: Roofs ripped off houses in Warwick, 19,000 properties left without power
... roofs in Warwick, as wild storms move across south-east Queensland. More than a dozen homes have lost their roofs and close to 19,000 properties ...

Resources last updated: 12/26/2015 4:29:29 PM