Nvidia Quadro Video SDK 예제 중 vid2tex 를 빌드하던 중:


이유는 정확히 알 수 없으나 빌드 구성을 win32에서 x64로 바꾸니 문제는 해결되었다.



이 그림과 같이 설정하면 된다.




아래 원문 출처: http://social.msdn.microsoft.com/Forums/en/vcgeneral/thread/a494abb8-3561-4ebe-9eb0-6f644a679862

You can also take a look of this blog: http://blogs.msdn.com/vcblog/archive/tags/Migration/default.aspx

There is a section about VC++ directory changes in VS2010:

VC++ Directories change

VC++ Directories are no longer supported in VS2010 through Tools->Options page. Instead, VS2010 introduces the user settings file (Microsoft.cpp.<Platform>.users.props) to control global settings including Global search path. These files are located at $(USERPROFILE)\appdata\local\microsoft\msbuild\v4.0 directory. Upon migration to VS2010, the custom settings of VC++ Directories from VS2005 or VS2008 are migrated to these user files. These global settings files are imported into all the converted and newly created projects.

 

Here are the steps to change the settings file through UI:

·         Open up property manager by clicking on View.Property Manager.

·         Expand the project node and then the Configuration|Platform nodes, you will see "Microsoft.cpp.<Platform>.users" file for each Configuration|Platform. These are the files for the global settings, similar to the old tools/Options/VC++ Directories.

·         Multi-Select "Microsoft.cpp.<Platform>.users", right click and bring up the property page window

·         In the property page window, click on "VC++ Directories" (for example) in the left pane, add new paths for the directories such as "Include Directories". separated by semicolons

·         Make sure to save the settings before shutting down Visual Studio.

·         Re-launch Visual Studio and the new settings will be in effect.

-Note: If you would like to only change the settings for one project, you can right click on the project and bring up the property page. Change the settings for “VC++ Directories”, these settings will be persisted to the project file.


Li Shao








여기 답이 있다:
http://stackoverflow.com/questions/2393103/android-sdk-main-out-xml-parsing-error

To prevent out.xml from being created.

  1. edit an XML file, a perfectly natural thing to do....

  2. save and close the XML file

  3. Open any .java file in src/

  4. Double click in the file to ensure it has focus and the cursor is in there.

  5. Run... should be OK now

If it happens, do this...

  1. edit an XML file, a perfectly natural thing to do....

  2. Run... crash due to dreaded out.xml file

  3. Delete the /res/_.out.xml file

  4. Close all files in the IDE view

  5. Project...Clean...

  6. Open any .java file in src/

  7. Double click in the file so it has focus and the cursor is in there.

  8. Run... should be OK now

Thanks Berry Wing~!

R6034 에러

개발과 트러블슈팅 2010. 11. 29. 23:37 Posted by 양고
VS2005에서 생성한 프로젝트를 VS2008로 변환한 후,
링크되는 CV 라이브러리를 1.x에서 2.1로 바꾸었다.
그랬더니 R6034란 생소한 에러가 발생.


MSDN이나 웹상에는 manifest를 만들라는 소리들 뿐인데, 해결되지 않았다.
msvcrt.lib를 무시할 라이브러리에 포함하면 일단 저 에러는 사라지지만, 특정 malloc에서 실패했다.

결국 VS2008에서 프로젝트를 새로 생성함으로써 문제 해결!
CvMat image_points;
...
image_points = cvCreateMat(1, IMAGES*ROWS*COLS*2, CV_32FC2);
...
memcpy(image_points->data.fl + image*ROWS*COLS*2*2, img_points->data.fl, sizeof(CvPoint2D32f)*ROWS*COLS*2);  // 사이즈 오류!

 위의 memcpy를 수행한 후 (CvMat*) image_points->data.fl 에 대해 <Ptr>이 잘못되었다고 한다. 실제로 해당위치에 memcpy를 하면 예외가 발생한다.
결론부터 말하자면 위 코드의 memcpy 시에 CvMat에서 할당한 메모리보다 더 큰 양을 카피함으로써 발생한 오류이다.
그런데 image_points->data.fl에 memcpy를 좀 잘못했다고 해서 본 CvMat 객체를 가리키는 image_points가 corrupt되다니?
원인은 다음과 같이 데이터-헤더 순의 allocation 때문이었다! 즉 데이터 자리가 범람해서 본 객체를 말아먹는; 

<그림> 원래 data.fl = 00b92b00

