IonicWind Software

Sapero's Include Files => Include files for IWBasic and Aurora => Topic started by: Ionic Wind Support Team on May 23, 2006, 02:09:22 PM

Title: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on May 23, 2006, 02:09:22 PM
Sapero has done a bang up job converting the windows header files for Aurora.  I've uploaded them to this server for easier access.

[** - Link Remove - **

I'll update them when he does ;)
Title: Re: Sapero's Windows include files(History)
Post by: mrainey on May 23, 2006, 03:10:22 PM
Sapero, your efforts and talents are greatly appreciated.
Title: Re: Sapero's Windows include files(History)
Post by: Parker on May 23, 2006, 03:34:48 PM
Thank you, these are very useful for people like me who don't like to look up and convert all the declares ;)
Title: Re: Sapero's Windows include files(History)
Post by: Mike Stefanik on May 23, 2006, 04:17:14 PM
Any chance these could be folded into the actual distribution (with acknowledgement, of course)?
Title: Re: Sapero's Windows include files(History)
Post by: srvaldez on May 23, 2006, 09:03:51 PM
thank you Sapero.  :)
Title: Re: Sapero's Windows include files(History)
Post by: Zen on May 24, 2006, 02:10:39 AM
3 Cheers for Sapero ;)

Lewis
Title: Re: Sapero's Windows include files(History)
Post by: Bruce Peaslee on May 24, 2006, 10:13:09 AM
Yes, very useful.

You could get the files by following the link in his signature, but the site was hard to figure out.
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on May 24, 2006, 10:14:46 AM
And it makes you wait like 40 seconds before the download begins, that is what I meant by 'easier' access ;)
Title: Re: Sapero's Windows include files(History)
Post by: sapero on June 03, 2006, 03:07:21 PM
Uploaded new build 3 june 2006 (8MB zip)
[expired]
Scroll down, click FREE.

Added SDL (+mixer +image -net) and Opengl includes.
Added converted OGL examples from http://www.codesampler.com/oglsrc.htm (pages 1-4).
Created a vector3f class wrapper that allows adding, multiplying... 3float-vectors.
Here is a other class wrapper - matrix4x4f - with fewer implemented methods: identity, rotate, transformVector, invertMatrix and transformPoint.
The vector3f class is in two versions: standard aurora code and nasm language (default for release, disabled for debug build-linker crash).

Finished ShlDisp.inc :) see in BrowseFolder_shell.src for small demo.

Added easier unicode api access (80% done):
extern int wvsprintfA(LPSTR *q, pointer arglist);
extern int wvsprintfW(LPWSTR *q, pointer arglist);
#ifdef UNICODE
extern int wvsprintf alias wvsprintfW(LPWSTR *q, pointer arglist);
#else
extern int wvsprintf alias wvsprintfA(LPSTR *q, pointer arglist);
#endif
So just define UNICODE before #include

Just a note about opengl programming with aux* functions:
In Microsoft SDK was a glaux static library that had references to C-library symbols like __security_cookie or _api@number.
Have created a glaux.dll that exports all the symbols defined in GLAux.inc ;D
If you like to use opengl - copy the dll from \include\gl\glaux dll.zip\ to program or system directory,
and create a import library for: glaux.dll, glu32.dll and opengl32.dll

Let me know if I'd forgot a .lib :D
Happy opengl'ing!
Title: Re: Sapero's Windows include files(History)
Post by: Barney on June 03, 2006, 04:06:00 PM
I knew Premium membership at Rapidshare will come in handy one day. Downloaded at full speed in less than a minute. Waiting time 0.1 seconds. :)

Thank you for the updated files, sapero.

Barney
Title: Re: Sapero's Windows include files(History)
Post by: sapero on June 03, 2006, 04:23:30 PM
Found this bug, forgot to set up esi in vector3f@mulvf.
[** - Link Remove - **

On rapishare download is always good, but upload on my dsl is only 16KB/s (this zip 8 minutes)
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on June 03, 2006, 04:38:17 PM
Updated on this server as well ;)
Title: Re: Sapero's Windows include files(History)
Post by: sapero on June 06, 2006, 02:47:55 PM
added some converted opengl examples, check Particle system (wow) ;D
[** - Link Remove - **
this download includes only opengl examples and new or changed includes.

Added Intel CG-Toolkit includes, changed RAND_MAX type to double (stdlib.inc), and added some methods to vertex3f class
vertex3f_a -= vertex3f_b * float is now coded as vertex3f_a.sub_mulvf(vertex3f_b, float)

ogl_particle_system - will not work on machine with intel 82845 graphics card (no extension or after driver update - no particles).
The CG version works ok (ogl_optimized_billboards)
If you install the cg-toolkit - copy binaries from Program Files\NVIDIA Corporation\Cg\bin\ to system dirsctory, and create import libraries for cg.dll and cggl.dll

Added fullscreen toggler - alt+enterÂÃ,  for all examples with animation, and if possible - mouse wheel handling
Title: Re: Sapero's Windows include files(History)
Post by: Rock Ridge Farm (Larry) on June 06, 2006, 03:13:16 PM
I downloaded it. Had issues compiling - all the projects reference the 'D' dirve.
Is there a simple way to update the project files to another drive short of manually re-doing them?
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on June 06, 2006, 05:05:23 PM
When you first load a project the IDE gives you a chance to update the paths.  If you selected 'no' then you hosed ;)

Actually just unzip the archive again, open the project from the IDE and whan it gives you the chance chose 'yes'
Title: Re: Sapero's Windows include files(History)
Post by: John S on June 06, 2006, 08:25:24 PM
I got the following error for line:  extern _hinstance as HINSTANCE;   in  3dtest.src

Compiling Resources
Error compiling resources
Compiling...
3dtest.src
File: J:\Program Files\Aurora\examples\bass\3dtest\3dtest.src (12) duplicate definition of variable or label
Error(s) in compiling "J:\Program Files\Aurora\examples\bass\3dtest\3dtest.src"
Title: Re: Sapero's Windows include files(History)
Post by: Parker on June 07, 2006, 03:07:46 PM
Try searching through that file and the includes (tools->find in files) for _hinstance, because that means it was defined twice.
Title: Re: Sapero's Windows include files(History)
Post by: John S on June 07, 2006, 03:34:09 PM
I know that it was defined twice.
in 3dtest.src it is defined as:
    extern _hinstance as HINSTANCE;

in Windows.inc it is defined as:
    extern _hinstance as unsigned int;

Which one should I comment out?
Title: Re: Sapero's Windows include files(History)
Post by: Parker on June 07, 2006, 04:09:59 PM
Probably the one in 3dtest.src, in case anything else uses that value from windows.inc.
Title: Re: Sapero's Windows include files(History)
Post by: sapero on June 08, 2006, 01:41:15 AM
Comment the one in 3dtest.src, it was defined here before I added it to windows.inc.
_hinstance is exported somewhere in aurora library, so GetModuleHandle(null) can be replaced with. One api less :)

In 3dtest.rc is a reference to icon from bass\netradio\icon.ico, try to fix the path manually from IDE or editing the rc script
Title: Re: Sapero's Windows include files(History)
Post by: Wijnand on July 07, 2006, 03:39:38 AM
I've just installed the Windows include files. When compiling an example I get an error:

QuoteCompiling...
IPicture.src
No Errors

Linking...
Aurora Linker v1.0 Copyright ÂÃ,©2005,2006 Ionic Wind Software
Error: Unable to open file C:\PROGRA~1\Aurora\libs\custom\comlib.lib
Error(s) in linking E:\aurora.exe

Does anyone know where I can get comlib.lib I've searched my own computer but I can't find it anywhere.

Thanks in advance

Wijnand


Title: Re: Sapero's Windows include files(History)
Post by: Wijnand on July 07, 2006, 04:05:38 AM
Seems I'm missing more libs

Compiling...
Icon Viewer.src
File: E:\aurora.include.3.june.2006b\examples\Icon Viewer.src (36) Warning: Temporary string assigned to POINTER, possible memory loss
File: E:\aurora.include.3.june.2006b\examples\Icon Viewer.src (43) Warning: Temporary string assigned to POINTER, possible memory loss
File: E:\aurora.include.3.june.2006b\examples\Icon Viewer.src (102) Warning: Temporary string assigned to POINTER, possible memory loss
File: E:\aurora.include.3.june.2006b\examples\Icon Viewer.src (108) Warning: Temporary string assigned to POINTER, possible memory loss
File: E:\aurora.include.3.june.2006b\examples\Icon Viewer.src (118) Warning: Temporary string assigned to POINTER, possible memory loss
No Errors

Linking...
Aurora Linker v1.0 Copyright ÂÃ,©2005,2006 Ionic Wind Software
Unresolved external _ListRemoveAll@8
Error: Unable to open file C:\PROGRA~1\Aurora\libs\custom\comlib.lib
Error: Unable to open file C:\PROGRA~1\Aurora\libs\LinkedList.lib
Error: Unresolved extern _ListRemoveAll@8
Error: Unresolved extern _ListEnumFromStart@12
Error: Unresolved extern _ListAddHead@8
Error: Unresolved extern _ListCreate@4
Error(s) in linking E:\aurora.exe


Anyone who knows how to resolve this.
Title: Re: Sapero's Windows include files(History)
Post by: sapero on July 07, 2006, 08:11:33 AM
just post :)
the linked list has been created before the aurora's class, and is no more active project.
The comlib has only IIF and farcall functions, I don't know why the name is comlib ;D

The IIF can be extended to any 4-byte types:
extern float IIFF alias IIF(bool expression, float ifTrue, float ifFalse);
extern pointer IIFP alias IIF(bool expression, pointer ifTrue, pointer ifFalse);
...

with string it works too but sometimes raises INVALID_HEAP exception in ntdll.
Title: Re: Sapero's Windows include files(History)
Post by: Parker on July 07, 2006, 01:54:48 PM
I released linked list functions with those names (except I don't remember ListEnumFromStart), but they shouldn't be in C format (e.g., ListCreate instead of _ListCreate@4).

You can use mine which the code is here on the forums (good idea if you're scared of classes), or you can use the CList derived classes.
Title: Re: Sapero's Windows include files(History)
Post by: ExMember001 on July 20, 2006, 05:19:23 PM
Thanx Sapero,
Awesome works ;)
Title: Re: Sapero's Windows include files(History)
Post by: sapero on July 23, 2006, 02:02:17 PM
A small update - all changes from latest upload: [expired]
Added and fixed some includes, but here still are tokens to fix (arguments by value etc.)
Title: Re: Sapero's Windows include files(History)
Post by: kryton9 on July 23, 2006, 04:39:54 PM
From all my stupid questions, you all know I am a newb when it comes to all of this new oop stuff.
I downloaded your include files and see there are Lib files and ATL files.
1. Where in Aurora would I place all of these and how would I got about using them?
2. How do you know you are not overwriting someone else's includes, libs etc.?
3. Is there a way to place (custom/user made) includes, sources, classes and libs somewhere else and not mix them with what is in Aurora?

I also downloaded your animated gif example, but had no idea how to make it work or where I should put the includes and such. And tie all of it into Aurora to compile.

Thanks, any explanation here will help me also understand another facet of all that is confusing to me.
Title: Re: Sapero's Windows include files(History)
Post by: sapero on July 24, 2006, 03:31:29 AM
1. You can place the includes in
- your /include folder (overwriting problem)
- in /include/c but additional you need to fix all #include "*" to #include "c\\*"
- in any other folder where you compile projects using those includes (bad!)
ÂÃ,  so if you install includes in x:\blah - copy here your gif example and compile ;D
- create one big include from all C includes.

2. Here was only one problem with ddraw.inc - C include has been renamed to __ddraw.
- Before you install includes just move existing to another folder, copy new includes and move the old includes back, see what is overwritten.
Aurora cannot include other files than .inc, if it would be so great - we could rename all C includes to *.cinc or .h :)
- mark existing includes as read-only and install new includes, or...
- change modify date for existing includes to current date and replace only older files (totalcmd)

3. Custom made libraries with guids, strings and helper functions I have placed in libs\custom, libs from platform sdk - in libs\sdk
For custom classes you can create extra folder include\classes if you have many files to include. You must know what and how you want

"had no idea how to make it work" - compile without including and see what is undeclared. Search for it in C includes and create new (favorite) include with it. Before I've converted the C includes i had only two includes - windows.inc and com.inc, everyday updated for new api's or interfaces.
I hope you know the last download link is only a small update, the core you find in first topic (about 10MB).

I have noticed time problem while compiling sources with ole2, objbase or windows.inc included - on my old desktop with celeron 2.4GHz, 256MB ram / 64MB graphic shared (with pagefile 512MB + 2* 256MB) - the parser takes a long time to handle all included files, minimum one minute. Memory usage: >200MB, all this goes to pagefile, so it compiles ultra slow.
With 1GB ram without pagefile it takes 1-2seconds. I could not wait so long for 1KB source file, and buyed a laptop with 1GB ram :)
Title: Re: Sapero's Windows include files(History)
Post by: kryton9 on July 24, 2006, 10:22:04 AM
THanks for the reply Sapero. With this info, got a direction to go and try it out. I didn't know about the second update not being a total one, so thanks. That could have been it that stuff was not there.
Title: Re: Sapero's Windows include files(History)
Post by: ExMember001 on August 12, 2006, 06:53:13 PM
something strange happening to me ;)
the included file run great but if i try to compile a 3d example then i got the folowing error
CDirectInput di; unknown type

if i remove the includes files then i can compile the 3d

anyone know how to fix this?
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on August 12, 2006, 06:56:28 PM
Remove the directinput include file from Sapero's installation.
Title: Re: Sapero's Windows include files(History)
Post by: ExMember001 on August 12, 2006, 07:07:34 PM
ive remove all directinput.inc but im still getting the same error
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on August 12, 2006, 07:16:25 PM
probably some other file interferring with the 2D library.  As Sapero himself suggested rename ddraw.inc as well.

Title: Re: Sapero's Windows include files(History)
Post by: ExMember001 on August 12, 2006, 07:30:45 PM
didnt work too...
is there something particular i should search for in the include that can interfer with CDirectInput.
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on August 12, 2006, 07:41:15 PM
Don't know.  I don't use them myself. 
Title: Re: Sapero's Windows include files(History)
Post by: ExMember001 on August 12, 2006, 07:51:09 PM
np, ill wait sapero if he knows something about it ;)
these include are very helpfull but i want to be able to use dx stuff too :P
Title: Re: Sapero's Windows include files(History)
Post by: ExMember001 on August 12, 2006, 10:34:29 PM
i have isolated the problem, its comming from dx2d.inc thats included in the sapero files .. must interfer with the one in the Bin

but if i remove this file, the incs are not automaticaly processed anymore...
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on August 12, 2006, 10:50:30 PM
Don't remove any from the 'bin' directory.  Find out where his is included and rename it.
Title: Re: Sapero's Windows include files(History)
Post by: ExMember001 on August 13, 2006, 12:15:13 AM
yes, DON'T remove the one from the BIN directory ;)
the one i've remove is from the INCLUDE directory...
Title: Re: Sapero's Windows include files(History)
Post by: sapero on August 13, 2006, 03:38:41 AM
Remove from includes dx2d.inc and rename math.inc to __math or so.
dx2d is a old copy from /bin, did not seem before uploading.
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on August 13, 2006, 11:24:04 AM
I've change the parser for Beta1 so it won't incude a file with the same name as an official one by mistake.  In other words the include files in the bin directory have priority over all others.
Title: Re: Sapero's Windows include files(History)
Post by: ExMember001 on August 13, 2006, 09:06:16 PM
Quote from: Paul Turley on August 13, 2006, 11:24:04 AM
I've change the parser for Beta1 so it won't incude a file with the same name as an official one by mistake.  In other words the include files in the bin directory have priority over all others.

Great ;)
Title: Re: Sapero's Windows include files(History)
Post by: kryton9 on September 01, 2006, 05:25:54 PM
Quote from: Mike Stefanik on May 23, 2006, 04:17:14 PM
Any chance these could be folded into the actual distribution (with acknowledgement, of course)?

this didn't get answered so I want to sort of bring it up again, bump it as it where. It seems like this is a valuable asset and since so much work has been done and it is so useful, just seems like it should be part of the official distribution with all the problems resolved?  Why reinvent the wheel?
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on September 01, 2006, 05:28:24 PM
It got noted.  Didn't think it needed an answer ;)

Anyway I will be looking at including them in the release versions. 
Title: Re: Sapero's Windows include files(History)
Post by: kryton9 on September 01, 2006, 05:34:26 PM
Cool Paul, I still haven't figure out how to use them, but that will be my focus this weekend. With this and Beta to study, really looking forward to the coming long weekend!!
Title: Re: Sapero's Windows include files(History)
Post by: kryton9 on September 02, 2006, 02:16:05 PM
Sapero, I felt like a kid in a candy store last night looking through all the work you did in putting this together.

Unfortunately, I tried to follow your directions for putting them into Aurora, by moving what is there out, putting yours in and then brining back the Aurora stuff, but for some reason my Aurora would freeze up at load up. I did an install again ontop of the installation and still it messed up, so I just started from scratch. Aurora is working fine now and I didn't lose any of my projects, but I also can't run your samples and examples.

Anyways, just wanted to say thanks for your efforts, just looking through just some of the files took a long time. I can't imagine converting all of that, truly an amazing undertaking!!
Title: Re: Sapero's Windows include files(History)
Post by: Todd Riggins on September 08, 2006, 03:40:30 PM
Sapero!

Awsome work man! I've just got a chance to look over the june 3 download but I have yet to install it correctly in fear off conflicting files. Should I be?
I wasnt able to download any updated links after that first one as the website they are hosted on say they have been deleted.

I was curious if those new updates contain updated glext.inc file?

Latest GL_GLEXT_VERSION is 29. Updated 2005/06/20.

