Jump to content
Sign in to follow this  
  • entries
    23
  • comments
    31
  • views
    19941

Ahhh, the frustration of bein' a programmer

Sign in to follow this  
coderx75

271 views

Ya know those times when you just can't get something to work and you just don't know why? Yeah, this is one of those times.

I'm almost done with the framework for my application. Everything that happens on the kernel level is executed though "actions". What's cool is that I have a console (which has been rewritten) and anything that you enter into the console gets translated into an action by the kernel. This works but I'm trying to add all DirectX initializations as system actions. I've extended the CAction class to a CActionInitVideo class. This new class is set up with everything that it needs to initialize the video. However, I send the action request to the kernel and... poop. I'm back out to windows with an error telling me that I've failed miserably.

Now, do I NEED this feature? Of course not. I can just have the kernel initialize the video directly (and all other DirectX objects) but that's just not cool. I want all commands to the kernel to happen via the console... and directed to the action processor. Then, I want a config file (text) that contains all of my action commands to the console which the system can execute during initialization. Any parameters can then be in the config file. If I do this, I'll have the killer framework that I had envisioned.

I'm using adaptor classes to interface with all of these objects. Perhaps I screwed the couch when I was writing the adaptor class? The adaptors hold a static pointer to the object that they are interfacing so all instantiations are acting on the same object. Therefore, there shouldn't be a prob.

Anyway, it's 3:30am and I have work in the morning. I'm off to bed with my tail between my legs. =/
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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!