Page 1 of 1

vbCrLf

PostPosted: Sat Jun 16, 2012 1:35 pm
by Henning
vbCrLf compiles to: Q7B_ID(""\r\n""). This makes \r\n to not be inside a string.
D:\Program\Q7Basic\Projects\TPanel\gcc\frm_UpgradeFW.cpp:598: error: stray '\' in program

/Henning

Re: vbCrLf

PostPosted: Sat Jun 16, 2012 2:33 pm
by Slowdown
Error here,
vbCrLf.png
vbCrLf.png (10.94 KiB) Viewed 678 times

Had the same error (can't find the code at this moment) and made a workaround.
Code: Select all
Const sdCrLf As String = Chr(10) & Chr(13)
or
Const q7bCrLf As String = "\r\n"

But probably you have done something similar 8-)

Re: vbCrLf

PostPosted: Sat Jun 16, 2012 2:53 pm
by Henning
You guessed it. :lol:

This happened in the latest version! The one prior to that worked. I guess it is a concat problem.
"Some text" & vbCrLf, changed it now but...
Same thing for "Some text" & "\r\n"

/Henning

Re: vbCrLf

PostPosted: Sat Jun 16, 2012 3:36 pm
by Slowdown
hmm, don't know what the problem is but,
Code: Select all
Const q7bCrLf As String = vbCrLf

Resulted in,
Code: Select all
Setting environment for using Microsoft Visual Studio 2008 x86 tools.

   link /LIBPATH:"c:\Q7Basic\Qt\4.8.0\lib" /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /MANIFEST /MANIFESTFILE:"debug\Test_1.intermediate.manifest" /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /OUT:debug\Test_1.exe @D:\Tempory\nm29.tmp

Q7BRuntime.obj : fatal error LNK1183: invalid or corrupt file: extended relocation count 0 less than 65535


:o
(know how to recover from this)