What happens when you do this? If you put Msgbox Typename(html) as the next statement, what do you get?
>Hi George, > >I just tried it with nothing except the addobject line: > >AddObject "HTMLview","html", 5,45, output.width-10, output.height-52 > >It still doesn't work, so I think it can't be possible to run it directly >from the device ide. It's nice to know, but not a major problem as I'll just >use my stub exe while working on the ppc. > >It sounds like Microsoft are taking their new WM7 down the closed Apple >route, which sounds a bit worrying to me :-( > >Thanks, > >Andrew. > > > >From: nsbasic-ce@yahoogroups.com [mailto:nsbasic...@yahoogroups.com] On >Behalf Of George Henne >Sent: 02 September 2010 11:23 >To: nsbasic-ce@yahoogroups.com >Subject: Re(2): [nsbasic-ce] Some silly questions > > >Hmmm... that doesn't make sense to me. I think the problem lies >elsewhere with HTMLview. Try writing a little two or three line program >that simply does an AddObject with HTMLview. > >Microsoft apparently has standardized the APIs in Windows 7. However, >they have restricted the new platform so it can only run apps created >with a specialized version of their tools. Until they change this >policy, third party tools are out of luck. > >>Hi George, >> >>Thanks for the reply. I should have said that htmlview isn't resolved >>even using the htmlview.nsb sample on the device (but does from a pc >>compiled exe). Basically, it's added as follows: >> >>AddObject "HTMLview","html", 5,45, output.width-10, output.height-52, >>form1_Form >> >>It's no problem really, as I can chain it from a stub exe if necessary, >>but it seems odd that I can't do it on the device. >> >>As for the device ide problem, I'm coming to the conclusion that the nsb >>ide is a bit redundant now, especially as the desktop compiler now makes >>exe files so encrypted files aren't that necessary. I've used Total >>Commander for a few years for programming php/matlab/html/java on the >>ppc so I tried it with unencrypted *.nsb files and it works well. I'm >>also trying to see if it's possible to get cedit to launch an nsb >>program: if it works I'll report back. >> >>There are quite a few programs around that use the camera on a ppc, so >>it's a shame noone's written a simple utility just to capture a photo to >>a specified location and close. If I find a way of doing it I'll let you >>know, as not having camera access is a big limitation IMHO. Maybe >>microsoft will sort out standardising the api's in the new version of >>windows mobile :) >> >>Many thanks, >> >>Andrew. >> >> >> >>-----Original Message----- >>From: George Henne <g...@nsbasic.com <mailto:gh%40nsbasic.com> > >>Sent: 01 September 2010 11:35 >>To: nsbasic-ce@yahoogroups.com <mailto:nsbasic-ce%40yahoogroups.com> ><nsbasic-ce@yahoogroups.com <mailto:nsbasic-ce%40yahoogroups.com> > >>Subject: Re: [nsbasic-ce] Some silly questions >> >>Not silly questions at all. >> >>1. How are you adding the htmlview to your project? The best way is from >>an AddObject statement, usually in the Form_Load routine. >> >>2. No changes here. The safest thing to do is restart the device IDE >>before starting to edit a different program. >> >>3. Here's the problem with accelerometers: since Microsoft never built >>any calls into the OS for this, each manufacturer had to add their own >>functions. Needless to say, no two devices do this the same way. You can >>probably create a DECLARE statement to call these functions if you can >>get the documentation from the manufacturer. I believe the same >>situation exists with cameras. >> >>George Henne >>NS BASIC Corporation >>http://www.nsbasic.com >> >>>Hi, >>> >>>Sorry, haven't posted for a while, so hope you don't mind three all at >>once :) >>> >>>1) I've been trying to use htmlview through the device ide, but it says >>>it can't resolve its id. However, it works using an exe compiled on the >>>desktop, as well as when chained from a desktop compiled stub exe. Can I >>>ask if anyone knows why I can't do this using the device ide alone, as >>>the control is supposed to be in the device rom? >>> >>>2) George, is the device ide bug that sometimes causes it to get >>>confused with filenames, and overwrite the wrong files code, fixed yet? >>> >>>3) Can I ask if anyone knows if it's possible to use a control (or >>>simple program I can call) in nsbce that can grab a camera image to put >>>in a picturebox, and one to get accelerometer data? I know basic4ppc has >>>libraries for those things, but I'd much rather use nsb. >>> >>>Many thanks :) >>> >>>Andrew. >>> >>> >>> >>> >>>------------------------------------ >>> >>>Yahoo! Groups Links >>> >>> >>> >> >> >> >> >> >>------------------------------------ >> >>Yahoo! Groups Links >> >> >> > > > > > >------------------------------------ > >Yahoo! Groups Links > > > -- You received this message because you are subscribed to the Google Groups "nsb-ce" group. To post to this group, send email to nsb...@googlegroups.com. To unsubscribe from this group, send email to nsb-ce+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/nsb-ce?hl=en.