2018년 8월 19일 일요일

Is this DLL managed or unmanaged?

Visual Studio Command Prompt

change dir ( dll )

D:\Temp\Debug>dumpbin.exe /dependents ArcoLib.dll
Microsoft (R) COFF/PE Dumper Version 12.00.40629.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file ArcoLib.dll

File Type: DLL

  Image has the following dependencies:

    avcodec-58.dll
    avdevice-58.dll
    avformat-58.dll
    avutil-56.dll
    swscale-5.dll
    KERNEL32.dll
    USER32.dll
    GDI32.dll
    ole32.dll
    MSVCP120.dll
    MSVCR120.dll
    gdiplus.dll
    mscoree.dll

  Summary

        7000 .data
       70000 .rdata
        5000 .reloc
        3000 .rsrc
       3E000 .text
        1000 .tls

D:\Temp\Debug>


D:\Temp\Debug>corflags StreamPlayer.dll
Microsoft (R) .NET Framework CorFlags Conversion Tool.  Version  4.0.30319.33440
Copyright (c) Microsoft Corporation.  All rights reserved.

corflags : error CF008 : The specified file does not have a valid managed header

D:\Temp\Debug>corflags ArcoLib.dll
Microsoft (R) .NET Framework CorFlags Conversion Tool.  Version  4.0.30319.33440
Copyright (c) Microsoft Corporation.  All rights reserved.

Version   : v4.0.30319
CLR Header: 2.5
PE        : PE32
CorFlags  : 0x10
ILONLY    : 0
32BITREQ  : 0
32BITPREF : 0
Signed    : 0

D:\Temp\Debug>

2018년 3월 7일 수요일

compact framework to .net framework project

## delete on compact framework project file
ProjectTypeGuids
ProjectTypeGuids
PlatformFamilyName
PlatformID
OSVersion
DeployDirSuffix
NativePlatformName
NoStdLib
NoConfig
$(PlatformFamilyName)
RequiredTargetFramework

## replace on compact framework project file
$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets
to
$(MSBuildToolsPath)\Microsoft.CSharp.targets

## rebuild for .net framework
...

2018년 2월 1일 목요일

Install Visual Studio 6.0 with Windows 10


  1. Visual Studio 6.0 Enterprise - Custom
  2. Data Acess check box is not selected
  3. Enterprise Tools > Change Option
  4. Visual Studio 6.0 Enterprise - Enterprise Tools > Options
  5. Visual Studio Analyzer check box is not selected

2017년 12월 28일 목요일

Parent directory access restrictions for vsftpd on ubuntu server 16.04

# useradd
useradd -m -d /home/username/ -s /bin/bash -G sudo username
passwd username
usernamepasswd

# ftp
sudo apt update
sudo apt install vsftpd

cp /etc/vsftpd.conf /etc/vsftpd.conf.bk

vi /etc/vsftpd.conf
local_enable=YES
write_enable=YES
local_umask=022
chroot_local_user=NO
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
allow_writeable_chroot=YES

vi /etc/vsftpd.chroot_list
username

# firewall
ufw allow ftp
ufw status

2017년 10월 20일 금요일

set logging for mariadb on windows

SHOW VARIABLES LIKE "general_log%";

SET GLOBAL general_log = 'ON';

ex > C:\Program Files\MariaDB 10.1\data\DESKTOP-NGG647S.log

SET GLOBAL general_log = 'OFF';

2017년 9월 8일 금요일

how to for Compact framework project build Speed improvement

c:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.CompactFramework.Common.targets

    <Target
        Name="PlatformVerificationTask" Condition="'$(SkipPlatform Verification)' == 'true'">
        <PlatformVerificationTask
            PlatformFamilyName="$(PlatformFamilyName)"
            PlatformID="$(PlatformID)"
            SourceAssembly="@(IntermediateAssembly)"
            ReferencePath="@(ReferencePath)"
            TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
            PlatformVersion="$(TargetFrameworkVersion)"/>
    </Target>

2017년 8월 7일 월요일

windows mobile device center with windows 10 not working

Computer Management
Services & Applications
Services.
Scroll down to right-click on "Windows Mobile-2003-based device connectivity" to select Properties
Log On.
Switch to "Local System account" with checking "Allow service to interact with desktop" then click OK