Search found 43 matches
- Wed Jan 16, 2013 1:35 am
- Forum: Coding Questions
- Topic: SQL Count function not supported?
- Replies: 7
- Views: 1690
Re: SQL Count function not supported?
Thanks for your replies. Using NextDatabaseRow() solved the problem.
- Mon Jan 14, 2013 4:05 pm
- Forum: Coding Questions
- Topic: SQL Count function not supported?
- Replies: 7
- Views: 1690
SQL Count function not supported?
Hi all,
Can PB do a "select count(field) from table" type of query? I am trying it but it always reports 0. Here's the code:
r = DatabaseQuery(db,"select count (id) from estudiantes;")
If r =0
MessageRequester("Error","Error en query: " + DatabaseError())
EndIf
cant_estud.i ...
Can PB do a "select count(field) from table" type of query? I am trying it but it always reports 0. Here's the code:
r = DatabaseQuery(db,"select count (id) from estudiantes;")
If r =0
MessageRequester("Error","Error en query: " + DatabaseError())
EndIf
cant_estud.i ...
- Mon Dec 17, 2012 1:11 pm
- Forum: Coding Questions
- Topic: Windows 2008 compatibility
- Replies: 6
- Views: 1674
Re: Windows 2008 compatibility
Thanks for your replies. Using MessageRequester for breakpoints seems like a good strategy to narrow down the problem. I'll see what I can dig up.
- Fri Dec 14, 2012 3:55 pm
- Forum: Coding Questions
- Topic: Windows 2008 compatibility
- Replies: 6
- Views: 1674
Windows 2008 compatibility
Hi all,
Anyone know if Purebasic-generated executables (.exe files) can execute on a windows 2008 server environment? We had a PB-made program running on a win 2003 server and it worked just fine (this program only uses GUI and Network routines). After we upgraded to Windows Server 2008, running ...
Anyone know if Purebasic-generated executables (.exe files) can execute on a windows 2008 server environment? We had a PB-made program running on a win 2003 server and it worked just fine (this program only uses GUI and Network routines). After we upgraded to Windows Server 2008, running ...
- Sat Jan 21, 2012 9:17 pm
- Forum: Coding Questions
- Topic: My first 3d model won't load in PB! Please help!!
- Replies: 2
- Views: 741
My first 3d model won't load in PB! Please help!!
Hi all,
I am trying to load a 3d mesh in Purebasic, using the builtin 3d functions. For some reason, it fails to load. Here is my code:
; space invaders "3d"
InitEngine3D()
InitSprite()
InitKeyboard()
mWnd = OpenWindow(#PB_Any,0,0,1024,768,"Space Invaders 3d", #PB_Window_ScreenCentered| #PB ...
I am trying to load a 3d mesh in Purebasic, using the builtin 3d functions. For some reason, it fails to load. Here is my code:
; space invaders "3d"
InitEngine3D()
InitSprite()
InitKeyboard()
mWnd = OpenWindow(#PB_Any,0,0,1024,768,"Space Invaders 3d", #PB_Window_ScreenCentered| #PB ...
- Sat Jan 21, 2012 9:03 pm
- Forum: Game Programming
- Topic: The math behind MoveEntity
- Replies: 13
- Views: 9143
Re: The math behind MoveEntity
If you guys think that any other way than using matrices is too complex, then I'll stick to that, then. However, will this require me to rewrite all the Sprite3D functions like RotateSprite3D()?
- Thu Jan 19, 2012 3:33 pm
- Forum: Game Programming
- Topic: The math behind MoveEntity
- Replies: 13
- Views: 9143
Re: The math behind MoveEntity
Hi, Thx for your quick reply. Actually, I DO want to learn how to do it, but I'm not sure if I'll be able to. I have encountered transformation matrices before (I've delved a bit into Quartz programming in iOS) and understand the basic principle behind them. I just thought there might be a quicker ...
- Thu Jan 19, 2012 2:31 pm
- Forum: Game Programming
- Topic: The math behind MoveEntity
- Replies: 13
- Views: 9143
The math behind MoveEntity
Hi all,
If I understand it correctly, the MoveEntity functions moves the entity relative to its current location. If I'm right, this should also take into account the entity's rotation. In other words, if I do MoveEntity(0,0,1), the Entity should move one unit forward in its z axis (assuming the z ...
If I understand it correctly, the MoveEntity functions moves the entity relative to its current location. If I'm right, this should also take into account the entity's rotation. In other words, if I do MoveEntity(0,0,1), the Entity should move one unit forward in its z axis (assuming the z ...
- Thu Mar 10, 2011 10:54 pm
- Forum: Coding Questions
- Topic: Best way to produce PDF files with Purebasic
- Replies: 4
- Views: 956
Re: Best way to produce PDF files with Purebasic
Thanks,
I think the last time I checked (about two months ago) was on PureArea.net, which claimed it worked only with PB version 3.2 or something. I'll download it tonite. Thanks!
I think the last time I checked (about two months ago) was on PureArea.net, which claimed it worked only with PB version 3.2 or something. I'll download it tonite. Thanks!
- Thu Mar 10, 2011 9:00 pm
- Forum: Coding Questions
- Topic: Best way to produce PDF files with Purebasic
- Replies: 4
- Views: 956
Best way to produce PDF files with Purebasic
Hi everyone,
I am currently looking into how to generate PDF files with PB. I've heard about PurePDF, but, as I understand it, it's not compatible with the latest version of PB (pls correct If I'm wrong). I wouldn't like to downgrade to an older version just to have this functionality. I don't ...
I am currently looking into how to generate PDF files with PB. I've heard about PurePDF, but, as I understand it, it's not compatible with the latest version of PB (pls correct If I'm wrong). I wouldn't like to downgrade to an older version just to have this functionality. I don't ...
- Sat Feb 05, 2011 6:04 am
- Forum: Coding Questions
- Topic: SQLite tables not being created
- Replies: 5
- Views: 1455
Re: SQLite tables not being created
Right, I see it. Thanks, I'll try that tomorrow.
- Fri Feb 04, 2011 11:07 pm
- Forum: Coding Questions
- Topic: SQLite tables not being created
- Replies: 5
- Views: 1455
SQLite tables not being created
Hi, I'm doing a simple app which reads from a Sqlite database. I'd like the program to be able to create the database file on its own if it doesn't exist, like a first-time setup. While the database file gets created with my code, the sql CREATE command for my table fails. Here's my code ...
- Thu Jan 27, 2011 1:09 pm
- Forum: Game Programming
- Topic: LoadSprite() not working, please help!
- Replies: 13
- Views: 5209
Re: LoadSprite() not working, please help!
Hi again, everyone.
Changing to 32-bit depth solved the issue. Also, downgrading to PB 4.41 seems to have made it work using 16-bit depth. Thanks to everyone who replied, and for all the advice.
Changing to 32-bit depth solved the issue. Also, downgrading to PB 4.41 seems to have made it work using 16-bit depth. Thanks to everyone who replied, and for all the advice.
- Wed Jan 26, 2011 9:57 pm
- Forum: Game Programming
- Topic: LoadSprite() not working, please help!
- Replies: 13
- Views: 5209
Re: LoadSprite() not working, please help!
Tried another image. Didn't work either.
Could it have something to do with the PB version I'm using. I am using 4.51, under windows xp professional, SP3. The image is a stick figure drawn with Paint. I will try to upload to my site later, but I suppose any image you create in Paint should have the ...
Could it have something to do with the PB version I'm using. I am using 4.51, under windows xp professional, SP3. The image is a stick figure drawn with Paint. I will try to upload to my site later, but I suppose any image you create in Paint should have the ...
- Wed Jan 26, 2011 9:50 pm
- Forum: Coding Questions
- Topic: Importing my first C++ DLL
- Replies: 5
- Views: 1526
Re: Importing my first C++ DLL
Thanks, I'll try it!