<그림> data.fl overwritten

VS2008 MSCOMM 등록

개발과 트러블슈팅 2010. 11. 19. 17:01 Posted by 양고
VS6: Project > Add To Project > Components and Controls...



VS 2008: 도구상자의 '일반' 컨트롤 영역으로 OCX 파일을 끌어넣자! 아무도 이런건 알려주지 않더군.


VS 2008: 지금 찾은 방법인데 폼에서 마우스 우클릭, "ActiveX 컨트롤 삽입". 이게 제일 쉽네 -_ㅜ


추가.
실행하면 '빈 문서를 만들 수 없습니다.' 에러가 뜰 것이다.
다음의 내용을 참고하여 InitInstance에서 AfxEnableControlContainer()를 한 번 호출해주자.

"You must call the AfxEnableControlContainer function when you use OLE control containers in Visual C++"
http://www.microsofttranslator.com/BV.aspx?ref=CSSKB&from=en&to=ko&a=http://support.microsoft.com/kb/150029/en-us?fr=1


http://msdn.microsoft.com/en-us/library/ms787251(VS.85).aspx

Loading a GraphEdit File Programmatically

An application can use the IPersistStream interface to load a GraphEdit (.grf) file. Use the following code:

HRESULT LoadGraphFile(IGraphBuilder *pGraph, const WCHAR* wszName)
{
    IStorage *pStorage = 0;
    if (S_OK != StgIsStorageFile(wszName))
    {
        return E_FAIL;
    }
    HRESULT hr = StgOpenStorage(wszName, 0, 
        STGM_TRANSACTED | STGM_READ | STGM_SHARE_DENY_WRITE, 
        0, 0, &pStorage);
    if (FAILED(hr))
    {
        return hr;
    }
    IPersistStream *pPersistStream = 0;
    hr = pGraph->QueryInterface(IID_IPersistStream,
             reinterpret_cast<void**>(&pPersistStream));
    if (SUCCEEDED(hr))
    {
        IStream *pStream = 0;
        hr = pStorage->OpenStream(L"ActiveMovieGraph", 0, 
            STGM_READ | STGM_SHARE_EXCLUSIVE, 0, &pStream);
        if(SUCCEEDED(hr))
        {
            hr = pPersistStream->Load(pStream);
            pStream->Release();
        }
        pPersistStream->Release();
    }
    pStorage->Release();
    return hr;
}
  • Note   The call to IPersistStream::Load in the previous code example can return a DirectShow error or success code. For a list of possible return values, see Error and Success Codes.

GraphEdit files are intended only for testing and debugging. They are not meant for use by end-user applications.

For more information about the StgIsStorageFile and StgOpenStorage functions, see the Platform SDK documentation.

TRACE가 안 될 때...

개발과 트러블슈팅 2010. 11. 8. 16:43 Posted by 양고
Visual Studio 2008 기준.
TRACE가 창에 표시되지 않을 때, VS 옵션>디버깅을 찾아보면 다음의 거지같은 옵션이 있다. 해제하자.

그나저나 [직접 실행]은 대체 뭐란 말인가...?
줄거리: 아이폰4 예판이 인터넷 게시판을 뒤덮은 이 때, 낡은 h5550(3870도 하나 있...)을 꺼내어 살리고자 하는 주인공의 노력이 애처롭다.

증상: 주 전지가 0%에서 절대 충전 안 되는 상황

삽질:
인터넷에서 찾은 해결책(recalibrating the battery)들은 여러 가지가 있었는데,
1. '대기'를 기본인 72시간에서 24시간으로 줄인 후 몇 초 있다가 다시 72시간으로 돌려라.
2. 배터리를 뽑고, 전원을 꽂고 하드리셋, 배터리를 다시 꽂고 하드리셋하는 방식.
둘 다 효과가 없었는데, 이것저것 하다보니 '배터리 재보정' 대화상자가 나타나서 OK했다. 그러나 그 후로 아무 효과가 없었다. -_-
3. 급기야 알육이의 배터리 보정프로그램을 찾아서 돌려봤으나 오히려 백업전지마저 0%가 되는 참사가 발생.

불확실한 해결책:
3의 백업전지 0% 문제를 해결하기 위해서 하드리셋을 반복한 것이 효과가 있는 것 같다. 여러 차례 하드리셋 후 백업전지가 100%로 표시되고, 주 전지도 충전되기 시작했다.

IT팀 요청사항

2010. 4. 28. 17:03

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력하세요.