VC6에서는 에러 안났는데 2005로 컴파일 하면 워닝이 뜸 -.-;; (deprecated) 경고 2 warning C4996: 'sprintf'이(가) deprecated로 선언되었습니다. d:\data\tsource\mfclog\mfclog.cpp 108 deprecate 뜻을 몰라 찾아봤다. deprecate : ~을 옳지 않다고 역설하다., 계획 따위에 반대하다. MS는 하기 왼쪽에 있는 함수들을 옳지않다고 생각하고 있나보군 -.-;; MS에는 밑에 같이 쓰면 저 워닝은 표시안다고 했는데 잘안된다. #define _CRT_SECURE_NO_DEPRECATE 1 밑에 같이 써주면 워닝이 표시되어지지않는다. #pragma warning(disable:4996) 워닝이 표시되어지지않는다고 문제가 해결..
/* Copyright (C) Scott Bilas, 2000. * All rights reserved worldwide. * * This software is provided "as is" without express or implied * warranties. You may freely copy and compile this source into * applications you distribute provided that the copyright text * below is included in the resulting source code, for example: * "Portions Copyright (C) Scott Bilas, 2000" */ #include template class Sin..
// char 을 WCHAR 로 변경하는 내용 void CMSGProcess::ProcessMultiPos( DATAPACKET *pGetpacket, int index ) { ST_MULTIPOS *UserTouch = (ST_MULTIPOS*)pGetpacket; char TraceString[100]; WCHAR wTraceString[100]; memset( &TraceString, 0, sizeof(TraceString)); memset( &wTraceString, 0, sizeof(wTraceString)); for( int i=0; idata[i].Number, UserTouch->data[i].point.x, UserTouch->data[i].point.y, UserTouch->data[i..
http://blog.daum.net/clickstart/5923323
http://blog.naver.com/hoi_yeon?Redirect=Log&logNo=10020732860 http://www.winapi.co.kr
URL : http://simple21.egloos.com/3482925 이번시간에는 OutputDebugString, TRACE에 대해서 알아보자. 이는 둘 다 Output 창의 Debug Tab에 디버깅 결과 값들을 표시하는 함수이다. 이는 원도우 프로그램에서 디버깅을 위해 편리하게 이용할 수 있다. 1.OutputDebugString() 이 함수는 디버깅 중에 Debug 창에 문자열을 표시하는 함수이다. 이후에 설명할 TRACE 유사(TRACE는 Debug모드에서만 동작, 하지만 이는 Release 모드에서 디버깅(다음에 설명) 중에도 문자열을 표시함) - 만일 위의 Debug 창이 보이지 않으면 "[MENU]View/Output"을 선택 2.TRACE() - OutputDebugString()과 ..
카메라 fps 구하기 카메라의 프레임수를 알아내기 위해서는 전역으로 int old_time = 0; 를 선언하고 callback함수 내부에 다음과 같이 작성해주면 된다. int new_time = GetTickCount(); int delay_time = new_time - old_time; float fps = 1000.f / (float)delay_time; printf("%f\n",fps); old_time = new_time;
크리티컬 세션을 이용해서를 사용해서 1초를 구하는 것.! #include "stdafx.h" #include //windows.h header #include #include DWORD WINAPI MyThread(LPVOID temp); CRITICAL_SECTION g_CriticalSection; //우선 크리티컨 세션을 설정후에... 전역변수 int main(int argc, char* argv[]) { DWORD dwMyThreadID; HANDLE lThread; DWORD dwStart; int nCnt = 10; InitializeCriticalSection(&g_CriticalSection);// 초기화해주고 lThread = CreateThread(NULL, 0, MyThread, NU..
Open Source QR Code Library http://qrcode.sourceforge.jp// http://reader.kaywa.com/ Qr code 에대해서 간략한 설명과 소스? 라이브러리가들어있음~
원인은 불법 시리얼을 사용하셔서 그렇습니다. 1. 정품의 경우 : 시리얼 번호를 다시 확인해보여야 할 것 같습니다. 우선 프로그램을 종료하시구요. 원도우 -> C:\Program Files\common files\Adobe\Adobe PCD\cache\cache.db Pil 경우 C:\Program Files\Common Files\Adobe\Adobe PCD\cache\cache.db 참 년도는 2008년도로 해야 시디키가 먹힘.할때 마다 매번..해줘야함.. Mac -> 라이브러리\Application Support\Adobe\Adobe PCD\cache\cache.db 의 파일을 삭제하세요. 그리고 다시 실행을 하시면 시리얼 번호를 다시 입력할 수 있습니다. 정품 시리얼을 입력하시면 됩니다. 2. 어..
// int to string iNumber = int.Parse(TxtNum1.Text); dNumber = double.Parse(TxtNum2.Text); dResult = iNumber + dNumber; TxtNum2.Text = dResult.ToString(); // string to int string str; if (CardGroup.Text == "Major") { for (int i = 1; i
Question: How do I convert a string to a byte array and vica-versa in VB.NET and C#? Answer: ' VB.NET to convert a string to a byte array Public Shared Function StrToByteArray(str As String) As Byte() Dim encoding As New System.Text.ASCIIEncoding() Return encoding.GetBytes(str) End Function 'StrToByteArray // C# to convert a string to a byte array. public static byte[] StrToByteArray(string str)..