November 29, 2022, 06:31:23 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


COMMENTS: Create a custom control (using the GDI+ Flat api)

Started by LarryMc, July 06, 2011, 10:25:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RitchieF

1. YES
2. NO
3. Latest is 2.09 compiler 2.095
4. Win7 x64
5. Zero local variables

Richard


LarryMc

Idential setup to me???

Attached here is new zip of files  plus the exe.

before compiling with this run the exe multiple times and see if it is okay for you.
then try compiling these files.

LarryMc

edit - would help it I added the attachment!
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

RitchieF

Doesn't work here. Neither the exe file nor the compiled project.
Both the exe and the compiled project show the white empty window.

Richard

whitenite1

September 18, 2011, 11:22:06 AM #28 Last Edit: September 18, 2011, 11:34:04 AM by whitenite1
Larry, I too, just get a white box when I run your exe file from the zip. I also am running the latest version of IWBasic, v2.095 and have Windows 7 x64. I haven't tried compiling it, though.

whitenite1

EDIT:
  I tried compiling and came up with errors
First it says 'No errors', but upon linking, I get..
Unresolved extern CreateGageRLM
Unresolved extern ConfigGageRLM
Unresolved extern SetGagePos1RLM
Unresolved extern SetGagePos2RLM

Hope this helps

RitchieF

Larry,
this is the output of a debug build :

