Commit 4e4edee71d507638991e588be42500cb84794af9

Authored by Perry Werneck
1 parent 0e986969
Exists in master and in 1 other branch develop

Working in MSVC build.

client/src/core/windows/dynamic/init.cc
@@ -41,7 +41,6 @@ @@ -41,7 +41,6 @@
41 #include <fcntl.h> 41 #include <fcntl.h>
42 42
43 #if defined(_MSC_VER) 43 #if defined(_MSC_VER)
44 - #pragma comment(lib,"lib3270.lib")  
45 #pragma comment(lib,"DelayImp.lib") 44 #pragma comment(lib,"DelayImp.lib")
46 #endif // _MSC_VER 45 #endif // _MSC_VER
47 46
client/src/session/local/init.cc
@@ -42,6 +42,10 @@ @@ -42,6 +42,10 @@
42 #include <lmcons.h> 42 #include <lmcons.h>
43 #endif // _WIN32 43 #endif // _WIN32
44 44
  45 +#if defined(_MSC_VER)
  46 + #pragma comment(lib,"lib3270.lib")
  47 +#endif // _MSC_VER
  48 +
45 extern "C" { 49 extern "C" {
46 #include <lib3270/session.h> 50 #include <lib3270/session.h>
47 } 51 }
client/src/testprogram/testprogram.cc
@@ -121,13 +121,10 @@ @@ -121,13 +121,10 @@
121 // test host object 121 // test host object
122 static void testHost(const char *session) { 122 static void testHost(const char *session) {
123 123
124 - cout  
125 - << "Creating host" << endl;  
126 -  
127 - TN3270::Host host{session,nullptr,10};  
128 -  
129 try { 124 try {
130 125
  126 + TN3270::Host host{session,nullptr,10};
  127 +
131 cout 128 cout
132 << "Version: " << host["version"] 129 << "Version: " << host["version"]
133 << "\tRevision: " << host["Revision"] 130 << "\tRevision: " << host["Revision"]
@@ -206,10 +203,12 @@ @@ -206,10 +203,12 @@
206 } 203 }
207 #endif // _WIN32 204 #endif // _WIN32
208 205
209 - cout << "Session: " << session << endl;  
210 - 206 + cout << "Session: " << session << endl;
  207 +
211 testHost(session); 208 testHost(session);
212 209
  210 +
  211 +
213 //testAttributes(session); 212 //testAttributes(session);
214 213
215 /* 214 /*
ipc3270.lib
No preview for this file type
win/Makefile.msc
@@ -115,4 +115,5 @@ clean: @@ -115,4 +115,5 @@ clean:
115 $(LIB3270_NAME).dll \ 115 $(LIB3270_NAME).dll \
116 ipc3270.lib \ 116 ipc3270.lib \
117 ipc3270.dll \ 117 ipc3270.dll \
118 - $(OBJ_FILES) 118 + $(OBJ_FILES) \
  119 + testprogram.*