Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Open Source Projects
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Open Source Projects The place to discuss Basic4ppc open source applications.


Pocket Burning Sand (Open Source)


Reply
 
LinkBack Thread Tools Display Modes
  #91 (permalink)  
Old 12-10-2007, 04:57 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

What I was hoping to achieve was the ability to see the pixels as soon as you made it. I forgot that this would not be needed so yes you are right, it wouldn't be necissary.

When I move the code and dlls to the original file it works apart from the fact that it is very very slow and flickers a lot. Do you knwo what i am doing wrong?

Also where is it in that code where you set the colour? It used to use cYellow didn't it but now I can't find it?

It also would be good to have it work on a computer but that is not the main priority so does not need to be worked on until a satble ppc version is released.

EDIT: Oops... i get why it was taking so slow... I had made amistake in the timer.
Attached Files
File Type: sbp Open Source Code.sbp (6.8 KB, 13 views)

Last edited by neilnapier : 12-10-2007 at 05:04 PM.
Reply With Quote
  #92 (permalink)  
Old 12-10-2007, 05:15 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Neil, Ive just seen how uve merged the two codes - not efficient because its doing all the processing for pensize, drawing lines etc in the loop thats moving the pixels. I'll merge the code, u work on the dll?


do u have Visual C# 2008 compiler, Express edition is free from Microsoft, if not can u download it because then u can maintain the dll library?

To get rid of those stray pixels I need an extra line in the C# routine

If u can be the C# guy on this we wont have to keep asking Agraham to bail us out?

Last edited by colin9876 : 12-10-2007 at 05:27 PM.
Reply With Quote
  #93 (permalink)  
Old 12-10-2007, 05:18 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

I could do it but I know no C# whatsoever. So as long as you give me code then I will do it.

EDIT: I have Visual C++ 2005 Express edition... will that do?
Reply With Quote
  #94 (permalink)  
Old 12-10-2007, 05:19 PM
RandomCoder's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: UK
Posts: 486
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Neil, I was just checking out your open source code to see how your getting on but it's not possible without the images. Can you please upload the image file zipped or if you prefer PM me a copy so that I may take a look.

Thanks,
RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD.
Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD.

"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #95 (permalink)  
Old 12-10-2007, 05:26 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

OK here it is... just paste the img folder. It reads from inside the img folder in the program.

Also I don't undertand all that stuff in the dll. There is like 30 folders in it!
Attached Files
File Type: zip img.zip (33.0 KB, 6 views)
Reply With Quote
  #96 (permalink)  
Old 12-10-2007, 05:38 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,770
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

I've found time to look at this again. The previous dll versions were quick and dirty and the loop ends and indexing weren't quite right as I hadn't bothered too much, also it left pixels behind.

Here's what should be a clean version with bounds limiting so it won't error and won't leave pixels behind. Note that there are changes in bstest.sbp. At pixel creation you were effectively indexing from base1 - it is now base 0 and your bounds checking is gone.

Visual C++ 2005 Express edition might do for the desktop as I believe that you can create managed assemblies with it - but I have never used it. However none of the Express editions can compile for a device. You need Visual Studio or SharpDevelop for that or roll your own at the command line with the free Microsoft SDK.
Attached Files
File Type: zip BitmapHandlerDll.zip (3.1 KB, 5 views)
Reply With Quote
  #97 (permalink)  
Old 12-10-2007, 05:44 PM
Senior Member
 
Join Date: Oct 2007
Posts: 147
Default

That is amazingly fast!!!

Well done. I wish I was of some help as it is my project but you guys are supreme compared to my simple knowledge of the language.

Last edited by neilnapier : 12-10-2007 at 05:53 PM.
Reply With Quote
  #98 (permalink)  
Old 12-10-2007, 05:46 PM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default Thanks again

Neil - ur interface is nice, & ur an enthusiastic project manager!

Free Expess edition - no dlls .. shame - I knew it was too good to be true!

Last edited by colin9876 : 12-10-2007 at 05:52 PM.
Reply With Quote
  #99 (permalink)  
Old 12-10-2007, 05:58 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,770
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by neilnapier View Post
Could you change it so that there is a variable in the code or in the dll so that you can change the colour of the pixels.
Look at it closely Neil But its all or nothing I'm afraid. You could always pass the colours in as another array like in this version!
Attached Files
File Type: zip BitmapHandlerDll.zip (3.1 KB, 1 views)
Reply With Quote
  #100 (permalink)  
Old 12-10-2007, 06:00 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,770
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by colin9876 View Post
Free Expess edition - no dlls .. shame - I knew it was too good to be true!
Dlls yes : so you could do libraries for Basic4PPC but only for the desktop.
Reply With Quote
Reply



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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Personal Pocket PC Wiki tsteward Open Source Projects 121 11-29-2008 09:06 AM
Tippy v.1.0 [open source] N1c0_ds Share Your Creations 4 11-20-2008 10:08 PM
Another Pocket Wiki digitaldon37 Open Source Projects 1 09-17-2008 11:01 AM
Pocket Burning Sand neilnapier Questions & Help Needed 2 11-05-2007 08:53 PM
dzSpy - Spy and Task Manager App - Open Source dzt Share Your Creations 3 07-15-2007 06:21 AM


All times are GMT. The time now is 05:39 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0