Seite 186 von 340 ErsteErste ... 86 136 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 236 286 ... LetzteLetzte
Zeige Ergebnis 5.551 bis 5.580 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; it also wont install the toolchain. but i do have tolchain under cygwin/home/(me)/psptoolchain but whenever i try to start psptoolchain.sh ...

  
  1. #5551
    QJ Gamer Bronze
    Points: 5.656, Level: 48
    Level completed: 53%, Points required for next Level: 94
    Overall activity: 0%

    Registriert seit
    Oct 2006
    Ort
    under the big rock
    Beiträge
    485
    Points
    5.656
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    it also wont install the toolchain. but i do have tolchain under cygwin/home/(me)/psptoolchain but whenever i try to start psptoolchain.sh it gives an error again. i guess ill have to reinstall cygwin


    PSN ID= elmataplata
    add me...
    RIP Colin McRae, We'll never forget you! 555

  2. #5552
    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 wrcsti
    hey im just trying to learn C and have been going through a hello world app but my computer (vista) will not compile my makefile and main.c into a eboot when i enter in cygwin comand "make" and if i type in ./makefile it shows 12 lines oftext showing that the command not found. i downloaded the pspdev from that drop i like its hot thread and put it in cygwin/usr/local. i dont know why it wont compile my main.c and makefile. i guess ill just try some difffernet ones and see if it is my computer
    Follow the instruction CLEARLY... It SURE will work.. Tested by many. incl me.

    Follow Cygwin tutorial at psp-programming.com Then my instructions,

    I have Updated. the tutorial check it

  3. #5553
    QJ Gamer Bronze
    Points: 5.656, Level: 48
    Level completed: 53%, Points required for next Level: 94
    Overall activity: 0%

    Registriert seit
    Oct 2006
    Ort
    under the big rock
    Beiträge
    485
    Points
    5.656
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Mr305
    Follow the instruction CLEARLY... It SURE will work.. Tested by many. incl me.

    Follow Cygwin tutorial at psp-programming.com Then my instructions,
    thats where i went to get it done. i guess i didnt clik the right things then.
    anyhow heres a screenshot of what its doing (note name edited off so to keep it unknown)
    PSN ID= elmataplata
    add me...
    RIP Colin McRae, We'll never forget you! 555

  4. #5554
    It's good to be free...
    Points: 10.420, Level: 67
    Level completed: 93%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Beiträge
    2.440
    Points
    10.420
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Okay...install autoconf. It's in the cygwin setup.
    pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ

  5. #5555
    QJ Gamer Bronze
    Points: 5.656, Level: 48
    Level completed: 53%, Points required for next Level: 94
    Overall activity: 0%

    Registriert seit
    Oct 2006
    Ort
    under the big rock
    Beiträge
    485
    Points
    5.656
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    yeah im reinstalling all of this, many thanks to all of you!!!! its the reason i asked here and not at maxconsole or any other forums, id need a radioactive flamesuit in there for asking anything.

    EDIT: ok its up and runing now. my hello world works flawlessly, it says in red in center of screen
    Hello World. I am conquering you... just like i made it
    Geändert von wrcsti (07-17-2007 um 06:28 PM Uhr)
    PSN ID= elmataplata
    add me...
    RIP Colin McRae, We'll never forget you! 555

  6. #5556
    QJ Gamer Green
    Points: 3.606, Level: 37
    Level completed: 71%, Points required for next Level: 44
    Overall activity: 99,0%

    Registriert seit
    Jul 2007
    Beiträge
    88
    Points
    3.606
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    @slicer:
    upspeed=5.0f
    whats the f do?

  7. #5557
    QJ Gamer Blue
    Points: 3.795, Level: 38
    Level completed: 97%, Points required for next Level: 5
    Overall activity: 27,0%

    Registriert seit
    Jul 2007
    Beiträge
    296
    Points
    3.795
    Level
    38
    Downloads
    0
    Uploads
    0

    Standard

    Tells the compiler that it is a float, rather than a double. As there is no double on the PSP processor, it is faster to use the 'f' to denote the float than to use the emulated doubles.

  8. #5558
    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

    oke i splitt my ap in two threads , and in both threads I need Buttons , but when I use them in both threads , it doesnt work anymore (i use different variabels)


    sugestions?

  9. #5559
    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

    Just one - wtf are buttons? If you are refering to button input in both threads, that makes sense.

    ...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


  10. #5560
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    how do i load in prx's for example i find in order to init ad-hoc i need to load the following prxs:

    "flash0:/kd/ifhandle.prx"
    "flash0:/kd/memab.prx"
    "flash0:/kd/pspnet_adhoc_auth.prx"
    "flash0:/kd/pspnet.prx"
    "flash0:/kd/pspnet_adhoc.prx"
    "flash0:/kd/pspnet_adhocctl.prx"
    "flash0:/kd/pspnet_adhoc_matching.prx "

    however i'm unsure how to load a prx into the program i've been pouring over the sdk documentation for a method and have yet to find anything so any help would be appreciated
    1. Failed....again...
    2. http://slicer.gibbocool.com/ stay updated on all my projects
    3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been

  11. #5561
    It's good to be free...
    Points: 10.420, Level: 67
    Level completed: 93%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Beiträge
    2.440
    Points
    10.420
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    pspSdkLoadStartModule, IIRC.

    Also, there's pspSdkLoadInetModules that does just that.
    pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ

  12. #5562
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    iirc...?

    anyways thanks archaemic
    1. Failed....again...
    2. http://slicer.gibbocool.com/ stay updated on all my projects
    3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been

  13. #5563
    QJ Gamer Green
    Points: 5.795, Level: 49
    Level completed: 23%, Points required for next Level: 155
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    Cape Town, South Africa
    Beiträge
    714
    Points
    5.795
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    If I Remember Correctly.

  14. #5564
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    o.....now i know
    1. Failed....again...
    2. http://slicer.gibbocool.com/ stay updated on all my projects
    3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been

  15. #5565
    QJ Gamer Green
    Points: 11.800, Level: 71
    Level completed: 38%, Points required for next Level: 250
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    Middle Europe
    Beiträge
    1.281
    Points
    11.800
    Level
    71
    Downloads
    0
    Uploads
    0

    Standard

    hey guys i was messing today with prxs... i wanted to test PSP_CTRL_DISC to see how does it work... i changed 1 to 0x1000 to set kernel mode but then when i compiled prx, it didnt worked....

    Code:
    if(pad.Buttons & PSP_CTRL_DISC) {
       pspDebugScreenSetXY(1,9);
       printf("UMD            : Ano");
       }
       else
       if(!pad.Buttons & PSP_CTRL_DISC) {
       pspDebugScreenSetXY(1,9);
       printf("UMD            : Nie");
       }

  16. #5566
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    SceUID pspSdkLoadStartModule ( const char * filename,
    int mpid
    )

    what do i need to place as the second parameter? 1,0,what?
    1. Failed....again...
    2. http://slicer.gibbocool.com/ stay updated on all my projects
    3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been

  17. #5567
    It's good to be free...
    Points: 10.420, Level: 67
    Level completed: 93%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Beiträge
    2.440
    Points
    10.420
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    This is just a guess, but PSP_MEMORY_PARTITION_KERN EL. I don't really know. I've never worked with WiFi.
    (and delete that stray space when you put it in the program)
    pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ

  18. #5568
    QJ Gamer Blue
    Points: 3.795, Level: 38
    Level completed: 97%, Points required for next Level: 5
    Overall activity: 27,0%

    Registriert seit
    Jul 2007
    Beiträge
    296
    Points
    3.795
    Level
    38
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von myschoo
    hey guys i was messing today with prxs... i wanted to test PSP_CTRL_DISC to see how does it work... i changed 1 to 0x1000 to set kernel mode but then when i compiled prx, it didnt worked....

    Code:
    if(pad.Buttons & PSP_CTRL_DISC) {
       pspDebugScreenSetXY(1,9);
       printf("UMD            : Ano");
       }
       else
       if(!pad.Buttons & PSP_CTRL_DISC) {
       pspDebugScreenSetXY(1,9);
       printf("UMD            : Nie");
       }
    Remember to use sceCtrlPeakBufferPositive () rather than sceCtrlReadBufferPositive ().

  19. #5569
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    thanks arch
    1. Failed....again...
    2. http://slicer.gibbocool.com/ stay updated on all my projects
    3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been

  20. #5570
    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

    What do you mean by load it into the program. You can easily read from the .prx file via basic file i/o beginners know.

    ...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


  21. #5571
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    yes u can use basic i/o but i need to load it via module's at least from the example i'm working off i believe i have to
    1. Failed....again...
    2. http://slicer.gibbocool.com/ stay updated on all my projects
    3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been

  22. #5572
    Points: 3.340, Level: 35
    Level completed: 94%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    May 2007
    Beiträge
    31
    Points
    3.340
    Level
    35
    Downloads
    0
    Uploads
    0

    Standard

    damn... cant get it workin to rename a file on flash0.
    assigned rdwr to flash0 but didnt work!

    anyone can help out?

  23. #5573
    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

    how dit you do it , post your code or we wont able to help you
    -= Double Post =-
    how do you get the size of a pointer , i mean this:

    char *hello = "hello";

    if i ask the size , it returns 5 , how do you do that?
    Geändert von hallo007 (07-19-2007 um 12:51 AM Uhr) Grund: Automerged Doublepost

  24. #5574
    It's good to be free...
    Points: 10.420, Level: 67
    Level completed: 93%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Beiträge
    2.440
    Points
    10.420
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    For a null-terminated string, use strlen. For anything else, you have to keep track of the size yourself.
    pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ

  25. #5575
    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

    strlen , that was it , forgotten

  26. #5576
    QJ Gamer Bronze
    Points: 5.402, Level: 47
    Level completed: 26%, Points required for next Level: 148
    Overall activity: 0%

    Registriert seit
    Apr 2007
    Beiträge
    468
    Points
    5.402
    Level
    47
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von hallo007
    char *hello = "hello";

    if i ask the size , it returns 5 , how do you do that?
    5 is the size the strlen function returns, but it is actually taking up 6 bytes of ram as in c the compiler automatically adds the null terminator to a string literal.


    with this

    char *hello="hello/0";

    strlen returns 5 even though you can see its 6 bytes long. The null terminator isn't counted by strlen

  27. #5577
    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

    it doesnt need to be counted for me , because i need to see the lenght of some filenames;) but thnx for the info
    -= Double Post =-
    Is it possible to make a log on the psp?
    Geändert von hallo007 (07-19-2007 um 08:56 AM Uhr) Grund: Automerged Doublepost

  28. #5578
    Points: 3.340, Level: 35
    Level completed: 94%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    May 2007
    Beiträge
    31
    Points
    3.340
    Level
    35
    Downloads
    0
    Uploads
    0

    Standard rename a file on flash

    works fine when i to rename on ms0 .
    but flash didnt work for some weird reason... hope someone can help?


    as example...

    sceIoUnassign("flash0:");
    sceIoAssign("flash0:", "lflash0:0,0", "flashfat0:", IOASSIGN_RDWR, NULL, 0);

    if(pad.Buttons & PSP_CTRL_CROSS)
    {
    sceIoRename("flash0:/xxx.txt", "flash0:/yyy.txt");
    }


    thanks

  29. #5579
    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 brethren
    5 is the size the strlen function returns, but it is actually taking up 6 bytes of ram as in c the compiler automatically adds the null terminator to a string literal.


    with this
    char *hello="hello/0";

    strlen returns 5 even though you can see its 6 bytes long. The null terminator isn't counted by strlen
    I just need to say it -_-
    Its: char *hello="hello\0"; instead of char *hello="hello/0";
    Well, that would take up 7 bytes since theres 2 null characters now but the idea would be the same :|
    Simple error. Nothing big.

    Zitat Zitat von hallo007
    it doesnt need to be counted for me , because i need to see the lenght of some filenames;) but thnx for the info
    -= Double Post =-
    Is it possible to make a log on the psp?
    A log? As in a text file...then obviously, yes. For example, since you are talking about files, you could just read each file in a directory and print the list of files into a text file easily using fprintf. Assuming that is what you wanted to do.
    [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]

  30. #5580
    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

    Personally, I made my own Log class I use in all my projects. I simply call

    Code:
    Entity.Log("Player got hit by bullet, health now = %i", player.Hleath());
    AI.Log("Ghost #%i spotted Player", i);
    I recommend you create something similar, as debugging is faster (IMO) should you log step by step in your code.

    ...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



 

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:28 PM Uhr.

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