Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
71% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
5
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
1 Commented Post
0 Endorsements
Ranked #3K
~18.1K People Reached
About Me

I'm fun and people say I'm smart. I'm an OU student trying to get his Chemical Engineering Degree. I'm out of school till next spring and looking to have some fun and just rock the town. My new hobbies are playing pool and working out, and both are awesome.…

Favorite Tags

52 Posted Topics

Member Avatar for ChaseRLewis

So I'm writing a memory pool allocator template where it assumes all the objects are of constant size. I need it for a couple objects in a game i'm writing because the dynamic allocation of a large number of small objects is more slow than i'd like. My issue is …

Member Avatar for tinstaafl
0
240
Member Avatar for ChaseRLewis

My question is basically if I have a 4D vector like _declspec(align(16)) class Vec4 { float x; float y; float z; float w; } and I want to use operators like `Vec4 a(Vector4.One),b(Vector4.One),c(Vector4.Zero);` `c = a + b; //Creates a 4th Vector4 here that is wasted` It would seem it …

Member Avatar for mike_2000_17
0
165
Member Avatar for Dedrus

Unity and C# is a good fit. Have to learn a decent amount to get it to work, but easy platform distribution at low-cost and PC/Mac is free. Also Script programming in C# is pretty straightforward. What you actually write in C++ would look almsot identical in C# in this …

Member Avatar for Dedrus
0
205
Member Avatar for ChaseRLewis

So am doing a run down of different 3DMath Libraries. I am noticing functions with return types are HORRIBLY inefficient compared to void returns. I decided to do a rundown of how move constructor/assignment effects this. Well having a move constructor is seeing an average of 3.5-4x improvement, but doing …

0
61
Member Avatar for ChaseRLewis

So in my scripting project I mentioned yesterday I was thinking about how to implement arrays. That got me to thinking how does c++ get arrays and inherited classes to interoperate and found out some wierd things class Y { public: int A; Y() { A = 0; } }; …

Member Avatar for ChaseRLewis
0
153
Member Avatar for ChaseRLewis

