CN101615118B - Method and device for exporting prototype - Google Patents

Method and device for exporting prototype Download PDF

Info

Publication number
CN101615118B
CN101615118B CN2009100416938A CN200910041693A CN101615118B CN 101615118 B CN101615118 B CN 101615118B CN 2009100416938 A CN2009100416938 A CN 2009100416938A CN 200910041693 A CN200910041693 A CN 200910041693A CN 101615118 B CN101615118 B CN 101615118B
Authority
CN
China
Prior art keywords
file
prototype
demonstration program
dynamic link
link library
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2009100416938A
Other languages
Chinese (zh)
Other versions
CN101615118A (en
Inventor
黄利贤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN2009100416938A priority Critical patent/CN101615118B/en
Publication of CN101615118A publication Critical patent/CN101615118A/en
Application granted granted Critical
Publication of CN101615118B publication Critical patent/CN101615118B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a method and device for exporting prototype. The method includes reading a resource file, generating a demonstration program file and packing the demonstration program file and a dynamic link library file to generate a prototype file. The device comprises a shell loading module, a demonstration module, a dynamic link library and a resource module; wherein the shell loading module is used for packing the demonstration program file and the dynamic link library file, so as to generate the prototype file; the demonstration module is connected with the shell loading module and is in charge of reading the resource file and generating the demonstration program file; the dynamic link library is connected with the shell loading module and the demonstration program file and is in charge of storing library functions; and the resource module is connected with the demonstration module and is in charge of storing the resource file. By adopting the method and device provided by the invention for exporting prototype, a dynamic prototype can be exported, thus meeting the experience requirement of a user.

Description

The method of exporting prototype and device
Technical field
The present invention relates to the prototyping technique field, more particularly, relate to a kind of method and device of exporting prototype.
Background technology
The prototype instrument is the instrument that is used to design design of Interaction original text or prototype, like UIDesigner, Firework, Flash, Axure, Visio and GUI Studio instrument etc.The prototype instrument can use export function with design of Interaction original text or prototype output.At present, through the interface of intercepting prototype, directly derive static images mostly.Because the prototype that derives is a static images, does not then have the performance of dynamic response.In addition, existing a lot of prototype instrument can not be under the environment that breaks away from the prototype instrument independent operating.
Summary of the invention
Based on this, be necessary to provide a kind of and can derive the method for the exporting prototype of dynamic prototype.
In addition, also be necessary to provide a kind of device that can derive the exporting prototype of dynamic prototype.
The method of said exporting prototype comprises: read resource file, generate the demonstration program file; With demonstration program file and dynamic link library file packing, generate the prototype file;
Defined built-in function in the said dynamic link library file, demonstration program utilizes said built-in function to show and reads the data in the said resource file; Said demonstration program file reads dynamic link library file and resource file through demonstration program when operation, accomplish the demo function of prototype file;
The step of said generation prototype file is specially:
Newly-built empty file stream;
Read the document flow of prototype file, demonstration program file and dynamic link library file;
The document flow of said prototype file, demonstration program file and dynamic link library file is write in the said empty file stream;
Obtain the length value of said demonstration program file and dynamic link library file, and the length value of said demonstration program file and dynamic link library file is written in the said empty file stream.
Said prototype file can be an executable file.
Wherein, the step of generation demonstration program file specifically can be: newly-built empty file stream; Read the document flow of demonstration program file and resource file; The document flow of demonstration program file and resource file is write in the empty file stream.
And the step that generates the demonstration program file also can comprise: obtain the length value of demonstration program file, and the length value of demonstration program file is written in the empty file stream.
In addition, this method also can comprise: read the prototype file, obtain the document flow of prototype file; From document flow, read the length value of demonstration program file and dynamic link library file; Read the document flow of demonstration program file according to the length value of demonstration program file, generate the demonstration program file; Read the document flow of dynamic link library file according to the length value of dynamic link library file, generate dynamic link library file.
This method also can comprise: read the demonstration program file, obtain the document flow of demonstration program file; From said document flow, read the length value of demonstration program; Read the document flow of resource file according to the length value of demonstration program file, generate resource file; Utilize the built-in function demonstration in the dynamic link library file or read interface and the response message in the resource file.
The device of said exporting prototype comprises: the shell load-on module is used for demonstration program file and dynamic link library file packing are generated the prototype file; Defined built-in function in the said dynamic link library file, demonstration program utilizes said built-in function to show and reads the data in the said resource file; Said demonstration program file reads dynamic link library file and resource file through demonstration program when operation, accomplish the demo function of prototype file; Demonstration module links to each other with the shell load-on module, reads resource file, generates the demonstration program file; Dynamic link library links to each other with shell load-on module and demonstration module, preserves built-in function; Resource module links to each other with demonstration module, preserves resource file; Said shell load-on module also is used for through newly-built empty file stream; Read the document flow of prototype file, demonstration program file and dynamic link library file; And the document flow of said prototype file, demonstration program file and dynamic link library file is written in the empty file stream, thereby generate the prototype file; Said shell load-on module also is used to obtain the length value of said demonstration program file and dynamic link library file, and said length value also is written in the empty file stream.
Said prototype file can be an executable file.
In the method for above-mentioned exporting prototype and the device, generate the demonstration program file, and, generate the prototype file demonstration program file and dynamic link library file packing through reading resource file.The prototype file that is generated is an independently executable file, does not have any subsidiary configuration file, and under the environment that breaks away from the prototype instrument, also can move.Then can be during operation prototype file through the built-in function in the dynamic link library file, read and show interface and the response message in the resource file.Therefore, derivation be dynamic prototype, it has outside the user interface of high-fidelity, also can carry out response events.
Description of drawings
Fig. 1 is the method flow diagram of exporting prototype among the embodiment;
Fig. 2 is the method flow diagram that generates the demonstration program file among the embodiment;
Fig. 3 is the method flow diagram that generates the prototype file among the embodiment;
Fig. 4 is the method flow diagram of operation prototype file among the embodiment;
Fig. 5 is the method flow diagram of operation demonstration program file among the embodiment;
Fig. 6 is the structural representation of the device of exporting prototype among the embodiment.
Embodiment
Fig. 1 shows the method flow of exporting prototype among the embodiment, and detailed process is following:
In step S101, read resource file, generate the demonstration program file.
In step S102,, generate the prototype file with demonstration program file and dynamic link library file packing.
In the above-mentioned resource file, contain user interface and response data etc., it can have the .res file extension.And dynamic link library file (being also referred to as dll file) is a kind of configuration file, has wherein defined a large amount of built-in functions, and demonstration program can utilize these built-in functions to show and read the data in the resource file.The demonstration program file that generates can read dynamic link library file and resource file through demonstration program when operation, accomplish the demo function of prototype file.
Fig. 2 shows the method flow that generates the demonstration program file among the embodiment, and detailed process is following:
In step S201, newly-built empty file stream.
In step S202, read the document flow of demonstration program file, obtain the length value of demonstration program file.
In step S203, read the document flow of resource file.Contain user interface and response data etc. in the resource file.
In step S204, with the document flow of demonstration program file and resource file, and the length value of demonstration program file writes in the empty file stream.At this moment, the file of generation is the demonstration program file.
Fig. 3 shows the method flow that generates the prototype file among the embodiment, and detailed process is following:
In step S301, newly-built empty file stream.
In step S302, read the document flow of prototype file.
In step S303, read the document flow of demonstration program file, and obtain the length value of demonstration program file.
In step S304, read the document flow of dynamic link library file, and obtain the length value of dynamic link library file.
In step S305, the document flow of prototype file, demonstration program file and dynamic link library file is write in the empty file stream.
In step S306, the length value of demonstration program file and dynamic link library file is write in the empty file stream.At this moment, the file of generation is the prototype file.
The prototype file of above-mentioned generation is an independently executable file (.exe file), need not subsidiary any configuration file, and can under the environment that breaks away from the prototype instrument, move, and will set forth the detailed process of operation prototype file below.
Fig. 4 shows the method flow of operation prototype file among the embodiment, and detailed process is following:
In step S401, read the prototype file, obtain the document flow of prototype file;
In step S402, from said document flow, read the length value of demonstration program file and dynamic link libraries file;
In step S403, read the document flow of demonstration program file according to the length value of demonstration program file, generate the demonstration program file.This demonstration program file is a file independently, can be kept in the local folders.
In step S404, read the document flow of dynamic link library file according to the length value of dynamic link library file, generate dynamic link library file.This dynamic link library file is a file independently, can be kept in the local folders.
Fig. 5 shows the method flow of operation demonstration program file among the embodiment, and detailed process is following:
In step S501, read the demonstration program file, obtain the document flow of demonstration program file.
In step S502, from said document flow, read the length value of demonstration program file.
In step S503, read the document flow of resource file according to the length value of demonstration program file, generate resource file.
In step S504, utilize the built-in function demonstration in the dynamic link library file or read interface and the response message in the resource file.
Can know by foregoing; During operation prototype file; Can read the data in dynamic link library file and the resource file through demonstration program, show or read interface and the response message in the resource file, accomplish the demo function of prototype file through the built-in function in the dynamic link library file.The prototype file of therefore being derived is dynamic, and it provides respective interface, and can carry out response events (as clicking or double-click response etc.), makes the prototype of derivation more lively, has satisfied user's demand for experience.
Fig. 6 shows the device of exporting prototype among the embodiment, and this device comprises shell load-on module 100, demonstration module 200, dynamic link library 300 and resource module 400, wherein:
Shell load-on module 100 is used for demonstration program file and dynamic link library file packing are generated the prototype file; Demonstration module 200 links to each other with the shell load-on module, is used to read resource file, generates the demonstration program file; Dynamic link library 300 links to each other with shell load-on module 100 and demonstration module 200, is used to preserve built-in function; Resource module 400 links to each other with demonstration module 200, is used to preserve resource file.
In one embodiment; Demonstration module 200 is through newly-built empty file stream; Read the document flow of the resource file in demonstration program file and the resource module 400, and the document flow of demonstration program file and resource file is write in the empty file stream, thereby generate the demonstration program file.In one embodiment, demonstration module 200 also can obtain the length value of demonstration program file, and this length value also is written in the empty file stream.And shell load-on module 100 is through newly-built empty file stream; Read the document flow of prototype file, demonstration program file and dynamic link library file; And the document flow of this prototype file, demonstration program file and dynamic link library file is written in the empty file stream, thereby generate the prototype file.In one embodiment, shell load-on module 100 also can obtain the length value of demonstration program file and dynamic link library file, and this length value also is written in the empty file stream.
In one embodiment; By shell load-on module 100 operation prototype files; Obtain the document flow of prototype file through the prototype file that reads above-mentioned generation; And from document flow, read the length value of demonstration program file and dynamic link library file, read the document flow of demonstration program file according to the length value of demonstration program file, thereby generate independently demonstration program file; Read the document flow of dynamic link library file according to the length value of dynamic link library file, thereby generate independent dynamic chained library file.Demonstration program file that is generated and dynamic link library file can be kept in the local folders, have defined built-in function in the dynamic link library file, can offer demonstration module 200.
In one embodiment; By demonstration module 200 operation demonstration program files; Obtain the document flow of demonstration program file through the demonstration program file that reads above-mentioned generation; And read the length value of demonstration program file from document flow, read the document flow of demonstration program file according to this length value, thereby generate independently demonstration program file.In addition, preserve resource file in the resource module 400, can offer demonstration module 200.Demonstration module 200 reads the document flow of resource file according to the length value of demonstration program file, thereby generates independently resource file.The demonstration program file and the resource file that are generated can be kept in the local folders.During these demonstration program files of demonstration module 200 operation, utilize the built-in function in the dynamic link library file, show or read interface information and the response message in the resource file.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. the method for an exporting prototype is characterized in that, said method comprises:
Read resource file, generate the demonstration program file;
With said demonstration program file and dynamic link library file packing, generate the prototype file;
Defined built-in function in the said dynamic link library file, demonstration program utilizes said built-in function to show and reads the data in the said resource file; Said demonstration program file reads dynamic link library file and resource file through demonstration program when operation, accomplish the demo function of prototype file;
The step of said generation prototype file is specially:
Newly-built empty file stream;
Read the document flow of prototype file, demonstration program file and dynamic link library file;
The document flow of said prototype file, demonstration program file and dynamic link library file is write in the said empty file stream;
Obtain the length value of said demonstration program file and dynamic link library file, and the length value of said demonstration program file and dynamic link library file is written in the said empty file stream.
2. the method for exporting prototype according to claim 1 is characterized in that, said prototype file is an executable file.
3. the method for exporting prototype according to claim 1 is characterized in that, the step of said generation demonstration program file specifically:
Newly-built empty file stream;
Read the document flow of demonstration program file and resource file;
The document flow of said demonstration program file and resource file is write in the said empty file stream.
4. the method for exporting prototype according to claim 3 is characterized in that, the step of said generation demonstration program file also comprises:
Obtain the length value of said demonstration program file, and the length value of said demonstration program file is written in the said empty file stream.
5. the method for exporting prototype according to claim 1 is characterized in that, said method also comprises:
Read said prototype file, obtain the document flow of prototype file;
From said document flow, read the length value of demonstration program file and dynamic link library file;
Read the document flow of demonstration program file according to the length value of said demonstration program file, generate the demonstration program file;
Read the document flow of dynamic link library file according to the length value of said dynamic link library file, generate dynamic link library file.
6. the method for exporting prototype according to claim 5 is characterized in that, said method also comprises:
Read said demonstration program file, obtain the document flow of demonstration program file;
From said document flow, read the length value of demonstration program;
Read the document flow of resource file according to the length value of said demonstration program file, generate resource file;
Utilize the built-in function demonstration in the said dynamic link library file or read interface and the response message in the said resource file.
7. the device of an exporting prototype is characterized in that, said device comprises:
The shell load-on module is used for demonstration program file and dynamic link library file packing are generated the prototype file; Defined built-in function in the said dynamic link library file, demonstration program utilizes said built-in function to show and reads the data in the said resource file; Said demonstration program file reads dynamic link library file and resource file through demonstration program when operation, accomplish the demo function of prototype file;
Demonstration module links to each other with said shell load-on module, reads resource file, generates the demonstration program file;
Dynamic link library links to each other with said shell load-on module and demonstration module, preserves built-in function;
Resource module links to each other with said demonstration module, preserves resource file;
Said shell load-on module also is used for through newly-built empty file stream; Read the document flow of prototype file, demonstration program file and dynamic link library file; And the document flow of said prototype file, demonstration program file and dynamic link library file is written in the empty file stream, thereby generate the prototype file; Said shell load-on module also is used to obtain the length value of said demonstration program file and dynamic link library file, and said length value also is written in the empty file stream.
8. the device of exporting prototype according to claim 7 is characterized in that, said prototype file is an executable file.
CN2009100416938A 2009-08-05 2009-08-05 Method and device for exporting prototype Active CN101615118B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100416938A CN101615118B (en) 2009-08-05 2009-08-05 Method and device for exporting prototype

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100416938A CN101615118B (en) 2009-08-05 2009-08-05 Method and device for exporting prototype

Publications (2)

Publication Number Publication Date
CN101615118A CN101615118A (en) 2009-12-30
CN101615118B true CN101615118B (en) 2012-08-08

Family

ID=41494777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100416938A Active CN101615118B (en) 2009-08-05 2009-08-05 Method and device for exporting prototype

Country Status (1)

Country Link
CN (1) CN101615118B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103268452A (en) * 2013-05-31 2013-08-28 福建伊时代信息科技股份有限公司 Method and device for file processing
CN106021096B (en) * 2016-05-09 2018-12-21 珠海豹趣科技有限公司 A kind of abnormal function lookup method and device
CN108268293B (en) * 2016-12-29 2021-11-02 广东中科遥感技术有限公司 Method for demonstrating rapid prototype of mobile APP

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
冯传诚.整合虚拟现实技术的背向滑步推铅球教学课件的设计与实现.《武汉体育学院学报》.2007,第41卷(第5期),第70-73页. *
张益星,罗敬.PowerBuilder应用程序的编译发布技术研究.《计算机技术与发展》.2007,第17卷(第8期),第43-47页. *
黄志春,许泽平.Authorware多媒体制作应注意的几个问题.《广西科学院学报第294-296页》.2003,第19卷(第4期),第296页第2段. *

Also Published As

Publication number Publication date
CN101615118A (en) 2009-12-30

Similar Documents

Publication Publication Date Title
US10026041B2 (en) Interoperable machine learning platform
JP5845522B2 (en) Cross platform application framework
JP6936016B2 (en) Extension method and system for package files
CN106547681B (en) Method and device for testing data automatic loading and multiplexing simulation service
Meier et al. Professional Android
CN106201481A (en) Assembly management method and apparatus in application development system
CN104573416A (en) Method and device for generating application installation package and executing application
KR20140067018A (en) Describing native application programming interfaces of an operating system with metadata
US9436487B2 (en) Method and apparatus for creating a platform agnostic application file
CN103744673B (en) Resource allocation method based on iOS (Internet 0perating System) platform
CN103177078A (en) Method and system for processing theme package
CN105320509A (en) Picture processing method and device
US8209662B2 (en) Application retargeting
Poccia AWS Lambda in Action: Event-driven serverless applications
CN101615118B (en) Method and device for exporting prototype
CN112631618A (en) Application program packaging method, application program testing method, terminal and storage medium
CN107179903B (en) System and method for developing mobile-based applications using model-driven development
CN103077038A (en) Method for dynamically generating and compiling .NET item
CN103514004A (en) Method and device for managing system environment under Windows system
CN108984158A (en) Computing device and the method executed in the computing device
US20080243960A1 (en) Deterministic file content generation of seed-based files
CN110008461A (en) Document structure tree method and relevant apparatus
CN103077036A (en) Method and device for processing interface
CN113835748B (en) Packaging method, system and readable medium for application program based on HTML5
JP7025104B2 (en) Information processing equipment, methods and programs

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20190807

Address after: 518000 Nanshan District science and technology zone, Guangdong, Zhejiang Province, science and technology in the Tencent Building on the 1st floor of the 35 layer

Co-patentee after: Tencent cloud computing (Beijing) limited liability company

Patentee after: Tencent Technology (Shenzhen) Co., Ltd.

Address before: 518044 Room 403, 2 East Building, Xingxing Lusaige Science Park, Futian District, Shenzhen City, Guangdong Province

Patentee before: Tencent Technology (Shenzhen) Co., Ltd.

TR01 Transfer of patent right