Basic4ppc - Windows Mobile Development  

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

Questions & Help Needed Post any question regarding Basic4ppc.


Add Code


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-10-2007, 08:18 PM
giannimaione's Avatar
Senior Member
 
Join Date: Apr 2007
Location: Naples, Italy
Posts: 155
Send a message via Skype™ to giannimaione
Awards Showcase
Beta Tester 
Total Awards: 1
Default Add Code

Hi all,
how to use Tools ----> Components ----> Add Code ?

Perhaps, i can write a piece of code (routines) in MyCode.txt and to re-use it in various plans (creations) ?


thanks all

Gianni Maione
Reply With Quote
  #2 (permalink)  
Old 05-10-2007, 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,343
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Hi

Fro what i remember, the code files are txt files and are added just like the libraries, I think that thay also have to be in the apps dir
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #3 (permalink)  
Old 05-10-2007, 10:55 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

As Cableguy wrote, you add your code saved as a text file.
The text file will be copied to the application folder.
Unlike the dll files there is no need to distribute the code with your compiled application as it will be compiled (to the same EXE file).
It is also useful for large projects, to allow you to separate the code into several files.
Reply With Quote
  #4 (permalink)  
Old 05-11-2007, 10:11 PM
giannimaione's Avatar
Senior Member
 
Join Date: Apr 2007
Location: Naples, Italy
Posts: 155
Send a message via Skype™ to giannimaione
Awards Showcase
Beta Tester 
Total Awards: 1
Default

it (code txt) works very well!!!
Reply With Quote
  #5 (permalink)  
Old 06-01-2008, 05:56 PM
MM2forever's Avatar
Junior Member
 
Join Date: Jun 2007
Location: Germany
Posts: 49
Send a message via ICQ to MM2forever Send a message via MSN to MM2forever Send a message via Skype™ to MM2forever
Default

so, is there actually a way like Include("device.txt") ?

otherwise I wouldnt remark that feature as *that* useful
__________________
Regards, Christian

>> My PPC Hardware <<


There are 10 kinds of people: Those who understand binary, and those who don't.
Reply With Quote
  #6 (permalink)  
Old 06-01-2008, 07:03 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

From the original post

Tools ----> Components ----> Add Code ?

The disadvantage is that the code file is copied to the app directory so effectively breaking the link to the original code so that any changes made to the original will not be reflected to the copy, and vice versa.
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
code just... stops! Offbeatmammal Questions & Help Needed 4 06-02-2008 08:30 PM
reg code question scott93727 Questions & Help Needed 2 05-30-2008 01:24 PM
Where is Form Code? enonod Questions & Help Needed 2 10-13-2007 01:04 PM
Help with code cdeane Questions & Help Needed 9 09-22-2007 05:30 PM
Code files jerryjukem Questions & Help Needed 1 07-28-2007 07:57 PM


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


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