Basic4ppc - Windows Mobile Development  

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

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.


IMEI Protection


Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 05-13-2008, 05:57 PM
taximania's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Posts: 209
Default

Quote:
Originally Posted by Erel View Post
setstrings is an input only method (you can see that only 'I' appears in the description).
I'm not sure what it's supposed to do but you can try to change the line to:
phoneID.setstrings = ""
Which indead does work

The readonly property of 'SetStrings' in PhoneID.dll actually sets the strings returned from the other properties. If it isn't called, there's nothing returned from the other properties.

I sort of got it working by accident

I've just had a look my .dll code, altered something by mistake, and now it won't compile

Oh well
__________________
Avoiding lawyers

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

http://www.taximania.net
Reply With Quote
  #12 (permalink)  
Old 05-31-2008, 08:10 AM
Knows the basics
 
Join Date: Jan 2008
Posts: 51
Default

Hello! It seems what this method don't work on my Glofiish M700 (WM 6, .net cf 2)... When i'm trying to run compiled (Force VGA mode) program (both maXim's and taximania's), it always raises an attached error. I didn't change anything in the code. Maybe my device just unusual?
Attached Images
File Type: jpg 2008-05-31-13-57-52-67.jpg (26.5 KB, 16 views)
Reply With Quote
  #13 (permalink)  
Old 05-31-2008, 12:03 PM
maXim's Avatar
Senior Member
 
Join Date: May 2007
Location: Florence, Italy
Posts: 135
Send a message via MSN to maXim Send a message via Skype™ to maXim
Post

Hi Elrick,

test with this new distribution:
Attached Files
File Type: zip db2000 GetInfoDevice.zip (24.2 KB, 16 views)

Last edited by maXim : 06-02-2008 at 10:16 AM.
Reply With Quote
  #14 (permalink)  
Old 05-31-2008, 05:29 PM
Knows the basics
 
Join Date: Jan 2008
Posts: 51
Default

Hello maXim. Thank you for you new distribution, it work when i compile it with "non-optimized" option. But i can't compile it in "force VGA" mode, i get an attached error message...
Attached Images
File Type: jpg 1.jpg (97.3 KB, 13 views)
Reply With Quote
  #15 (permalink)  
Old 05-31-2008, 07:18 PM
maXim's Avatar
Senior Member
 
Join Date: May 2007
Location: Florence, Italy
Posts: 135
Send a message via MSN to maXim Send a message via Skype™ to maXim
Post

Hi Elrick,

...
... download the file again from my previous post...
Reply With Quote
  #16 (permalink)  
Old 06-02-2008, 08:04 AM
Knows the basics
 
Join Date: Jan 2008
Posts: 51
Default

Hello again, maXim!
I'm afraid what the code from your previous post still raises an error from my previous post What is it? Is this code compiles for all, except me?
Reply With Quote
  #17 (permalink)  
Old 06-02-2008, 08:50 AM
maXim's Avatar
Senior Member
 
Join Date: May 2007
Location: Florence, Italy
Posts: 135
Send a message via MSN to maXim Send a message via Skype™ to maXim
Default

Hi Elrick,

no, is not Your problem! I still much to learn...
Excuse me to have taken advantage of Your time, however I'm still working to understand...

(I apologize for my bad English)
Reply With Quote
  #18 (permalink)  
Old 06-02-2008, 09:01 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,336
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by Elrick View Post
Hello again, [b]What is it? Is this code compiles for all, except me?
No it doesn't optimise compile because the C# compiler doesn't like this line of code produced by the B4ppc compiler.

db2000_GetInfoDevice.GetDevice+GeneralInfo _generalinfo = null;

GeneralInfo is a Struct declared private but B4ppc sees it anyway and treats it as an object. I don't really understand why the C# compiler doesn't like it, probably because as GeneralInfo is declared private it is honouring that declaration which makes it unavailable to the main program.

One solution would be to rename it to _GeneralInfo, which the B4ppc compiler will ignore due to the leading underscore, and access it through a public property which the B4ppc compiler treats correctly. It might also work if declared public.
Reply With Quote
  #19 (permalink)  
Old 06-02-2008, 09:17 AM
maXim's Avatar
Senior Member
 
Join Date: May 2007
Location: Florence, Italy
Posts: 135
Send a message via MSN to maXim Send a message via Skype™ to maXim
Post

thanks agraham!
Reply With Quote
  #20 (permalink)  
Old 06-02-2008, 10:25 AM
maXim's Avatar
Senior Member
 
Join Date: May 2007
Location: Florence, Italy
Posts: 135
Send a message via MSN to maXim Send a message via Skype™ to maXim
Post

Hi Elrick,

now works!
(at least so it seems)

Run again downloading from the following post: IMEI Protection

P.S. thanks again agraham.
Reply With Quote
Old 06-02-2008, 11:53 AM
Elrick
This message has been deleted by Elrick. Reason: sorry, my mistake. It really work!!! Thank you, maXim!
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 get imei number ? gjoisa Questions & Help Needed 9 06-26-2008 06:59 AM
Protezione tramite IMEI Raytracer Italian Forum 7 04-19-2008 02:31 PM
Imei Elrick Questions & Help Needed 3 02-16-2008 06:48 PM
How to get PPC Phone IMEI code from "basic4ppc" in491n Questions & Help Needed 3 01-28-2008 12:07 PM
Code protection in compiled EXE WZSun Basic4ppc Wishlist 3 05-10-2007 01:59 PM


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


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