Seite 128 von 340 ErsteErste ... 28 78 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 178 228 ... LetzteLetzte
Zeige Ergebnis 3.811 bis 3.840 von 10174

C/C++ Programming Help Thread

This is a discussion on C/C++ Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Zitat von Kwastie ehh i don't realy understand your question.. go to www.psp-programming.com maby your could learn something there Lol. ...

  
  1. #3811
    QJ Gamer Silver
    Points: 10.921, Level: 69
    Level completed: 18%, Points required for next Level: 329
    Overall activity: 0%

    Registriert seit
    May 2006
    Ort
    Behind you.
    Beiträge
    1.814
    Points
    10.921
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Kwastie
    ehh i don't realy understand your question..
    go to www.psp-programming.com maby your could learn something there
    Lol. He's asking how to load or run eboots in C, you know, the programming language....


    Calypso - Enjoy the excellent 2D space shooter:
    http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195

    "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)

  2. #3812
    QJ Gamer Blue
    Points: 4.022, Level: 40
    Level completed: 36%, Points required for next Level: 128
    Overall activity: 0%

    Registriert seit
    Mar 2007
    Ort
    Holland..
    Beiträge
    154
    Points
    4.022
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    after I saw the link you gave to him I knew where he was talking about XD
    -= Double Post =-
    is there a way to copy an int to another int ?!?
    because i am working on a stopwatch and i want to store round info, someone any sugestion's
    Geändert von Kwastie (04-10-2007 um 11:02 AM Uhr) Grund: Automerged Doublepost

  3. #3813
    QJ Gamer Gold
    Points: 14.678, Level: 78
    Level completed: 57%, Points required for next Level: 172
    Overall activity: 0%

    Registriert seit
    Nov 2006
    Beiträge
    1.523
    Points
    14.678
    Level
    78
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von vodkkaa
    the prx i am making works with no bugs on 3.10 OE but my 3.03 OE-C PSP will not boot when it is enabled. what must i do to laod my prx in 3.03 OE-C

    Code:
    #include <pspkernel.h>
    #include <pspdebug.h>
    #include <pspctrl.h>
    #include <stdio.h>
    #include <stdlib.h>
    
    
    PSP_MODULE_INFO("XXXX", 0x1000, 1, 1);
    
    
    #define XXXXX
    
    
     //Main function
    XXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXX
                    } 
                                    sceKernelDelayThread(100000);
                                                }     
    	return 0;
    }
    
    void* getModuleInfo(void)
    {
    	return (void *) &module_info;
    }
    It delays 1/10 of a sec... try 3,000,000. That should solve the problem[most common with prx's]

  4. #3814
    Heroes never die
    Points: 8.645, Level: 62
    Level completed: 65%, Points required for next Level: 105
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    ...........
    Beiträge
    1.323
    Points
    8.645
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Kwastie
    after I saw the link you gave to him I knew where he was talking about XD
    -= Double Post =-
    is there a way to copy an int to another int ?!?
    because i am working on a stopwatch and i want to store round info, someone any sugestion's
    eu , lol?

    int storage;
    int stopwatch;
    ...
    storage = stopwatch;
    ....

  5. #3815
    QJ Gamer Bronze
    Points: 8.665, Level: 62
    Level completed: 72%, Points required for next Level: 85
    Overall activity: 0%

    Registriert seit
    Mar 2007
    Beiträge
    758
    Points
    8.665
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    http://dl.qj.net/PSPDev-for-Win32-PS...8185/catid/204

    could someone upload that to sendspace or rapidshare plz
    preferably sendspace
    i get an error when downloading it
    -= Double Post =-
    hey, would a C compilier work the same way as CYGWIN?
    (as in, would it still make eboots in C?)
    Geändert von michaelp (04-10-2007 um 01:07 PM Uhr) Grund: Automerged Doublepost

  6. #3816
    QJ Gamer Silver
    Points: 10.263, Level: 67
    Level completed: 54%, Points required for next Level: 187
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    2.326
    Points
    10.263
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Let's clear this up.

    First up, you ARE programming in C.

    All the compiler does is take C code and compile into a format for a targeted platform.

    The PSP toolchain is a C and C++ compiler for the PSP platform.

    Other C and C++ compilers exist for other platforms. Eg, PC, GP2X GBA etc.

    Cygwin is nothing more then a Linux abstract bash shell for Windows.

  7. #3817
    QJ Gamer Bronze
    Points: 8.665, Level: 62
    Level completed: 72%, Points required for next Level: 85
    Overall activity: 0%

    Registriert seit
    Mar 2007
    Beiträge
    758
    Points
    8.665
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    uh huh
    so, can i use a C compiler for programming for the PSP?

  8. #3818
    QJ Gamer Silver
    Points: 10.263, Level: 67
    Level completed: 54%, Points required for next Level: 187
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    2.326
    Points
    10.263
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von michaelp
    uh huh
    so, can i use a C compiler for programming for the PSP?
    Yes, but you can't just use any C or C++ compiler.

    You have to use a C or C++ compiler that TARGETS the PSP platform

  9. #3819
    QJ Gamer Bronze
    Points: 8.665, Level: 62
    Level completed: 72%, Points required for next Level: 85
    Overall activity: 0%

    Registriert seit
    Mar 2007
    Beiträge
    758
    Points
    8.665
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    alright, thanks
    CYGWIN was a bit too hard to set up for me, so i tried looking for something else
    do you know any that work for the PSP?

  10. #3820
    QJ Gamer Silver
    Points: 10.263, Level: 67
    Level completed: 54%, Points required for next Level: 187
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    2.326
    Points
    10.263
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    DevKitPSP that comes with DevKitPro package. DevKitPSP is a precompiled PSP toolchain. It won't contain any external Libraries such PNG, SDL, MikMod etc. though.

  11. #3821
    QJ Gamer Bronze
    Points: 8.665, Level: 62
    Level completed: 72%, Points required for next Level: 85
    Overall activity: 0%

    Registriert seit
    Mar 2007
    Beiträge
    758
    Points
    8.665
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    okay, i just download devkitpsp 10, i'll try installing it on my windows 98 computer and tell you what happens
    thanx yaustar!

  12. #3822
    QJ Gamer Silver
    Points: 10.921, Level: 69
    Level completed: 18%, Points required for next Level: 329
    Overall activity: 0%

    Registriert seit
    May 2006
    Ort
    Behind you.
    Beiträge
    1.814
    Points
    10.921
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von michaelp
    okay, i just download devkitpsp 10, i'll try installing it on my windows 98 computer and tell you what happens
    thanx yaustar!
    Lol, good luck on that...
    Calypso - Enjoy the excellent 2D space shooter:
    http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195

    "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)

  13. #3823
    QJ Gamer Green
    Points: 5.712, Level: 48
    Level completed: 81%, Points required for next Level: 38
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    USA SC/NC
    Beiträge
    699
    Points
    5.712
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von MrChaos
    First of all, on that code, your missing alot of { and your missing int main() {.

    Maybe that is your problem?
    If there were syntax errors, then it wouldn't compile in the first place. Therefore, he would not have a prx to run on the PSP. :|

    I thought that was obvious.
    [CODE]Random Facts:
    irc://irc.malloc.us #wtf #**********
    [/CODE]

    [SIZE="6"][FONT="Century Gothic"][COLOR="Blue"][URL="http://forums.**********.net"]http://forums.**********.net[/URL][/COLOR][/FONT][/SIZE]

  14. #3824
    QJ Gamer Silver
    Points: 10.263, Level: 67
    Level completed: 54%, Points required for next Level: 187
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    2.326
    Points
    10.263
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von TMNT
    Lol, good luck on that...
    Win98 will still work fine with DevKitPro.

  15. #3825
    QJ Gamer Bronze
    Points: 8.665, Level: 62
    Level completed: 72%, Points required for next Level: 85
    Overall activity: 0%

    Registriert seit
    Mar 2007
    Beiträge
    758
    Points
    8.665
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von TMNT
    Lol, good luck on that...
    are you mocking me? :Cry: :)

  16. #3826
    lol
    Points: 20.859, Level: 91
    Level completed: 2%, Points required for next Level: 491
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Whittier, CA
    Beiträge
    5.791
    Points
    20.859
    Level
    91
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von TMNT
    Lol, good luck on that...
    Why does he need luck?

  17. #3827
    Points: 24.247, Level: 94
    Level completed: 90%, Points required for next Level: 103
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    texas
    Beiträge
    2.803
    Points
    24.247
    Level
    94
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Anti-QJ
    Why does he need luck?
    If you had any common knowledge you would know.
    Windows 98 = slow and buggy.
    牧来栠摩琠敨映汩獥
    PSN: youresam
    From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
    --Mike Hollingsworth

  18. #3828
    QJ Gamer Silver
    Points: 10.921, Level: 69
    Level completed: 18%, Points required for next Level: 329
    Overall activity: 0%

    Registriert seit
    May 2006
    Ort
    Behind you.
    Beiträge
    1.814
    Points
    10.921
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von youresam
    If you had any common knowledge you would know.
    Windows 98 = slow and buggy.
    Exactly. Why did i put the windows 98 in italics and bold then?
    Calypso - Enjoy the excellent 2D space shooter:
    http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195

    "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)

  19. #3829
    lol
    Points: 20.859, Level: 91
    Level completed: 2%, Points required for next Level: 491
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Whittier, CA
    Beiträge
    5.791
    Points
    20.859
    Level
    91
    Downloads
    0
    Uploads
    0

    Standard

    But it will STILL work fine.

  20. #3830
    Points: 24.247, Level: 94
    Level completed: 90%, Points required for next Level: 103
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    texas
    Beiträge
    2.803
    Points
    24.247
    Level
    94
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Anti-QJ
    But it will STILL work fine.
    If he is lucky. Therefore: "good luck"
    Calm down and think about it.
    牧来栠摩琠敨映汩獥
    PSN: youresam
    From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
    --Mike Hollingsworth

  21. #3831
    lol
    Points: 20.859, Level: 91
    Level completed: 2%, Points required for next Level: 491
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Whittier, CA
    Beiträge
    5.791
    Points
    20.859
    Level
    91
    Downloads
    0
    Uploads
    0

    Standard

    Ok, After much thinking, I realize it would be sorta buggy.

  22. #3832
    QJ Gamer Silver
    Points: 10.921, Level: 69
    Level completed: 18%, Points required for next Level: 329
    Overall activity: 0%

    Registriert seit
    May 2006
    Ort
    Behind you.
    Beiträge
    1.814
    Points
    10.921
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    Wow. Did you just get windows 98?
    Calypso - Enjoy the excellent 2D space shooter:
    http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195

    "Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)

  23. #3833
    lol
    Points: 20.859, Level: 91
    Level completed: 2%, Points required for next Level: 491
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Whittier, CA
    Beiträge
    5.791
    Points
    20.859
    Level
    91
    Downloads
    0
    Uploads
    0

    Standard

    No.

  24. #3834
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Standard

    Maybe he cant get a better OSbecause his computer doesnt have enough RAM or up-to-date enough hardware? The laptop im currnetly on ran Windows 98 SE because i had 32 MB RAM. I went to a store, bought a 128 mb RAM. Now i may run up to Windows XP, but Windows 2000 is all i need, for Windows XP will run slower than 2000 on this.

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  25. #3835
    Points: 24.247, Level: 94
    Level completed: 90%, Points required for next Level: 103
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    texas
    Beiträge
    2.803
    Points
    24.247
    Level
    94
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von SG57
    Maybe he cant get a better OSbecause his computer doesnt have enough RAM or up-to-date enough hardware? The laptop im currnetly on ran Windows 98 SE because i had 32 MB RAM. I went to a store, bought a 128 mb RAM. Now i may run up to Windows XP, but Windows 2000 is all i need, for Windows XP will run slower than 2000 on this.
    Eww... Windows 2000
    牧来栠摩琠敨映汩獥
    PSN: youresam
    From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
    --Mike Hollingsworth

  26. #3836
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Standard

    It gets the job done, and by far > than Windows XP, as there are far less viruses built for it (its been 3 years, no virus software and im running just as it was when i first booted up )

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  27. #3837
    QJ Gamer Bronze
    Points: 8.665, Level: 62
    Level completed: 72%, Points required for next Level: 85
    Overall activity: 0%

    Registriert seit
    Mar 2007
    Beiträge
    758
    Points
    8.665
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    well, it let me run the .exe, i just don't know how to run the actual program

    what am i supposed to do after i run the devkitpsp10.exe file?
    -= Double Post =-
    well, it let me run the .exe, i just don't know how to run the actual program

    what am i supposed to do after i run the devkitpsp10.exe file?

    also, i have 2 xp comps, but the one i wanna learn on is a 98, that's the only reason why
    Geändert von michaelp (04-11-2007 um 03:43 AM Uhr) Grund: Automerged Doublepost

  28. #3838
    QJ Gamer Gold
    Points: 14.678, Level: 78
    Level completed: 57%, Points required for next Level: 172
    Overall activity: 0%

    Registriert seit
    Nov 2006
    Beiträge
    1.523
    Points
    14.678
    Level
    78
    Downloads
    0
    Uploads
    0

    Standard Conditional operator

    Is it better in terms of speed to use conditional operator as an arguement or use a seperate if statement for the actual statement?

  29. #3839
    QJ Gamer Silver
    Points: 10.263, Level: 67
    Level completed: 54%, Points required for next Level: 187
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    2.326
    Points
    10.263
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Mr305
    pos=0 ? 0xFF9EB7CD:0x42426F,

    I am passing this as a argument to color, Will this work?
    if Pos=0 use 1st color otherwise 2nd?
    1. Use the standard if statement. There is VERY little point in using the conditional operator. There is no performence difference as they both still branch code.

    2.
    Code:
    unsigned int colour = ( 0 == pos ) ? colour1 : colour2;

  30. #3840
    Points: 3.542, Level: 37
    Level completed: 28%, Points required for next Level: 108
    Overall activity: 0%

    Registriert seit
    Dec 2006
    Beiträge
    18
    Points
    3.542
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    Hi, i have a weird problem. It has not much to do with the psp, rather with the C/C++ Compiler, Bloodshed Dev-cpp. Im starting to learn the C language.
    When I got the compiler about a half a year ago, i tested it and everything worked perfectly fine. ( I was using Windows Xp at that time). I didnt continue to learn the language because I was kind of lazy .
    But yesterday, i picked it up again and wanted to start over. So i downloaded the Dev-cpp compiler again ( I am now using Vista) and wanted to try out a simple Hello World script. But after it compiled it it gave me a weird error( I used a console app with C as lang.): "File: ...\...\Makefile.win"
    "Message: [Build Error] exe: ***[Objects/MingW/main.c] Error 1".
    Of course I didnt know wth was going on so I tried a little thing: I opened a new project with the same settings except, I openend as a C++ project and used the exact code as before.( which was btw:
    #include <stdio.h>

    int main()
    {
    printf("Hello World");
    getchar();
    return 0;
    }

    )
    This time it was succesfully compiled and the command prompt opened and show me my "Hello World".
    Now my question is, why isnt it working as a C project. Is it because of Vista?
    I already tried the v5 of dev-cpp as well as wxDev-C++, same problem for both.
    Hope some1 can help me out.

    Cynical


 

Tags for this Thread

Forumregeln

  • Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
  • Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
  • Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
  • Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.
  •  





Alle Zeitangaben in WEZ -8. Es ist jetzt 09:15 PM Uhr.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © , Caputo Media, LLC. All Rights Reserved. Cluster .