Zeige Ergebnis 8.131 bis 8.160 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; Still gives me the same error.. :/...
-
03-11-2008, 02:44 PM #8131
Still gives me the same error.. :/
Atheist, because I just won't believe in what doesn't show itself to me.
-
03-11-2008, 02:46 PM #8132I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
Well that way does work, I got it direct from NeHe's tutorials on GU, but yeah, your way does seem easier.
@spike021:
Nope, you need to do something along the lines of:
Or something to that extent.Code:struct SceKernelLoadExecVSHParam param; memset(¶m, 0, sizeof(param)); param.size = sizeof(param); param.unk5 = 0x10000; param.vshmain_args = [insert args here]; param.vshmain_args_size = sizeof([args buffer]); sceKernelExitVSHVSH(¶m);
-Aura
-
03-11-2008, 02:49 PM #8133
Zitat von Auraomega
Hmmm, thanks Aura, I'll give it a try later and see if I can work it, otherwise, I'll just use the in-game method.[QUOTE=Archaemic]
[size=1]My manwich![/size][/QUOTE]
[QUOTE=mohaas05]lol i can't say d*ck?[/QUOTE]
-
03-11-2008, 02:53 PM #8134
Nevermind I got it working now, thanks for the help guys.

For some odd reason the graphics.o file had to be deleted.Atheist, because I just won't believe in what doesn't show itself to me.
-
03-11-2008, 02:56 PM #8135I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
Seeing as you can't test it yourself, nor get the arguments yourself just yet, I'd probably go with the in game method for now, and use the "offical" method at a later date when your PSP is more homebrewable, I'd find the arguments for you myself but I'm on 3.52, and I know the arguments changed at 3.71 so its not much help.
Zitat von spike021
Oh, and incase there was any confusion about getting the arguments, write an app and store it in flash0:/vsh/module/vshmain.prx, int main(SceSize args, void* argp) and simply write a file with the arguments in it to have a look at with a hex editor or something. You may need a few dumps to help find what varies and what doesn't. Oh, and don't forget to load the vshmain_real.prx file under vsh mode, normal module loading won't work.
-Aura
-
03-11-2008, 02:59 PM #8136
Alright Aura, that will probably help a bit also. I actually do have someone that has been testing the homebrew files and such, but it should be fine. Thanks for the really quick replies too
Zitat von Auraomega
[QUOTE=Archaemic]
[size=1]My manwich![/size][/QUOTE]
[QUOTE=mohaas05]lol i can't say d*ck?[/QUOTE]
-
03-11-2008, 03:23 PM #8137
Aura, maybe you could load the EBOOT from the RAM. Load the EBOOT into the RAM, then instead of passing the path to the EBOOT for argp, pass the pointer to the memory address of it.
[IMG]http://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Zoso.svg/744px-Zoso.svg.png[/IMG]
Looking for some good C programming tutorials for the PSP? Look no further! [URL="http://psp-coding.com/"]PSP-Coding.com[/URL] is your source for all your PSP coding needs.
-
03-12-2008, 02:01 AM #8138QJ Gamer Bronze

