Jump to content
  • Advertisement

disknoir1984

Member
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

100 Neutral

About disknoir1984

  • Rank
    Newbie
  1. disknoir1984

    VC++ cannot locate d3dx9tex.h

    I tried moving the files to the bottom of the list in the vc++directory option, and now I'm getting this error: inking... LINK : fatal error LNK1104: cannot open file ',.obj' Build log was saved at "file://d:\My Documents\Visual Studio 2008\Projects\beginning directx9\chapter3\01 Bitmap background\background bitmap\background bitmap\Debug\BuildLog.htm" background bitmap - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  2. I've been trying to use d3dx9tex.h in my program, but the compiler says that there is no such file. d3d9.h, which is in the same folder, works fine. I linked both .lib files. I then read an old thread that said to make sure that the include/lib folders were in the vc++ global options.they are. i'm now getting this error: ------ Build started: Project: test, Configuration: Debug Win32 ------ Compiling... winmain.cpp c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(236) : error C2146: syntax error : missing ';' before identifier 'PVOID64' c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(236) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C2146: syntax error : missing ';' before identifier 'Buffer' c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int Build log was saved at "file://d:\My Documents\Visual Studio 2008\Projects\beginning directx9\test\test\test\Debug\BuildLog.htm" test - 5 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== [\source] I'm quite confused. Any advice would be welcome.
  3. disknoir1984

    visual studio 2008 win32 problem

    Thanks mate. Now I can actually get on with some coding :)
  4. I've been using dev c++ while learning c++ for the past two years. I want to learn to use the win32 api which works fine with devc++. However, as I will eventually want to use directx, I downloaded visual studio 2008 express. The code that works in devc++ does not work in vs. I'm sure that its just a setup issue, but with the mass of info regarding vs 2008 I can't seem to figure out whats going on. As I say, I'm new to windows programming and i'm finding he learning curve pretty steep. This is the basic code i'm trying to compile: #include <windows.h> HINSTANCE hInst; HWND wndHandle; bool initWindow(HINSTANCE hInstance); LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { if (!initWindow(hInstance)) return false; // Main message loop: MSG msg; ZeroMemory( &msg, sizeof(msg) ); while( msg.message!=WM_QUIT ) { if( PeekMessage( &msg, NULL, 0U, 0U, PM_REMOVE ) ) { TranslateMessage( &msg ); DispatchMessage( &msg ); } } return (int) msg.wParam; } bool initWindow(HINSTANCE hInstance) { WNDCLASSEX wcex; wcex.cbSize = sizeof(WNDCLASSEX); wcex.style = CS_HREDRAW | CS_VREDRAW; wcex.lpfnWndProc = (WNDPROC)WndProc; wcex.cbClsExtra = 0; wcex.cbWndExtra = 0; wcex.hInstance = hInstance; wcex.hIcon = 0; wcex.hCursor = LoadCursor(NULL, IDC_ARROW); wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); wcex.lpszMenuName = NULL; wcex.lpszClassName = "DirectXExample"; wcex.hIconSm = 0; RegisterClassEx(&wcex); wndHandle = CreateWindow("DirectXExample", "DirectXExample", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 640, 480, NULL, NULL, hInstance, NULL); if (!wndHandle) return false; ShowWindow(wndHandle, SW_SHOW); UpdateWindow(wndHandle); return true; } LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_DESTROY: PostQuitMessage(0); break; } return DefWindowProc(hWnd, message, wParam, lParam); } and this is the error i'm getting: Compiling... winmain.cpp d:\my documents\visual studio 2008\projects\project 1\project 1\winmain.cpp(19) : error C2731: 'WinMain' : function cannot be overloaded d:\my documents\visual studio 2008\projects\project 1\project 1\winmain.cpp(16) : see declaration of 'WinMain' d:\my documents\visual studio 2008\projects\project 1\project 1\winmain.cpp(52) : error C2440: '=' : cannot convert from 'const char [15]' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast d:\my documents\visual studio 2008\projects\project 1\project 1\winmain.cpp(67) : error C2664: 'CreateWindowExW' : cannot convert parameter 2 from 'const char [15]' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Build log was saved at "file://d:\My Documents\Visual Studio 2008\Projects\project 1\project 1\Debug\BuildLog.htm" project 1 - 3 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== If there is something simple that I'm missing, please enlighten me. If not, is there a book or web resourse that will help. Thanks
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!