Author | Topic: Bug in XbpClipBoard with the euro (?) | |
---|---|---|
Paulo Pinheiro | Bug in XbpClipBoard with the euro (?) on Thu, 04 Jun 2009 13:56:29 +0100 Hello all, I detected the following problem: Open a notepad, write the euro character ?, select it and copy it to clipboard. Now in an XBase++ application, with the following code gives different results oXbpSLE := XbpSLE():new() oXbpSLE:bufferLength := 512 oXbpSLE:create() oXbpSLE:pasteMarked() Place in XbpSle the content of clipboard. cString := oXbpSLE:getData() oXbpSLE:destroy() cString ==> "?" OK oClipboard := XbpClipboard():new():create() oClipboard:open() cString := oClipboard:getBuffer( XBPCLPBRD_TEXT ) oClipboard:close() oClipboard:destroy() cString == "?" BAD. Anyone has an ideia how to solve it. Notes: 1) This is the implementation of the METHOD XbpGet:PasteMarked() taken from Alaska Samples and we use it. 2) SetLocale( NLS_ICURRENCYEURO, "1" ) is already defined in our app. TIA, Paulo Pinheiro | |
Paulo Pinheiro | Re: Bug in XbpClipBoard with the euro (?) on Thu, 04 Jun 2009 13:59:02 +0100 After i posted, i realized that the message it self is wrong displayed: > oXbpSLE := XbpSLE():new() > oXbpSLE:bufferLength := 512 > oXbpSLE:create() > oXbpSLE:pasteMarked() Place in XbpSle the content of clipboard. > cString := oXbpSLE:getData() > oXbpSLE:destroy() > > cString ==> "?" OK <------------ In here we see the euro > character. "Paulo Pinheiro" <paulo.pinheiro@modulac.pt> escreveu na mensagem news:41e1a2cc$18a48cca$bba3@news.alaska-software.com... > Hello all, > > I detected the following problem: > > Open a notepad, write the euro character ?, select it and copy it to > clipboard. > Now in an XBase++ application, with the following code gives different > results > > oXbpSLE := XbpSLE():new() > oXbpSLE:bufferLength := 512 > oXbpSLE:create() > oXbpSLE:pasteMarked() Place in XbpSle the content of clipboard. > cString := oXbpSLE:getData() > oXbpSLE:destroy() > > cString ==> "?" OK > > > oClipboard := XbpClipboard():new():create() > oClipboard:open() > cString := oClipboard:getBuffer( XBPCLPBRD_TEXT ) > oClipboard:close() > oClipboard:destroy() > > cString == "?" BAD. > > Anyone has an ideia how to solve it. > > Notes: > 1) This is the implementation of the METHOD XbpGet:PasteMarked() taken > from Alaska Samples and we use it. > 2) SetLocale( NLS_ICURRENCYEURO, "1" ) is already defined in our app. > > > TIA, > Paulo Pinheiro > > > | |
Chris Andries | Re: Bug in XbpClipBoard with the euro (?) on Thu, 04 Jun 2009 17:54:27 +0200 Hi, I noticed the same problem with 'european' characters. ... Regards, Chris Andries "Paulo Pinheiro" <paulo.pinheiro@modulac.pt> wrote in message news:41e1a2cc$18a48cca$bba3@news.alaska-software.com... > Hello all, > > I detected the following problem: > > Open a notepad, write the euro character ?, select it and copy it to > clipboard. > Now in an XBase++ application, with the following code gives different > results > > oXbpSLE := XbpSLE():new() > oXbpSLE:bufferLength := 512 > oXbpSLE:create() > oXbpSLE:pasteMarked() Place in XbpSle the content of clipboard. > cString := oXbpSLE:getData() > oXbpSLE:destroy() > > cString ==> "?" OK > > > oClipboard := XbpClipboard():new():create() > oClipboard:open() > cString := oClipboard:getBuffer( XBPCLPBRD_TEXT ) > oClipboard:close() > oClipboard:destroy() > > cString == "?" BAD. > > Anyone has an ideia how to solve it. > > Notes: > 1) This is the implementation of the METHOD XbpGet:PasteMarked() taken from > Alaska Samples and we use it. > 2) SetLocale( NLS_ICURRENCYEURO, "1" ) is already defined in our app. > > > TIA, > Paulo Pinheiro > > > | |
Paulo Pinheiro | Re: Bug in XbpClipBoard with the euro (?) on Thu, 04 Jun 2009 19:35:23 +0100 Hi Chris, I don't have problem with those characters you mentioned only the euro. I tried the following characters and they all work well: 纪 Could this be a problem with the PC configuration? Best Regards, Paulo Pinheiro "Chris Andries" <chris@aboservice.be> escreveu na mensagem news:249a0a75$c7ac18b$a18@news.alaska-software.com... > Hi, > > I noticed the same problem with 'european' characters. > ... > > Regards, > Chris Andries > > "Paulo Pinheiro" <paulo.pinheiro@modulac.pt> wrote in message > news:41e1a2cc$18a48cca$bba3@news.alaska-software.com... >> Hello all, >> >> I detected the following problem: >> >> Open a notepad, write the euro character ?, select it and copy it to >> clipboard. >> Now in an XBase++ application, with the following code gives different >> results >> >> oXbpSLE := XbpSLE():new() >> oXbpSLE:bufferLength := 512 >> oXbpSLE:create() >> oXbpSLE:pasteMarked() Place in XbpSle the content of clipboard. >> cString := oXbpSLE:getData() >> oXbpSLE:destroy() >> >> cString ==> "?" OK >> >> >> oClipboard := XbpClipboard():new():create() >> oClipboard:open() >> cString := oClipboard:getBuffer( XBPCLPBRD_TEXT ) >> oClipboard:close() >> oClipboard:destroy() >> >> cString == "?" BAD. >> >> Anyone has an ideia how to solve it. >> >> Notes: >> 1) This is the implementation of the METHOD XbpGet:PasteMarked() taken > from >> Alaska Samples and we use it. >> 2) SetLocale( NLS_ICURRENCYEURO, "1" ) is already defined in our app. >> >> >> TIA, >> Paulo Pinheiro >> >> >> > > | |
Chris Andries | Re: Bug in XbpClipBoard with the euro (?) on Fri, 05 Jun 2009 09:03:37 +0200 Hi, I think my problem is maybe because I copy from different sources, and read it from the clipboard. In my case it is something with Utf8, ansi, unicode, ... I already had it with the EURO sign, so I thought it was the same problem. Regards, Chris. "Paulo Pinheiro" <paulo.pinheiro@modulac.pt> wrote in message news:400ff501$3f671119$9f9@news.alaska-software.com... > Hi Chris, > > I don't have problem with those characters you mentioned only the euro. > I tried the following characters and they all work well: > 纪 > > Could this be a problem with the PC configuration? > > Best Regards, > Paulo Pinheiro > > > "Chris Andries" <chris@aboservice.be> escreveu na mensagem > news:249a0a75$c7ac18b$a18@news.alaska-software.com... > > Hi, > > > > I noticed the same problem with 'european' characters. > > ... > > > > Regards, > > Chris Andries > > > > "Paulo Pinheiro" <paulo.pinheiro@modulac.pt> wrote in message > > news:41e1a2cc$18a48cca$bba3@news.alaska-software.com... > >> Hello all, > >> > >> I detected the following problem: > >> > >> Open a notepad, write the euro character ?, select it and copy it to > >> clipboard. > >> Now in an XBase++ application, with the following code gives different > >> results > >> > >> oXbpSLE := XbpSLE():new() > >> oXbpSLE:bufferLength := 512 > >> oXbpSLE:create() > >> oXbpSLE:pasteMarked() Place in XbpSle the content of clipboard. > >> cString := oXbpSLE:getData() > >> oXbpSLE:destroy() > >> > >> cString ==> "?" OK > >> > >> > >> oClipboard := XbpClipboard():new():create() > >> oClipboard:open() > >> cString := oClipboard:getBuffer( XBPCLPBRD_TEXT ) > >> oClipboard:close() > >> oClipboard:destroy() > >> > >> cString == "?" BAD. > >> > >> Anyone has an ideia how to solve it. > >> > >> Notes: > >> 1) This is the implementation of the METHOD XbpGet:PasteMarked() taken > > from > >> Alaska Samples and we use it. > >> 2) SetLocale( NLS_ICURRENCYEURO, "1" ) is already defined in our app. > >> > >> > >> TIA, > >> Paulo Pinheiro > >> > >> > >> > > > > > > |