|
-
January 16th, 2006, 11:54 AM
#1
Re: How to create/display a modal window? And surplus of win32 code
Thanks ovidiucucu, I will check out the threads ... and upload the source Just got a bit sidetracked by something You already know I'm using plain WinAPI, which means the look of the buttons is very very basic, I'd say ugly, but I thought, oh well, that's the price I have to pay for not using wrappers. But I've noticed in one of the signatures of one of the members here on this board a link to nice buttons for the use with Win32. So I've downloaded the "SDK" for those buttons, and sure thing it didn't work, even the example code. The thing is, it uses this headers (and libs):
#include <uxtheme.h>
#include <tmschema.h>
I've searched those on my machine but did not find anywhere. Then I searched the net and found out they are part of Platform SDK. Ok, I downloaded Platform SDK April 2005 release ... only to find out it is incompatible with VC++ 6.0 (which is what I'm using), so I though I need an older SDK, and from what I've read I needed 2003 February edition. I downloaded that, installed, but I still keep getting almost 270 warnings + errors, and lots of them do not make any sense. Yes I added the include directory to Include paths, and same with Lib path, but that's it... also ticked the option to register environmental variables during the install. Rebooted, created fresh project but still no go. For several hours I'm trying to make this code to compile. Here's approx what errors compiler is giving me:
Code:
d:\program files\microsoft visual studio\myprojects\example\imagebutton.h(37) : warning C4028: formal parameter 2 different from declaration
d:\program files\microsoft visual studio\myprojects\example\imagebutton.h(37) : warning C4028: formal parameter 3 different from declaration
d:\program files\microsoft visual studio\myprojects\example\imagebutton.h(38) : warning C4031: second formal parameter list longer than the first list
d:\program files\microsoft visual studio\myprojects\example\imagebutton.h(38) : warning C4028: formal parameter 2 different from declaration
d:\program files\microsoft visual studio\myprojects\example\imagebutton.h(38) : warning C4028: formal parameter 3 different from declaration
[...]
d:\program files\microsoft visual studio\myprojects\example\buttontest.c(17) : error C2146: syntax error : missing ';' before identifier 'hPulsante'
d:\program files\microsoft visual studio\myprojects\example\buttontest.c(17) : error C2065: 'hPulsante' : undeclared identifier
d:\program files\microsoft visual studio\myprojects\example\buttontest.c(18) : warning C4047: '=' : 'int ' differs in levels of indirection from 'struct HWND__ *'
d:\program files\microsoft visual studio\myprojects\example\buttontest.c(22) : warning C4047: 'function' : 'char *' differs in levels of indirection from 'const int '
d:\program files\microsoft visual studio\myprojects\example\buttontest.c(22) : warning C4024: 'ImageButton_Create' : different types for formal and actual parameter 2
d:\program files\microsoft visual studio\myprojects\example\buttontest.c(22) : warning C4020: 'ImageButton_Create' : too many actual parameters
d:\program files\microsoft visual studio\myprojects\example\buttontest.c(23) : warning C4047: 'function' : 'struct HINSTANCE__ *' differs in levels of indirection from 'const int '
d:\program files\microsoft visual studio\myprojects\example\buttontest.c(23) : warning C4024: 'ImageButton_SetBitmap' : different types for formal and actual parameter 2
[...]
d:\program files\microsoft visual studio\vc98\include\windef.h(281) : see declaration of 'COLORREF'
d:\program files\microsoft visual studio\myprojects\example\imagebutton.c(622) : error C2146: syntax error : missing ';' before identifier 'crPixel'
d:\program files\microsoft visual studio\myprojects\example\imagebutton.c(623) : error C2275: 'BYTE' : illegal use of this type as an expression
d:\program files\microsoft visual studio\vc98\include\windef.h(143) : see declaration of 'BYTE'
d:\program files\microsoft visual studio\myprojects\example\imagebutton.c(623) : error C2146: syntax error : missing ';' before identifier 'byNewPixel'
d:\program files\microsoft visual studio\myprojects\example\imagebutton.c(625) : warning C4018: '<' : signed/unsigned mismatch
d:\program files\microsoft visual studio\myprojects\example\imagebutton.c(627) : warning C4018: '<' : signed/unsigned mismatch
d:\program files\microsoft visual studio\myprojects\example\imagebutton.c(682) : error C2275: 'DWORD' : illegal use of this type as an expression
and so on.... long long list.
I probably should have started a new thread, but anyway, maybe somebody of you could help with this?
P.S. I'm using "ImageButton": http://imagebutton.winapizone.net/en/
Thanks everybody forthe replies,
Oleg
Last edited by Xatrix; January 16th, 2006 at 11:57 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|