How to compile on wndow xp and run on windows 7 32 bit?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rinat
    New Member
    • Dec 2010
    • 5

    #1

    How to compile on wndow xp and run on windows 7 32 bit?

    Hi

    I have a tool created and compiled on wondows xp.
    when running it on windows 7 , it's GUI looks bad, and tool get lost many times.
    is there any compilation switch that can help with it ?

    Thanks
    Rinat
  • wizardry
    New Member
    • Jan 2009
    • 201

    #2
    you can see if their is a sdk for win 7 and use that compiler.

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      Do you have these lines before the application.run call?
      [code=c#]
      Application.Ena bleVisualStyles ();
      Application.Set CompatibleTextR enderingDefault (true);
      [/code]

      Comment

      • Rinat
        New Member
        • Dec 2010
        • 5

        #4
        I have just the
        Application.Ena bleVisualStyles ();

        Comment

        • Plater
          Recognized Expert Expert
          • Apr 2007
          • 7872

          #5
          I use
          Application.Set CompatibleTextR enderingDefault (); call to control if i want my application to be "themed".
          When I set the value to false, my application mostly stays the same between win2000/XP/vista/7 (there are some slight differences), as in it does not get "bubbly" in XP or newer versions, but maintains the windows 2k look.

          Comment

          • Rinat
            New Member
            • Dec 2010
            • 5

            #6
            Hi

            I try it but it does not help.
            I was looking at the OnPaint and see there is usage of class Graphics. from this class there is usage of FillRectangle and SetClip.

            Any other idea ?

            Thanks
            Rinat

            Comment

            • Plater
              Recognized Expert Expert
              • Apr 2007
              • 7872

              #7
              Do you have screenshots for what you are refering to?

              Comment

              Working...