Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Using enumerations in Basic4ppc

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-25-2008, 11:07 AM
Newbie
 
Join Date: Feb 2008
Posts: 4
Default Using enumerations in Basic4ppc

How do you access enumeration values in external dll's ? I am trialling the FieldSoftware PrinterCE program which uses Enumerations in some of the properties. For example: the "PrOrientation" property uses ORIENTATION.PORTRAIT or ORIENTATION.LANDSCAPE - the example they give is: PrinterCE1.PrOrientation = PrinterCE.ORIENTATION.LANDSCAPE <-this is the issue.
Reply With Quote
  #2 (permalink)  
Old 02-25-2008, 02:52 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I'm not sure if it will work but you can try to pass the enum value instead.
LANDSCAPE = 2
PORTRAIT = 1
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 11:41 PM
Newbie
 
Join Date: Feb 2008
Posts: 4
Default

Thanks Erel, but I had already tried that option. It causes an "ArgumentException".
I contacted Field Software by email and they sent me a link to download a list of their global user definitions (prceuser.h). That does give a list of the value of each enumeration instead of trying to guess the value - but it doesn't solve the probelm.
I have responded to their email advising there must be something in their code causing the exception. I'll advise you if they have a solution.
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 06:46 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I don't think that they will be able to solve this problem.

You will need to use a custom wrapper.
It should be a pretty simple wrapper. I may build one in the future.
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 07:24 AM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Ioannina, Greece
Posts: 356
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hi,

This is a simple b4ppc PrinterCE wrapper, written in VB.NET in the past for my own needs. Source code and SharpDevelop solution included.

Needs also PrCE_NetCF.DLL and PrinterCE.NETCF.DLL form FieldSoftware.
Attached Files
File Type: zip dzPrinterCE.zip (11.3 KB, 85 views)
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #6 (permalink)  
Old 02-27-2008, 11:39 PM
Newbie
 
Join Date: Feb 2008
Posts: 4
Default

Hi Guys,

The repsonse from Field Software was "We have not used Basic4ppc, so you will need to contact their support to determine how to accomplish what you are seeking."

I will download your wrapper - thanks for your assistance.
Reply With Quote
  #7 (permalink)  
Old 06-20-2008, 07:00 PM
Senior Member
 
Join Date: Apr 2007
Location: Canari Islan
Posts: 103
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi friends

You have any example of how to use Printerce with Basic4ppc?


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


All times are GMT. The time now is 02:02 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0