Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

108 Neutral

About vesoljc

  • Rank
  1. vesoljc

    int bFlag : 1

    vs2005 also 8
  2. afaik defining bit flags be also be used like: class a { protected: int bFlag1 : 1; int bFlag2 : 1; }; and compiler will pack them. now i'm wondering if this works for inheritance also? like: class b: public a { protected: int bFlag3 : 1; int bFlag4 : 1; }; will these flags share "same" memory or not?
  3. vesoljc

    who created me?

    hmm, in this case who almost equals where... but, function id would be quite nice :)
  4. i'm currently working on a win32 app (asset mng). to make app "livly" we decided to transfer all the heavy work into queued tasks, which can run in multiple worker threads. one problem i currenlty have, that once the tasks are created and stuffed into a queue, i have no idea who created them. the first solution i tried was to use the built-in macros __file__, __function__, __line__, from which i created a string, and passed this string via a macro to a overloaded task creating function. so, now when task is being executed, i just take a look of this string, and know who created it. but this seems so ugly to me... is there a nicer way? are the __X__ macros only way to find out the "callers id"? what bout going back on the stack? ie, if u create a wrapper function, is it posible to go back (unwind)?
  5. i am having some issues on binding specific file types with custom apps. im working on an editor which provides diffrent node types, for instance tga, txt, wav, mp3 etc... what i did is, i created two extra commands in explorer/file types/advanced (view and edit). for example tga view opens irfan view, while tga edit opens photoshop. now, when u doubleclick inside the editor i say something like this. ProcessStartInfo *lpProcessInfo = new System::Diagnostics::ProcessStartInfo(); lpProcessInfo->FileName = cvtString( filename ); lpProcessInfo->Verb = cvtString("my_view"); if( lpProcessInfo->Verbs->Contains( cvtString("my_view") ) ) { Process::Start(lpProcessInfo); } the downside is that i must manualy add these commands to the system. i did check the registry, but it seams kinda wierd to me (xxxfile/command/...). i want to be to able to provide the user with the ability to choose which apps to run on view/edit. any ideas on how to do this? i' working on managed c++ project, with extra c++ libs (vs2005).
  6. i'm currently working on a app which is written in delphi (UI) and a custom c++ directx app (sys) which will render stuff in its own window. sys app has its own handlers for input which have to be activated on a specific action (keypress in UI app, for example) and not by common means like alttab or mouse click on it. so, my question is how make a window completly inactive to common controls? ipc module for communication between two apps is also done so controling the windows from one app to another is not a problem.
  7. for ref, i'm using vs2005
  8. Quote:Original post by Promit Quote:Original post by Dave1) Why do you want both definitions? 2) In the const'd version, why are you casting 'a' from non-const to const in the return type? Both are required to calling of the function on both const and non-const objects correctly. Anyway, the reason myfunc is calling the non-const version is because you're storing the GetA result in a non-const pointer, so the const version can't be invoked. If you use: const A* pA = pParent->GetA(); Then you should get the const GetA(). IIRC the compiler will attempt to use the const version if at all possible, otherwise it will try the non-const version. well, i tried that too, but nonconst version is still called...
  9. Quote:Original post by Dave First of all: 1) Why do you want both definitions? 2) In the const'd version, why are you casting 'a' from non-const to const in the return type? Dave 1) well, "a" should be used (RW access) only internally (or protected), but i needed a readonly access on it from outside 2) to make it read only?
  10. i have this setup: class a; class c; class b { friend class c; private: c *pParent; public: void myfunc() const; }; void b::myfunc() const { A *pA = pParent->GetA(); } class c { private: a A; public: const a *GetA() const {return &a;} private: a *GetA() {return &a;} }; myfunc keeps calling nonconst version. why is that and how should be this done?
  11. as a fellow moderator of the programming section in a local forum, i have a few "rules" which i try to enforce: - if a topic is based on a specific language, it should be marked so in the title, like:[c++] namespaces, [java] streams , etc... imho, this makes the forum more readable and can also help when searching. - i'm also very sensitive about topic names. like: "problem", "won't work", etc... i try to push the users to give more descriptive names
  12. http://www.bugzilla.org/
  13. vesoljc

    normal map tools

    ok, next thing: normal map -> height map 1) nvidia photoshop plugin 2) any other alternatives?
  14. vesoljc

    normal map tools

    tnx ps: how the hell did u get that link? :)
  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!