Re: [U2] Uniobjects on windows mobile/CE
> From: Jeff Schasny > "Cannot open UniObjects Session Error = > MissingManifestResourceException" Jeff, a Google for "MissingManifestResourceException" returns 24 thousand hits including references to a MS KB article. Perhaps a solution isn't that far away. As far as the differences between C# and VB.NET, it's really just a matter of syntax. The .NET framework and the UO library remain exactly the same in terms of the classes, methods, and properties. I know this seems a little weird on first thought, but try to ignore the syntax and just write your VB code using the C# code as a guide, rather than trying to translate line for line. When I got over that mental hurdle I found I could translate pretty much anything very quickly, on sight. (It's a lot like spoken languages in that regard.) There are also websites that translate code for you from C# to VB or VB to C#. I wouldn't copy/paste customer code or other valuable code into a website like that, but test ditties aren't a problem. HTH T ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Unidata XDOMWrite to file
I didn't finish my train of though when I just replied. My larger program is mired in some Bill of Lading Logic. I need to finish up another assignment before the holiday so I will pick this up after Thanksgiving. Have a good weekend guys and I will be back on this shortly. I know since my hello world worked, my system is capable of writing in this fashion. Regards, Steve ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Unidata XDOMWrite to file
On 11/24/2010 2:15 PM, Steve Long wrote: Steve - Can you provide a sample of your code so I can see the steps you are taking? I might be able to help. Thanks, Steve Long Spyderweb Techincal Services, Inc. (360) 687-8797 Office (866) 354-5913 Fax www.spyderwebtech.net Hi Steve, I broke my problem down into a smaller HelloWorld and was able to write to _XML_ so I am sure I have a problem in my application. I am on the trail! BTW, ported Gregor's method to Unidata. That is the DEFFUN I am using. http://gdoesu2.wordpress.com/2010/10/25/an-easier-way-to-build-xml-in-universe/ This example works. $BASICTYPE "U" * manual build of xml using XDOM $INCLUDE USER.INCLUDE XML.H * Define the function we are going to use DEFFUN ADD_XML_ELEMENT(a,b,c,d,e,f) doc.XML = "" * Trying to build xml: * * Learning the Ropes * Getting Smarter * Bonding the James Way * * Create the doc xmlStatus = XDOMCreateRoot(domHandle) * Add the root element xmlStatus = ADD_XML_ELEMENT( domHandle, "PurchaseHistory", "", "", "", newnode) * add the PurchaseItem elements attrNode = "Ref": @AM: "ABC123" xmlStatus = ADD_XML_ELEMENT( newnode, "PurchaseItem", "Learning the Ropes", attrNode, "", subnode) xmlStatus = XDOMClose(subnode) attrNode = "Ref": @AM: "CODE86" xmlStatus = ADD_XML_ELEMENT( newnode, "PurchaseItem", "Getting Smarter", attrNode, "", subnode) xmlStatus = XDOMClose(subnode) attrNode = "Ref":@VM:"Security": @AM: "CODE007": @VM: "High" xmlStatus = ADD_XML_ELEMENT( newnode, "PurchaseItem", "Bonding the James Way", attrNode, "", subnode) xmlStatus = XDOMClose(subnode) * Output the XML xmlStatus = XDOMWrite( domHandle, doc.XML, XML.TO.STRING) CRT "XML = " CRT "[":doc.XML:"]" FOUT.NAME = "SBR.xml" xmlStatus = XDOMWrite( domHandle, FOUT.NAME , XML.TO.FILE) xmlStatus = XDOMClose(newnode) xmlStatus = XDOMClose(domHandle) Thanks though. ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Uniobjects on windows mobile/CE
OK... I've got the latest UniObjects CF .dll and Universe 10.3 all loaded up on my machine. I've converted an existing UniObjects Visual Basic 2008 Windows app which (works nicely on XP/Vista/7) to Windows mobile. No matter which combination of Windows platform (Mobile 5, Mobile 6, CE) and .NET Framework (2.0 or 3.5) I attempt to use in creating the app it builds and deploys just fine but when the programs is run either in the emulator of on a device I get the same error message: "Cannot open UniObjects Session Error = MissingManifestResourceException" When running this "try" loop Try sess = UniObjects.OpenSession("**machine**", "**username**", "**password**", "c:\local") Catch ex As Exception MsgBox("Cannot open UniObjects Session Error = " & ex.Message) Close() End Try The error detail is not much more helpful than the message itself. Anyone? Rocket? I'm more than willing to send along the code but I'm pretty sure that if I can get past the initial connection everything will be OK. The demo app in the article David pointed me to works on my machine but since I dont have the C# module in Visual Studio and am not a C# programmer it does me little good. Hona, David wrote: Talk about bad timing, it's now moved here: https://u2devzone.rocketsoftware.com/accelerate/articles/compact-framework/compact-framework Annoyingly, yet another (separate) user-ID and password is required for this site!! :-( All the U2 articles/tutorials have been moved to: https://u2devzone.rocketsoftware.com/accelerate/articles/index https://u2devzone.rocketsoftware.com/accelerate/tutorials/index -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Jeff Schasny Sent: Tuesday, 23 November 2010 3:55 AM To: U2 Users List Subject: Re: [U2] Uniobjects on windows mobile/CE Thanks David, but I got a 404 not found on the link. I did start a Windows Mobile app in Visual Studio 2008 and added in the Uniobjects.NET .dll with no problem. I pasted in the whole "Try" loop for establishing a session from another app I had previously developed and it seemed to like the syntax/objects just fine. Unfortunately, not being in the office today I could only attempt to deploy it to the emulator and the deploy blew up quite nicely. I'm not too worried about that however since the emulator is notoriously buggy. Hona, David wrote: Check this out: https://u2tcint.rocketsoftware.com/developerzone/techarticles/nkesic0909/ -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Jeff Schasny Sent: Saturday, 20 November 2010 4:53 AM To: U2-Users@listserver.u2ug.org Subject: [U2] Uniobjects on windows mobile/CE Does anyone know if Uniobjects with work on Windows Mobile or CE? ** IMPORTANT MESSAGE * This e-mail message is intended only for the addressee(s) and contains information which may be confidential. If you are not the intended recipient please advise the sender by return email, do not use or disclose the contents, and delete the message and any attachments from your system. Unless specifically indicated, this email does not constitute formal advice or commitment by the sender or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its subsidiaries. We can be contacted through our web site: commbank.com.au. If you no longer wish to receive commercial electronic messages from us, please reply to this e-mail by typing Unsubscribe in the subject line. ** ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users -- Jeff Schasny - Denver, Co, USA jschasny at gmail dot com ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Unidata XDOMWrite to file
Steve - Can you provide a sample of your code so I can see the steps you are taking? I might be able to help. Thanks, Steve Long Spyderweb Techincal Services, Inc. (360) 687-8797 Office (866) 354-5913 Fax www.spyderwebtech.net -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Steve Romanow Sent: Wednesday, November 24, 2010 8:09 AM To: U2 Users List Subject: [U2] Unidata XDOMWrite to file Hi Guys, I am trying to write a DOM object to file and nothing is appearing in _XML_. The status shows success, but no file. When trying the same program TO.STRING, it I can see the generated XML. Thoughts? Unidata 6.1 on aix 5.3. Steve ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
[U2] Unidata XDOMWrite to file
Hi Guys, I am trying to write a DOM object to file and nothing is appearing in _XML_. The status shows success, but no file. When trying the same program TO.STRING, it I can see the generated XML. Thoughts? Unidata 6.1 on aix 5.3. Steve ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users