• Welcome to TodayPlus Boards v2.
 

News:

No news is good news.

Main Menu

Use Info for EZ-Download

Started by ZapMe1, November 06, 2004, 03:30:02 PM

Previous topic - Next topic

uk_skinner

Quote from: ZapMe1@eemond

First, I'd like to say thanks for your help !!   :approve:   I understand Much more about EVC++ then I did before today !!
I haven't yet had a chance to download and install v.4.0, but I did try to use your info, and downloaded the source code for the "font viewer" project that I told you about..  I was able to load it into EVC++, build & compile, and then download it into my device...   and...
"It worked like a charm"   :dance:
Tomorrow I'll install v.4.0, and its SDK, and try it again !!   My next task (challenge) is to build an .exe of my own !!   :shock:  :!:
Thanks again......


Back to the current topic...  :arrow:   I really like the traffic report feed that you posted above !!   I tried it on my device, and it worked for Columbus, but I don't get a map image...  Just Titles and description !!
Do I need something different in the code in my skin ??   At the web site the map shows just fine !!   :?:


ZapMe1:

  Good to know you make progress.  eemond gets more experience than me. :approve:

 As for image, that is my trick.  The RSS feed will not give you the image, I did some code in TP to allow you display image.  This is same thing for radar image.  You need to download it first.  The link for you is
http://fp.images.autos.msn.com/images/mymsn/COL_1.gif

Once you have this image, then you can put a simple code to display it.  The trick is (in Hammerskin), use if code to display image when 1) var2 is equal to the number of your RSS traffice report, 2) when var4 and var 5 both equal to 1.  Becuase the first item is just title and incidents actually start at number 2.

I spent my most time to "dynamic skin" and will try to put some codes together for traffic report.

ZapMe1

QuoteAs for image, that is my trick. The RSS feed will not give you the image, I did some code in TP to allow you display image. This is same thing for radar image. You need to download it first. The link for you is
http://fp.images.autos.msn.com/images/mymsn/COL_1.gif
UK,
The code was easy !!  Good job !!  But (2) questions:
1) can I give the map image a simple name
2) how does the image update when road conditions change ??
ZapMe1

"The most knowledgable person in the world is not the one who possesses the most knowledge, but the one who surrounds themselves with the greatest number of knowledgable people"

uk_skinner

Quote from: ZapMe1
QuoteAs for image, that is my trick. The RSS feed will not give you the image, I did some code in TP to allow you display image. This is same thing for radar image. You need to download it first. The link for you is
http://fp.images.autos.msn.com/images/mymsn/COL_1.gif
UK,
The code was easy !!  Good job !!  But (2) questions:
1) can I give the map image a simple name
2) how does the image update when road conditions change ??

1) In EZDownload, you can name any name you want.  Do you use the exe by Rotlaus?  You can define the file path and name for any image you wish to download.

2) You can create an addtional refresh button in RSS page, I would say somewhere at th top of section.  Or if you want, you can use the same refresh button to refresh both RSS information and road map.  A simple if code will allow you to refresh image only when you are looking at traffic RSS.  I noticed, the map is being updated every 2-3 minutes (during the rush hour).  Unfortunately, there is no time stamp on the image.  The advantage to refresh both, then you can know when you update both incidents and image..

ZapMe1

Cool !!   8)
Thanks UK, I will see if I can get it going !!
ZapMe1

"The most knowledgable person in the world is not the one who possesses the most knowledge, but the one who surrounds themselves with the greatest number of knowledgable people"

ZapMe1

@eemond
@UK_Skinner

Well I think I created a problem !!   I tried to install EVC C++ 4.0, and when I did, it wasn't working correctly (locked up, and wouldn't build anything)..   so I uninstalled EVC 3.0, and still no luck...   So I uninstalled everything, and started from the beginning..
Just installed 4.0, and SDK 2003, and same problems
1) when I try to open an existing file (any), it just counts and freezes and gives a "not responding" message
2) when I try to create a "hello world", it gets to the part of installing the "skeleton" project, and...  Freezes again  :wall:

Any Ideas ??   v.3.0 worked well, maybe I should have left it alone !!  :(
ZapMe1

"The most knowledgable person in the world is not the one who possesses the most knowledge, but the one who surrounds themselves with the greatest number of knowledgable people"

uk_skinner

Quote from: ZapMe1@eemond
@UK_Skinner

Well I think I created a problem !!   I tried to install EVC C++ 4.0, and when I did, it wasn't working correctly (locked up, and wouldn't build anything)..   so I uninstalled EVC 3.0, and still no luck...   So I uninstalled everything, and started from the beginning..
Just installed 4.0, and SDK 2003, and same problems
1) when I try to open an existing file (any), it just counts and freezes and gives a "not responding" message
2) when I try to create a "hello world", it gets to the part of installing the "skeleton" project, and...  Freezes again  :wall:

