PSP3D Left Header
PSP3D Header Right
PSP3D Logo CraveOnline Logo
Help the PSP 3D community grow!
Vote for us below:


Vote on the PSP Top 200
PSP Top 200 - Games, Videos, Wallpapers, Files, Hacks, Homebrew

Development Center - Learn the basics of coding or talk about advanced coding techniques with other developers.

Welcome to PSP3D.com - Sony PlayStation Portable News, Homebrew, Hacks, Reviews, Videos, Mods, Forums!

You are currently viewing our website as a guest, which gives you limited access to reply and interact to discussions and other members. By joining our free community, you will be able to post topics in the forums, communicate privately with other members, vote in polls, and access many other special features.

Registration is fast, simple, and absolutely free so join our community today!

Go Back PSP3D.com - Sony PlayStation Portable News, Homebrew, Hacks, Reviews, Videos, Mods, Forums > PSP Forums > Development Center

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-31-2006, 04:59 PM
pspeters's Avatar
pspeters pspeters is offline
Senior Member
My Mood:
 
Join Date: Mar 2006
Location: USA
Age: 15
Posts: 284
Points: 32.15
Donate
Post WHATS WRONG with MY CODE???

ok im trying to make a simple hello world program . it compiles into a eboot but when i start it -its just a blank screen!? so can you tell me whats wrong with this-----. it thinks its html at pspkernel.h and pspdebug.h
but its really there


#include
#include
#define printf pspDebugScreenPrintf

/* Define the module info section */
PSP_MODULE_INFO("HELLODEMO", 0, 1, 1);
/* Define the main thread's attribute value (optional) */
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);

/* Exit callback */
int exitCallback(int arg1, int arg2, void *common) {
sceKernelExitGame();
return 0;
}

/* Callback thread */
int callbackThread(SceSize args, void *argp) {
int cbid;


sceKernelRegisterExitCallback(cbid);
sceKernelSleepThreadCB();

return 0;
}

/* Sets up the callback thread and returns its thread id */
int setupCallbacks(void) {
int thid = 0;

thid = sceKernelCreateThread("update_thread", callbackThread, 0x11, 0xFA0, 0, 0);
if (thid >= 0) {
sceKernelStartThread(thid, 0, 0);
}
return thid;
}

int main()
{
using namespace std;
printf("Hello WORLD!");

return 0;
}
__________________
ever heard of cashcrate? you complete offers FOR FREE and get paid buy check monthly! beleive me it works-Cashcrate




Last edited by pspeters : 07-31-2006 at 05:01 PM.
Reply With Quote
  #2 (permalink)  
Old 07-31-2006, 05:10 PM
rikardo_92's Avatar
rikardo_92 rikardo_92 is offline
Senior Member
 
Join Date: Mar 2006
Location: Portugal
Age: 15
Posts: 358
Points: 1.97
Donate
Send a message via ICQ to rikardo_92 Send a message via AIM to rikardo_92 Send a message via MSN to rikardo_92 Send a message via Yahoo to rikardo_92
Quote:
#include
#include
#define printf pspDebugScreenPrintf

/* Define the module info section */
PSP_MODULE_INFO("HELLODEMO", 0, 1, 1);

/* Exit callback */
int exitCallback(int arg1, int arg2, void *common) {
sceKernelExitGame();
return 0;
}

/* Callback thread */
int callbackThread(SceSize args, void *argp) {
int cbid;


sceKernelRegisterExitCallback(cbid);
sceKernelSleepThreadCB();

return 0;
}

/* Sets up the callback thread and returns its thread id */
int setupCallbacks(void) {
int thid = 0;

thid = sceKernelCreateThread("update_thread", callbackThread, 0x11, 0xFA0, 0, 0);
if (thid >= 0) {
sceKernelStartThread(thid, 0, 0);
}
return thid;
}

int main() {
pspDebugScreenInit();
SetupCallbacks();

printf("Hello WORLD!");

sceKernelSleepThread();

return 0;
}
this works fine...if u want to learn C for psp go to www.psp-programming.com (have good tutorials)

EDIT: dont forget the pspkernel.h and the pspdebug.h this not shows coz of the html
__________________

Last edited by rikardo_92 : 07-31-2006 at 05:13 PM.
Reply With Quote
  #3 (permalink)  
Old 07-31-2006, 05:31 PM
pspeters's Avatar
pspeters pspeters is offline
Senior Member
My Mood:
 
Join Date: Mar 2006
Location: USA
Age: 15
Posts: 284
Points: 32.15
Donate
well it dosnt do anything
__________________
ever heard of cashcrate? you complete offers FOR FREE and get paid buy check monthly! beleive me it works-Cashcrate



Reply With Quote
  #4 (permalink)  