long FileSize(FILE* f) { if(f) { long size; long initpos = ftell(f); fseek(f,0,SEEK_END); size = ftell(f); //Get End Position Which fseek(f,initpos,SEEK_SET); //Go Back To Initial Position return size; } return 0; } Only 183 characters in text file but reports 197. Reason for this?

Member Avatar for ChaseRLewis
0
108
Member Avatar for ChaseRLewis

Whole purpose of learning C++ over C# and whatnot is for performance and working at a lower level for more control. Since I've been learning a little SIMD I figured a good project to test myself and make stuff better would be to program a basic scripting language that handles …

Member Avatar for mike_2000_17
0
191
Member Avatar for ChaseRLewis

Well been working on a project that has a bit of sandbox approach to building things. It works pretty well, but I want users to be able to implement C# script for the objects or to keep track of them and perform analytics. I have got it somewhat working as …

0
63
Member Avatar for ChaseRLewis

I'm trying to learn how to use WPF but in the book I'm using it doesn't explain how to expose a custom control to the xaml document in Visual Studio. Visual Studio has some text about including the namespace but I haven't been able to get it to work. CustomCanvas …

Member Avatar for Momerath
0
192
Member Avatar for ChaseRLewis

So I've programmed using Excel Interop before, but I can't figure out something. I have a spreadsheet with thousands of material properties listed in them. In the excel spreadsheet if I change that enum I can recalculate the sheet retrieving the values I need. I want to form a repository …

Member Avatar for thines01
0
107
Member Avatar for ChaseRLewis

I know C/C++ but am trying to learn C# as creating GUI based application is much easier than in C++. I've been leveraging the options of which GUI tool I should learn. Is it best to learn Winform, WPF, or other? I recently tried out the Windows 8 preview to …

Member Avatar for ddanbe
0
110
Member Avatar for ChaseRLewis

The below code gives an output of: [CODE] Allocated! Allocated! Deleted! Allocated! Allocated! Deleted! Size: 3 Capacity: 4 vector[0]: isAligned! 20 30 40 Deleted! Deleted! [/CODE] Can someone explain the first allocation and why there are 4 allocations instead of 2 (one for each reserve?). I figure the first is …

Member Avatar for vijayan121
0
150
Member Avatar for ChaseRLewis

So going over the new DirectXMath and loving how it has better documentation then the old versions, but anyways. It makes a note on many of its targets need to have aligned memory blocks, but that throws me for a loop because I don't know of a way to declare …

Member Avatar for stereomatching
0
161
Member Avatar for ChaseRLewis

Alright I've been writing C/C++ code for a few years but recently got into helping make an indie game with a few guys. We are scripting in C# but i'm just a bit lost on how to do some stuff without pointers. Its a generic class that holds the non-work …

Member Avatar for ChaseRLewis
0
257
Member Avatar for ChaseRLewis

So need to use C# to create this tool I want for a game. It will involve an interop between Excel and my own program so I can easily tweek values on some items in my program or through excel. So far it's going ok, but when I'm constructing the …

Member Avatar for charlybones
0
267
Member Avatar for ChaseRLewis

So I'm beginning to use JavaScript with a new gaming platform I'm trying out and LOVE the interface. It's making everything so easy compared to the in the garage type setup I'm used to. Learning JavaScript has been pretty easy so far but I've hit a snag with typeof. [CODE] …

Member Avatar for ChaseRLewis
0
107
Member Avatar for ChaseRLewis

I've been looking and I'm a bit lost about how to change the target of ostream so that I could write to other buffers than the console.

Member Avatar for mike_2000_17
0
109
Member Avatar for fibbo

When a vector is declared to have a certain number of things such as you init it to size(10000) it's very inefficient to init it with a for loop. Instead you can take a reference pointer to the first member than ZeroMemory it for it's size which is much quicker. …

Member Avatar for fibbo
0
217
Member Avatar for cplusplusrookie

Seems like your creating a deque (double sided queue) which is part of the STL library. Honestly I don't like heads/tail naming but that's just a personal thing. Before/After is a bit more clear or front/back. [CODE] template<typename T> void doublyLinkedList<T>::insertBefore(const T& data) { //Well if Before means at the …

Member Avatar for Narue
0
150
Member Avatar for ccao

Well using a GPU is about the only way your going to have any hope of processing that amount of information per second. Also your gonna have to make sure it's all streamed from memory to gpu properly, which can be more than a fair bit of a pain. It's …

Member Avatar for ChaseRLewis
0
197
Member Avatar for evilguyme

Well first off you haven't stated the problem so I'm assuming things are colliding but your getting failed collision detections? Meh don't want to read through the code without knowing exactly what ISN'T working.

Member Avatar for ChaseRLewis
0
126
Member Avatar for evilguyme

Err..... not really. You have no need to register anything with the OS when it comes to extensions. The only reason you need to do that is if you want to create an icon so people can more easily recognize .imr or whatever. That's excessive work and unless your format …

Member Avatar for ChaseRLewis
0
119
Member Avatar for ChaseRLewis

So I've created an event driven architecture for my current program. I want each new event to have a number generated automatically with a function so I don't have to worry about overlap of id's and referencing is easy. [CODE] class Event { protected: static int get_event_id(); public: virtual int …

Member Avatar for ChaseRLewis
0
257
Member Avatar for ChaseRLewis

I get this warning and I can't seem to figure out what it is referring too (it repeats this exact one ALOT when i have very little code). I'm trying to implement boost archive into my project as it allows less code to be written when serializing classes. [CODE] c:\program …

Member Avatar for vijayan121
0
225
Member Avatar for mike_2000_17

Very nice, learned quite a bit and haven't even finished it. Have to come back to finish it at a decent hour. Thumbs up.

Member Avatar for sergent
8
2K
Member Avatar for ChaseRLewis

My current project requires quite a bit of function pointer passing to guarantee the flexibility desired. Given how messy and annoying I find functions pointers to be I decided to create a wrapper class listed below. Works fine, however it would be nice if their was a method so I …

Member Avatar for Narue
0
101
Member Avatar for Comega

If it crashes as soon as it starts it should give an error message. If it isn't giving you an error message the ide might just be finishing the program so quickly it appears to simply open and close to you. Try putting a breaker at the return so the …

Member Avatar for ChaseRLewis
0
146
Member Avatar for ChaseRLewis

This is what I read about it. [CODE] virtual base class becomes common direct base for the derived class [/CODE] So my question is exactly what does this mean. What I believe it means. [CODE] class A { protected: int a; public: virtual int get_a(); A(void); ~A(void); }; [/CODE] With …

Member Avatar for mike_2000_17
0
163
Member Avatar for mmangual83

Few ways you can do it. 1. Your going to want a frame. Which you'll draw like a normal texture. Unless your going with a really thin one or do some really cool animations an interesting frame helps the aesthetic. 2. Assuming you have just a straight bar [CODE] class …

Member Avatar for ChaseRLewis
0
279
Member Avatar for dyingatmidnight

few ways you can do something like [CODE] BCD foo; tpldByte[0] = foo.getBcdData()[1];[/CODE] where the arrays start at zero so 1 is the second value in the bcdData array and 0 is the first value in the tpldByte. So if I wanted the last in tpldByte to equal the last …

Member Avatar for ChaseRLewis
0
104
Member Avatar for ChaseRLewis

I've created a texture format for another program I've designed, but would like to make it so when I go into files I could visualize them within files the way jpeg and png are done are handled. Was curious if this was possible.

Member Avatar for LaxLoafer
0
138
Member Avatar for ChaseRLewis

Well I've been following the rapidxml sparse documentation but I'm getting confused because I'm getting an error saying "expected =" when I call parse<0>(char* c). Messy code I know, but trying to figure out how to use this api I'm new with. Loading Code [CODE]bool Shader::Load(const char* path) { std::ifstream …

0
94
Member Avatar for ChaseRLewis

I know printf prints to "stdout" how exactly can I change the pointer to a class of mine that i'd prefer to handle the output string? or is it better to just process using sprintf and manage the strings? Would there be any issues with the first method?

Member Avatar for rubberman
0
88
Member Avatar for ChaseRLewis

I'm starting to write more intricate code that does some dynamic compilation through Lua and OpenGL. However, my code is starting to get kinda messy because I have many const char* strings and strings in sections of my code so they can be parsed together properly depending on specific conditions. …

Member Avatar for ChaseRLewis
-1
115
Member Avatar for ChaseRLewis

Curious if anyone else thinks these would be a good idea? Been talking to some people and started questioning how it should be done. - Teach Java over two semesters second semester specializing in more complex subjects and networking. Something like this is as far as I've got, but curious …

Member Avatar for VernonDozier
0
136
Member Avatar for ChaseRLewis

As my projects grow larger I'm beginning to appreciate more robust code with higher re-usability. Also easy to use error handling can make coding for errors much less repetitive. Is there a good online set of articles anyone could recommend?

Member Avatar for mike_2000_17
0
156
Member Avatar for ChaseRLewis

Confused on why even though I have this header linked several times: [CODE] #ifndef ASCII_CHAR_NAMES_H #define ASCII_CHAR_NAMES_H extern const unsigned char ASCII_WHITE_SMILEY = 1; //☺ extern const unsigned char ASCII_BLACK_SMILEY = 2; //☻ extern const unsigned char ASCII_BLACK_HEART = 3; extern const unsigned char ASCII_BLACK_DIAMOND = 4; extern const unsigned …

Member Avatar for mike_2000_17
0
161
Member Avatar for ChaseRLewis

Not sure what to call it. Most windows programs open a window where you can browse for a specified file than submit the directory to a program. I assume their is an OS function that can call this window.

Member Avatar for nishadoa
0
115
Member Avatar for ChaseRLewis

I Created a Look_up table class but when I test it with sin() and cos() it is actually slower than stdlib math's sin. This surprises me by a lot. [CODE] inline double MATH_TABLES::GetSind(double& value) { return mp_Sind[(static_cast<int>(value/m_SinPrecisiond)]; } [/CODE] mp_Sind is simply an array of doubles. This is the non-Lerp'd …

Member Avatar for mike_2000_17
0
2K
Member Avatar for Shinedevil

maya experience? You mean for programming scripts, for art, or both? Just saying question is kinda vague.

Member Avatar for alumini86
0
247
Member Avatar for ChaseRLewis

I am trying to finish up a personal project of mine, but am running into an aesthetic problem. I can't get the window to recognize the hIconSm when I try to set it. [CODE] WNDCLASSEX wnd; ZeroMemory(&wnd,sizeof(wnd)); wnd.cbSize = sizeof(WNDCLASSEX); wnd.hInstance = hInstance; wnd.lpfnWndProc = (WNDPROC) WindowProc; wnd.hCursor = LoadCursor(NULL,IDC_ARROW); …

0
55
Member Avatar for ChaseRLewis

Hello, When I was getting the basics of C++ these forums were very helpful so maybe I can find some help on this subject. I want to organize a template project (think there is a better name for this) so when I create a new project in Visual Studio 2010 …

Member Avatar for deanus
0
133
Member Avatar for amit.hak50

Well a few things on your program. You probably want it to exit the loop when it determines it is not-prime so you get the result faster. Really large number can take awhile to find if they are prime so you could be talking about several seconds,tens of seconds, or …

Member Avatar for apines
0
202
Member Avatar for ChaseRLewis

I'm an intermediate c++ programmer beginning to learn java and curious about what people would reccomend on how to approach network programming with java. I have no desire to build webpages for browsers but to build a communications between systems to exchange data for games or other programs I might …

Member Avatar for JamesCherrill
0
80
Member Avatar for AnAnonymousUser

^ does not do exponents it is a boolean gate function. What you are probably looking for are shift operators << ,>>, >>> read about those and you should see what to do.

Member Avatar for ChaseRLewis
0
89
Member Avatar for Syrne

[CODE]int main() { Program(); while(Restart()) { Program(); } return 0; } void Program() { Program code .... } bool Restart() { code to get bool .... }[/CODE]

Member Avatar for Syrne
0
7K
Member Avatar for ChaseRLewis

I'm working on creating some 3d tools for helping me in my game making hobby. Its going along fine, but I need to save a model class with a non-standard size (model with 4 textures and 10000 vertices is larger than one with 1 texture and 1000 vertices) to memory …

0
44
Member Avatar for ChaseRLewis

Wanting to create an error handling function, I want it to return the line without having to pass an int value for it. I've seen functions given to me in books and so forth do it, but I have no idea how to get that value.

Member Avatar for ChaseRLewis
0
126
Member Avatar for ChaseRLewis

Going through a text to help cement my knowledge of C++ but found code that wasn't explained and looks kinda odd to me. [CODE] #include <iostream> #include <string> int main() { using namespace std; char ch; int count = 0; cin.get(ch); while(ch != '\n') { cout << ch; ++count; cin.get(ch); …

Member Avatar for mike_2000_17
0
87
Member Avatar for ChaseRLewis

[CODE]#include <iostream> using namespace std; class Player {protected: int health; int mana; public: Player :: Player() { health = 0; mana = 0; } Player :: Player(int Health, int Mana) { health = Health; mana = Mana; } int GetHealth() { return health; } int GetMana() { return mana; } …

Member Avatar for dusktreader
1
162

The End.