Thread: Please compile

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    241

    Please compile

    Hey all, I've been trying to compile a driver located at http://www.tamanegi.org/prog/hfsd/ for 64bit systems since windows x64 does not allow 32 bit drivers... also, the 32 bit driver can be installed if i can mod the inf file right... but i don't think that will happen... I know it's a burdon to ask this, and you most likely will not do it, thank you for even reading this.


    Cheers,
    Cj

    Note:It will have to be compiled on a 64 bit machine and it is for the Hori Flight Stick 2, please do not think I am being lazy, looking for a "quick-fix" but I've been trying for months to get this, but alas, to no avail.Here is a translated version of the site, God, I love google.

    EDIT:Well, I got to go to bed, I'll check back in the afternoon. Goodnight all.
    Last edited by bikr692002; 02-13-2006 at 09:57 PM.

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    What are the errors? Or do you not even have a compiler at all? Is it written in C++?
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    What are you using to compile it? In order to compiler a driver, you need the special compiler that's included with the DDK (Driver Development Kit). You can also find inrormation on porting 32-bit drivers to 64-bits on MSDN.

    I've never written a driver, but I've looked into it a couple of times. Here's a little driver tutorial.

  4. #4
    Registered User
    Join Date
    Sep 2005
    Posts
    241
    I do have the ddk, but for some reason, it just won't compile, but I'm also a little new to the whole programming thing, its all written in C but can't C programscompile in c++ but c++ cant compile in C am I correct? Anyways after I fixed the header p[roblems it keeps B####### about a udm function or something like like, which is included in commctrl.h but I did include that. o.O Thanks for the replies

  5. #5
    aoeuhtns
    Join Date
    Jul 2005
    Posts
    581
    Quote Originally Posted by bikr692002
    I do have the ddk, but for some reason, it just won't compile, but I'm also a little new to the whole programming thing, its all written in C but can't C programscompile in c++ but c++ cant compile in C am I correct?
    This is not true; C code won't make it through a C++ compiler unless it's lucky or designed to do so. It is impossible for anybody to help you if they don't see your error messages.

  6. #6
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    Quote Originally Posted by Rashakil Fol
    This is not true; C code won't make it through a C++ compiler unless it's lucky or designed to do so. It is impossible for anybody to help you if they don't see your error messages.
    If you try to compile c as c++ then thats correct but many c++ compilers can be set to compile c.

  7. #7
    Registered User
    Join Date
    Sep 2005
    Posts
    241
    I set it to C though, and the errors are UDM_SETPOS32 undefined O.O
    The peice of code is
    Code:
    static void set_window_num_value(HWND edit, HWND spin, int val)
    {
        TCHAR buf[32];
    
        SendMessage(spin, UDM_SETPOS32, 0, val);
    
        wsprintf(buf, TEXT("%d"), val);
        SetWindowText(edit, buf);
    }
    EDIT: Every error is about a UDM_ function being "undefined"
    EDIT:Fixed it, but theres still alot more to do.

    Now its saying theres an error in the commctrl.h file, I thinkI might see if I can download one.
    Can't, I already have an "up to date" version of it...


    If you want, you can download a rar file that i'm hosting on my webpage, it has everything in it, just use something to compile it (So you can see the errors, if you want that is. I know many of you are busy and this is a hassle. But if you do, thank you and I appreciate it very much so.).
    Last edited by bikr692002; 02-15-2006 at 05:42 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C and C++ compile speed
    By swgh in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 01-02-2007, 02:37 PM
  2. Compile as you type
    By Rocketmagnet in forum A Brief History of Cprogramming.com
    Replies: 33
    Last Post: 12-07-2006, 01:36 PM
  3. How to compile mfc libs from platform sdk
    By tjcbs in forum Windows Programming
    Replies: 6
    Last Post: 11-19-2006, 08:20 AM
  4. Compile crashes certain windows
    By Loduwijk in forum C++ Programming
    Replies: 5
    Last Post: 03-26-2006, 09:05 PM
  5. How can I compile C or C++ with Visual Studio .NET?
    By Dakkon in forum C Programming
    Replies: 8
    Last Post: 02-11-2003, 02:58 PM