Search Results

Showing results 1 to 11 of 11
Search took 0.01 seconds.
Search: Posts Made By: loushou
Forum: C++ Jan 29th, 2008
Replies: 2
Views: 2,247
Posted By loushou
int_vertCount = 5
int_PrimCount = 3

p_dx_Device is a object created by the DirectX function Direct3DCreate9::CreateDevice and is populated properly as well as passed properly.

the...
Forum: C++ Jan 29th, 2008
Replies: 2
Views: 2,247
Posted By loushou
Here is my code of the function in questiion:

void DrawScene(LPDIRECT3DDEVICE9 p_dx_Device, LPDIRECT3DVERTEXBUFFER9 p_dx_VertexBuffer, LPDIRECT3DINDEXBUFFER9 p_dx_IndexBuffer)
{...
Forum: C++ Jan 27th, 2008
Replies: 1
Views: 3,843
Posted By loushou
okay i have an array of a struct.

struct MYSTRUCT
{
float myFirstVal, mySecondVal, myThirdVal;
unsigned char myByte;
}

int myCountFunction(MYSTRUCT *&myArrayOfStructs)
{
Forum: C++ Jan 27th, 2008
Replies: 3
Views: 2,483
Posted By loushou
You are obviously more versed than I, and i definitely thank you for your help. That being said what sort of alternative do you propose?
Forum: C++ Jan 25th, 2008
Replies: 3
Views: 2,483
Posted By loushou
Here is my code:

int LoadVerts(char *s_fName, OURCUSTOMVERTEX *p_Verts, short *p_Indices)
{
long i_CountVerts;
long i_CountInds;

unsigned char buffer[sizeof(OURCUSTOMVERTEX)];
...
Forum: C++ Jan 25th, 2008
Replies: 2
Views: 607
Posted By loushou
Okay... my goal is to start with an array of for instance 5 entries.

int myArray[5];

Then at some point once the array is passed to a function, change the number of entries (example: load a new...
Forum: C++ Jan 25th, 2008
Replies: 7
Views: 2,490
Posted By loushou
I am an IDIOT!

Okay just to make myself look retarded.... i will explain what happened.

Review the original code for LoadVerts.

Look near the bottom at this line:
...
Forum: C++ Jan 25th, 2008
Replies: 7
Views: 2,490
Posted By loushou
Yes i changed them all in both functions.

As far as writing and reading too many bytes, i am writing and reading the exact same amount because i structured the LoadVerts routine from the SaveVerts...
Forum: C++ Jan 24th, 2008
Replies: 7
Views: 2,490
Posted By loushou
While your explaination made perfect sense, it did not solve the problem. I made what should have been the required change and still get:

Unhandled exception at 0x7c9377d5 in saveverts.exe:...
Forum: C++ Jan 24th, 2008
Replies: 7
Views: 2,490
Posted By loushou
So finally after a little waking up i fixed my write to a file in raw binary problem. Now I am trying to load the same data from the file i created. Here is the code I came up with.

#include...
Forum: C++ Jan 24th, 2008
Replies: 2
Views: 405
Posted By loushou
I am trying to dump 2 longs, an array of floats and DWORDs, and an array of shorts into a file, USING BINARY out mode. Here is my code:
#include <windows.h>
#include <fstream>
#include...
Showing results 1 to 11 of 11

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC