前往Shuct.Net首页

Shudepb PB反编译专家长时间以来,为业内同类软件事实上的唯一选择.细节,彰显专业.态度,决定品质.

关于PowerBuilder的搜索

SAP Sybase Forums - PowerBuilder - Objects - Structure to Blob &times; Sybase NNTP forums - End Of Life (EOL) The NNTP forums from Sybase - forums.sybase.com - are now closed. All new questions should be directed to the appropriate forum at the SAP Community Network (SCN). Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center. Forums Archive > PowerBuilder > Objects > "Structure to Blob" Structure to Blob 4 posts in Objects . Last posting was on 2002-11-22 14:40:39.0Z Pablo_DC Posted on 2002-10-01 13:07:54.0Z Newsgroups: sybase.public.PowerBuilder.objectsFrom: Pablo_DCDate: Tue, 1 Oct 2002 09:07:54 -0400Subject: Structure to BlobLines: 5MIME-Version: 1.0Content-Type: text/plain; charset=&#034;us-ascii&#034;Content-Transfer-Encoding: 7bitMessage-ID: <364_0E93EEE21DE3C2E6004822A185256C45.004822C585256C45@webforums>Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!newsXref: forums-1-dub sybase.public.PowerBuilder.objects:885 Article PK: 713452 how convert a structure to blob? previously, I try with BlobEdit, but haven't reul... Thanks in advance. Paul B Posted on 2002-10-29 16:58:01.0Z Newsgroups: sybase.public.PowerBuilder.objectsFrom: &#034;Paul B&#034; <Pawel.Bodnar@atena.pl>Subject: Re: Structure to BlobDate: Tue, 29 Oct 2002 17:58:01 +0100Lines: 31Organization: AtenaX-Priority: 3X-MSMail-Priority: NormalX-Newsreader: Microsoft Outlook Express 5.50.4522.1200X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200NNTP-Posting-Host: hades.atena.pl 212.160.158.13Message-ID: <364_oGHLn32fCHA.296@forums.sybase.com>References: <364_0E93EEE21DE3C2E6004822A185256C45.004822C585256C45@webforums>Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.comXref: forums-1-dub sybase.public.PowerBuilder.objects:832 Article PK: 713404 here is another solution Subroutine MoveMemoryByte(ref blob pblb_dst , ref your_structure pstr_source, ulong lLenght ) library "kernel32.dll" alias for RtlMoveMemory And the code in PowerBuilder: your_structure lo_str Blob lblb_data ulong ll_size //you have to know size of your structure (I hope you don't use any object types ), just count attributes size in bytes. ll_size = //size of your structure in bytes lblb_data = blob( fill(' ' , ll_size ) ) MoveMemoryByte ( lblb_data , lo_str , ll_size ) //now you have a copy of structure in blob, If you want to convert blob into a structure just declare another external function like : Subroutine MoveMemoryBack( ref your_structure pstr_dest, ref blob pblb_src , ulong lLenght ) library "kernel32.dll" alias for RtlMoveMemory Uzytkownik <Pablo_DC> napisal w wiadomosci news:0E93EEE21DE3C2E6004822A185256C45.004822C585256C45@webforums... > how convert a structure to blob? > previously, I try with BlobEdit, > but haven't reul... > > Thanks in advance. Adrian Gomez Posted on 2002-11-22 03:51:33.0Z Newsgroups: sybase.public.PowerBuilder.objectsFrom: &#034;Adrian Gomez&#034; <adriancgomez@hotmail.com>Subject: Re: Structure to BlobDate: Fri, 22 Nov 2002 00:51:33 -0300Lines: 48X-Priority: 3X-MSMail-Priority: NormalX-Newsreader: Microsoft Outlook Express 6.00.2800.1106X-Mimeole: Produced By Microsoft MimeOLE V6.00.2800.1106NNTP-Posting-Host: host206.200-43-39.telecom.net.ar 200.43.39.206Message-ID: <364_O7756ydkCHA.285@forums.sybase.com>References: <364_0E93EEE21DE3C2E6004822A185256C45.004822C585256C45@webforums> <364_oGHLn32fCHA.296@forums.sybase.com>Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.comXref: forums-1-dub sybase.public.PowerBuilder.objects:748 Article PK: 713315 It seems a fine solution to convert the structure into a blob, but..... the structure has attributes which are themselves structures too! Even more, the 2nd structure contains blobs, result from GetFullState(). Would this solution still work in this scenario? Thanks PS. I know what structure Pablo is talking about since I'm his boss :) "Paul B" <Pawel.Bodnar@atena.pl> wrote in message news:oGHLn32fCHA.296@forums.sybase.com... > here is another solution > Subroutine MoveMemoryByte(ref blob pblb_dst , ref your_structure > pstr_source, ulong lLenght ) library "kernel32.dll" alias for RtlMoveMemory > > And the code in PowerBuilder: > your_structure lo_str > Blob lblb_data > ulong ll_size > > //you have to know size of your structure (I hope you > don't use any object types ), just count attributes size in bytes. > ll_size = //size of your structure in bytes > lblb_data = blob( fill(' ' , ll_size ) ) > MoveMemoryByte ( lblb_data , lo_str , ll_size ) > > //now you have a copy of structure in blob, If you want to convert blob into > a structure just declare another external function like : Subroutine > MoveMemoryBack( ref your_structure pstr_dest, ref blob pblb_src , ulong > lLenght ) library "kernel32.dll" alias for RtlMoveMemory > > > > Uzytkownik <Pablo_DC> napisal w wiadomosci > news:0E93EEE21DE3C2E6004822A185256C45.004822C585256C45@webforums... > > how convert a structure to blob? > > previously, I try with BlobEdit, > > but haven't reul... > > > > Thanks in advance. > > Bug Posted on 2002-11-22 14:40:39.0Z Newsgroups: sybase.public.PowerBuilder.objectsFrom: &#034;Bug&#034; <fenterbug@hotmail.com>Subject: Re: Structure to BlobDate: Fri, 22 Nov 2002 08:40:39 -0600Lines: 63X-Priority: 3X-MSMail-Priority: NormalX-Newsreader: Microsoft Outlook Express 5.50.4807.1700X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700NNTP-Posting-Host: iaccess100.greyhound.com 206.66.2.100Message-ID: <364_gkHAqdjkCHA.285@forums.sybase.com>References: <364_0E93EEE21DE3C2E6004822A185256C45.004822C585256C45@webforums> <364_oGHLn32fCHA.296@forums.sybase.com> <364_O7756ydkCHA.285@forums.sybase.com>Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.comXref: forums-1-dub sybase.public.PowerBuilder.objects:746 Article PK: 713307 I would assume that you'd use the same techniques on the various elements of the structure. You might have to have two versions of the structure, one with a structure element and one with a corresponding blob element. -- (`'&Acirc;&middot;.&Acirc;&cedil;_/^\_&Acirc;&cedil;.&Acirc;&middot;'&Acirc;&acute;) f e n t e r b u g (&Acirc;&cedil;.&Acirc;&middot;'&Acirc;&acute;&Acirc;&macr;)^(&Acirc;&macr;`'&Acirc;&middot;.&Acirc;&cedil;) / \ &Acirc;&acute;&Acirc;&acute;&Acirc;&acute;^``` "Adrian Gomez" <adriancgomez@hotmail.com> wrote in message news:O7756ydkCHA.285@forums.sybase.com... > It seems a fine solution to convert the structure into a blob, but..... > the structure has attributes which are themselves structures too! > Even more, the 2nd structure contains blobs, result from GetFullState(). > > Would this solution still work in this scenario? > > Thanks > > PS. I know what structure Pablo is talking about since I'm his boss :) > > > "Paul B" <Pawel.Bodnar@atena.pl> wrote in message > news:oGHLn32fCHA.296@forums.sybase.com... > > here is another solution > > Subroutine MoveMemoryByte(ref blob pblb_dst , ref your_structure > > pstr_source, ulong lLenght ) library "kernel32.dll" alias for > RtlMoveMemory > > > > And the code in PowerBuilder: > > your_structure lo_str > > Blob lblb_data > > ulong ll_size > > > > //you have to know size of your structure (I hope you > > don't use any object types ), just count attributes size in bytes. > > ll_size = //size of your structure in bytes > > lblb_data = blob( fill(' ' , ll_size ) ) > > MoveMemoryByte ( lblb_data , lo_str , ll_size ) > > > > //now you have a copy of structure in blob, If you want to convert blob > into > > a structure just declare another external function like : Subroutine > > MoveMemoryBack( ref your_structure pstr_dest, ref blob pblb_src , ulong > > lLenght ) library "kernel32.dll" alias for RtlMoveMemory > > > > > > > > Uzytkownik <Pablo_DC> napisal w wiadomosci > > news:0E93EEE21DE3C2E6004822A185256C45.004822C585256C45@webforums... > > > how convert a structure to blob? > > > previously, I try with BlobEdit, > > > but haven't reul... > > > > > > Thanks in advance. > > > > > > 漏 Copyright Mon Feb 10 18:49:23 UTC 2014, SAP Inc. - Forums Archive v 2.2