Thanks for any info.
Title: Re: Sapero's Windows include files(History)
Post by: sapero on September 09, 2006, 02:05:49 AM
No, this is v21, i don't subscribe :)
Quote/* Header file version number, required by OpenGL ABI for Linux */
/* glext.h last updated 2003/1/12
I'll update the includes, i have more than 40MB to convert ;D
Title: Re: Sapero's Windows include files(History)
Post by: sapero on September 09, 2006, 06:27:27 AM
also, three files: glext, glxext and wglext updated to 2005/06/20 ( /include/gl ).
Title: Re: Sapero's Windows include files(History)
Post by: Todd Riggins on September 09, 2006, 01:27:09 PM
Man that was fast  ;D

I was curious as I was thinking about following your older version of glext.inc and update it myself.
Thanks for the update, Sapero!
Title: Re: Sapero's Windows include files(History)
Post by: sapero on November 21, 2006, 12:20:55 PM
Here is the newest pack:[expired]
about 16MB of headers :)
Link valid 7 days after last download.
All unicode aliases are fixed, so #define UNICODE will always work
link 2: [expired]
or the first topic :)
Title: Re: Sapero's Windows include files(History)
Post by: Zen on November 22, 2006, 04:23:06 AM
Awesome Sapero. Thanks a lot. 16mb of pure text!!! Thas a hell of a lot of code. Much appreciate your time to do this.

Lewis
Title: Re: Sapero's Windows include files(History)
Post by: Todd Riggins on November 23, 2006, 03:29:41 PM
Unable to connect to that link  ???
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on November 23, 2006, 06:03:33 PM
I will have the file on this server in the next 24 hours.
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on November 23, 2006, 11:32:27 PM
You can now download the file from the IonicWind server.  See the first message in this thread.
Title: Re: Sapero's Windows include files(History)
Post by: Todd Riggins on February 18, 2007, 04:35:42 PM
I noticed that the new Aurora enum keyword conflicts with declares in some files...
objidl.inc - line 547
propidl.inc - line 490 and line 525

declare virtual Enum{...

I currently rem them out. Anyway to fix this or is it sol'd? thx...
Title: Re: Sapero's Windows include files(History)
Post by: sapero on February 18, 2007, 06:04:46 PM
I've uploaded next include pack, this time i's 20MB of text (5MB zip). All the 'enum, delete...' methods are prefixed with an underscore.
What's new:
- new direct x includes in separate folder (from februar 2007) - added IDirect3D9Ex, IDirect3DDevice9Ex and IDirect3DSwapChain9Ex interfaces from vista sdk (d3d9.inc)
- unrar.inc
- only 11.5 MB left to translate
- fixed problem with minimalized defines set with WIN32_LEAN_AND_MEAN defined before including windows.inc

[expired]
Title: Re: Sapero's Windows include files(History)
Post by: Todd Riggins on February 18, 2007, 08:57:25 PM
Simply Awsome!

also thanks for updating the DirectX stuff!  ;D
Title: Re: Sapero's Windows include files(History)
Post by: sapero on May 19, 2007, 11:36:41 AM
Added some MB's again :) This time it's 27MB of pure text, and 6MB (471 files) left.
The MAPI stuff is very poor defined, it goes as last.
Some old includes are completed, like tchar.inc, but the newest DirectX from April is not included yet.

Temporary download links:
[** - Links Removed - **

Notes:
- All the SQL includes are from Platform SDK.
- undocumented.inc - contain some structures and imports from ntdll, this is (custom, unfinished) extended version of winternl.inc
- ntdll.inc - please delete this file.

Have phun! :D

I'm searching for: wzcsapi.h, ntlsa.h, and unknown header with macro CSV_FLIPI (used in WINCSV.H)
Title: Re: Sapero's Windows include files(History)
Post by: sapero on May 30, 2007, 02:03:15 PM
A small update - newer includes, and bugfixes. Some files from the DDK (for XP) added: ntddk, bugcodes, ntdef, mce, ntiologc, parallel, ntddpar, ntddser.
I needed some IOCTL codes to rewerse the equionox multi port (serial com) PCI card without any cables. The DCB struct bug also has been fixed.
[** - Link Remove - **
Title: Re: Sapero's Windows include files(History)
Post by: kryton9 on June 01, 2007, 04:15:29 PM
Sapero, I hate to be a pest, but your hard work I am not able to access. Is it possible for you to make a video tutorial on how to install and setup your files in Aurora?

Don't be shy about making a video tutorial, once you make one, they are addicting as so much nicer to explain things than writing out instructions.

I recommend the following as I have been tinkering with making video tutorials, this way you can record a nice 800x600 resolution and manage still to come up with really nice small file sizes.

I recommend the free xvid codec and record straight to that using camstudio, all are free and very easy to use:

http://www.xvid.org/

http://www.camstudio.org/

If you can't compress on the fly to xvid, then download and use the lossless codec from camstudio, record with that, then compress with xvid.


Just set your screen resolution to 800x600, setup your microphone, tell camstudio to capture full screen, you can set if you want the mouse highlighted or not etc. Record at 10fps and you will have great videos that can be viewed full screen with readable text. Makes it perfect for learning.

Thanks in advance and hope you try to make it!!
Title: Re: Sapero's Windows include files(History)
Post by: sapero on June 02, 2007, 07:24:17 PM
Hello kryton, I have already started with custom installer based on Property Sheet with Wizard97 style. It runs pretty good on XP and win98se with IE6.
This installer will create missing import libraries, copy the includes, and install optional tools like strsafe and glaux.
I have compressed also about 500GB of video material with vdub, gordian, tmpgenc, so don't worry about this :)
I have camstudio installed, but never used it :)
Title: Re: Sapero's Windows include files(History)
Post by: kryton9 on June 02, 2007, 10:17:20 PM
Sapero, you are "the man". That sounds incredible. Looking forward to finally tap into your wonderous contributions. Thanks!!
Title: Re: Sapero's Windows include files(History)
Post by: sapero on June 04, 2007, 02:01:09 PM
OK, here it comes! ;D
[** - Link Remove - **

This little app is a custom made setup, that will help you step by step to install the headers. I have used richedit to display install log. Microsoft says the multiline edit control on Windows 98/ME can handle up to 65535 characters, but this isn't real, about 47KB is required for the log if all components are selected to install.

Note, If you want to create unicode GUI applications, you will probably include commctrl.inc. Some constants are already defined in gui.inc but only for ansi version, so the gui.inc must be modified (setup option), or you will need to remove unicode duplicates from commctrl.inc.

I hope you enjoy it ;D

EDIT: Added "silent install" option - no file replace prompt, added default install directory (used if aurora not installed)
EDIT: added glaux.lib and fixed missing #endif in ddraw
EDIT: added glew.inc
Title: Re: Sapero's Windows include files(History)
Post by: kryton9 on June 04, 2007, 04:50:03 PM
Oh man Sapero, you made my day!! Came home and found your installer and am very excited to finally be able to run some of your demos and examples.

Thanks, I chose the silent install, at the end it said there were 22 errors. But so far everything is running ok. I was looking through the includes and you have everything in opengl it seems and of course sdl. Those are areas of big interest to me at the moment. It will take me time to absorb the world you opened up with these wonderful files. Thanks so much!!
Title: Re: Sapero's Windows include files(History)
Post by: srvaldez on June 04, 2007, 04:52:49 PM
sapero, thank you very much  :)
Title: Re: Sapero's Windows include files(History)
Post by: kryton9 on June 04, 2007, 05:13:51 PM
Sapero, where are the opengl and sdl examples? The link you had on page one or 2 is no longer working. Thanks. As you can see anxious to start on these finally, thanks again!!
Title: Re: Sapero's Windows include files(History)
Post by: sapero on June 04, 2007, 07:32:03 PM
[** - Link Remove - **
This download contain the previous, but modified ogl examples with fixed "math.inc" problem.
On the zip rot folder you find a include and lib. Move the lib to aurora\libs, and the include to aurora\include (missing #endif fix).
I am sure you find problems while compiling some GL projects that use vector4x4 and fonts. If so, remove the "bad" file from project, then add it again, manually browsing for the file.
The problem is that the projects are located in \projects\opengl\name\name.awp, and some shared files are located in \projects\opengl\common\, but the build-in project 'updater' does not handle this.
Optionally unpack all to d:\aurora\projects\opengl\

In 10min I will update the links to headers setup.
Title: Re: Sapero's Windows include files(History)
Post by: pistol350 on June 05, 2007, 02:12:24 AM
Yeah!!!
Nice nice nice!!! ;D
Thanks Again!
Title: Re: Sapero's Windows include files(History)
Post by: kryton9 on June 05, 2007, 07:18:31 AM
Thanks very much Sapero. And thanks for the explanation about how to overcome the errors. Removing and adding the source files back into the project works great!! Thanks so much again!!!!
Title: Re: Sapero's Windows include files(History)
Post by: kryton9 on June 05, 2007, 02:26:32 PM
I am having a problem running the cg related demos. It can't find cg.lib and cggl.lib. I copied them from another folder on my computer, but it gave an error about case sensitivity.

I ran the header installer again to copy the errors and now it is making more sense. I guess these dll's need to be in the lib folder, is this correct?
QuoteCreating required import libraries in C:\Program Files\Aurora\libs
- The library d3dx8d.dll could not be located
- The library ilu.dll could not be located
- The library ilut.dll could not be located
- The library cg.dll could not be located
- The library cgGL.dll could not be located
- The library devil.dll could not be located
- The library ml10.dll could not be located
- The library mlu10.dll could not be located
- The library lame_enc.dll could not be located
- Failed to dump imports from ole2.dll
- The library ole2auto.dll could not be located
- The library SDL_net.dll could not be located
- The library eax.dll could not be located
- The library wpcap.dll could not be located
- The library zlib1.dll could not be located
- The library ip6fwapi.dll could not be located
- The library bass.dll could not be located
- The library d3dx9_30.dll could not be located
- The library d3dx9_32.dll could not be located
- The library d3d9d.dll could not be located
- The library d3d8d.dll could not be located
- The library xinput1_1.dll could not be located
- The library wmsdk.dll could not be located
- The library openal32.dll could not be located
- The library alut.dll could not be located
- The library unrar.dll could not be located
- The library mtx.dll could not be located
- The library SDL_image.dll could not be located
- The library SDL_mixer.dll could not be located
- The library SDL_ttf.dll could not be located
- The library sdl.dll could not be located
Title: Re: Sapero's Windows include files(History)
Post by: sapero on June 05, 2007, 03:10:51 PM
If you look in \OpenGL_\Particle System Using Optimized Billboards, you find a link to CG-toolkit (http://developer.nvidia.com/object/cg_toolkit.html) :)
It may be, after installing this you'll need to copy four dll's (cg, cgD3D8, cgD3D9, cggl) from program files into your system folder.

Added new examples: [** - Link Remove - **
added new glew include + glew32.dll from sourceforge.net.
Don't worry about other missing libs, you'll need them (and the dll's) only to compile other examples like windows media player, openAL, SDL...

EDIT: updated the installer.
Title: Re: Sapero's Windows include files(History)
Post by: kryton9 on June 05, 2007, 06:54:13 PM
Thanks Sapero. I have a lot of the dll's installed, just not in the system folder. I will move them there before doing the next header install.
I am sure I will write back with more questions as I go through these wonderful additions you provided. Thanks so much!!
Title: Re: Sapero's Windows include files(History)
Post by: kryton9 on June 08, 2007, 02:01:40 PM
Just wanted to say thanks again for all of these. I am taking my time and going through all the examples. There is lots to study for sure!!
Title: Re: Sapero's Windows include files(History)
Post by: sapero on June 15, 2007, 06:51:19 PM
Here comes the next version - 1.6.1.3 (1.6 - soft version, 1.3 - headers version).
Added option to skip unmodified files, the creation date of installed files is set to the date of last modification (by me), so you will have same file-date as I.
Added also simple context menu to the log page, and some links to missing dll's.
[** - Link Remove - **
Title: Re: Sapero's Windows include files(History)
Post by: kryton9 on June 15, 2007, 09:57:32 PM
Thanks for the update Sapero.
Title: Re: Sapero's Windows include files(History)
Post by: sapero on July 10, 2007, 05:26:48 AM
Pistol has found a ),; bug in sdl subfolder and reported it. I've fixed this one and removed all other :)
This download is optional.
[** - Link Remove - **
Title: Re: Sapero's Windows include files(History)
Post by: kryton9 on July 24, 2007, 07:22:20 PM
Sapero, I don't know if you have ebasic, but do you plan on porting over your includes to it at some time?
Title: Re: Sapero's Windows include files(History)
Post by: pistol350 on July 26, 2007, 07:30:43 AM
Hi Kryton9!
Me as well would like to see that, since such work would set far more doors open to Emergence.
However, a great amount of work has been done to convert all those Headers from C/C++ to Aurora syntax and having do to that again and port all those files to Emergence syntax seems a too big challenge for me.  :-\
Putting myself in Sapero's shoes, i realize that i would probably not do it.
Anyway, that's my point of view. ;)

Regards!
Peter.
Title: Re: Sapero's Windows include files(History)
Post by: kryton9 on July 26, 2007, 01:56:16 PM
No doubt it is a huge job. Well Emergence it new yet, I am sure in time we will see conversions of the popular libraries.
Title: Re: Sapero's Windows include files(History)
Post by: Techno on August 09, 2007, 03:12:07 AM
Separo

Where can I download the last include files for Aurora?
I have the only old files, and I have need the last include files version

Thanks
Title: Re: Sapero's Windows include files(History)
Post by: srvaldez on August 10, 2007, 11:31:16 AM
sapero, you might consider using MediaFire to host your files, you don't have to jump trough hoops to download a file.
http://www.mediafire.com/
Title: Re: Sapero's Windows include files(History)
Post by: sapero on August 10, 2007, 01:27:11 PM
I knew mediafire, but the transfer was always slow.
[** - Link Remove - ** version 1715 - added lua and twain, WIA scanner example, plus some include fixups
[** - Link Remove - **
Title: Re: Sapero's Windows include files(History)
Post by: Todd Riggins on August 30, 2007, 10:02:03 PM
I noticed the duplication of directx variables problem no longer exist, thanks Sapero!

I feel this need to create a graphics library... yet again!  ::)

Programming DirectX with 100% Aurora code is freak'n awsome
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on August 30, 2007, 10:30:26 PM
Yeah it is nice to be able to access COM in a more natural way. 
Title: Re: Sapero's Windows include files(History)
Post by: Todd Riggins on August 30, 2007, 11:14:16 PM
Yeah, I keep wondering what your 3d engine would look like in Aurora code out of curiousity.
Title: Re: Sapero's Windows include files(History)
Post by: sapero on September 21, 2007, 03:57:06 PM
[** - Link Remove - **
stats: - 20828 imports
-   175 unions
-  1837 enums
-  8563 structures
-    93 classes
-  5508 interfaces
- 14462 externals (like GUID)
-  3505 constants
-     7 exports
-   103 subs
-    28 methods

fixed POINTS struct, added a lot of new headers, only 260 left.
For debugging guys: added DIA headers from VS2005 - very easy COM library for pdb files.
Added also few synchronous socket examples
Title: Re: Sapero's Windows include files(History)
Post by: pistol350 on September 21, 2007, 04:24:34 PM
Great stuff and also a great amount of work done  :o
Keep up Sapero.

Cheers,
Peter
Title: Re: Sapero's Windows include files(History)
Post by: sapero on September 26, 2007, 08:31:37 AM
I've just started with porting the headers for Emergence. The first package v1710 contains only the basic includes - windows (all), stdio, conio, stdlib, shlwapi.
The crt includes are linking with the standard import library _crtdll.
download link: [** - Link Remove - **

Note: you already have a huge windows.inc file. Please rename it if you want to keep it.
Now I don't know how to continue this thread for EB. Maybe Paul will create new thread with local download link in EB forum, and then move this topic.
Title: Re: Sapero's Windows include files(History)
Post by: Barney on September 26, 2007, 09:13:01 AM
Thank you for starting EBasic translation, sapero. Much appreciated.  :)

Yes. It would be great if EBasic part of this thread moves to EBasic forums.

Barney
Title: Re: Sapero's Windows include files(History)
Post by: pistol350 on September 26, 2007, 09:25:30 AM
Cheers Sapero 8)

That's really great!
Ebasic Users are really spoilt these days  ;D
Title: Re: Sapero's Windows include files(History)
Post by: sapero on September 27, 2007, 05:03:54 PM
Really I do not have idea where to put this installer for Emergence. The roundtable - share your code - no...
By the way here comes second release:[** - Link Remove - **
Installer version 1.8, headers 1.1. Install settings are now saved in the registry subkey %EB%/HdrInst.
Added 3MB of headers - a monstrum handwork for this day. Time for relax :)
Title: Re: Sapero's Windows include files(History)
Post by: sapero on February 23, 2008, 03:03:59 PM
I've just released the final headers pak, both for Aurora and Emergence. Some (16) headers are still missing (mapi classes).
The pak for Emergence can be downloaded from [** - Link Remove - **
The pak for Aurora has been uploaded to free file hosting service - I was unable to upload about 8MB zip to the remository with my 32KB/s uplink.

[** - Link Remove - **
Title: Re: Sapero's Windows include files(History)
Post by: Barney on February 24, 2008, 03:11:48 AM
Great work, Sapero. Thank you very much!

Barney
Title: Re: Sapero's Windows include files(History)
Post by: sapero on April 29, 2008, 08:27:57 AM
Here comes the next pak with wlan api, disphelper, some bugfixes, and the source of my instaler (Aurora pak only).

In the Emergence pak, i have first copied all from Aurora, then do a find/replace in files. This was very bad idea because i've forget about interface pointers, so every interface pointer was replaced with "pointer" (bug).
All interface bugs files included by windows.inc are now fixed, the interface pointers are replaced with "comref" or (only inside structures) with interface name

Aurora Headers 29 apr 2008
[** - Link Remove - **

EBasic Headers 29 apr 2008
[** - Link Remove - **
Title: Re: Sapero's Windows include files(History)
Post by: pistol350 on April 29, 2008, 09:25:55 AM
Hi Sapero.
For some strange reason, both of executables crash when i run them.  ???

Does anyone else have this same problem ?
Title: Re: Sapero's Windows include files(History)
Post by: sapero on April 29, 2008, 09:43:26 AM
I'm sorry for this, did not restored the winstartup.o file from a lite version. Please re-download.
Title: Re: Sapero's Windows include files(History)
Post by: pistol350 on April 29, 2008, 10:02:42 AM
Thank you for the release and the fixes.

8)
Title: Re: Sapero's Windows include files(History)
Post by: sapero on May 21, 2008, 06:16:03 PM
A bug has been found in OLE STGMEDIUM structure (search in objidl.inc). It is not so important, but without type casting my latest drag-drop experiment did not compile.

Aurora:struct STGMEDIUM
{
DWORD tymed;
union
{
HBITMAP        hBitmap;
HMETAFILEPICT  hMetaFilePict;
HENHMETAFILE   hEnhMetaFile;
HGLOBAL        hGlobal;
LPWSTR         lpszFileName;
IStream       *pstm;
IStorage      *pstg;
}
IUnknown *pUnkForRelease;
}


EBasic:type STGMEDIUM
DWORD tymed
union
HBITMAP       hBitmap
HMETAFILEPICT hMetaFilePict
HENHMETAFILE  hEnhMetaFile
HGLOBAL       hGlobal
LPWSTR        lpszFileName
IStream       pstm
IStorage      pstg
endunion
IUnknown pUnkForRelease
endtype
Title: Re: Sapero's Windows include files(History)
Post by: sapero on July 27, 2008, 01:54:23 PM
Next upload fixes missing lines in Emergence headers, hidden by invalid multiline comment created by find/replace in files. Eg. missing StopBits from struct DCB.
Fixed two imported fuctions in DhcpCSdk.inc - variable lenght parameter DHCPCAPI_PARAMS_ARRAY should be passed by value.

Emergence:
[** - Link Remove - **

Aurora:
[** - Link Remove - **

Note about bass.inc - be sure to backup this file if you already have newer than 2.2. In the next release, my bass.inc will be renamed to bass22, bass24 ...
Title: Re: Sapero's Windows include files(History)
Post by: Haim on July 31, 2008, 05:28:12 AM
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

Title: Re: Sapero's Windows include files(History)
Post by: sapero on July 31, 2008, 07:27:18 AM
It works for me, maybe show your source? (attached demo that connects via dsn)
Title: Re: Sapero's Windows include files(History)
Post by: Haim on August 02, 2008, 04:33:13 AM
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
Title: Re: Sapero's Windows include files(History)
Post by: sapero on August 02, 2008, 05:24:51 AM
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);
}
Title: Re: Sapero's Windows include files(History)
Post by: Haim on August 02, 2008, 06:16:59 AM
Sapero,
Thank you for explaining this. I would'nt have figured it out by myself.
Haim
Title: Re: Sapero's Windows include files(History)
Post by: sapero on October 19, 2008, 06:24:21 PM
This update fixes the problem with D3DCAPS structure (link (http://www.ionicwind.com/forums/index.php/topic,2830.0.html)) - 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.
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on October 19, 2008, 07:12:16 PM
Uploaded to the sites repository:

Emergence:
[** - Link Remove - **

Aurora:
[** - Link Remove - **
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on October 19, 2008, 07:36:36 PM
Links updated.  Initial uploads were corrupted.
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on October 20, 2008, 11:09:59 PM
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.
Title: Re: Sapero's Windows include files(History)
Post by: sapero on October 21, 2008, 06:52:47 AM
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.
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on October 21, 2008, 08:12:57 AM
download on the site updated.  Thanks Sapero.
Title: Re: Sapero's Windows include files(History)
Post by: Rock Ridge Farm (Larry) on November 14, 2008, 05:06:07 PM
Downloaded both from both sites just to make sure you get a vote.
Title: Re: Sapero's Windows include files(History)
Post by: sapero on November 16, 2008, 07:43:05 AM
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.
Title: Re: Sapero's Windows include files(History)
Post by: Hootie on November 16, 2008, 12:21:12 PM
Sapero,

Prevxcsi reports a worm in glaux.dll that is in your headers package.
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on November 16, 2008, 12:41:11 PM
That would be a definite false positive.  glaux.dll is part of Open GL

http://www.opengl.org/
Title: Re: Sapero's Windows include files(History)
Post by: Hootie on November 16, 2008, 12:52:30 PM
Is it the same size as the reported size for this file?

http://www.softwaretipsandtricks.com/dll/8608-Glauxdll.html

Title: Re: Sapero's Windows include files(History)
Post by: sapero on November 16, 2008, 01:40:36 PM
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.
Title: Re: Sapero's Windows include files(History)
Post by: sapero on December 05, 2008, 05:30:41 PM
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.
Title: Re: Sapero's Windows include files(History)
Post by: Hootie on December 15, 2008, 08:41:04 PM
Hi Sapero,

Just wanted to let you know that including d3dx9math.inc gives 3 unknown datatype errors in d3dx9anim.inc.
Title: Re: Sapero's Windows include files(History)
Post by: sapero on December 16, 2008, 01:09:11 AM
This is not a problem if you include d3dx9.inc before :)
Title: Re: Sapero's Windows include files(History)
Post by: Hootie on December 16, 2008, 09:17:03 AM
Great, Thanks!  ;D
Title: Re: Sapero's Windows include files(History)
Post by: Hootie on December 16, 2008, 09:43:21 PM
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?
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on December 16, 2008, 10:09:47 PM
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.
Title: Re: Sapero's Windows include files(History)
Post by: Hootie on December 16, 2008, 10:18:55 PM
Thanks Paul!  I thought I was losing my mind there for a bit.   :P
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on December 16, 2008, 10:26:45 PM
You are welcome. Always glad to help.
Title: Re: Sapero's Windows include files(History)
Post by: sapero on February 05, 2009, 08:07:33 AM
I have started converting headers from the latest Windows7 SDK (http://www.microsoft.com/downloads/details.aspx?FamilyID=a91dc12a-fc94-4027-b67e-46bab7c5226c&DisplayLang=en), and today found a small problem with NONCLIENTMETRICS structure. It has one additional parameter iPaddedBorderWidth so the sizeof macro returns 4 bytes more than SystemParametersInfo expects, and the api fails on XP.
This is a big problem, because programs compiled for Vista and running on XP machine will fail at SystemParametersInfo(SPI_GETNONCLIENTMETRICS) without checking OS version. Therefore I have removed this new parameter from NONCLIENTMETRICS, and added it to custom NONCLIENTMETRICS_VISTA structure.

New in this upload: winuser, CommCtrl, wtypes, Uxtheme, shellapi, guiddef, dwmapi and vsstyle are coming from win7.
CommCtrl has full set of control macros, like Button_SetElevationRequiredState().
Both instalers have extended manifests to prompt for administrative rights, in order to write to Program Files directory in Vista and above.
Added CURL, Microchip and Winamp includes in separate subdirectories.
Added all static libraries from win7 to /libs/sdk.

Links expired.
Title: Re: Sapero's Windows include files(History)
Post by: pistol350 on February 05, 2009, 11:27:41 AM
Thank you Once more!
8)
Title: Re: Sapero's Windows include files(History)
Post by: Barney on February 05, 2009, 12:48:36 PM
Thank you very much, sapero. Your work is really invaluable and much appreciated.

Barney
Title: Re: Sapero's Windows include files(History)
Post by: Raid on February 09, 2009, 12:59:03 PM
Thanks!

Title: Re: Sapero's Windows include files(History)
Post by: sapero on February 27, 2009, 04:25:44 PM
A small update for common controls macros (missing declarations, bug in ListView_SetItemState), plus about 1MB of new headers.

Links expired.
Title: Re: Sapero's Windows include files(History)
Post by: Raid on March 05, 2009, 02:24:53 PM
Just wanted to take the time and say thanks for all the great and hard work you put into these header files.

Title: Re: Sapero's Windows include files(History)
Post by: Haim on March 11, 2009, 06:13:18 AM
Hello,
I have been using Sapero's headers for a long time with no problem, until lately, when I tried to compile a program
and I got the following error reports:
Compiling...
PropLV.src
File: winuser.inc (4125) duplicate declaration
Error(s) in compiling "C:\Program Files\Aurora\examples\PropLV.src"

If I comment out line 4125 in winuser.inc, everything compiles correctly.
There are no declarations in my program. Everything is declared through:

#define WIN32_LEAN_AND_MEAN
#include "windows.inc"

BTW, line 4125 is a feclaration for messagebox:
declare import, MessageBox alias MessageBoxA(HWND hWnd, LPCSTR lpText, opt LPCSTR lpCaption, opt UINT uType),int;

Any ideas?

Haim

Title: Re: Sapero's Windows include files(History)
Post by: sapero on March 11, 2009, 07:31:27 AM
Thanks for reporting, it is a missing underscore bug, i'll upload fixed version soon.
#ifdef UNICODE
declare import, _MessageBox alias MessageBoxW(HWND hWnd, LPCWSTR lpText, opt LPCWSTR lpCaption, opt UINT uType),int;
declare import, MessageBoxEx alias MessageBoxExW(HWND hWnd, LPCWSTR lpText, LPCWSTR lpCaption, UINT uType, WORD wLanguageId),int;
#else
declare import, _MessageBox alias MessageBoxA(HWND hWnd, LPCSTR lpText, opt LPCSTR lpCaption, opt UINT uType),int;
declare import, MessageBoxEx alias MessageBoxExA(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType, WORD wLanguageId),int;
#endif


This update includes also full set of macros for property sheets (prsht.inc)

Links expired.
Title: Re: Sapero's Windows include files(History)
Post by: sapero on April 02, 2009, 12:53:14 PM
Again uploaded new headers pak with bugfix only.
1. Not reported by the compiler: #if without #endif in WinUser.inc.
2. A hard bug in TreeView_SetCheckState, causing your programm to immediate crash.
3. Missing (hidden in $ifndef) Imagelist_LoadImage alias in Ebasic headers.

Links expired.
Title: Re: Sapero's Windows include files(History)
Post by: ExMember001 on April 02, 2009, 06:16:56 PM
Hi sapero,
I just install the new headers over the old one for aurora
and now when i compile i get this error:
Compiling Resources
Compiling...
Popotte.src
File: commctrl.inc (384) duplicate constant, values different -

i have try to find the duplicate but cant find it...
Title: Re: Sapero's Windows include files(History)
Post by: sapero on April 03, 2009, 02:52:01 AM
Thanks for reporting. I never got this error until I read your reply and installed fresh copy of Aurora and the headers into virtual machine. I'll check my binaries.

Links updated.
Title: Re: Sapero's Windows include files(History)
Post by: ExMember001 on April 03, 2009, 02:50:10 PM
thank you, its working now  8)
Title: Re: Sapero's Windows include files(History)
Post by: Ficko on April 26, 2009, 11:03:05 AM
Hi Sapero!

This may be very stupid but I have a notion I am missing some direction here.

I see this monumental work from you but I do not really find any comprehensive description to it.
How you supposed to use this efficiently and how this actually works and how this effect the â€Ã...“regular â€Ã...“ ebasic includes what exactly got installed etc.

May this belongs to â€Ã...“everybody knowsâ€Ã, section but I certainly have the feeling to miss something.

These are my guesses but I would be happy to get some advice from the Master themselves. :D
1. You have to include â€Ã...“WINDOWSSDK.incâ€Ã, which somehow translate the MS header files or/and loads some common headers likeâ€Ã,WINDOWS.incâ€Ã,
but if you need any other header you have to include it in your source as well after â€Ã...“WINDOWSSDK.incâ€Ã,

2. â€Ã...“Windows.incâ€Ã, alone will not work correctly after the Header installation.

I do not now that I am correct but these are my guesses.

I do have lots of questions like:

When you should include â€Ã...“WINDOWSSDK.incâ€Ã, exactly?
Sometimes it seems to work correctly sometimes I am getting â€Ã...“duplicate declarationâ€Ã, like by â€Ã...“GetLogicalDrives()â€Ã,.
What is the exact rule?

How can you speed up the compilation for smaller files?
-Apparently â€Ã...“WINDOWSSDK.incâ€Ã, loads a lot of stuff which you may not always need.-
How can you tailor made it for your needs?

Appreciate your work,
Ficko
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on April 26, 2009, 11:29:37 AM
Ficko,
Sapero's includes are the equivalent of the current Windows SDK.  Instructions then would be from whatever windows API function you are trying to use, if you search MSDN for a particular API call you will see a block at the bottom that tells what include file the API call is declared in.

For example here is the MSDN listing for the winsock 'accept' function:

http://msdn.microsoft.com/en-us/library/ms737526(VS.85).aspx

At the bottom you have the requirements:
Minimum supported client   Windows 2000 Professional
Minimum supported server   Windows 2000 Server
Header   Winsock2.h
Library   Ws2_32.lib
DLL   Ws2_32.dll

Which tells you the DLL the function is in, and the include file which would be Winsock2.h, or Winsock2.inc in the case of Emergerce/aurora.

If you read the documentation that comes with the Windows SDK you will learn that you need to create a couple of definitions when including windowssdk.inc (windows.h).  For 95% of the programs you'll write using the API directlry (for Emergence) the top of your source file would look like this:


$ifndef WIN32
$define WIN32
$endif

$ifdef WIN32
$define WIN32_LEAN_AND_MEAN
$endif

$include "windowssdk.inc"


For Aurora it would look almost identical substituting # for $

WIN32_LEAN_AND_MEAN excludes rarely used headers from the base includes, so rarely used that I don't think I have ever run across a program that has used them.  The purpose is to speed up compile time.

$define WIN32 is because you are compiling for a 32 bit windows program.  The headers also contain definitions for other platforms, such as the Mac.

After the $include "windowssdk.inc" you would add other include files that contain the API definitions you are interested in, such as the aforementioned Winsock2.inc

Hope that clears some stuff up for you.

Paul.

Title: Re: Sapero's Windows include files(History)
Post by: Ficko on April 26, 2009, 01:55:53 PM
Thanks Paul that really helps! :D
Title: Re: Sapero's Windows include files(History)
Post by: sapero on May 05, 2009, 02:26:37 PM
Updated again. The sdkincludes library is refreshed, I've removed all unused modules with floats, strings and duplicate guids. Fixed also some bugs in various headers that gave errors while compiling test programs. At least shlwapi.inc is new, from server 2008 sdk.
There is a new QISearch function. It was present in shlwapi.dll (win2000) but exported by ordinal only. Now this function is accesible even on win95, and makes a bit easier to write COM classes:
#include "shlwapi.inc"
#include "shobjidl.inc"

#asm
extern _IID_IQueryContinue

qitabQueryContinue:
dd _IID_IQueryContinue, 0
dd 0,0
#endasm

declare qitabQueryContinue(); // struct QITAB[2]

class CQueryContinue
{
declare virtual QueryInterface(REFIID *riid, void *ppvObject),HRESULT {
return QISearch(this, &qitabQueryContinue, riid, ppvObject);
}


[** - Link Remove - **
Title: Re: Sapero's Windows include files(History)
Post by: Barney on May 05, 2009, 04:48:30 PM
As usual, an excellent addition. Thanks for sharing, Sapero. :)

Barney
Title: Re: Sapero's Windows include files(History)
Post by: sapero on May 08, 2009, 07:57:42 AM
The POINTTOPOINTS bug has been removed, and if you have noticed an additional asterix from shlwapi too.
Links updated.
Title: Re: Sapero's Windows include files(History)
Post by: sapero on May 31, 2009, 05:01:30 PM
With the vew version 2.0.4.5 you can create ribbon (http://en.wikipedia.org/wiki/Ribbon_(computing)) user interface. It is a bit complicated, but looks promissing.
I have added two custom macros - ListView_GetItemData and ListView_SetItemData, extended the shlwapi library with IUnknown_AtomicRelease and IUnknown_Set.

IUnknown_Set is usefull if you need to copy an object (class or interface) into second variable and add a reference to it.
AtomicRelease is safer than directly calling Release method, it checks if the pointer is NULL, optionally releases the object and sets the pointer to NULL.
IUnknown *unk = get_me_unknown();
// if (unk) unk->Release();
// unk = 0;
IUnknown_AtomicRelease(&unk);


[** - Link Remove - **
Title: Re: Sapero's Windows include files(History)
Post by: sapero on June 04, 2009, 12:04:14 PM
Just a small note.
In the latest installer is a new propvarutil header which references to propsys.lib import library. Propsys.dll is included with Vista, so this is why I have included propsys.lib file in the installer.
Propsys.dll for Windows XP is available in Windows Search (http://www.microsoft.com/windows/products/winfamily/desktopsearch/default.mspx) 3.0.

In the next upload i'll update all the missing propsys macros/wrappers, and include base classes for the ribbon interface.
Title: Re: Sapero's Windows include files(History)
Post by: sapero on June 09, 2009, 02:05:22 PM
As promised, here is the updated pak which includes all the wrappers for "propsys inline functions" and macros for the ribbon.
ListView_*etItemData bug fixed.
The uiribbon include has additional set of base classes required in applications hosting the ribbon. For examples how to use them, please see here (http://www.ionicwind.com/forums/index.php/topic,3372.msg27281.html#msg27281) (first reply)
CUICommandHandlerImpl, CUIApplicationImpl, CUISimplePropertySetImpl and CUICollectionChangedEventImpl. Only IUnknown part is implemented, other methods return E_FAIL or E_NOTIMPL.

Added Windows Azure headers in /include/azure. Sorry for the .opts file, you can delete it.

** - Link Removed - **
Title: Re: Sapero's Windows include files(History)
Post by: Ionic Wind Support Team on June 27, 2009, 10:25:52 PM
Sapero.

You probably don't here it enough.  Thank you!  Without your hard work there wouldn't be such a complete set of include files for both compilers.  I have been using them myself for the Emergence Audio Engine and I can't tell you how much time they have saved me with DX interfaces.

I can't afford alot right now, but will be sending something your way.

Paul.
Title: Re: Sapero's Windows include files(History)
Post by: sapero on July 11, 2009, 04:46:14 AM
Thanks Paul.
I have updated math, xact, fftw3 (and more) and added a small set with new headers. The _cabs function from math.inc was not properly defined, three complex number structures missing from fftw3. Added signed versions of LOWORD and HIWORD macros to the custom sdkincludes library - SLOWORD and SHIWORD. There is no direct declaration, but they are used as an alias (see GET_WHEEL_DELTA_WPARAM macro in winuser.inc).

** - Link Removed - **

Please note a small change in fftw3 includes: the import libraries now are moved to the root /libs directory. I think so will be easier for most users - just pick create import library, instead creating separate /libs/fftw directory.
$ifndef __FFTW3_NOLIB__
$use "libfftw3-3.lib"
$use "libfftw3f-3.lib"
$use "libfftw3l-3.lib"
$endif
Title: Re: Sapero's Windows include files(History)
Post by: Barney on July 11, 2009, 05:24:45 AM
Thank you for sharing your excellent work with us, Sapero. It makes life so much easier for everyone, or at least some of us. :)

Barney
Title: Re: Sapero's Windows include files(History)
Post by: fasecero on February 18, 2010, 09:53:17 PM
Hi. Some of the headers included in GdiPlus.inc are commented ( disabled: Metafile, MetaHeader, Pen and Graphics).
Can I uncomment this headers?
Title: Re: Sapero's Windows include files(History)
Post by: sapero on February 19, 2010, 03:51:32 AM
I don't think it will be working, because there are c++ wrapper classes, keept commented for a reference.
Title: Re: Sapero's Windows include files(History)
Post by: fasecero on February 19, 2010, 08:19:21 AM
Ok, Sapero. I'm using the GDI+ flat Api declarations. It works wonderful.
Title: Re: Sapero's Windows include files(History)
Post by: sapero on November 09, 2010, 03:55:25 PM
I have released updated set of headers, and modified the installer to support new IWBasic registry keys.

** - Link Removed - **
Title: Re: Sapero's Windows include files(History)
Post by: ExMember001 on November 09, 2010, 08:07:43 PM
Just to mention that the installer crash on my computer when it reach system32 libs installation but the headers seems to be ok
Title: Re: Sapero's Windows include files(History)
Post by: sapero on November 10, 2010, 01:04:04 AM
Could you provide crash/exception address from the crash-box (or from event log)?
Title: Re: Sapero's Windows include files(History)
Post by: ExMember001 on November 10, 2010, 01:40:52 AM
i have no crash report... except the box that said Windows trying to resolve the problem then close the program
everytime i try to reinstall the headers i have this crash
Title: Re: Sapero's Windows include files(History)
Post by: sapero on November 10, 2010, 05:12:34 AM
I have added a simple crash dialog with exception address, information and callstack. It should display the missing information.
The included .dbg file should be extracted to the same directory to make the callstack more user-friendly.

** - Link Removed - ** with SetErrorMode SEM_FAILCRITICALERRORS|SEM_NOOPENFILEERRORBOX. This version should ensure that file errors are returned to the application instead to the user.
Title: Re: Sapero's Windows include files(History)
Post by: ckoehn on November 10, 2010, 06:26:45 AM
I agree with KrYpt.  My computer did the same thing.  The installer would quit functioning when it got to the system32 lib installation.  I did have admin priv selected.

Clint
Title: Re: Sapero's Windows include files(History)
Post by: ExMember001 on November 10, 2010, 12:44:08 PM
ok now with this versions i have no more crash and no crash dialog box...
everything going ok
Title: Re: Sapero's Windows include files(History)
Post by: ExMember001 on November 10, 2010, 12:47:59 PM
but when i close the installer i have now this message... im on vista:

This program need msvcp50.dll which is no more include with this version of windows
Title: Re: Sapero's Windows include files(History)
Post by: sapero on November 10, 2010, 01:28:54 PM
msvcp50.dll is not referenced, not even loaded in this installer. Maybe you have installed something buggy that is hooking other apps and does some things when a program quits.
While this new error message is displayed, check your task manager to see, if some other application tries to run. If you are an Process Explorer maniac like me, have a look at callstack of all threads in this installer - which function is running while this error is displayed?

Anyway you can uncheck "install redistributable dll" because the two dlls will not change frequently. If you keep it checked, the installer will try to access system directory.
I know that system directory is for the system only. PATH environment should be used for additional libraries, but probably no one configured a system wide shared directory for dlls. I have one "binaries" directory (away from my C drive), and instead copying all my tools and dlls to /system32, I copy them to that extra directory.
Title: Re: Sapero's Windows include files(History)
Post by: ckoehn on November 10, 2010, 03:46:41 PM
Sapero,  that one installed fine for me on Win7 x64.

Thanks
Title: Re: Sapero's Windows include files(History)
Post by: Ficko on November 11, 2010, 01:52:32 AM
Same installed fine on Windows7-64. :D

Thnak You!
Title: Re: Sapero's Windows include files(History)
Post by: sapero on November 15, 2010, 06:51:18 AM
I have updated it again: fixed case in all conditional $ifndef (to lower case), and restored interfaces in ocidl.inc back to Emergence syntax.
Added default implementation for SHCreateMemStream function from shlwapi.inc (available on XP).

Get it here: ** - Link Removed - **
Title: Re: Sapero's Windows include files(History)
Post by: sapero on November 25, 2010, 11:29:32 AM
Newest upload :)
Added 110 missing guids to sdkincludes.lib, fixed typos in 10 headers.

Get it here: ** - Link Removed - **
Title: Re: Sapero's Windows include files(History)
Post by: LarryMc on November 29, 2010, 09:53:40 PM
After installing the new headers my functions to read/write ini files no longer work.
Instead of reading the desired value or the default value I always get 0.

I tried it with a test program that worked fine before installing the new headers but doesn't after a recompile with the new headers.

Spent all afternoon trying to find bug in my program that was causing it and finally saw that it was something with the new headers.

LarryMc
Title: Re: Sapero's Windows include files(History)
Post by: sapero on November 30, 2010, 12:12:55 AM
The following code is working for me:$define WIN32_LEAN_AND_MEAN
$include "windowssdk.inc"

' %SYSTEMROOT%\win.ini
print GetPrivateProfileIntA( "Mail",  "MAPI",-1,  "win.ini")
print GetPrivateProfileIntW(L"Mail", L"MAPI",-1, L"win.ini")
$ifdef __IWVER__
print GetPrivateProfileInt (T"Mail", T"MAPI",-1, T"win.ini")
$else
print GetPrivateProfileInt ( "Mail",  "MAPI",-1,  "win.ini")
$endif

' read a missing value
print GetPrivateProfileIntA( "Mail",  "xxxx",-1,  "win.ini")
print GetPrivateProfileIntW(L"Mail", L"xxxx",-1, L"win.ini")
$ifdef __IWVER__
print GetPrivateProfileInt (T"Mail", T"xxxx",-1, T"win.ini")
$else
print GetPrivateProfileInt ( "Mail",  "xxxx",-1,  "win.ini")
$endif

Could you post your not working example?
Title: Re: Sapero's Windows include files(History)
Post by: LarryMc on November 30, 2010, 06:04:44 AM
"works fine in EB but no longer works in IWB"

when I wrote that it should have told me it wasn't the headers.

the problem is in the alpha version of IWB 2.0 which I will post elsewhere

Sorry Sapero!

LarryMc
Title: Re: Sapero's Windows include files(History)
Post by: sapero on March 09, 2011, 11:04:19 PM
Here is the pak for IWBasic 2.0. It contains mostly fixes for the new 2.0 compiler, but you'll find also the newest sqlite header (previous file renamed to sqlite3.1.212.inc).

** - Link Removed - **
Title: Re: Sapero's Windows include files(History)
Post by: BumbleBee on March 10, 2011, 10:00:49 AM
ahhh, mysql includes... thanks! :)
Title: Re: Sapero's Windows include files(History)
Post by: fasecero on March 20, 2011, 12:40:06 PM
Hi, Sapero.

Is there a chance to add the IExplorerBrowser Interface to the SDK headers in the future?

Sorry to bother you, Thanks.
Title: Re: Sapero's Windows include files(History)
Post by: sapero on March 20, 2011, 02:47:39 PM
It will be added soon, thanks for requesting!
Title: Re: Sapero's Windows include files(History)
Post by: sapero on March 29, 2011, 04:54:15 PM
This is the latest update for all the recent changes in IWBasic 2.0.
* Strict option will not show so many warnings for commonly used headers
* sdkddkver.inc added,
* new shobjidl.inc and shlobj.inc from Window 7 SDK (interface IExplorerBrowser)
* active PshPack*.inc and PopPack.inc headers added (new option "pack push/pop/default/show/number")
After including PshPack1.inc, the default packing for structures will change to 1, and the previous packing will be saved on compiler's stack. Do not forget to include PopPack.inc before exiting from current header/source file, otherwise the Strict option, if active, will warn you that the packing has been not restored, or that Push count does not match Pop count.

** - Link Removed - **

Note: the new packing extension will be available with the next compiler update.

EDIT: added Bold style :)
Title: Re: Sapero's Windows include files(History)
Post by: sapero on March 29, 2011, 06:09:48 PM
Yep, 2.0 again ;D
File: C:\__iwb2devf\include\shtypes.inc (170) Error: a) CONST/DATA unsupported operation
What's wrong there? I have:
$if (_WIN32_IE >= _WIN32_IE_IE60SP2) ' ---- line 138 ----
[...]
typedef PERCEIVEDFLAG DWORD

$endif  ' _WIN32_IE_IE60SP2

$if (NTDDI_VERSION >= NTDDI_VISTA) ' ---- line 170 ----
type COMDLG_FILTERSPEC
    LPCWSTR pszName
LPCWSTR pszSpec
endtype
Title: Re: Sapero's Windows include files(History)
Post by: LarryMc on March 29, 2011, 07:47:52 PM
I don't have a clue other than for some reason it doesn't like a) in the $if statement.

The entry on line 138 doesn't have an a) ; it has a 2)

LarryMc
Title: Re: Sapero's Windows include files(History)
Post by: sapero on March 30, 2011, 01:34:50 AM
Error: a) CONST/DATA unsupported operation
The a) is a part of the error message. I've added it to mate it easier to find where the message comes from.
Some of "CONST/DATA unsupported operation" errors have been replaced with user friendly messages, but still 7 locations of the parser generate generic, shared messages.
Title: Re: Sapero's Windows include files(History)
Post by: Brian on March 30, 2011, 02:00:11 AM
Larry and Sapero,

Bit confused here - do we install this version of Includes or not? Do we wait for the
next compiler release, and then install these Includes?

Brian
Title: Re: Sapero's Windows include files(History)
Post by: LarryMc on March 30, 2011, 03:40:45 AM
WAIT

LarryMc
Title: Re: Sapero's Windows include files(History)
Post by: Brian on March 30, 2011, 04:00:10 AM
Ta, Larry,

For some reason my "Show unread posts since last visit" doesn't always
seem to catch those pesky unread posts all the time

Brian
Title: Re: Sapero's Windows include files(History)
Post by: sapero on March 30, 2011, 08:42:10 AM
Brian, the compiler has been updated, reinstall :)
Title: Re: Sapero's Windows include files(History)
Post by: Brian on March 30, 2011, 09:57:07 AM
Fingers twitching in readiness for when I get home . . .

Thanks
Title: Re: Sapero's Windows include files(History)
Post by: Brian on March 31, 2011, 07:12:31 AM
Hi,

New compiler update went OK - now I see .iwb and .iwp icons in Explorer

Double-clicking on either source or project file starts the IDE, but still does
not open the file with the IDE

Brian
Title: Re: Sapero's Windows include files(History)
Post by: LarryMc on March 31, 2011, 03:00:47 PM
Brian
Did you click Tools/Register file extensions?
Title: Re: Sapero's Windows include files(History)
Post by: Brian on March 31, 2011, 03:58:14 PM
Yep - always do anyway, after an update

Brian
Title: Re: Sapero's Windows include files(History)
Post by: LarryMc on March 31, 2011, 04:08:30 PM
Quote from: Brian Pugh on March 31, 2011, 07:12:31 AM
Hi,

New compiler update went OK - now I see .iwb and .iwp icons in Explorer

Double-clicking on either source or project file starts the IDE, but still does
not open the file with the IDE

Brian

I've had a file open before when its size is as small as it can be and hard to notice.
That's not going on by any chance is it?

LarryMc
Title: Re: Sapero's Windows include files(History)
Post by: ckoehn on March 31, 2011, 06:45:23 PM
Mine works fine.  I just went and clicked on a file in explorer and it ask which program I wanted to open it with.  Selected iwb.exe and checked always use this program, and it works.

I'm using Win 7 x64.

Later,
Clint
Title: Re: Sapero's Windows include files(History)
Post by: Brian on April 01, 2011, 01:58:15 AM
Must admit I haven't tried that this time. Have done it before, though, and it
never made any difference. Probably will this time

Brian
Title: Re: Sapero's Windows include files(History)
Post by: sapero on April 10, 2011, 09:46:58 AM
The following update includes a small bug fix in IMallocSpy interface definition, and fixes all other interfaces definition to "always derive from". This change is required for the next compiler update - it is able to create dynamic implementation for interface derived classes. The base interface should derive from ... (at least IUnknown) to correctly generate IUnknown part of the class.

** - Link Removed - **

class name, base_interface
This will just copy virtual methods from base_interface to the new class.

class name implements base_interface
This will copy the virtual methods, generate default methods in a static library (they will return E_NOTIMPL), and the IUnknown part will be implemented. It will support (the QueryInterface method) all the base interfaces, from which base_interface derives.
See CMallocSpy example.
class CMallocSpy implements IMallocSpy
' todo: add custom methods and variables
endclass

CoInitialize(0)
pointer MySpy = new CMallocSpy

' register a callback class
int hr = CoRegisterMallocSpy(MySpy)
...
Title: Re: Sapero's Windows include files(History)
Post by: Brian on April 10, 2011, 11:33:28 AM
Bingo! Downloaded and installed new include files

Re-compiled my latest program with the Strict option on - first program
of mine to compile without any warning messages!

Well done, Sapero!

Brian
Title: Re: Sapero's Windows include files(History)
Post by: fasecero on April 10, 2011, 04:40:20 PM
Yes!

Thank you for adding the new SDK headers, and thank you for your dedication and professionalism.
Title: Re: Sapero's Windows include files(History)
Post by: LarryMc on April 11, 2011, 06:15:56 AM
Sapero
I loaded your new inc files.
The first time I compiled a project from inside my designer I picked up the errors pictured below.
Had never seen those before.

I didn't get any errors when I compiled the designer itself.

Got any ideas?

LarryMc
Title: Re: Sapero's Windows include files(History)
Post by: LarryMc on April 11, 2011, 06:40:16 AM
Sapero- My bad.

I had included "accctrl.inc" in my designer project as part of the testing for my 'include' handler.
I failed to remove it.

When I did remove it the designer project compiled fine.

Sorry about that.

LarryMc
Title: Re: Sapero's Windows include files(History)
Post by: DominiqueB on April 15, 2011, 04:09:09 AM
Hello Sapero,

you call your includes package "IWBasic and Aurora" but when installing, only see IWBasic or EBasic ?

Do you have a new one for Aurora ?

Thank's

Dominique
Title: Re: Sapero's Windows include files(History)
Post by: DominiqueB on April 15, 2011, 11:56:50 AM
Thank's

Dominique
Title: Re: Sapero's Windows include files(History)
Post by: Logman on April 26, 2011, 02:44:44 PM
Sapero:

Is the 11 March 2011 IWBasic Headers file the latest version? I could have sworn that I read about an April update, but I can't find it and I may be mistaken.

Logman
Title: Re: Sapero's Windows include files(History)
Post by: Bruce Peaslee on April 26, 2011, 03:08:25 PM
Quote from: Logman on April 26, 2011, 02:44:44 PM
Sapero:

Is the 11 March 2011 IWBasic Headers file the latest version? I could have sworn that I read about an April update, but I can't find it and I may be mistaken.

Logman

He has April 15th in his signature.
Title: Re: Sapero's Windows include files(History)
Post by: sapero on May 05, 2011, 10:56:58 PM
I have just bough a new netbook, installed IWB and the headers, but got many warnings while compiling with the current compiler. There was also an error for IUnknown redefinition.
This post fixes all of them, if any, because this setup includes the latest headers with all "missing base interface" fixes and the redefinition error.
Let me know if you notice an error error or warning in the headers.

** - Link Removed - **

Please update the IWBasic compiler before/after installing the pak for IWBasic.
Title: Re: Sapero's Windows include files(History)
Post by: Brian on May 06, 2011, 11:54:50 AM
Sapero,

No birthday for you! Problems with the new Includes...


Compiling Resources...
No Errors

Compiling...
Telegrapher.iwb
File: C:\Program Files\iwbdev\include\prsht.inc (198) Error: syntax error - PROPSHEETPAGEA_V1
File: C:\Program Files\iwbdev\include\prsht.inc (201) Error: syntax error - endtype
File: C:\Program Files\iwbdev\include\prsht.inc (203) Error: syntax error - PROPSHEETPAGEA_V1
File: C:\Program Files\iwbdev\include\prsht.inc (204) Error: duplicate definition of variable or label: pszHeaderTitle
File: C:\Program Files\iwbdev\include\prsht.inc (199) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (205) Error: duplicate definition of variable or label: pszHeaderSubTitle
File: C:\Program Files\iwbdev\include\prsht.inc (200) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (207) Error: syntax error - endtype
File: C:\Program Files\iwbdev\include\prsht.inc (210) Error: syntax error - PROPSHEETPAGEA_V1
File: C:\Program Files\iwbdev\include\prsht.inc (211) Error: duplicate definition of variable or label: pszHeaderTitle
File: C:\Program Files\iwbdev\include\prsht.inc (199) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (212) Error: duplicate definition of variable or label: pszHeaderSubTitle
File: C:\Program Files\iwbdev\include\prsht.inc (200) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (213) Error: duplicate definition of variable or label: hActCtx
File: C:\Program Files\iwbdev\include\prsht.inc (206) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (214) Error: syntax error
File: C:\Program Files\iwbdev\include\prsht.inc (217) Error: syntax error - endunion
File: C:\Program Files\iwbdev\include\prsht.inc (218) Error: syntax error - endtype
File: C:\Program Files\iwbdev\include\prsht.inc (240) Error: syntax error - PROPSHEETPAGEW_V1
File: C:\Program Files\iwbdev\include\prsht.inc (199) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (200) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (243) Error: syntax error - endtype
File: C:\Program Files\iwbdev\include\prsht.inc (245) Error: syntax error - PROPSHEETPAGEW_V1
File: C:\Program Files\iwbdev\include\prsht.inc (199) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (200) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (206) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (249) Error: syntax error - endtype
File: C:\Program Files\iwbdev\include\prsht.inc (252) Error: syntax error - PROPSHEETPAGEW_V1
File: C:\Program Files\iwbdev\include\prsht.inc (199) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (200) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (206) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (256) Error: syntax error
File: C:\Program Files\iwbdev\include\prsht.inc (215) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (216) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (259) Error: syntax error - endunion
File: C:\Program Files\iwbdev\include\prsht.inc (260) Error: syntax error - endtype
File: C:\Program Files\iwbdev\include\prsht.inc (264) Warning: Const _PROPSHEETPAGEA will be unavailable due to unknown symbol PROPSHEETPAGEA_V4
File: C:\Program Files\iwbdev\include\prsht.inc (265) Warning: Const _PROPSHEETPAGEW will be unavailable due to unknown symbol PROPSHEETPAGEW_V4
File: C:\Program Files\iwbdev\include\prsht.inc (327) Warning: Const PROPSHEETPAGE will be unavailable due to unknown symbol PROPSHEETPAGEA
File: C:\Program Files\iwbdev\include\prsht.inc (331) Warning: Const PROPSHEETPAGE_V2 will be unavailable due to unknown symbol PROPSHEETPAGEA_V2
File: C:\Program Files\iwbdev\include\prsht.inc (332) Warning: Const PROPSHEETPAGE_V3 will be unavailable due to unknown symbol PROPSHEETPAGEA_V3
File: C:\Program Files\iwbdev\include\prsht.inc (334) Warning: Const PROPSHEETPAGE_V4 will be unavailable due to unknown symbol PROPSHEETPAGEA_V4
File: C:\Program Files\iwbdev\include\prsht.inc (336) Warning: Const PROPSHEETPAGE_LATEST will be unavailable due to unknown symbol PROPSHEETPAGEA_LATEST
File: C:\Program Files\iwbdev\include\prsht.inc (443) Error: syntax error - PROPSHEETHEADERA_V1
File: C:\Program Files\iwbdev\include\prsht.inc (444) Error: syntax error
File: C:\Program Files\iwbdev\include\prsht.inc (447) Error: syntax error - endunion
File: C:\Program Files\iwbdev\include\prsht.inc (449) Error: syntax error
File: C:\Program Files\iwbdev\include\prsht.inc (215) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (216) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (452) Error: syntax error - endunion
File: C:\Program Files\iwbdev\include\prsht.inc (453) Error: syntax error - endtype
File: C:\Program Files\iwbdev\include\prsht.inc (501) Error: syntax error - PROPSHEETHEADERW_V1
File: C:\Program Files\iwbdev\include\prsht.inc (502) Error: syntax error
File: C:\Program Files\iwbdev\include\prsht.inc (445) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (446) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (505) Error: syntax error - endunion
File: C:\Program Files\iwbdev\include\prsht.inc (448) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (507) Error: syntax error
File: C:\Program Files\iwbdev\include\prsht.inc (215) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (216) See previous declaration
File: C:\Program Files\iwbdev\include\prsht.inc (510) Error: syntax error - endunion
File: C:\Program Files\iwbdev\include\prsht.inc (511) Error: syntax error - endtype
File: C:\Program Files\iwbdev\include\prsht.inc (523) Warning: Const PROPSHEETHEADERA will be unavailable due to unknown symbol PROPSHEETHEADERA_V2
File: C:\Program Files\iwbdev\include\prsht.inc (524) Warning: Const PROPSHEETHEADERW will be unavailable due to unknown symbol PROPSHEETHEADERW_V2
File: C:\Program Files\iwbdev\include\prsht.inc (542) Warning: Const PROPSHEETHEADER will be unavailable due to unknown symbol PROPSHEETHEADERA
Error(s) in compiling "C:\Documents and Settings\All Users\Documents\IWBasic\projects\HomeSplitter\Telegrapher.iwb"
Build Failed

And I'm not even using a Property Sheet (well, I don't think so!)

Going back to the last version...

Brian
Title: Re: Sapero's Windows include files(History)
Post by: sapero on May 06, 2011, 12:06:38 PM
Update your compiler ;D
Title: Re: Sapero's Windows include files(History)
Post by: Brian on May 06, 2011, 12:13:42 PM
Yep, OK now. Thanks for the quick reply

You can enjoy your birthday now!

Brian