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
~17.7K 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
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
233
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
162
Member Avatar for Dedrus

Hey guys :D I want some opinions on a few queries I have. Some background info: I'm adept at programming in VB, C++ and somewhat less experienced with Java and C#; considerably experienced in 2D graphical design; and I'm studying a minor course in game design and also game development. …

Member Avatar for Dedrus
0
199
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
58
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
145
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
104
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
189
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
62
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
188
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
104
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
107
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
147
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
157
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
241
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
259
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
104
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
105
Member Avatar for fibbo

Hey guys! I hope what I'm about to do is not frowned upon :) I just would like some input/critics/heads up on my class definition and implementation I did for my project. I am by no means a trained programmer and I doubt my coding style is very good so …

Member Avatar for fibbo
0
213
Member Avatar for cplusplusrookie

Hi, I am doing a program using Doubly-Linked List. I am just studying C++, and still new in this field. My question are: - How can I make a method which[B] inserts a new node before the currently selected node, then makes the new node the current node[/B]? - How …

Member Avatar for Narue
0
147
Member Avatar for ccao

Hi All, I am trying to create a image text detection program. The program is up and running, and I can distinguish between text and non-text using laplacian based method with an acceptable accuracy. However, the problem is that I need the program run with the speed > 100 (images/s), …

Member Avatar for ChaseRLewis
0
188
Member Avatar for evilguyme

hey guys! ive spent another 3 hours trying to find out what is wrong with my code! i tried many ideas that came into my head but they didnt work :( here is my code.. ive narrowed my problem and shown where it could possibly be by enlarging and making …

Member Avatar for ChaseRLewis
0
123
Member Avatar for evilguyme

Hey guys! i was wondering how some games and software have image files that are accessed from .dat and/or .bin files! can i do this for a C++ program? i tried googling but had no hope so i posted here.. i would also like to know how i can make …

Member Avatar for ChaseRLewis
0
116
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
249
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
218
Member Avatar for mike_2000_17

[B]Beginner's guide to C++0x: Avoiding Memory Problems by Design of Ownership[/B] If you ever read any resources on C++ programming or object-oriented programming, you must have heard some rethorics like "inheritance is for the [I]is a[/I] relation, composition is for the [I]has a[/I] relation". Is that all? Is that the …

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
99
Member Avatar for Comega

Sorry if this might be a stupid question, I'm still new, I've been doing C++ for 3 days so far and I just reached objects.. Anyway. I made one thing to additionate seconds with seconds, minutes with minutes and hours with hours. The thing compiles but crashes as soon as …

Member Avatar for ChaseRLewis
0
143
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
162
Member Avatar for mmangual83

All right, I am trying to make a working healthbar for my game done in direct x 9 and for some reason nothing I do works. Basically, when I run the game and the main character collides with an enemy, the red bar for his health just travels towards the …

Member Avatar for ChaseRLewis
0
274
Member Avatar for dyingatmidnight

I swear I used to know how to do this ... so I have this array: BYTE bcdData[6]; and a function that returns it: [code] BYTE * BCD::GetBcdData() { return bcdData; } [/code] and I have this other array in another class: BYTE tpIdByte[2]; And what I am trying to …

Member Avatar for ChaseRLewis
0
99