Initial Commit
This commit is contained in:
16
common/Widestr.cpp
Normal file
16
common/Widestr.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <common/widestr.hpp>
|
||||
#include <common/version.hpp>
|
||||
#include <common/winnls.hpp>
|
||||
|
||||
// Dynamic Dialog depends on this code, if modified make sure that DynamicDialog still works.
|
||||
|
||||
void WideString::ansiToWideString(const String &ansiString)
|
||||
{
|
||||
WinVersionInfo versionInfo;
|
||||
|
||||
if(ansiString.isNull())return;
|
||||
WORD ansiLength(ansiString.length());
|
||||
size(ansiLength+1);
|
||||
for(long index=0;index<ansiLength;index++)operator[](index)=((char*)((String&)ansiString))[index];
|
||||
operator[](index)=0;
|
||||
}
|
||||
Reference in New Issue
Block a user