Old 07-31-2006, 05:46 PM
rikardo_92's Avatar
rikardo_92 rikardo_92 is offline
Senior Member
 
Join Date: Mar 2006
Location: Portugal
Age: 15
Posts: 358
Points: 1.97
Donate
Send a message via ICQ to rikardo_92 Send a message via AIM to rikardo_92 Send a message via MSN to rikardo_92 Send a message via Yahoo to rikardo_92
define anything...
__________________
Reply With Quote
  #5 (permalink)  
Old 07-31-2006, 05:59 PM
pspeters's Avatar
pspeters pspeters is offline
Senior Member
My Mood:
 
Join Date: Mar 2006
Location: USA
Age: 15
Posts: 284
Points: 32.15
Donate
compile it yourself and try to fix it. i dont no why its not working.
__________________
ever heard of cashcrate? you complete offers FOR FREE and get paid buy check monthly! beleive me it works-Cashcrate



Reply With Quote
  #6 (permalink)  
Old 07-31-2006, 06:10 PM
rikardo_92's Avatar
rikardo_92 rikardo_92 is offline
Senior Member
 
Join Date: Mar 2006
Location: Portugal
Age: 15
Posts: 358
Points: 1.97
Donate
Send a message via ICQ to rikardo_92 Send a message via AIM to rikardo_92 Send a message via MSN to rikardo_92 Send a message via Yahoo to rikardo_92
show me ur makefile
__________________
Reply With Quote
  #7 (permalink)  
Old 07-31-2006, 06:13 PM
pspeters's Avatar
pspeters pspeters is offline
Senior Member
My Mood:
 
Join Date: Mar 2006
Location: USA
Age: 15
Posts: 284
Points: 32.15
Donate
TARGET = hello
OBJS = main.o

CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Hello World

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
__________________
ever heard of cashcrate? you complete offers FOR FREE and get paid buy check monthly! beleive me it works-Cashcrate



Reply With Quote
  #8 (permalink)  
Old 07-31-2006, 06:14 PM
GIGABYTE's Avatar
GIGABYTE GIGABYTE is offline
Senior Member
 
Join Date: Jun 2006
Location: C:\windows\fonts\gigabyte.tff
Posts: 612
Points: 0.79
Donate
its wrong .
__________________
Reply With Quote
  #9 (permalink)  
Old 07-31-2006, 06:15 PM
pspeters's Avatar
pspeters pspeters is offline
Senior Member
My Mood:
 
Join Date: Mar 2006
Location: USA
Age: 15
Posts: 284
Points: 32.15
Donate
how???please help
__________________
ever heard of cashcrate? you complete offers FOR FREE and get paid buy check monthly! beleive me it works-Cashcrate



Reply With Quote
  #10 (permalink)  
Old 07-31-2006, 06:16 PM
rikardo_92's Avatar
rikardo_92 rikardo_92 is offline
Senior Member
 
Join Date: Mar 2006
Location: Portugal
Age: 15
Posts: 358
Points: 1.97
Donate
Send a message via ICQ to rikardo_92 Send a message via AIM to rikardo_92 Send a message via MSN to rikardo_92 Send a message via Yahoo to rikardo_92
wots wrong gigabyte???
__________________
Reply With Quote
Reply

« some definitions | Beta Release MooseFlash »



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 0.00
Points Per Thread: 1.00
Points Per Reply: 0.10

Similar Threads
Thread Thread Starter Forum Replies Last Post
SmashGPsp Source Code Released! Robert A. Homepage News 7 07-23-2006 05:35 AM
Simple Animation Source Code =] Static Development Center 19 07-15-2006 07:46 PM
(PLEASE HELP) how do you... pspkillsds Homebrew/Hacking 8 06-09-2006 12:53 PM
parental control code Ben_weinberg General PSP Discussion 2 03-19-2006 12:07 PM
PSP Pin Code?? mirko General PSP Discussion 19 12-19-2005 06:28 AM





Crave Partner Sites: CraveOnline.com | DVDFile.com | PSP3D.com | ComingSoon.net | SuperHeroHype.com | RedBalcony.com | ActionTrip.com | CraveLyrics.com
Soundtrack.net | CraveFix.com | SpikedHumor.com | RPGamer.com | TattooNow.com | ImpactWrestling.com | SeekLyrics.com | PedalBMX.com | WildKO.com
vidKing.com | StrategyInformer.com | HHdb.com | RapLeagues.com | HipHop-Lyrics.com | Cravecocktails.com | ThePhatPhree.com | RideJudge.com | HottieSpots.com

PSP3D Footer Left Powered by Custom vB Version 5.1.0 for Crave Online Media, LLC.
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd. and PSP3D.com.
LinkBacks Enabled by vBSEO 3.0.0 RC8

All times are GMT -4. The time now is 12:27 AM.
PSP3D Footer Right