Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
posprintdll
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yunpeng.song
posprintdll
Commits
319177a6
Commit
319177a6
authored
Sep 11, 2018
by
李定达
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.输入参数调整为const char *
parent
544e7858
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
LoadDll.cpp
+6
-2
LoadDll.h
+1
-1
fmposdll.cpp
+1
-1
No files found.
LoadDll.cpp
View file @
319177a6
...
...
@@ -1108,6 +1108,10 @@ void _GetPrintIni(char inidata[])
m_printclass
.
m_Ip
=
"127.0.0.1"
;
m_printclass
.
printtscname
=
"Gprinter 2120TF"
;
m_printclass
.
m_nDays
=
10
;
m_printclass
.
tsc_widgth
=
"40"
;
m_printclass
.
tsc_high
=
"30"
;
m_printclass
.
tsc_speed
=
"3"
;
m_printclass
.
tsc_chroma
=
"1"
;
break
;
}
...
...
@@ -1159,7 +1163,7 @@ int getheigth(int y, int font_size, int high_len)
return
1
;
}
int
GetFout
(
int
x
,
int
*
index
,
int
font_size
,
double
font_ratio
,
char
*
data
,
char
*
tmpdata
)
int
GetFout
(
int
x
,
int
*
index
,
int
font_size
,
double
font_ratio
,
c
onst
c
har
*
data
,
char
*
tmpdata
)
{
int
i
=
*
index
;
int
len
=
strlen
(
data
);
...
...
@@ -1210,7 +1214,7 @@ int GetFout(int x, int *index, int font_size, double font_ratio, char *data, cha
return
1
;
}
int
WinPrintlnTsc
(
int
x
,
int
y
,
int
font_size
,
int
rotate
,
int
font_type
,
int
high_len
,
int
line
,
c
har
*
font_name
,
char
*
data
,
double
font_ratio
)
int
WinPrintlnTsc
(
int
x
,
int
y
,
int
font_size
,
int
rotate
,
int
font_type
,
int
high_len
,
int
line
,
c
onst
char
*
font_name
,
const
char
*
data
,
double
font_ratio
)
{
if
(
font_ratio
==
0
)
{
...
...
LoadDll.h
View file @
319177a6
...
...
@@ -413,7 +413,7 @@ int InitTscPort();
//font_name : 字体名称;宋体微软雅黑等;
//data : 打印数据;
//font_ratio: 字体每个粒度数对应的毫米;宋体 0.0666665; 为0时不自动换行;
int
WinPrintlnTsc
(
int
x
,
int
y
,
int
font_size
,
int
rotate
,
int
font_type
,
int
high_len
,
int
line
,
char
*
font_name
,
char
*
data
,
double
font_ratio
);
int
WinPrintlnTsc
(
int
x
,
int
y
,
int
font_size
,
int
rotate
,
int
font_type
,
int
high_len
,
int
line
,
const
char
*
font_name
,
const
char
*
data
,
double
font_ratio
);
//打印一页;触发打印;
//每打印一页都要调用;
int
PrintCloseTsc
(
char
*
page
,
char
*
num
);
...
...
fmposdll.cpp
View file @
319177a6
...
...
@@ -96,7 +96,7 @@ extern "C" int __declspec(dllexport)TSCInit()
return
InitTscPort
();
}
extern
"C"
int
__declspec
(
dllexport
)
TSCWinPrintln
(
int
x
,
int
y
,
int
font_size
,
int
rotate
,
int
font_type
,
int
high_len
,
int
line
,
char
*
font_name
,
char
*
data
,
double
font_ratio
)
extern
"C"
int
__declspec
(
dllexport
)
TSCWinPrintln
(
int
x
,
int
y
,
int
font_size
,
int
rotate
,
int
font_type
,
int
high_len
,
int
line
,
c
onst
c
har
*
font_name
,
char
*
data
,
double
font_ratio
)
{
return
WinPrintlnTsc
(
x
,
y
,
font_size
,
rotate
,
font_type
,
high_len
,
line
,
font_name
,
data
,
font_ratio
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment