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.


Compiled program won't run


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-27-2008, 12:35 AM
Junior Member
 
Join Date: Feb 2008
Posts: 19
Default Compiled program won't run

I have gone through the sets and written some code, compiled and created a setup. I included all the libraries that I think I need.

Installed to the PPC and when I execute the EXE, I get the error message

"Can not find "myfilename" (or one of its components) Make sure the path adn filename are correct and all the required libraries are available.

Any suggestions?????

Thanks
Dave
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 05:51 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,845
Default

Instead of building a setup file you can just copy the required files to the device and run the executable. This is easier for testing.
What is "myfilename"?
Which libraries do you use?
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 08:59 AM
Junior Member
 
Join Date: Feb 2008
Posts: 19
Default

The file name is test.exe It is a simple GPS application that I am doing to get familiar with basic4ppc

I have included serial2.dll and gps.dll and they both copied to the application folder during the install.

It seems like I need some other libraries. I do have a save dialog, does that require a different library?

Thanks
Dave
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 09:05 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,845
Default

The save dialog doesn't require any library.
Did you try to copy the compiled executable with these two libraries (and maybe other files - images, data...) and run it on the device?
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 09:17 AM
Junior Member
 
Join Date: Feb 2008
Posts: 19
Default

Attached are the files that I included in the CAB file. I also include the file test.shp for your review. I didn't include that file in the CAB.

Ran ok on the desktop.

Thanks for the help. This is my first attempt at PPC programming.

Dave
Reply With Quote
  #6 (permalink)  
Old 02-27-2008, 09:18 AM
Junior Member
 
Join Date: Feb 2008
Posts: 19
Default

Yes with the same error message. I loads on the PPC ok, just get the error on execution.

Thanks
Dave
Reply With Quote
  #7 (permalink)  
Old 02-27-2008, 09:43 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,368
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I copied your test.exe, earth.png, home.png serial2.dll and gps.dll from your zip to my Axim X30 and it ran without error. Are you sure that your device has .NET 2.0 installed?
Reply With Quote
  #8 (permalink)  
Old 02-27-2008, 10:43 AM
Junior Member
 
Join Date: Feb 2008
Posts: 19
Default

I will check that out. I thought I had updated but it makes sense. I am really enjoying working with Basic4PPC.

I got up to speed and running in short order.

Thanks
Dave
Reply With Quote
  #9 (permalink)  
Old 02-27-2008, 11:46 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 516
Awards Showcase
Competition Winner 
Total Awards: 1
Default

Hi djmrozinski
I tried also your test.zip code.
Unzipped it, copied it to my Qtek9090 and it works without any problems.
What is 'myfilename' you are referening to in your first post, there is no such word in your code?

Klaus
Switzerland
Reply With Quote
  #10 (permalink)  
Old 02-27-2008, 11:47 AM
Junior Member
 
Join Date: Feb 2008
Posts: 19
Default

Just used that as a referring to my app name test.exe
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
Speed of the compiled application? JamesC Questions & Help Needed 5 03-12-2008 11:59 PM
Compiled version 6.05 and SQL BjornF Questions & Help Needed 2 02-13-2008 02:30 PM
Compiled 1/2 size bdiscount Questions & Help Needed 1 01-09-2008 03:05 PM
Code protection in compiled EXE WZSun Basic4ppc Wishlist 3 05-10-2007 01:59 PM


All times are GMT. The time now is 07:17 AM.


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