April 25, 2024, 07:21:11 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Sapero's Windows include files(History)

Started by Ionic Wind Support Team, May 23, 2006, 02:09:22 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Haim

Sapero,

I installed the last version of your header files, and encountered a problem with sqldescribecol function.
The program compiled OK but the values returned from tje function are null.
It works correctly with the original version of "sql.inc" that comes with the aurora RC2 installation package.
I did not check other functions.

Haim


sapero

It works for me, maybe show your source? (attached demo that connects via dsn)

Haim

Sapero,
thanks for the example code.
I got my program to work with your current include files by changing the the type of the handle in my program from UINT to POINTER.
It now works correctly on both the original include files and yours, but I do not understand why.  :-[

Haim

sapero

August 02, 2008, 05:24:51 AM #103 Last Edit: August 02, 2008, 05:31:29 AM by sapero
Because of the conversion from original headers:
typedef void * SQLHANDLE; // c++
#typedef SQLHANDLE pointer // aurora


When you do not use the predefined types and define your sql handle as UINT, then it will cause problems when you pass this variable to a function or structure. The compiler will pass the address of your variable instead value.

example:
#typedef SQLHANDLE pointer

sub main()
{
pointer    p = 1;
UINT       u = 1;
SQLHANDLE h = 1;

show(p);
show(u);
show(h);
}

sub show(SQLHANDLE x)
{
print(0+x);
}

Haim

Sapero,
Thank you for explaining this. I would'nt have figured it out by myself.
Haim

sapero

October 19, 2008, 06:24:21 PM #105 Last Edit: June 09, 2009, 06:05:03 AM by sapero
This update fixes the problem with D3DCAPS structure (link) - added a underscore to RasterCaps and LineCaps in d3d8caps.inc, d3d9caps.inc.
Bass header has been renamed to bass24.inc to make versioning possible.

Sendspace links can expire fast if nobody will download.
Links expired.

Ionic Wind Support Team

October 19, 2008, 07:12:16 PM #106 Last Edit: October 19, 2008, 07:36:19 PM by Paul Turley
Uploaded to the sites repository:

Emergence:
[** - Link Remove - **

Aurora:
[** - Link Remove - **
Ionic Wind Support Team

Ionic Wind Support Team

Links updated.  Initial uploads were corrupted.
Ionic Wind Support Team

Ionic Wind Support Team

Just a warning to Emergence users.  If your using the original "windows.inc" that comes with Emergence then be sure to install Sapero's headers to a different directory, or rename the windows.inc file before installing. 

Thanks,
Paul.
Ionic Wind Support Team

sapero

October 21, 2008, 06:52:47 AM #109 Last Edit: June 09, 2009, 06:05:24 AM by sapero
Update for Emergence - the header windows.inc is now renamed to windowssdk.inc. The windows.inc file that comes with emergence isn't compatible with sdk header. Previous versions of this instaler did overwrite this file, which has caused some problems with a few users.

Links expired.

Ionic Wind Support Team

download on the site updated.  Thanks Sapero.
Ionic Wind Support Team

Rock Ridge Farm (Larry)

Downloaded both from both sites just to make sure you get a vote.

sapero

November 16, 2008, 07:43:05 AM #112 Last Edit: June 09, 2009, 06:05:50 AM by sapero
Thanks Larry.

Here is important update for Emergence - fixes invalid types in gdiplus headers. Updated files are also available in attachment from "Office Menu" thread.

Links expired.

Hootie

Sapero,

Prevxcsi reports a worm in glaux.dll that is in your headers package.

Ionic Wind Support Team

That would be a definite false positive.  glaux.dll is part of Open GL

http://www.opengl.org/
Ionic Wind Support Team

Hootie


sapero

November 16, 2008, 01:40:36 PM #116 Last Edit: June 09, 2009, 06:06:24 AM by sapero
glaux.dll was created by me long time ago, with Visual Studio 6. Because the file was very big - 1MB I have compressed it with UPX.
You can use upx to unpack it.

Here's the source code: (Links expired)

I have recompilled it right now using vs2005 - the size of dll is 1.05 MB.

sapero

December 05, 2008, 05:30:41 PM #117 Last Edit: June 09, 2009, 06:07:03 AM by sapero
Next release (1.9.1.9) fixes missing BYVAL keyword in VARIANT parameters. I overlooked about 20 variants, but today a quick search with regex found all bugs.

Links expired.

Hootie

Hi Sapero,

Just wanted to let you know that including d3dx9math.inc gives 3 unknown datatype errors in d3dx9anim.inc.

sapero


Hootie


Hootie

Ok, so I tested the d3dxmath functions a bit and it appears to be returning a wrong answer.  Or I am confused.

Anyway, I tried this:


D3DXMATRIX matrix3

D3DXMatrixRotationX(&matrix3, 22.0)
amLogMessage(USING("Matrix 11 = %f####.####  Matrix 12 = %f####.####  Matrix 13 = %f####.####  Matrix 14 = %f####.####", matrix3.m[0,0], matrix3.m[0,1], matrix3.m[0,2], matrix3.m[0,3]))
amLogMessage(USING("Matrix 21 = %f####.####  Matrix 22 = %f####.####  Matrix 23 = %f####.####  Matrix 24 = %f####.####", matrix3.m[1,0], matrix3.m[1,1], matrix3.m[1,2], matrix3.m[1,3]))
amLogMessage(USING("Matrix 31 = %f####.####  Matrix 32 = %f####.####  Matrix 33 = %f####.####  Matrix 34 = %f####.####", matrix3.m[2,0], matrix3.m[2,1], matrix3.m[2,2], matrix3.m[2,3]))
amLogMessage(USING("Matrix 41 = %f####.####  Matrix 42 = %f####.####  Matrix 43 = %f####.####  Matrix 44 = %f####.####", matrix3.m[3,0], matrix3.m[3,1], matrix3.m[3,2], matrix3.m[3,3]))


Which returned the following:


INFO: Matrix 11 =    1.0000  Matrix 12 =    0.0000  Matrix 13 =    0.0000  Matrix 14 =    0.0000
INFO: Matrix 21 =    0.0000  Matrix 22 =   -1.0000  Matrix 23 =    0.0089  Matrix 24 =    0.0000
INFO: Matrix 31 =    0.0000  Matrix 32 =   -0.0089  Matrix 33 =   -1.0000  Matrix 34 =    0.0000
INFO: Matrix 41 =    0.0000  Matrix 42 =    0.0000  Matrix 43 =    0.0000  Matrix 44 =    1.0000


Given that a 4x4 X rotation matrix is defined as follows:

1     0     0     0
0  cos(a)  sin(a)   0
0 -sin(a)   cos(a)  0
0     0     0     1


Shouldn't the value of Matrix 32 be positive 0.0089  and the value of Matrix 23 be -0.0089 since sin(22.0) = -0.0089?  Am I missing something?

Ionic Wind Support Team

I remember getting caught up with this when writing the 3D engine for Emergence, which was written in C++.  C++ uses row major ordering for arrays, Emergence/Aurora and many other languages use column major ordering for arrays.  Which effects how an array is stored in memory.

The D3DX library was written in C++.

Just reverse your indexes and you'll have correct results. 


D3DXMatrixRotationX(&matrix3, 22.0)
amLogMessage(USING("Matrix 11 = %f####.####  Matrix 12 = %f####.####  Matrix 13 = %f####.####  Matrix 14 = %f####.####", matrix3.m[0,0], matrix3.m[1,0], matrix3.m[2,0], matrix3.m[3,0]))
amLogMessage(USING("Matrix 21 = %f####.####  Matrix 22 = %f####.####  Matrix 23 = %f####.####  Matrix 24 = %f####.####", matrix3.m[0,1], matrix3.m[1,1], matrix3.m[2,1], matrix3.m[3,1]))
amLogMessage(USING("Matrix 31 = %f####.####  Matrix 32 = %f####.####  Matrix 33 = %f####.####  Matrix 34 = %f####.####", matrix3.m[0,2], matrix3.m[1,2], matrix3.m[2,2], matrix3.m[3,2]))
amLogMessage(USING("Matrix 41 = %f####.####  Matrix 42 = %f####.####  Matrix 43 = %f####.####  Matrix 44 = %f####.####", matrix3.m[0,3], matrix3.m[1,3], matrix3.m[2,3], matrix3.m[3,3]))


Later,
Paul.
Ionic Wind Support Team

Hootie

Thanks Paul!  I thought I was losing my mind there for a bit.   :P

Ionic Wind Support Team

Ionic Wind Support Team