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
  #81 (permalink)  
Old 03-11-2008, 10:24 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,208
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

VS2005 solution in VB. B4PPC example in the Bin\Release folder.
Attached Files
File Type: zip TestEvent.zip (26.7 KB, 23 views)
Reply With Quote
  #82 (permalink)  
Old 05-29-2008, 04:48 AM
Junior Member
 
Join Date: Jan 2008
Posts: 17
Default

I've read all 9 pages of this forum and I have one fundemental question.

Given that I wish todevelop a library dll for an HTC Mogul (WM6 and .NET CF2) using #develop, what exactly so I have to download and install on the desktop besides #develop 2.2?

Regards,
Jim
Reply With Quote
  #83 (permalink)  
Old 05-29-2008, 06:50 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,025
Default

All the targeteable .NET CF SDK...
In the Sharp Develop Pages you will see a "also must have installed" info...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #84 (permalink)  
Old 05-29-2008, 01:30 PM
Junior Member
 
Join Date: Jan 2008
Posts: 17
Default

Cableguy,

That's my problem.

When I go to the MS website looking for the referenced SDK, Microsoft .NET Compact Framework 2.0 SDK, there doesn't seem to be such a thing. Any time I find a reference to that name and link to it, I get shown the Microsoft .NET Framework 2.0 SDK (x86).

I already have installed:

Microsoft .NET Compact Framework 2.0 SP2
Micorsoft .NET Framework 2.0

which I believe are correct.

It's the SDK that is baffling me, I just can't seem the find the one referenced.

These .NET distribution are making me bleary eyed. Or it could just be adding one too many programming languages to the list fo 25-30 learned over 45 years.

Cableguy, if you could point me to the requsite SDK, I'd appreciate it.

BTW, are nCOver, FXCop, and SVN????? also needed as documented.

Regards,
Jim

P.S. Where in Portugal are you? I've spent some wonderful days in Lisbon on business trips.
Reply With Quote
  #85 (permalink)  
Old 05-30-2008, 06:56 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,025
Default

Quote:
Originally Posted by obrienj View Post
Cableguy,

That's my problem.

When I go to the MS website looking for the referenced SDK, Microsoft .NET Compact Framework 2.0 SDK, there doesn't seem to be such a thing. Any time I find a reference to that name and link to it, I get shown the Microsoft .NET Framework 2.0 SDK (x86).
That should be correct as its MUST be installed in a desktop...(X86)...

Anyway I made a simple search for ".Net" in The M$ Download Center, Here are the results

Quote:
I already have installed:

Microsoft .NET Compact Framework 2.0 SP2
Micorsoft .NET Framework 2.0

which I believe are correct.
Yes, and they should be enough for most cases...
SDK is only needed,(I THink) if ou intent to do some "Include" in our DLL's...
Still, if you are targeting other versions of .NET, THEY MUST ASO BE INSTALLED, as .Net 1.0, .Net 1.1, etc...

Cableguy, if you could point me to the requsite SDK, I'd appreciate it.

Quote:
BTW, are nCOver, FXCop, and SVN????? also needed as documented.
Never needed them....

Quote:
P.S. Where in Portugal are you? I've spent some wonderful days in Lisbon on business trips.
Try my Location Coordinaes in google maps...
or find me in our comuniy map,a nd you will see that I'm a Northenrn man, from a city near OPorto..
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #86 (permalink)  
Old 05-30-2008, 08:16 PM
Junior Member
 
Join Date: Jan 2008
Posts: 17
Default

Cableguy,

Thanks for all the help. I've got everything in place and have sucessfully compiled for the PC both the DLL and B4P parts of a sample named MyDLL found in somewhere in this tread.

Next I want to do the same for the my device but am still searching how to do compile the DLL for the device with #develop. I've already figured it out for B4P and have compiled that part of the sample for the device.

Next, I plan to build .NET based versons of some services I've developed in other languages to do serialization (MutEx), events (Event), and file mapping (Shared Storage, needs NET CF2.0). I hope to build all for both the PC and device.

For what I'm doing I need that kind of IPC support between processes and in a few cases, threads.

Again thanks for the help.

Regards,
Jim O'Brien
Reply With Quote
  #87 (permalink)  
Old 05-30-2008, 08:21 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,025
Default

Any DLL targeting the .NET COMPACT FRAMEWORK will run on the device.In the #Develop Option, you should find the targetable paltform, or something similar, as I don't have it installed at the moment...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #88 (permalink)  
Old 05-30-2008, 08:44 PM
Junior Member
 
Join Date: Jan 2008
Posts: 17
Default How to organize for dual platform development

Now that I seem to have all the development pieces (B4P, #develop, and .NET 2.0 (Win32 and CF)) I'm curious about anyone's thoughts on how to organize project directories to handle building of C# and B4P components for dual platforms, in my case a PC and an HTC Mogul running WM6.

Any additonal question is how, in both #develop and B4P, to setup project definitions to allow for simultanous development such that any change to the source will be reflected in all target platform components. My assumption here is that the source for a given project will be common across platforms.

Anyone got any ideas on this?

Regards,
Jim
Reply With Quote
  #89 (permalink)  
Old 05-30-2008, 08:52 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,025
Default

From the main help file:

Quote:
cPPC - True if the application is running on a Device and false if it is running on the Desktop.
False
True
Version (Basic4ppc version)
So you can set the app by cheking if it is running on the device, if not its on the desktop...

Code:
.......
If cPPC= True then RunOnDevice Else RunOnDeskTop
.......

Sub RunOnDevice
'Set the app to run on the device
......
End sub

Sub RunOnDeskTop
´Set the app to run on DeskTop
......
End Sub
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #90 (permalink)  
Old 05-30-2008, 09:30 PM
Junior Member
 
Join Date: Jan 2008
Posts: 17
Default

Actually I'm not as concerned about execution time as much as I am how to build and store the execution components (*.exe and .dll) for each platform from a common source in the easiest most effective way.

If I can't build from common source then so be it but I'd really like to.

Or am I missing something relative to Cableguy's post. I didn't think that in B4P I had to consider which platform I was running on. I'm pretty sure I don't in .Net except where .Net the PC and .Net for CF don't share common class defintions. Did I miss something?

Regards,
Jim
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
How to create .cab file for Smartphone? RCC2k7 Questions & Help Needed 1 05-30-2008 07:02 AM
How to create a new appointment willisgt Questions & Help Needed 2 05-15-2008 08:21 PM
how to create a database ? gjoisa Questions & Help Needed 27 02-14-2008 05:38 PM
Can you help me create B4P lib? conf Questions & Help Needed 7 08-20-2007 07:41 PM
how to create spreadsheetlike function? Stellaferox Questions & Help Needed 10 06-30-2007 01:09 PM


All times are GMT. The time now is 11:44 PM.


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