QuoteStarting debug session...
Loading DLL: ntdll.dll
Loading DLL: C:\Windows\syswow64\kernel32.dll
Loading DLL: C:\Windows\syswow64\KERNELBASE.dll
Loading DLL: C:\Windows\syswow64\USER32.DLL
Loading DLL: C:\Windows\syswow64\GDI32.dll
Loading DLL: C:\Windows\syswow64\LPK.dll
Loading DLL: C:\Windows\syswow64\USP10.dll
Loading DLL: C:\Windows\syswow64\msvcrt.dll
Loading DLL: C:\Windows\syswow64\ADVAPI32.dll
Loading DLL: C:\Windows\SysWOW64\sechost.dll
Loading DLL: C:\Windows\syswow64\RPCRT4.dll
Loading DLL: C:\Windows\syswow64\SspiCli.dll
Loading DLL: C:\Windows\syswow64\CRYPTBASE.dll
Loading DLL: C:\Windows\syswow64\OLE32.DLL
Loading DLL: C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1dfw
Loading DLL: C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b641w
Loading DLL: C:\Windows\SysWOW64\CRTDLL.DLL
Loading DLL: C:\Windows\SysWOW64\IMM32.DLL
Loading DLL: C:\Windows\syswow64\MSCTF.dll
Loading DLL: C:\Program Files\CheckPoint\ZAForceField\WOW64\Plugins\ISWSHEX.dr
Loading DLL: C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50v
Loading DLL: C:\Windows\syswow64\WINTRUST.dll
Loading DLL: C:\Windows\syswow64\CRYPT32.dll
Loading DLL: C:\Windows\syswow64\MSASN1.dll
Loading DLL: C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50v
Loading DLL: C:\Windows\SysWOW64\ntmarta.dll
Loading DLL: C:\Windows\syswow64\WLDAP32.dll
Loading DLL: C:\Program Files\CheckPoint\ZAForceField\WOW64\AK\icsak.dll
First chance exception: Address 0x75F3B9BC Unknown Exception
Loading DLL: C:\Windows\syswow64\PSAPI.DLL
Loading DLL: C:\Windows\SysWOW64\uxtheme.dll
Loading DLL: C:\Windows\SysWOW64\dwmapi.dll
Loading DLL: C:\Windows\syswow64\shell32.dll
Loading DLL: C:\Windows\syswow64\SHLWAPI.dll
Loading DLL: C:\Windows\SysWOW64\ole32.dll
First chance exception: Address 0x03A87ACA Access Violation.
First chance exception: Address 0x039E2724 Access Violation.
First chance exception: Address 0x03A87AD0 Attempt to execute Privileged Instruction
Loading DLL: C:\Windows\syswow64\OLEAUT32.DLL
First chance exception: Address 0x03A87ACE Access Violation.
First chance exception: Address 0x03A84978 Attempt to execute Privileged Instruction
First chance exception: Address 0x03A84978 Attempt to execute Privileged Instruction
First chance exception: Address 0x03A865AC Access Violation.
First chance exception: Address 0x03A865AB Access Violation.
First chance exception: Address 0x03A865AB Access Violation.
First chance exception: Address 0x03A865AB Access Violation.
First chance exception: Address 0x03A865AB Access Violation.
First chance exception: Address 0x03A865AB Access Violation.
First chance exception: Address 0x03A865AB Access Violation.
First chance exception: Address 0x03A865AD Access Violation.
First chance exception: Address 0x03A865AD Access Violation.
First chance exception: Address 0x03A01FA8 Attempt to execute Privileged Instruction
First chance exception: Address 0x03A01FA0 Unknown Exception
First chance exception: Address 0x03A01FA0 Unknown Exception
First chance exception: Address 0x03A01FA0 Unknown Exception
First chance exception: Address 0x03A01FA0 Unknown Exception
First chance exception: Address 0x03A01FA0 Unknown Exception
First chance exception: Address 0x03A01FA0 Unknown Exception
First chance exception: Address 0x03A01DC8 Access Violation.
First chance exception: Address 0x03A01DC8 Access Violation.
First chance exception: Address 0x03A88870 Access Violation.
First chance exception: Address 0x03A01DC8 Access Violation.
First chance exception: Address 0x03A01DC8 Access Violation.
First chance exception: Address 0x03A01DC8 Access Violation.
First chance exception: Address 0x03A01DC8 Access Violation.
First chance exception: Address 0x03A01DC8 Access Violation.
First chance exception: Address 0x03A01DC8 Access Violation.
First chance exception: Address 0x03A01DC8 Access Violation.
First chance exception: Address 0x03A88878 Attempt to execute Privileged Instruction
First chance exception: Address 0x03A88878 Attempt to execute Privileged Instruction
First chance exception: Address 0x03A88878 Attempt to execute Privileged Instruction
First chance exception: Address 0x03A895FC Access Violation.
First chance exception: Address 0x03A895FC Access Violation.
First chance exception: Address 0x03A895FC Access Violation.
First chance exception: Address 0x03A88878 Attempt to execute Privileged Instruction
First chance exception: Address 0x03A88878 Attempt to execute Privileged Instruction
First chance exception: Address 0x03A88878 Attempt to execute Privileged Instruction
First chance exception: Address 0x03A88878 Attempt to execute Privileged Instruction
First chance exception: Address 0x03A88878 Attempt to execute Privileged Instruction
First chance exception: Address 0x03A89603 Unknown Exception
First chance exception: Address 0x03A89603 Unknown Exception
First chance exception: Address 0x03A948E4 Access Violation.
First chance exception: Address 0x03A948E4 Access Violation.
First chance exception: Address 0x03A948E4 Access Violation.
First chance exception: Address 0x03A998B9 Unknown Exception
First chance exception: Address 0x03A89603 Unknown Exception
First chance exception: Address 0x03A89603 Unknown Exception
First chance exception: Address 0x03A89603 Unknown Exception
First chance exception: Address 0x03A89603 Unknown Exception
First chance exception: Address 0x03A89603 Unknown Exception
First chance exception: Address 0x03A89603 Unknown Exception
First chance exception: Address 0x03A89603 Unknown Exception
First chance exception: Address 0x03A89603 Unknown Exception
First chance exception: Address 0x03A89603 Unknown Exception
First chance exception: Address 0x03A89603 Unknown Exception
First chance exception: Address 0x03A89603 Unknown Exception
First chance exception: Address 0x03A89603 Unknown Exception
First chance exception: Address 0x03A89603 Unknown Exception
First chance exception: Address 0x03A948E4 Access Violation.
First chance exception: Address 0x03A948E4 Access Violation.
First chance exception: Address 0x03A948E4 Access Violation.
First chance exception: Address 0x03A948E4 Access Violation.
First chance exception: Address 0x03A948E4 Access Violation.
First chance exception: Address 0x03A948E4 Access Violation.
First chance exception: Address 0x03A948E4 Access Violation.
First chance exception: Address 0x03A97CE1 Unknown Exception
First chance exception: Address 0x03A97CE1 Unknown Exception
First chance exception: Address 0x03A97CE1 Unknown Exception
First chance exception: Address 0x03A97CE1 Unknown Exception
First chance exception: Address 0x03A9A7A0 Access Violation.
First chance exception: Address 0x03A9A7A0 Access Violation.
First chance exception: Address 0x03A9A7A0 Access Violation.
First chance exception: Address 0x03A9A7A0 Access Violation.
First chance exception: Address 0x03A9A7A0 Access Violation.
First chance exception: Address 0x03A9A7A0 Access Violation.
First chance exception: Address 0x03A9A7A0 Access Violation.
First chance exception: Address 0x03A9A7A0 Access Violation.
First chance exception: Address 0x03A9A7A0 Access Violation.
First chance exception: Address 0x03A9C218 Access Violation.
First chance exception: Address 0x03A9C218 Access Violation.
First chance exception: Address 0x03A9C218 Access Violation.
First chance exception: Address 0x03A9C218 Access Violation.
First chance exception: Address 0x03A9C218 Access Violation.
First chance exception: Address 0x03A9C218 Access Violation.
First chance exception: Address 0x03A9C218 Access Violation.
First chance exception: Address 0x03A9C218 Access Violation.
First chance exception: Address 0x03A9C218 Access Violation.
First chance exception: Address 0x03A9C218 Access Violation.
First chance exception: Address 0x03A9C218 Access Violation.
First chance exception: Address 0x03A9F5D1 Unknown Exception
First chance exception: Address 0x03A9F5D1 Unknown Exception
First chance exception: Address 0x03A9F5D1 Unknown Exception
First chance exception: Address 0x03A9F5D1 Unknown Exception
First chance exception: Address 0x03A9F5D1 Unknown Exception
First chance exception: Address 0x03A9F5D1 Unknown Exception
First chance exception: Address 0x03A9F5D1 Unknown Exception
First chance exception: Address 0x03A9F5D1 Unknown Exception
First chance exception: Address 0x03A9F5D1 Unknown Exception
First chance exception: Address 0x03A9F5D1 Unknown Exception
First chance exception: Address 0x03A9F5D1 Unknown Exception
First chance exception: Address 0x03AA28E1 Unknown Exception
First chance exception: Address 0x03AA28E1 Unknown Exception
First chance exception: Address 0x03A99982 Access Violation.
First chance exception: Address 0x03A99982 Access Violation.
First chance exception: Address 0x03A99982 Access Violation.
First chance exception: Address 0x03A99982 Access Violation.
First chance exception: Address 0x03A99982 Access Violation.
First chance exception: Address 0x03A99982 Access Violation.
First chance exception: Address 0x03A99982 Access Violation.
First chance exception: Address 0x03A99982 Access Violation.
First chance exception: Address 0x03A9C648 Access Violation.
First chance exception: Address 0x03A9C648 Access Violation.
First chance exception: Address 0x03A9C648 Access Violation.
First chance exception: Address 0x03A9C648 Access Violation.
First chance exception: Address 0x03A9C648 Access Violation.
First chance exception: Address 0x03A9C648 Access Violation.
First chance exception: Address 0x03A9C648 Access Violation.
First chance exception: Address 0x03A9C648 Access Violation.
First chance exception: Address 0x03A9C648 Access Violation.
First chance exception: Address 0x03A9C648 Access Violation.
First chance exception: Address 0x03A9C648 Access Violation.
First chance exception: Address 0x03A9C648 Access Violation.
First chance exception: Address 0x03AA4811 Unknown Exception
First chance exception: Address 0x03AA4811 Unknown Exception
First chance exception: Address 0x03AA4811 Unknown Exception
First chance exception: Address 0x03AA4811 Unknown Exception
First chance exception: Address 0x03AA4811 Unknown Exception
First chance exception: Address 0x03AA4811 Unknown Exception
First chance exception: Address 0x03AA4811 Unknown Exception
First chance exception: Address 0x03AA4811 Unknown Exception
First chance exception: Address 0x03AA4811 Unknown Exception
First chance exception: Address 0x03AA4811 Unknown Exception
First chance exception: Address 0x03AA7965 Access Violation.
First chance exception: Address 0x03AA7965 Access Violation.
First chance exception: Address 0x03AA7965 Access Violation.
First chance exception: Address 0x03AA7965 Access Violation.
First chance exception: Address 0x03AA7965 Access Violation.
First chance exception: Address 0x03AA7965 Access Violation.
First chance exception: Address 0x03AA7965 Access Violation.
First chance exception: Address 0x03AA7965 Access Violation.
First chance exception: Address 0x03AA7965 Access Violation.
First chance exception: Address 0x03AA7965 Access Violation.
First chance exception: Address 0x03AA7965 Access Violation.
First chance exception: Address 0x03AA7965 Access Violation.
First chance exception: Address 0x03AA7965 Access Violation.
First chance exception: Address 0x03AA7965 Access Violation.
First chance exception: Address 0x03AA83C5 Unknown Exception
First chance exception: Address 0x03AA83C5 Unknown Exception
First chance exception: Address 0x03AA83C5 Unknown Exception
First chance exception: Address 0x03AA9300 Access Violation.
First chance exception: Address 0x03AA9300 Access Violation.
First chance exception: Address 0x03AAA6A8 Access Violation.
First chance exception: Address 0x03AAA6A8 Access Violation.
First chance exception: Address 0x03AAA6A8 Access Violation.
First chance exception: Address 0x03AAA6A8 Access Violation.
First chance exception: Address 0x03AAA6A8 Access Violation.
First chance exception: Address 0x03AAA6A8 Access Violation.
First chance exception: Address 0x03AAA6A8 Access Violation.
First chance exception: Address 0x03AAA6A8 Access Violation.
First chance exception: Address 0x03AAA6A8 Access Violation.
First chance exception: Address 0x03AAA6A8 Access Violation.
First chance exception: Address 0x03AAA6A8 Access Violation.
First chance exception: Address 0x03AAA6A8 Access Violation.
First chance exception: Address 0x03AB06CA Access Violation.
First chance exception: Address 0x03AB06CA Access Violation.
First chance exception: Address 0x03AB06CA Access Violation.
First chance exception: Address 0x03AB06CA Access Violation.
First chance exception: Address 0x03AB06CA Access Violation.
First chance exception: Address 0x03AB06CA Access Violation.
First chance exception: Address 0x03AB06CA Access Violation.
First chance exception: Address 0x03AB06CA Access Violation.
First chance exception: Address 0x03AB3331 Unknown Exception
First chance exception: Address 0x03A9D8C2 Access Violation.

