Thread: I can't set my main frame window to RTL

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    8

    Angry I can't set my main frame window to RTL

    Hi there
    Actually I'm developing an application and I want to set it layout to RTL,because I want its language Farsi,and I use VC++6.0,Visual Studio 2000,and my Windows at home is Windows 2000 professional,and in office Windows XP professional.When I use the function SetProcessDefaultLayout
    in my InitInstance function of my SDI application implementation file,I
    receive the error "undeclared function...." while compiling although I'v included Windows.h,So I decided to load user32.dll and call this function using it,but i have compiler error "unsigned int (__stdcall *)(unsigned long,unsigned int)' : too few actual parameters",and I've confused now,and can't trace more time(,so please,if you help me and let me know your experiences about this topic,it will be appreciated and I'll thank you much.
    Best Regards
    Reza AsAdi

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Just to be sure.......

    you have linked to the library

    User32.lib?
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  3. #3
    Registered User SAMSAM's Avatar
    Join Date
    Nov 2001
    Posts
    218
    Chetori!

    I know for SetLayout , you need gdi32.lib to be utilized.
    I am pretty sure that SetProcessDefaultLayout requires
    user32.lib (check MSDN).


    cheers!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C or C++
    By AcerN30 in forum Game Programming
    Replies: 41
    Last Post: 05-30-2008, 06:57 PM
  2. Memory leaks problem in C -- Help please
    By Amely in forum C Programming
    Replies: 14
    Last Post: 05-21-2008, 11:16 AM
  3. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 08:23 AM
  4. Why only 32x32? (OpenGL) [Please help]
    By Queatrix in forum Game Programming
    Replies: 2
    Last Post: 01-23-2006, 02:39 PM
  5. confused about adding controls to main window
    By terracota in forum Windows Programming
    Replies: 4
    Last Post: 11-24-2004, 12:35 PM