전체 글317 [C#] Singletone Instance 생성을 이용한 Log File Write 처리 예제 입니다. [C#] Singletone Instance 생성을 이용한 Log File Write 처리 예제 입니다.using System;using System.Collections.Generic;using System.Diagnostics;using System.IO;using System.Linq;using System.Reflection;using System.Text;using System.Threading.Tasks; namespace GmSFaxAgentWpf.Commons{ public class CommonUtils { private static readonly Lazy commonUtils = new Lazy(() => new CommonUtils()); priv.. 2024. 8. 5. [C++/WinRt] Windows Toolkit - Windows.Data.Pdf 를 이용한 PDF To Bitmap 변환 예제 [C++/WinRt] Windows Toolkit - Windows.Data.Pdf 를 이용한 PDF To Bitmap 변환 예제 입니다. Argument로 PDF 파일을 읽어들어 PDF 페이지별로 Bmp 파일로 Save하는 예제 입니다. #include "pch.h"#include using namespace winrt;using namespace Windows::Foundation;using namespace winrt::Windows::Storage;using namespace Windows::Data::Pdf;/*** [0]. id* [1]. source file fullpath * [2]. bmp files save path * * return value * 결과|PageCount|DESC* *.. 2024. 7. 29. [Zip4j] 압축 파일 안의 파일명 UTF-8 여부 확인 하여 압축 해제 테스트 진행 [Zip4j] 압축 파일 안의 파일명 UTF-8 여부 확인 하여 압축 해제 진행 테스트 Windows 환경에서 제공되는 압축 기본 프로그램으로 압축을 진행 하거나 , 공개용 압축 프로그램 기본 설정으로 MSBC (멀티바이트 문자 집합) 으로 압축을 진행 하는 경우에 Java zip4j를 이용하여 기본적으로 압축 해제 시에 Charset을 cp949로 설정해주지 않으면 파일명이 깨지는 것을 확인 할 수 있었습니다. 이를 zip4j에서 제공하는 isFileNameUTF8Encoded() 메서드를 이용하여 UTF-8 로 인코딩 되어있는지 여부를 체크 하고 Charset을 설정 하는 방법을 테스트 하였습니다. package com.gmission.test.controller;import java.io.IOExc.. 2024. 7. 8. curl POST , UTF-8 형식으로 URL Encode 하여 호출 진행 방법 curl POST , utf-8 형식으로 URL Encode 하여 호출 진행 방법 입니다. UTF-8 형식으로 인코딩하려면 Content-Type에 charset=UTF-8 이 추가되어야 정상적으로 처리 되었습니다.. Encode 할 문자열의 경우 --data-urlencode 를 앞에 명시 해주어 호출 하였습니다 ex) --data-urlencode "filepath=가나다라마바/테스트" curl -X POST "Content-Type:application/x-www-form-urlencoded;charset=UTF-8" -d "systemID=stream" --data-urlencode "filepath=가나다라마바/테스트" https://localhost:58888 -i 2024. 7. 8. [MFC] PRINTER_INFO_4를 이용한 프린터 설치 여부 체크 진행 예제 [MFC] PRINTER_INFO_4를 이용한 프린터 설치 여부 체크 진행 예제 입니다.#include void CPrinterInfoMFCDlg::CheckPrinter() { PRINTER_INFO_4* pPrinterInfo4; DWORD dwNeeded; DWORD dwDrvRet; BOOL bRet = FALSE; wchar_t lpTemp[MAX_PATH]; wchar_t lpPrinterName[MAX_PATH] = L"L3150 Series(네트워크)"; EnumPrinters(PRINTER_ENUM_LOCAL, NULL, 4, NULL, 0, &dwNeeded, &dwDrvRet); if (dwNeeded == 0) { m_edit1.SetWindowText(L"프린터가 없습니다.").. 2024. 6. 28. PdfSharp을 이용한 Tiff To Pdf 변환 예제 PdfSharp을 이용한 Tiff To Pdf 변환 예제 입니다. PdfSharp 은 MIT Licence로 opensource로 알고 있습니다.출처 : https://www.pdfsharp.net/Licensing.ashx?AspxAutoDetectCookieSupport=1 Licensing - PDFsharp & MigraDocPDFsharp and MigraDoc Foundation are published under the MIT License. See the PDFsharp License. See the MigraDoc Foundation License. PDFsharp and MigraDoc Foundation are Open Source and free to useCopy, modify a.. 2024. 6. 16. BitMiracle.Docotic.Pdf를 이용한 Tiff To Pdf 변환 예제 BitMiracle.Docotic.Pdf를 이용한 Tiff To Pdf 변환 예제입니다. BitMiracle.Docotic.Pdf 는 유료입니다. , 31일 동안의 무료 라이선스를 받을 수 있더라구요 , 라이선스를 등록 하지 않으면 변환 시마다 왼쪽 상단에 메시지가 표시 됩니다. 출처 : https://bitmiracle.com/pdf-library/ C# PDF library | Docotic.Pdf for .NETPDF library for C# and VB.NET Docotic.Pdf is a high-performance C# PDF library for .NET. You can use it to create, read, and edit PDF documents in .NET Core, ASP... 2024. 6. 16. [SpringBoot] Windows Eclipse lombok @Slf4j Annotation 사용 시 log. 으로 접근 되지 않을 시에 해결 방안 [Springboot] Windows Eclipse lombok @Slf4j Annotation 사용 시 log. 으로 접근 되지 않을 시에 해결 방안 입니다.. @Slf4j Annotation을 명시하고 log. 을 입력하였을때 log에 대한 메서드가 표시되지 않았습니다. build.gradle.kts 에는 maven 의 최신버젼의 lombok을 명시 해 주었습니다. annotationProcessor("org.projectlombok:lombok:1.18.32") implementation("org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4.1:1.16") compileOnly("org.projectlombok:lombok:1.18.32") 마지막으로 Eclipse.. 2024. 6. 10. [JQuery-UI] tooltip 내용 줄 바꿈 하여 표시 진행 예제 [JQuery-UI] tooltip 내용 줄 바꿈 하여 표시 진행 예제 입니다. 컬럼1 컬럼2 컬럼3 값1 값3 tbody 의 첫번째 td에 마우스를 올려 놓으면 발생 하게 하였습니다.... 2024. 6. 2. 이전 1 2 3 4 5 6 7 ··· 36 다음