Richard

LarryMc

I compiled in debug and got none of those exceptions.

I changed something in the attached.

would appreciate ya'll trying the exe and then compile as before.

BTW, did either of you try running it as admin?

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

LarryMc

LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

whitenite1

Larry..
  I went to the directory on the desktop, right-clicked on IWB2 and in the menu, clicked on 'Run as Admin'. Went to the menu in IWB2, selected 'Open Project', and opened 'CCT' that I just downloaded from your last message. Clicked on 'Compile' as Window. It compiled and ran, but all that I see is still a white window. But at least I received no errors. Though, previously, I tried compiling 'CCT_test-Part08.iwb' by itself, which may be the reason for the errors I received.
  And yes, I did install the program as 'admin'.

whitenite1

LarryMc

did you try running the exe that was in the zip file first to see if it worked?
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

billhsln

I tried running CCT.exe and I get the MS Error (encountered problem, Send Error Report/Don't Send), with basically a blank screen.

Bill
When all else fails, get a bigger hammer.

whitenite1

Larry, Yes I first tried running the exe as Admin, with the same results as I had before. A white screen with the title 'Gage Demo', and the menu with the 'Quit' option.

whitenite1

LarryMc

in your IWbdev/libs dir do ya'll have a gdiplus.lib?

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

billhsln

I have one.  Running Win XP SP3.  I have loaded all Sapero's includes.  I got it to compile, but it aborts on me (Windows abort).

Bill
When all else fails, get a bigger hammer.

LarryMc

I can't figure out what I have different than you guys.
Cause it never hiccups for me.

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

LarryMc

There's some good news and some bad news.

The good news is that I've duplicated what you guys are seeing and it isn't anything ya'll are doing wrong.
The bad news is I have no idea right now what the source of the problem is.

How I duplicated it was to download the latest version of IWB and install it in a virgin folder.
That got rid of all the stuff I've accumlated over the years in my bin, include, and lib folders.
It wouldn't compile because windowssdk.inc was missing. So I downloaded the May 5, 2011 version on Sapero's installer.

I then compiled the part08 project.
The first time I got the white screen.
I shut it down and recompiled.
When I ran it it would flash on and then close immediately.

I closed the IDE and reopened it
I set the DEBUG flag for the project.
Now when I would compile and run I would get the ton of exception errors AND  there would be different portions of the gages showing each time compiled and reran it.

I think that pretty much covers all the variations everyone has seen.

So, obviously, the tutorial will come to a screeching halt until I can get this resolved.

Thanks to all of you for working with me on it.

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

LarryMc

Would appreciate you guys trying to run the exe and then compile and run the attached WITHOUT debug.

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

RitchieF

Larry  ;D

Both working fine here. Exe and compiled project show all controls and pointers .

Thanks

Richard

LarryMc

Quote from: RitchieF on September 18, 2011, 09:31:43 PM
Larry  ;D

Both working fine here. Exe and compiled project show all controls and pointers .

Thanks

Richard

No, thank you guys

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

whitenite1

Larry..
  Download the new and improved version. Ran it, and saw beautiful gauges with moving red dials. Great work..  So, what was wrong with the other version?

whitenite

billhsln

Downloaded b version and original EXE works and after recompiling, it still works.

Very impressive.

Bill
When all else fails, get a bigger hammer.

Pip1957

Larry

no flags set
win7 64bit
latest iwb

cct7 works fine.
cct8 blank window with the menu, no compile errors.

downloaded your latest and all worked ok.

Brian

Larry,

The CCT.exe runs fine, but when I try to compile, I get this:

Compiling...
CCT_lib-Part08.iwb
File: C:\Documents and Settings\All Users\Documents\IWBasic\projects\cct\CCT_lib-Part08.iwb (117) Error: Undefined function RGBA
File: C:\Documents and Settings\All Users\Documents\IWBasic\projects\cct\CCT_lib-Part08.iwb (118) Error: Undefined function RGBA
File: C:\Documents and Settings\All Users\Documents\IWBasic\projects\cct\CCT_lib-Part08.iwb (171) Error: Undefined function RGBA
Error(s) in compiling "C:\Documents and Settings\All Users\Documents\IWBasic\projects\cct\CCT_lib-Part08.iwb"
CCT_test-Part08.iwb
Build Failed

Also made sure I have gdiplus.lib in there

Brian (Win XP SP3)

LarryMc

Brian,
The RGBA function is a function built into IWBasic's 3D lib and has been a part of IWB/EB ever since the 3D library was added..
Has nothing to do with anything I'm doing.
I don't know what to tell you other than to reinstall the latest version of IWB.

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

LarryMc

Need one or more tester's for that attached exe file
Due to the other problems I had I want to make sure this works before I go explaining the code in the tutorial.

If you run it you should see the 10 gages with grey boxes around them on a white window.
If you depress your left mousebutton while inside a gage the box will turn red.
When you let the mouse button up the red will turn white to match the window color.
No more grey box.

This will be used to demonstrate how events that happen to our control(mouse click) is reported to the parent window.

Thanks in advance for the help.

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Rock Ridge Farm (Larry)

works for me - Win 7 ultimate
amd triple core 4G mem

Larry