• Content count

  • Joined

  • Last visited

Community Reputation

134 Neutral

About Skute

  • Rank
  1. I think I may have just worked out why, but I'd appreciate it if someone could just confirm it for me. My laptop has a GeForce Go 7950 - I'm guessing as it's not the 8xxx series it must be running in software mode? That's why it's running so slowly?
  2. Hi, I've just been looking at the new Direct3D 10 tutorials (from the DX SDK) and I've noticed that they run at a full 100% on one core. The message loop uses the same one described in: Once you switch to another window you can't switch back. Is there a better loop? One that allows other applications to function too? (Heres the code from the tutorials) // Main message loop MSG msg = {0}; while( WM_QUIT != msg.message ) { if( PeekMessage( &msg, NULL, 0, 0, PM_REMOVE ) ) { TranslateMessage( &msg ); DispatchMessage( &msg ); } else { Render(); } }
  3. Class Confusion

    I think hes saying that the classes he spawns are of different types? Is it something like this? Class Engine Class Terrain Class Enemy Class Renderer etc?
  4. fixed the problem, the file i deleted contained the <tchar.h> file. my winmain is defined as _tWinMain, so obviously it couldnt find the WinMain / wWinMain function.
  5. Hi all, Im getting the following error: LIBCMTD.lib(wincrt0.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup Now, my project did work fine until a moment ago when i deleted a file from my project (which was redundant now anyway). But i cant get this error to go away. Ive tried switching from debug to release CRT dlls, no difference, tried multi-threaded and single threaded. I presume its a conflict some how with the directx dlls, here is how im referencing the header and library files: #pragma once #pragma comment(lib, "d3d9.lib") #pragma comment(lib, "dxerr9.lib") #ifdef _DEBUG #pragma comment(lib, "d3dx9d.lib") #else #pragma comment(lib, "d3dx9.lib") #endif #if defined(_DEBUG) && !defined(D3D_DEBUG_INFO) #define D3D_DEBUG_INFO #endif #include <d3d9.h> #include <d3dx9.h> #include <dxerr9.h> Any help is much appreciated. P.S. Dont tell me im using the wrong project type - console / application etc. Thats not the issue here. Cheers,
  6. Strings

    i definately not copying objects with each call, i try to pass everything by reference. there arent that many string operations going on at all, its more for logging stuff, printing stuff to screen every now and then etc. not sure why im not using std::string, may have a quick look at that...
  7. Quick question: Custom string class vs LPCTSTR ? Ive got a custom class which wraps around TCHAR*, but im worried it might have a slight speed impact, rather than pass around the raw string pointer (TCHAR*). What do you think? The class is well written and uses standard crt functions for copying / concatenation etc. Thanks
  8. no, the SDK = Software Development Kit. Its for making add-ons, aka, mods to the original game. Its not the source code for the engine. You're gonna have to wait another 10 years or so for that one!
  9. float vs double

    Should you not try to implement your own floating point class? As floats / doubles cant contain every single number possible - i.e. the number they store in memory is actually a calculation for the final number. Which leads to certain cases where: int main() { float a = 2.501f; a *= 1.5134f; if (a == 3.7850134) cout << "Expected value" << endl; else cout << "Unexpected value" << endl; } would print "Unexpected value".
  10. Win API: Edit Controls is your friend, it covers all these questions and alot more. If you are serious about getting into Win32 API programming, buy the Petzold book, its invaluable.
  11. did you try including the header file like this: extern "C" { #include <ode/ode.h> } ?
  12. if "dWorldCreate" is in a .c file, dont you have to do: extern "C" { #include "dWorldCreate.h" } Hope that helps
  13. Hi, im having trouble using ParseDisplayName and SHGetFileInfo with my logitech camera. Im trying to create a combo box which mimics the drop down combo box in my computer etc. The code im using is: HRESULT hr = pDesktop->ParseDisplayName(NULL, NULL, T2OLE(pStringPidl->strNameForParsing.GetBuffer()), NULL, &pidlFull, NULL); if (SUCCEEDED(hr)) { nAdded = this->AddString(pStringPidl->strName); this->SetItemDataPtr(nAdded, static_cast<void *>(new CComboBoxDriveListItemData(2, pidlFull))); pMalloc->Free(pidlFull); } But its failing with, hr = "The system cannot find the file specified." The variable, strNameForParsing = ";;{E211B736-43FD-11D1-9EFB-0000F8757FCD}\devid:{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0003:" If you copy and paste "devid:{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0003:" into the address bar of my computer, it successfully initialises the camera. But it wont recognise the previous part of the GUID (which is actually the GUID for "Scanners and Cameras". Im trying to use the pidlFull value with SHGetFileInfo so i can get an icon for the camera to display in my combo box. All the other icons work fine, help!! Thanks
  14. Enginuity, Part II

    So do you all think it would be better to have 2 types of pointer: a) A smart pointer that deletes itself when needed and b) A garbage collected pointer that can be deleted whenever is convenient ?
  15. Enginuity, Part II

    Quote:Original post by evolutional plus it's non-intrusive, unlike the Enginuity version. how do you mean? I was thinking about building in an option for the MMObject class, so that it can either have a list of dead objects or it could automatically free them.