- Registriert seit
- Aug 2007
- Ort
- Australia
- Beiträge
- 659
- Points
- 8.045
- Level
- 60
- Downloads
- 0
- Uploads
- 0
How is there any way to use the 'bigger than' and 'smaller than' operators in a switch statement?
For example:
Code:int main() { int x; int y; x = 50; y = 100; switch(y-x) { case (>10): //Code break; case (<10): //Code break; } return(0); }
-
03-12-2008, 03:49 AM #8139QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Nope.
[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
03-12-2008, 04:33 AM #8140I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
That failed too, as it doesn't load from a file it has no current working directory.
Zitat von Judas
Back to the drawing board
-Aura
-
03-12-2008, 09:38 AM #8141Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
Code:static tablespec const yowzitch_table = { 23, 2, 2, -1, yowzitch_items }; tablespec const *yowzitch = &yowzitch_table; /* Version and license information. */ static char *vourzhon_items[] = { "1+\267", "1-Tile World: version " VERSION, "1+", "1-Copyright \251 2001-2006 by Brian Raiter", "1+", "1-compiled " COMPILE_TIME, "1+\267", "1!This program is free software; you can redistribute it and/or" " modify it under the terms of the GNU General Public License as" " published by the Free Software Foundation; either version 2 of" " the License, or (at your option) any later version.", "1+\267", "1!This program is distributed in the hope that it will be" " useful, but WITHOUT ANY WARRANTY; without even the implied" " warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR" " PURPOSE. See the GNU General Public License for more details.", "1+\267", "1!Bug reports are appreciated, and can be sent to" " [email protected]" };Please someone tell me where its missingCode:help.c:54: error: expected '}' before 'COMPILE_TIME'
-
03-12-2008, 09:52 AM #8142QJ Gamer Platinum
- Registriert seit
- Feb 2006
- Ort
- National Front Disco
- Beiträge
- 13.057
- Points
- 66.627
- Level
- 100
- Downloads
- 0
- Uploads
- 0
Shouldn't it be:
I'm probably wrong... but meh.Code:"1+", "1-compiled , COMPILE_TIME"
-
03-12-2008, 09:53 AM #8143Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
I doubt it, there is no problem with VERSION.
-
03-12-2008, 09:55 AM #8144QJ Gamer Platinum
- Registriert seit
- Feb 2006
- Ort
- National Front Disco
- Beiträge
- 13.057
- Points
- 66.627
- Level
- 100
- Downloads
- 0
- Uploads
- 0
Oh, well then VERSION would be:
But yeah, I'm wrongCode:"1+\267", "1-Tile World: version , VERSION"
-
03-12-2008, 10:56 AM #8145It's good to be free...

- Registriert seit
- Feb 2007
- Beiträge
- 2.440
- Points
- 10.420
- Level
- 67
- Downloads
- 0
- Uploads
- 0
COMPILE_TIME is not being #defined.
pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ
-
03-12-2008, 11:02 AM #8146Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
you're right, the header wasn't included with the source. It's anybody's guess how i'm going to find it. But thanks Archaemic.
-
03-12-2008, 01:14 PM #8147
hey i found a piece of code on the internet, and i think it will help download a string from the internet. i dont think the person posted the whole code though.
if you no what this does, or how to use it, im having trouble compiling because of stupid errors.Code:def download("www.google.com/logo.gif") { def file = new FileOutputStream(address.tokenize("/")[-1]) def out = new BufferedOutputStream(file) out << new URL(address).openStream() out.close() }
thanks
-
03-12-2008, 01:24 PM #8148QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
That isn't C++. I think it is Python or Ruby.
[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
03-12-2008, 01:39 PM #8149
o alright, thanks
-
03-12-2008, 09:40 PM #8150It's good to be free...

- Registriert seit
- Feb 2007
- Beiträge
- 2.440
- Points
- 10.420
- Level
- 67
- Downloads
- 0
- Uploads
- 0
No way that's Python...but it's definitely not C++. It looks vaguely like Java, but it's not.
pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ
-
03-13-2008, 12:37 AM #8151words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
It's in a language called 'Groovy', an agile dynamic language for the Java Platform.

...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
-
03-13-2008, 07:57 AM #8152QJ Gamer Blue
- Registriert seit
- Jan 2008
- Ort
- Copperas Cove, Tx
- Beiträge
- 62
- Points
- 4.964
- Level
- 45
- Downloads
- 0
- Uploads
- 0
I just want to get something cleared up for myself. I understand that the PSP can run Lua, but apparently with this thread it can run C++ as well. I was just wondering if it is limited C++ (like ajax and the PSP browser) or can I code the full deal?
-
03-13-2008, 08:53 AM #8153QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
You have the full use of C++ language on the PSP.
Zitat von NameTaken33
[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
03-13-2008, 04:06 PM #8154I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
Not strictly a PSP related programming question, but I respect you guys so I'd prefer asking here.
I'm planning on learning graphics on a PC tomorrow, but I'm not sure what to use - OpenGL or DirectX?
2nd question, which compiler/IDE would be best to use for whichever API.
3rd question, which is the best site to learn from?
I did try the NeHe stuff today, but I'm missing gLaux and I couldn't find it in the quick search I had, I'm just wondering if anyone knows of a compiler that comes with this?
Hope you guys don't mind these questions.
-Aura
-
03-13-2008, 05:04 PM #8155sceKernelExitGame();
- Registriert seit
- Jan 2006
- Ort
- New York
- Beiträge
- 3.126
- Points
- 19.955
- Level
- 89
- Downloads
- 0
- Uploads
- 0
1.) I'd choose OpenGL, but me being an Apple guy my opinion may be biased ;). OpenGL is cross-platform though :)
2.) Depends. Visual Studio is a pretty "out-of-the-box" package. I've never used it for anything more than command-line apps though. Code::blocks is very nice also, and I know Yaustar is always recommending it.
3.) Nehe, http://videotutorialsrock.com/, and the free edition of "The Red Book", if you're learning OpenGL. No idea if you plan to use DirectX.
-
03-13-2008, 05:37 PM #8156QJ Gamer Bronze
- Registriert seit
- Mar 2007
- Beiträge
- 758
- Points
- 8.665
- Level
- 62
- Downloads
- 0
- Uploads
- 0
Code::Blocks! A new version of it was released recently:
http://www.codeblocks.org/
-= Double Post =-
What about the standard libraries? I know iostream wouldn't work, but what about <string> or <cmath> or <cstdlib> or <vector> etc.
Zitat von yaustar
Geändert von michaelp (03-13-2008 um 05:39 PM Uhr) Grund: Automerged Doublepost
-
03-13-2008, 06:32 PM #8157sceKernelExitGame();
- Registriert seit
- Jan 2006
- Ort
- New York
- Beiträge
- 3.126
- Points
- 19.955
- Level
- 89
- Downloads
- 0
- Uploads
- 0
It's all there. I'm pretty sure iostream does work, but it doesn't actually print text to the screen. It prints it to textfile created for console output.
-
03-13-2008, 07:33 PM #8158It's good to be free...

- Registriert seit
- Feb 2007
- Beiträge
- 2.440
- Points
- 10.420
- Level
- 67
- Downloads
- 0
- Uploads
- 0
OpenGL, definitely. It's not bound to Windows.
And yeah, Code::Blocks.pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ
-
03-14-2008, 04:22 PM #8159lol

- Registriert seit
- Aug 2006
- Ort
- Whittier, CA
- Beiträge
- 5.791
- Points
- 20.859
- Level
- 91
- Downloads
- 0
- Uploads
- 0
How do I convert decimal to float?
I got float to decimal though.
-
03-14-2008, 05:13 PM #8160sceKernelExitGame();
- Registriert seit
- Jan 2006
- Ort
- New York
- Beiträge
- 3.126
- Points
- 19.955
- Level
- 89
- Downloads
- 0
- Uploads
- 0
What? floats hold decimal values. Do you mean double to float?
Zitat von Anti-QuickJay


LinkBack URL
About LinkBacks
Mit Zitat antworten


Hello everyone I am new here and I am glad to be part of this amazing community and I think there...
New to forum