Any Ideas ??   v.3.0 worked well, maybe I should have left it alone !!  :(

Do you still have SDK2002 in your hard drive?  Sorry, this might confuse you.  I heard two diiferent things.  Someone said, you need to complete get rid of the SDK2002 when you run EVC4.0 and SDK2003.  However, I also found a lot of people keep both versions (EVC3/EVC4 and 2002/2003SDK) on the same PC.  Since I alot of people made thsi claim, I do believe there is a way to have both in the same PC.   :?
I will try to find a link.  But I would suggest to see you still have 2002SDK in your PC...

ZapMe1

QuoteDo you still have SDK2002 in your hard drive? Sorry, this might confuse you. I heard two diiferent things. Someone said, you need to complete get rid of the SDK2002 when you run EVC4.0 and SDK2003. However, I also found a lot of people keep both versions (EVC3/EVC4 and 2002/2003SDK) on the same PC. Since I alot of people made thsi claim, I do believe there is a way to have both in the same PC.  
I will try to find a link. But I would suggest to see you still have 2002SDK in your PC...

At one point I got rid of everything, and just reinstalled 4.0 & SDK2003, and it still wouldn't work !!
I just reinstalled 3.0 & SDK2002...  I'm going to give it a try right now !!
ZapMe1

"The most knowledgable person in the world is not the one who possesses the most knowledge, but the one who surrounds themselves with the greatest number of knowledgable people"

ZapMe1

:arrow: Update: (Strange !)

EVC 3.0 is reinstalled, and works fine !!  Built "Hello World", worked fine, no problems..   EVC 4.0...   Still locks up the pc with "not responding"  :?:

Strange thing !!   I'm running Win XP, and, from what Microsoft says, EVC 3.0 won't run on XP, and EVC 4.0 is made for XP !!!!!!  :knownot:

I think we have this "Backwards" :wall:
ZapMe1

"The most knowledgable person in the world is not the one who possesses the most knowledge, but the one who surrounds themselves with the greatest number of knowledgable people"

uk_skinner

Quote from: ZapMe1:arrow: Update: (Strange !)

EVC 3.0 is reinstalled, and works fine !!  Built "Hello World", worked fine, no problems..   EVC 4.0...   Still locks up the pc with "not responding"  :?:

Strange thing !!   I'm running Win XP, and, from what Microsoft says, EVC 3.0 won't run on XP, and EVC 4.0 is made for XP !!!!!!  :knownot:

I think we have this "Backwards" :wall:

Can you check what folders you have in /Windows CE Tools?  I have wince420 folder in it.  I assume you install SP4 for evc 4 and you have Microsoft eMbedded C++ 4.0 in your program folder right?

ZapMe1

QuoteI assume you install SP4 for evc 4

:roll:  Ok, everyone say it with me....   "DUH"  ....    :oops:  :doh:

It does say that you need sp4 right there at the web site, but I "assumed" that the latest download would already have it !!  :knownot:

I know..   Assume= Made an a$$ out of ME !!   :oops:

Anyway, I now have EVC C++ 4.0 working fine, and coexisting with EVC C++ 3.0, also working fine !!!  :D

Now, just need to learn how to have 4.0 build for ppc2002.......

Thanks UK, you helped me out once again !!
ZapMe1

"The most knowledgable person in the world is not the one who possesses the most knowledge, but the one who surrounds themselves with the greatest number of knowledgable people"

ZapMe1

UK_Skinner gave me this web link which I believe explains how to use EVC C++ 4.0 to work with ppc2002 applications !!

http://www.ppc-welt.info/community/showpost.php?p=209383&postcount=5

But I can't read German, and don't have a translater !!
Could someone Please translate for me ??

I appreciate the help !!  :D
Thanks........
ZapMe1

"The most knowledgable person in the world is not the one who possesses the most knowledge, but the one who surrounds themselves with the greatest number of knowledgable people"

uk_skinner

Quote from: ZapMe1UK_Skinner gave me this web link which I believe explains how to use EVC C++ 4.0 to work with ppc2002 applications !!

http://www.ppc-welt.info/community/showpost.php?p=209383&postcount=5

But I can't read German, and don't have a translater !!
Could someone Please translate for me ??

I appreciate the help !!  :D
Thanks........

Try this site to translate.  But you probably need some imagnation with their translation.  But give it a try.  

http://babelfish.altavista.com/

Ok, let's try this.

1) Project -->Settings-->C/C++

In "Preprocessor Definitions" window

Change
"_WIN32_WCE=$(CEVersion),$(CePlatform),ARM,_ARM_,ARMV4,UNDER_CE=$(CEVersion),UNICODE,_UNICODE,NDEBUG"

to

"_WIN32_WCE=300,WIN32_PLATFORM_PSPC=310,ARM,_ARM_,ARMV4,UNDER_CE=300,UNICODE,_UNICODE,NDEBUG"


2) Project-->Settings-->Link

in "Project options" Window

Change

"/subsystem:$(CESubsystem) /align:"4096" "

to

"/subsystem:windowsce,3.00 /align:"4096" "

ZapMe1

:arrow:  UK, You are the man !!   :bow:

The translation site worked great, and I have everything as you have it above !!
But, if I build, I only can choose 2003 Device, or 2003 Emulator..
How do I build/save for ppc2002 ??
ZapMe1

"The most knowledgable person in the world is not the one who possesses the most knowledge, but the one who surrounds themselves with the greatest number of knowledgable people"

uk_skinner

Quote from: ZapMe1:arrow:  UK, You are the man !!   :bow:

The translation site worked great, and I have everything as you have it above !!
But, if I build, I only can choose 2003 Device, or 2003 Emulator..
How do I build/save for ppc2002 ??

I did complier for 2002 for once.  I would "guess"  :oops: to chose 2003 Device and the exe will export to your 2002PPC and try run it from your device.

ZapMe1

QuoteI did complier for 2002 for once. I would "guess"  to chose 2003 Device and the exe will export to your 2002PPC and try run it from your device.
I tried that, but it couldn't communicate with my device !!

....But....

:arrow:   Update:   I DID IT !! :dance:    I used EVC 3.0, and rebuilt the text from the .vcw file that you sent me, UK !!   I started with a new file, and choose a "simple application", then "pieced together" the code...   Then I replaced the url to match my local radar...   and.....

SUCCESS !!!!!

EzDownload got the radar image in about 1 sec, and deposited it into the radar folder I set up in the TP directory !!   :approve:

Now, just need to know how to set up in the skin to call this image/exe !!
ZapMe1

"The most knowledgable person in the world is not the one who possesses the most knowledge, but the one who surrounds themselves with the greatest number of knowledgable people"