본문 바로가기

VisualStudio.C++.C#/코딩팁,함수활용,단편   ( 155 )


unreal. 기본 활용법. unreal 기본 활용법. 사전준비. 언리얼엔진 설치되어있고 새프로젝트 만들기 할 줄 아는 상태. 상세보기 : http://igotit.tistory.com/1382 unreal engine 기반 개발 위한 기초 지식 습득. 제조사에서 가이드 문서가 잘 되어있고, 아래 3개 따라하면서 숙지하면 기본 활용 지식 습득됨. 1. 레벨 디자이너 퀵스타트 : https://docs.unrealengine.com/latest/KOR/Engine/QuickStart/index.html 2. 아티스트 퀵스타트 : https://docs.unrealengine.com/latest/KOR/Engine/Content/QuickStart/index.html 3. 프로그래밍 퀵스타트 : https://docs.unrealeng.. 2017. 7. 26.
unreal. 언리얼엔진 새프로젝트 만들기. 개요 언리얼 엔진 에서 새프로젝트 만들기. 사전준비. 언리얼 엔진 설치된 상태. -> http://igotit.tistory.com/1380 상세 1. Unreal Engine Launcher 실행. 1. Epic Games Launcher 실행하고, 2. Launcher 실행화면 2. 언리얼 엔진 새프로젝트 만들기. 상기 Launchder 화면의 버튼 "실행" 클릭하면, Unreal Editor 가 실행되면서 프로젝트 생성 가능한 창 뜬다(아래 그림). C++ 템플릿, 블루프린트(스크립트) 템플릿 선택하여 프로젝트 생성가능하다. 탭 C++ 에서 기본코드 선택(가장 간단한것)하고 프로젝트 저장할 경로 지정하고 프로젝트명 기입후 버튼 "프로젝트 생성" 클릭. 프로젝트 생성진행률 창이 보이고 (약 3분 정도.. 2017. 7. 26.
MFC. RGB() 의 4바이트 정수 메모리 저장 바이트 순서. RGB( , , ) 에는 R,G,B 순으로 기록하며, RGB() 값을 정수형변수에 대입한 경우 즉, COLORREF refcolor = RGB(0xFA, 0xFB, 0xFC); // COLORREF 는 DWORD 혹은 uint32_t icolor = RGB(0xFA, 0xFB, 0xFC); icolor, refcolor 메모리 저장 바이트 오더링 : 0x 00 FC FB FA 로 저장됨. 즉, 4바이트 정수의 최상위 바이트에는 00, 그 다음 부터 R, G, B (최하위 바이트) 순으로 저장된다. ///1348 2017. 7. 11.
MFC. 클래스 위저드에서 커스텀 메시지 추가하기. 예: AFX_WM_PROPERTY_CHANGED 사용자 정의 메시지 클래스 위저드로 추가하는법. - 수동으로 타이핑 해도 되지만 클래스 위저드 이용하면 간단히 코드 자동 생성가능 . 등록하는 메시지 예 ; AFX 메시지 중 AFX_WM_PROPERTY_CHANGED 상세. Visual C++ 클래스 위저드 실행하여 뜬 창(아래 그림) 1번 : 이벤트 핸들러 추가할 클래스 지정하고, 2번 : 버튼 "Add Custom Message .." 클릭하여 뜬 창에서 메시지 아이디 기록부에 AFX_WM_PROPERTY_CHANGED 기록하면 (그림 붉은박스) 녹색부분에 메시지 핸들러 함수를 자동 생성해준다. 이 이름을 사용해도 되고 다른 이름으로 변경해도 된다. 본 예에서는 자동생성된 이름 그대로 이용. 체크 박스 Registered message 를 선택하면 .. 2017. 7. 10.
C++ 클래스. 인터페이스 클래스. interface. 개요 인터페이스 클래스정의 : 소멸자와 순수가상함수만 선언된 클래스. ( 순수가상함수, 추상클래스등의 기본 개념 보기 -> http://igotit.tistory.com/1325 ) 인터페이스 클래스 예. class ImyClass { public: virtual ~myClass() ; //소멸자. 꼭 선언하지 않아도 됨. virtual void myFunc1() = 0 ; // 순수가상함수. virtual void myFunc2() = 0 ; // 순수가상함수.}; 동영상. - 클래스위저드로 클래스 자동생성하여 생성자 제거하고 순수가상함수만 추가하면된다. Visual C++ 에서 제공되는 interface 자료형. Visual C++ 에서는 인터페이스 클래스 용도로 사용하기 위한 interface 자료.. 2017. 6. 25.
private . protected . public private - 다른 class 에서 접근 불가.- derived class 에서 접근불가. protected - 다른 class 에서 접근불가.- derived class 에서 접근가능. public - 모든 class 에서 접근가능. ///1324. 2017. 6. 22.
GetWindowsDirectory. 윈도우 설치된 경로가 c:\windows 라면 c:\windows 까지 받을 수 있음. 코드 작성예. TCHAR windows_path[MAX_PATH]; GetWindowsDirectory(windows_path,MAX_PATH); Retrieves the path of the Windows directory. This function is provided primarily for compatibility with legacy applications. New applications should store code in the Program Files folder and persistent data in the Application Data folder in the user's profile. For m.. 2017. 4. 16.
VerQueryValue. Retrieves specified version information from the specified version-information resource. To retrieve the appropriate resource, before you call VerQueryValue, you must first call the GetFileVersionInfoSize function, and then the GetFileVersionInfo function. SyntaxC++Copy BOOL WINAPI VerQueryValue( _In_ LPCVOID pBlock, _In_ LPCTSTR lpSubBlock, _Out_ LPVOID *lplpBuffer, _Out_ PUINT puLen ); Paramet.. 2017. 4. 15.
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.
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.
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.


 

비트코인




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