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