Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Code Samples & Tips Share your recent discoveries and ideas with other users.


How to create a Basic4ppc library


Reply
 
LinkBack Thread Tools Display Modes
  #51 (permalink)  
Old 07-30-2007, 10:06 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,752
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by taximania View Post
I've got net 2 installed, but other programs don't seem to see it
From your screenshots you appear to have both CF1.0 and 2.0 installed. Are you using a config file to make your app run under CF2.0?

http://www.basic4ppc.com/netcf2.html

This is necessary as B4PPC produces CF 1.0 apps and for them to see a CF 2.0 dll they need to run in a CF 2.0 environment - which needs a config file for the exe.
Reply With Quote
  #52 (permalink)  
Old 07-30-2007, 11:30 AM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hi Louis,

The file you are looking for appears at my Visual Studio 2005 DVD at \wcu\NetCF and it's name is NETCFSetupv1.msi. Size: 4.744.704 Bytes

I can't find a separate download link at Microsoft.
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #53 (permalink)  
Old 07-30-2007, 06:47 PM
Knows the basics
 
Join Date: May 2007
Posts: 98
Default

Hi. I wish that were true for me. The device is a PAC Mate from http://www.pacmategear.com and Freedom Scientific. The hardware it has doesn't support wm 5 or wm 6 yet. We have to send these machines for an upgrade to wm 6.0, which will then run both .net 1.0 and .net 2.0. These devices run OEM versions of the Windows CE Operating system. Not sure why this is, but that is the way it is. HTH.
Quote:
Originally Posted by agraham View Post
Out of interest could you give more detail? I would like to know more about this as I thought any device that could run .NET 1.0 could load and run the .NET 2.0 Framework.
Reply With Quote
  #54 (permalink)  
Old 07-30-2007, 07:29 PM
taximania's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 237
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by agraham View Post
From your screenshots you appear to have both CF1.0 and 2.0 installed. Are you using a config file to make your app run under CF2.0?

http://www.basic4ppc.com/netcf2.html

This is necessary as B4PPC produces CF 1.0 apps and for them to see a CF 2.0 dll they need to run in a CF 2.0 environment - which needs a config file for the exe.
Your post gave me an idea. I thought, if I add my version of the CF2 to the config files, (i had included), they might work.
Version is already in the config files.

I've hard reset my device.
Re-installed NETCFSetupv2.msi and ran cgautil again.
2.0.7045.0 , 1.0.3111.0 both are now installed.

The dll example works on the desktop, not device.
If I compile for desktop it fails.
If I compile for device it fails.

My simple dll works on desktop and device.
If I compile for desktop it fails.
If I compile for device it's fine, as long as the mydll.exe.config is present.

The moral of the story:
I've given up .......

Many thanks to all who contributed to the thread and I wish you all well.


I'm still here, but looking from a back seat on dll's
__________________
Endemol
Waste of space

O2 XDA Artemis Touch Flo 4.02 Full Cube Rom WM6.1

http://www.taximania.net
Reply With Quote
  #55 (permalink)  
Old 07-31-2007, 07:17 PM
Knows the basics
 
Join Date: May 2007
Posts: 98
Default

Hi. I am now starting to think something's wrong with the configuration of my #develop software. Even when I build the ScrollBar DLL and try to use it with basic4ppc on the desktop for .net 1.1 framework, or the .net 2.0 framework with the proper .exe.config files in place, b4ppc still doesn't see any objects or methods to add. Also, do I have the write idea for building a successful dll to work with basic4ppc? This code has no errors, but once it works, I will be quite happy.

Public Class Test
Public sub New
End Sub
Public Function ShowMe() as string
return "This is a test to see if this really works!"
End Function
End Class

Also, could someone please send me the .net CF 1.0 SDK setup file from their VS package? I've looked everywhere for it, and cannot find it. Please send it to ftp://louis@braillesoft.dyndns.org, no password required. Thanks and hope to hear from someone quite soon! You guys are awesome!
Reply With Quote
  #56 (permalink)  
Old 08-01-2007, 08:45 AM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Search using Google for NETCFSetupv1
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #57 (permalink)  
Old 08-01-2007, 03:34 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hi Louis,

Attached is a the louis.zip, which includes #develop files for your simple DLL (and compiled DLL). You can use it as a template.
Also attached is a sample b4ppc file which works fine.

To see the test object at b4ppc (desktop version) is required to add the reference to your DLL, to the Desktop section.
Attached Files
File Type: zip Louis.zip (8.8 KB, 75 views)
File Type: sbp test10_Louis.sbp (445 Bytes, 65 views)
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #58 (permalink)  
Old 09-07-2007, 07:34 PM
Senior Member
 
Join Date: Jul 2007
Posts: 147
Awards Showcase
Beta Tester 
Total Awards: 1
Default math work in dll

Can somebody do a simple dll example in c# that does z = a + b. I have been trying to study all the example's and have managed to compile a dll and basic4ppc see's it and recognizes the variables but I can't pass the numbers to dll and get it to give me the answer. Would greatly appreciate source that compiles to working example. Thank you.

dennishea

edit:
I only have compack framework 2 on my desktop. Haven't figure out how to get 1.

Last edited by dennishea : 09-07-2007 at 07:43 PM.
Reply With Quote
  #59 (permalink)  
Old 09-08-2007, 11:51 AM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hi dennishea,

Are you using #develop?

Quote:
Originally Posted by dennishea View Post
Can somebody do a simple dll example in c# that does z = a + b. I have been trying to study all the example's and have managed to compile a dll and basic4ppc see's it and recognizes the variables but I can't pass the numbers to dll and get it to give me the answer. Would greatly appreciate source that compiles to working example. Thank you.
Can you post your project? I'll post it back corrected.

Quote:
Originally Posted by dennishea View Post
I only have compack framework 2 on my desktop. Haven't figure out how to get 1.
Look carefully at previous posts.
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #60 (permalink)  
Old 09-08-2007, 02:08 PM
Senior Member
 
Join Date: Jul 2007
Posts: 147
Awards Showcase
Beta Tester 
Total Awards: 1
Default

dzt Hi

If by #develope you mean sharpdevope yes that is what I am using. Yes I can send what I have. I have tried to learn from the samples that are posted here and have understood some of it. The only programing that I have worked with is basic and I always get the job done but it's not up to the standards of a professional. I have ordered a book on c# for compact framework but is not here yet. I'm thinking when I do get the book it will problay raise more questions. I appreciate your help very much.

dennishea

I'm not sure if I did the zip right so if you need more let me know.
Attached Files
File Type: zip MyDll.zip (1.2 KB, 42 views)
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
Can I use basic4ppc to create a Bluetooth middleware solution? Olav Questions & Help Needed 1 09-22-2008 12:21 PM
How to create a new appointment willisgt Questions & Help Needed 2 05-15-2008 09:21 PM
how to create a database ? gjoisa Questions & Help Needed 27 02-14-2008 06:38 PM
Can you help me create B4P lib? conf Questions & Help Needed 7 08-20-2007 08:41 PM
Table create with no data tvrman Questions & Help Needed 4 06-25-2007 09:46 PM


All times are GMT. The time now is 03:27 AM.


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