본문 바로가기

VisualStudio.C++.C#   ( 290 )


GetFileVersionInfo. Retrieves version information for the specified file. SyntaxC++Copy BOOL WINAPI GetFileVersionInfo( _In_ LPCTSTR lptstrFilename, _Reserved_ DWORD dwHandle, _In_ DWORD dwLen, _Out_ LPVOID lpData ); ParameterslptstrFilename [in]Type: LPCTSTRThe name of the file. If a full path is not specified, the function uses the search sequence specified by the LoadLibrary function. dwHandle Type: DWORDThis pa.. 2017. 4. 15.
Visual C++. Target Platform Version 설정. - windows sdk. Visual C++ 프로젝트에서 windows sdk 적용하기 위한 설정. 프로젝트 -> 속성 창에서 General 에 보면 아래 붉은 박스 영역이 windows sdk 적용 설정부분이다. 콤보박스에서 보이는 것들은 PC에 설치된 windows sdk 를 보여준다. 아래 예 에서는 windows 8.1 sdk 와 windows 10 sdk 가 설치된 PC여서 2개 모두 보이고 있다. 프로젝트에서 windows 10 sdk 를 적용하려면 10.0... 를 선택한다. 참고 : windows 10 sdk 설치하기 상세 -> http://igotit.tistory.com/535 버그 조치. 위와 같이 windows 10 sdk 로 선택하고 VC++ 프로젝트 컴파일 하면 아래 와 같은 컴파일 오류 발생한다. TR.. 2017. 4. 15.
Getting the System Version. The following example uses the Version API Helper functions to determine the version of the current operating system, if it is a Server or Client release, and then displays this information to the console. If compatibility mode is in effect, the example displays the operating system selected for application compatibility.To obtain the full version number for the operating system, call the GetFil.. 2017. 4. 15.
GetSystemInfo. Retrieves information about the current system.To retrieve accurate information for an application running on WOW64, call the GetNativeSystemInfo function.SyntaxC++Copyvoid WINAPI GetSystemInfo( _Out_ LPSYSTEM_INFO lpSystemInfo ); ParameterslpSystemInfo [out]A pointer to a SYSTEM_INFO structure that receives the information.Return valueThis function does not return a value.ExamplesFor an example.. 2017. 4. 15.
WM_USER, WM_APP. 메시지 번호 범위 용도. WM_USER, WM_APP WM_USER 와 WM_APP 는 각각 0x0400 (십진 1024), 0x8000 (십진 32768 ) 으로 선정의되어있다. WM_USER ~ WM_USER+31743 영역이나, WM_APP ~ WM_APP+16383 모두 사용자 정의 메시지로 활용가능하나, WM_USER ~ WM_USER+31743 영역은 MFC대화상자를 비롯하여 BUTTON. EDIT, LISTBOX등의 컨트롤러에서 사용될 수 도 있기 때문에 메시지 중복 발생 위험성 있다. 이런 컨트롤러들이 어떤 메시지 번호를 사용하는지 파악하여 이 번호를 피하면서 사용자 정의 메시지 번호 할당하는 작업은 비효율적이다. 한편, WM_APP ~ WM_APP+16383 영역은 MFC, Control등에서 메시지로 사용되지 .. 2017. 4. 6.
SendNotifyMessage. SendNotifyMessage 주요특징. 대상 윈도우로 메시지 전송하나, SendNotifyMessage 호출하는 윈도우 스레드와 대상 윈도우 스레드에 따라 다른 리턴 방식. 다른 스레드의 대상 윈도우인 경우 : 대상윈도우의 procedure 로 메시지 전달하고 즉시 리턴. 동일 스레드의 대상 윈도우인 경우 : 대상윈도우의 procedure 로 메시지 전달하고 대상윈도우의 procedure 가 처리 완료한 이후 리턴됨. SendNotifyMessage functionSends the specified message to a window or windows. If the window was created by the calling thread, SendNotifyMessage calls the windo.. 2017. 4. 6.
MFC. Animation Control (CAnimateCtrl Class). AVI 파일 비디오만 재생. 개요. MFC Animation Control Animation Control 은 AVI 파일 오픈하여 비디오만 재생가능한 컨트롤. AVI 파일내의 오디오 재생못함. 주용도 : 통상 프로그램에서 간단한 애니메이션 표현하고 싶을 때 AVI파일 오픈하여 플레이 하는 용도. Toolbox 에서 대화상자로 배치시켜서 사용. CAnimateCtrl ClassFor the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.Provides the functionality of the Windows common animation control.SyntaxCopy class CAnimateCtrl : public C.. 2017. 3. 28.
error LNK2001: unresolved external symbol __imp_sprintf, symbol __imp_printf 해결방법. 오류증상. - error LNK2001 Visual C++ 최신버전 (2010이후 모든 버전) 에서 과거에 제작된 라이브러리 임포팅 시켜서 컴파일 하면, 아래와 같은 오류가 나오는 경우 있다. error LNK2001: unresolved external symbol __imp_sprintf error LNK2001: unresolved external symbol __imp_printf 원인 과거에 만들어진 라이브러리의 함수를 최신버전의 Visual C++ 에서 지원하지 않기때문.해결책.과거 라이브러리 지원 위한 legacy_stdio_definitions.lib 를 프로젝트 설정 Link 의 Input 에 추가하든지 코드상에서 아래 구문 추가한다. #pragma comment(lib,"legacy_s.. 2017. 3. 19.
MFC Extension DLL 만들기. ChartDirectorViewer 개요 Visual Studio 2015 MFC extension dll 만들기. 본 글에서 예로 사용되는 "확장DLL 프로젝트" 이름 : ChartDirectorViewer 기능 : Chart Director for C++( http://igotit.tistory.com/553 ) 에서 제공하는 2개의 소스 파일 ChartViewer.cpp, ChartViewer.h 을 확장 DLL ChartDirViewer 로 만들어서 응용프로그램에서 활용시 소스코드(ChartViewer.cpp, ChartViewer.h) 포함하지 않고 ChartDirectorViewer.dll 을 로딩하여 활용가능하게 함. MS 제공정보 : MFC extension dll 상세. MFC Extension DLL 만들기. 단계1. 확.. 2017. 3. 18.
Delay Loading DLL 개요 DLL 의 Implicit Linking 시 Delay Load 되게 하는 설정. 설명. Application에서 Immplicit Linking 방식으로 DLL 로딩하게되면 , Application 구동초기 해당 DLL로딩처리가 이뤄진다. Implicit Linking 에 부가하여 Delay Loading 방식 적용하면 DLL 의 함수가 첫 호출되는 시점에 로딩처리 이뤄진다. 관련. Implicit Linking 방식 DLL로딩 : http://igotit.tistory.com/471 Delay Loading DLL 통상 Implicit Linking 으로 DLL로딩시키는 아래 구문에서 파랑색 부분 추가하면 됨. #pragma comment(lib, "delayimp.lib") // delayim.. 2017. 3. 17.
AddDllDirectory Adds a directory to the process DLL search path. DLL_DIRECTORY_COOKIE WINAPI AddDllDirectory( _In_ PCWSTR NewDirectory ); ParametersNewDirectory [in]An absolute path to the directory to add to the search path. For example, to add the directory Dir2 to the process DLL search path, specify \Dir2. For more information about paths, see Naming Files, Paths, and Namespaces.Return valueIf the function .. 2017. 3. 17.
SetDllDirectory Adds a directory to the search path used to locate DLLs for the application. BOOL WINAPI SetDllDirectory( _In_opt_ LPCTSTR lpPathName ); ParameterslpPathName [in, optional]The directory to be added to the search path. If this parameter is an empty string (""), the call removes the current directory from the default DLL search order. If this parameter is NULL, the function restores the default se.. 2017. 3. 17.
Visual Studio Community 2017. 무료. Visual Studio Community 2017 버전 역시 무료임. MS사의 라이센스 정책. 복사해옴. 개인의 경우개인 개발자는 Visual Studio Community를 사용하여 무료 또는 유료 앱을 직접 만들 수 있습니다. 조직의 경우조직 내의 사용자는 그 수에 제한 없이 즉 강의실 학습 환경, 학술 연구 또는 오픈 소스 프로젝트 참여 등의 상황에 Visual Studio Community를 사용할 수 있습니다.다른 모든 사용 시나리오: 기업이 아닌 조직의 경우 최대 5명의 사용자가 Visual Studio Community를 사용할 수 있습니다. 기업 조직(PC가 250대 이상이거나 연 매출이 미화 1백만 달러 이상)에서는 위에 설명한 오픈 소스, 학술 연구 및 강의실 학습 환경 시나리오 외에.. 2017. 3. 14.
C++ 클래스 static 변수 초기화. class my_class{static int my_int ;} 상기와 같은 static 변수는 클래스 외부(통상 cpp 상단이 적당)에서 아래 처럼 초기화 처리 해줘야 한다. int my_class::my_int = 0; ///1252. 2017. 3. 13.
VC++, DLL 활용하는법.- explicit linking (명시적 연결방식) 개요. Visual C++ 에서 DLL 을 이용하기 위한 2가지 방식 implicit linking, explicit linking 중 본 글은 explicit linking방식 정리. 코드작성 수월성에서는 implicit linking (상세보기 -> https://igotit.tistory.com/471 ) 이 훨씬 편리한 방식이나, explicit linking 을 사용해야 하는 경우도 있다. dll 위치.1. implicit linking 대상 dll 은 실행파일경로와 동일한 곳에 있어야 하나, explicit linking 대상 DLL은 임의 폴더에 두고 LoadLibrary 함수 호출시 경로를 지정해주면 된다. 2. explicit linking 대상 DLL(예. main.dll) 내에서 im.. 2017. 3. 13.
dll 파일로 lib 만들기. def 파일 만들고 그 다음 lib 파일 생성. dll 파일 이용하여 lib 파일 만드는 법. dll 파일로 def 파일 부터 먼저 만들고, def 파일로 lib 파일 만드는 2단계를 거치게 된다. 1. dll 파일로 def 파일 만들기. 본글의 예에서 사용된 dll 파일 : SLABHIDDevice.dll Visual Studio 실행하여 "메뉴 -> Tools -> Visual Studio Command Prompt" 클릭하여 실행된 커맨드 창에 아래 푸른색 라인처럼 구문 기록하여 엔터치면 동일폴더에 SLABHIDDevice.def 파일이 만들어진다. 2. def 파일을 이용하여 lib 파일 만들기. 별도 정리 -> http://igotit.tistory.com/1014 의 방법대로 하면 lib 파일 만들어진다. dumpbin MS제공정보 : ht.. 2017. 3. 13.
Visual Studio 2015 빈 솔루션 생성. 빈솔루션 필요한 경우 : 프로젝트들은 이미 있고, 이들을 Visual Studio 에서 1개의 솔루션 내에서 핸들링 하려는 경우. 빈솔루션 만들기 방법. 메뉴: File -> New -> Project... 클릭하여 뜬 아래 창에서, 1번 선택하여 Blank Solution 선택하고 2번에 솔루션 명칭 기록하고, 3번 에서 어떤 폴더 하위에 솔루션 폴더 만들지 지정하고, 기타 4번 에서 Git Repository 설정하려면 하고, 버튼 OK 클릭. ///1247. 2017. 3. 12.
MFC. png 이미지 파일 읽기. CImage image; image.Load(_T("C:\\image.png")); // just change extension to load jpg CBitmap bitmap; bitmap.Attach(image.Detach()); from : http://stackoverflow.com/questions/2490661/how-to-load-png-jpeg-images-using-mfc ///1218. 2017. 2. 21.


 

비트코인




암호화폐       외환/나스닥/골드       암호화폐/외환/나스닥/골드 암호화폐/외환/나스닥/골드   암호화폐/외환/나스닥/골드
     
현물 |선물 인버스 |선물 USDT       전략매니저(카피트레이딩)     롤오버 이자 없는 스왑프리계좌
( 스왑프리 암호화폐도 거래 가능 )    
MT4, MT5 , cTrader 모두 지원     FTMO 계좌 매매운용. MT4,MT5