Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » C2143 Error on even simple window with just one label? Help? What happened?
icon7.gif  C2143 Error on even simple window with just one label? Help? What happened? [message #32999] Wed, 29 June 2011 16:09 Go to next message
silverx is currently offline  silverx
Messages: 62
Registered: March 2011
Member
I started getting an error message, so I went back and just created a SimpleWindow, program, did a clean, and I still get the error, when I try and change the label to something else in the code. This has worked before.

I have attached the program as well. Any clue as how I can get this back working again? I get an error on the SimpleWindow.lblA = "abc"; line.

Here is the compile information:

----- CtrlLib ( GUI SSE2 MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (1 / 10)
BLITZ: LabelBase.cpp Button.cpp Switch.cpp EditField.cpp Text.cpp LineEdit.cpp DocEdit.cpp ScrollBar.cpp HeaderCtrl.cpp ArrayCtrl.cpp Mu
ltiButton.cpp PopupTable.cpp DropList.cpp DropChoice.cpp Static.cpp Splitter.cpp FrameSplitter.cpp SliderCtrl.cpp ColumnList.cpp Pro
gress.cpp AKeys.cpp RichTextView.cpp Prompt.cpp Help.cpp DateTimeCtrl.cpp Bar.cpp MenuItem.cpp MenuBar.cpp ToolButton.cpp ToolBar.cp
p ToolTip.cpp StatusBar.cpp TabCtrl.cpp TreeCtrl.cpp DropTree.cpp DlgColor.cpp ColorPopup.cpp ColorPusher.cpp FileList.cpp FileSel.c
pp FileSelUtil.cpp PrinterJob.cpp Windows.cpp Win32.cpp TrayIconWin32.cpp TrayIconX11.cpp CtrlUtil.cpp Update.cpp LNGCtrl.cpp Ch.cpp
ChGtk.cpp
$blitz.cpp
----- CtrlCore ( GUI SSE2 MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (2 / 10)
BLITZ: DrawWin32.cpp DrawOpWin32.cpp DrawTextWin32.cpp ImageWin32.cpp MetaFile.cpp DrawX11.cpp DrawOpX11.cpp DrawTextX11.cpp ImageX11.cp
p BackDraw.cpp SystemDraw.cpp DrawUtil.cpp Frame.cpp CtrlMt.cpp Ctrl.cpp CtrlChild.cpp CtrlPos.cpp CtrlDraw.cpp CtrlMouse.cpp CtrlKb
d.cpp CtrlTimer.cpp CtrlClip.cpp LocalLoop.cpp Xmlize.cpp TopWindow.cpp Win32Wnd.cpp Win32Clip.cpp Win32DnD.cpp Win32Proc.cpp TopWin
32.cpp DHCtrl.cpp X11Wnd.cpp X11Proc.cpp TopWinX11.cpp X11Clip.cpp X11DnD.cpp X11ImgClip.cpp X11App.cpp X11DHCtrl.cpp ParseRTF.cpp E
ncodeRTF.cpp
ChWin32.cpp
CtrlLib.icpp
CtrlLib: 53 file(s) built in (0:05.49), 103 msecs / file, duration = 5959 msecs, parallelization 100%
----- Draw ( GUI SSE2 MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (3 / 10)
BLITZ: DrawLock.cpp Font.cpp FontCR.cpp FontWin32.cpp FontFc.cpp Draw.cpp DrawText.cpp DrawData.cpp Drawing.cpp ImageAnyDraw.cpp DrawUti
l.cpp DrawTextUtil.cpp Display.cpp Image.cpp ImageBlit.cpp RasterFormat.cpp RasterWrite.cpp Palette.cpp Raster.cpp RasterEncoder.cpp
ImageOp.cpp ImageChOp.cpp ImageScale.cpp MakeCache.cpp DrawRasterData.cpp Cham.cpp SSettings.cpp
CtrlCore.icpp
----- plugin/bmp ( GUI SSE2 MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (4 / 10)
BLITZ: Bmp.cpp BmpWrite.cpp Icon.cpp
$blitz.cpp
----- RichText ( GUI SSE2 MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (5 / 10)
BLITZ: Object.cpp ParaData.cpp ParaType.cpp ParaPaint.cpp TxtData.cpp TxtPaint.cpp TxtOp.cpp Format.cpp TableCell.cpp TableLayout.cpp Ta
blePaint.cpp TableData.cpp TextPaint.cpp TextStyle.cpp TextData.cpp TextTable.cpp EncodeQtf.cpp ParseQtf.cpp EncodeHTML.cpp Util.cpp

$blitz.cpp
CtrlCore: 42 file(s) built in (0:02.41), 57 msecs / file, duration = 5819 msecs, parallelization 100%
$blitz.cpp
Draw: 27 file(s) built in (0:01.15), 42 msecs / file, duration = 4150 msecs, parallelization 100%
$blitz.cpp
----- Core ( GUI SSE2 MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (6 / 10)
BLITZ: Cpu.cpp Mt.cpp sheap.cpp String.cpp WString.cpp StrUtil.cpp Bom.cpp Path.cpp NetNode.cpp App.cpp Stream.cpp BlockStream.cpp Log.c
pp Debug.cpp Util.cpp mathutil.cpp Random.cpp LocalProcess.cpp Vcont.cpp Hash.cpp Callback.cpp TimeDate.cpp Value.cpp Format.cpp Con
vert.cpp Color.cpp Gtypes.cpp t.cpp Lang.cpp LangInfo.cpp parser.cpp XML.cpp Xmlize.cpp Uuid.cpp Ptr.cpp z.cpp Topic.cpp CoWork.cpp
MD5.cpp SHA1.cpp Dli.cpp Win32Util.cpp
BmpReg.icpp
plugin/bmp: 4 file(s) built in (0:01.27), 319 msecs / file, duration = 3448 msecs, parallelization 100%
RichImage.icpp
RichText: 21 file(s) built in (0:02.51), 119 msecs / file, duration = 3619 msecs, parallelization 100%
OL_Set.cpp
heaputil.cpp
lheap.cpp
$blitz.cpp
heapdbg.cpp
----- plugin/z ( GUI SSE2 MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (7 / 10)
CharSet.cpp
heap.cpp
adler32.c
compress.c
crc32.c
deflate.c
gzio.c
C:\upp\uppsrc\plugin\z\lib\gzio.c(131) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s inste
ad. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\string.h(74) : see declaration of 'strcpy'
C:\upp\uppsrc\plugin\z\lib\gzio.c(181) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead
. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\stdio.h(237) : see declaration of 'fopen'
C:\upp\uppsrc\plugin\z\lib\gzio.c(226) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s ins
tead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\stdio.h(366) : see declaration of 'sprintf'
C:\upp\uppsrc\plugin\z\lib\gzio.c(627) : warning C4996: 'vsnprintf': This function or variable may be unsafe. Consider using vsnprintf_s
instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\stdio.h(350) : see declaration of 'vsnprintf'
C:\upp\uppsrc\plugin\z\lib\gzio.c(1001) : warning C4996: 'strerror': This function or variable may be unsafe. Consider using strerror_s
instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\string.h(126) : see declaration of 'strerror'
C:\upp\uppsrc\plugin\z\lib\gzio.c(1008) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s inst
ead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\string.h(74) : see declaration of 'strcpy'
C:\upp\uppsrc\plugin\z\lib\gzio.c(1009) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s inst
ead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\string.h(79) : see declaration of 'strcat'
C:\upp\uppsrc\plugin\z\lib\gzio.c(1010) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s inst
ead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\string.h(79) : see declaration of 'strcat'
infback.c
inffast.c
inflate.c
inftrees.c
Core: 48 file(s) built in (0:05.09), 106 msecs / file, duration = 7815 msecs, parallelization 100%
trees.c
----- plugin/png ( GUI SSE2 MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (8 / 10)
uncompr.c
zutil.c
plugin/z: 12 file(s) built in (0:00.57), 48 msecs / file, duration = 1420 msecs, parallelization 100%
pngupp.cpp
----- plugin/gif ( GUI SSE2 MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (9 / 10)
pnglib.c
c:\upp\uppsrc\plugin\png\lib/png.c(683) : warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snprintf_
s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\stdio.h(358) : see declaration of '_snprintf'
c:\upp\uppsrc\plugin\png\lib/pngerror.c(168) : warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy
_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\string.h(157) : see declaration of 'strncpy'
c:\upp\uppsrc\plugin\png\lib/pngread.c(116) : warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snpri
ntf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\stdio.h(358) : see declaration of '_snprintf'
c:\upp\uppsrc\plugin\png\lib/pngread.c(121) : warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snpri
ntf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\stdio.h(358) : see declaration of '_snprintf'
c:\upp\uppsrc\plugin\png\lib/pngread.c(198) : warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snpri
ntf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\stdio.h(358) : see declaration of '_snprintf'
c:\upp\uppsrc\plugin\png\lib/pngread.c(203) : warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snpri
ntf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\stdio.h(358) : see declaration of '_snprintf'
c:\upp\uppsrc\plugin\png\lib/pngrtran.c(1269) : warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snp
rintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\stdio.h(358) : see declaration of '_snprintf'
c:\upp\uppsrc\plugin\png\lib/pngrutil.c(2227) : warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncp
y_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\string.h(157) : see declaration of 'strncpy'
c:\upp\uppsrc\plugin\png\lib/pngset.c(693) : warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s
instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\string.h(157) : see declaration of 'strncpy'
c:\upp\uppsrc\plugin\png\lib/pngset.c(984) : warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s
instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\string.h(157) : see declaration of 'strncpy'
c:\upp\uppsrc\plugin\png\lib/pngset.c(1042) : warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_
s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\string.h(157) : see declaration of 'strncpy'
c:\upp\uppsrc\plugin\png\lib/pngwrite.c(417) : warning C4996: 'gmtime': This function or variable may be unsafe. Consider using gmtime_s
instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\time.inl(101) : see declaration of 'gmtime'
c:\upp\uppsrc\plugin\png\lib/pngwrite.c(509) : warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snpr
intf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\stdio.h(358) : see declaration of '_snprintf'
c:\upp\uppsrc\plugin\png\lib/pngwrite.c(514) : warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snpr
intf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\stdio.h(358) : see declaration of '_snprintf'
c:\upp\uppsrc\plugin\png\lib/pngwrite.c(581) : warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snpr
intf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\stdio.h(358) : see declaration of '_snprintf'
c:\upp\uppsrc\plugin\png\lib/pngwrite.c(586) : warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snpr
intf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\stdio.h(358) : see declaration of '_snprintf'
c:\upp\uppsrc\plugin\png\lib/pngwutil.c(185) : warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snpr
intf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\stdio.h(358) : see declaration of '_snprintf'
c:\upp\uppsrc\plugin\png\lib/pngwutil.c(1241) : warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snp
rintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\stdio.h(358) : see declaration of '_snprintf'
c:\upp\uppsrc\plugin\png\lib/pngwutil.c(1626) : warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snp
rintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\stdio.h(358) : see declaration of '_snprintf'
c:\upp\uppsrc\plugin\png\lib/pngwutil.c(1628) : warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snp
rintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Vc\Include\stdio.h(358) : see declaration of '_snprintf'
gifupp.cpp
----- SimpleWindow ( GUI SSE2 MAIN MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (10 / 10)
pngreg.icpp
plugin/png: 3 file(s) built in (0:01.48), 494 msecs / file, duration = 1732 msecs, parallelization 100%
main.cpp
C:\MyApps\SimpleWindow\main.cpp(Cool : error C2143: syntax error : missing ';' before '.'
C:\MyApps\SimpleWindow\main.cpp(Cool : error C2143: syntax error : missing ';' before '.'
gif.icpp
plugin/gif: 2 file(s) built in (0:01.37), 688 msecs / file, duration = 2824 msecs, parallelization 100%
SimpleWindow: 1 file(s) built in (0:01.68), 1689 msecs / file, duration = 2964 msecs, parallelization 14%

There were errors. (0:23.85)

[Updated on: Wed, 29 June 2011 20:58]

Report message to a moderator

Re: C2143 Error on even simple window with just one label? Help? What happened? [message #33000 is a reply to message #32999] Wed, 29 June 2011 16:22 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
this->lblA = "abc";
?
"SimpleWindow" inside SimpleWindow::SimpleWindow() function has no meaning, it's just name of class, and there's no such variable instance at that point.
icon8.gif  Re: C2143 Error on even simple window with just one label? Help? What happened? [message #33001 is a reply to message #33000] Wed, 29 June 2011 16:36 Go to previous messageGo to next message
silverx is currently offline  silverx
Messages: 62
Registered: March 2011
Member
I added a button, and then did the SimpleWindow.lblA = "abc"; and I get the error again.

Attached is the changes, and I still get the error message.

Re: C2143 Error on even simple window with just one label? Help? What happened? [message #33002 is a reply to message #33001] Wed, 29 June 2011 18:11 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1182
Registered: March 2006
Location: Italy
Senior Contributor
silverx wrote on Wed, 29 June 2011 16:36

I added a button, and then did the SimpleWindow.lblA = "abc"; and I get the error again.

Attached is the changes, and I still get the error message.




Just use

lblA ="abc";
or
lblA.SetText("abc");

without SimpleWindow. in front of control.

Regards,
Luigi
Re: C2143 Error on even simple window with just one label? Help? What happened? [message #33005 is a reply to message #33002] Wed, 29 June 2011 20:57 Go to previous message
silverx is currently offline  silverx
Messages: 62
Registered: March 2011
Member
That worked. thanks
Previous Topic: Warning Heap memory leak when closing program
Next Topic: Compile Error with NOGTK flag
Goto Forum:
  


Current Time: Fri Mar 29 16:36:13 CET 2024

Total time taken to generate the page: 0.01689 seconds