View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000480 | Plugins | Network | public | 2008-03-07 15:46 | 2008-03-08 03:24 |
Reporter | ujos | Assigned To | alexy | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.80 | ||||
Fixed in Version | 1.80 | ||||
Summary | 0000480: Cannot build network plugin from vs2005 | ||||
Description | When I start build UNICODE version of plugins I get following message: NetNT.cpp(50) : error C2664: 'lstrcpynW' : cannot convert parameter 2 from 'LPSTR' to 'LPCWSTR' Steps to reproduce: From plugins directory start: nmake -fmakefile_all_vc WIDE=1 Expected: All plugins are compiled In fact: I get followig message: NetNT.cpp(50) : error C2664: 'lstrcpynW' : cannot convert parameter 2 from 'LPSTR' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast NetReg.cpp Generating Code... NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe"' : return code '0x2' Stop. | ||||
Tags | No tags attached. | ||||
|
MSVC 2005 SP1 |
|
PSHARE_INFO_1::shi1_netname is declared as LMSTR. LMSTR depends on platform. Look like _WIN32_WINNT should be defined. // // Only the UNICODE version of the LM APIs are available on NT. // Non-UNICODE version on other platforms // #if defined( _WIN32_WINNT ) || defined( WINNT ) || defined( __midl ) \ || defined( FORCE_UNICODE ) #define LMSTR LPWSTR #define LMCSTR LPCWSTR #else #define LMSTR LPSTR #define LMCSTR LPCSTR #endif |
|
fixed, for all plugins at once as I am really tired of this "bug" report. |
Date Modified | Username | Field | Change |
---|---|---|---|
2008-03-07 15:46 | ujos | New Issue | |
2008-03-07 15:46 | ujos | Status | new => assigned |
2008-03-07 15:46 | ujos | Assigned To | => Karbazol |
2008-03-07 15:56 | ujos | Note Added: 0001210 | |
2008-03-07 15:58 | ujos | Note Added: 0001211 | |
2008-03-07 16:23 | DrKnS | Relationship added | duplicate of 0000371 |
2008-03-07 16:59 | alexy | Assigned To | Karbazol => alexy |
2008-03-07 16:59 | alexy | Relationship deleted | 0000371 |
2008-03-07 17:00 | alexy | Note Added: 0001214 | |
2008-03-07 17:00 | alexy | Status | assigned => feedback |
2008-03-08 03:18 | ujos | Status | feedback => resolved |
2008-03-08 03:18 | ujos | Resolution | open => fixed |
2008-03-08 03:24 | alexy | Status | resolved => closed |
2008-03-08 03:24 | alexy | Fixed in Version | => 1.80 |