PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: #Define Unicode (CSQLite3.inc)  (Read 228 times)

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 9206
  • Windows 10
    • PlanetSquires Software
#Define Unicode (CSQLite3.inc)
« on: March 28, 2020, 08:16:48 AM »

Hi Jose, hope you're doing okay especially given everything that Spain is going through right now with the virus.

It seems that CSQLite3.inc is the only Afx code file that explicitly defines the UNICODE equate. I noticed that it leads to a Duplicate Definition error in one of my older applications when I compile it with my new WinFBE visual designer code generation (which also outputs #define unicode). Is it necessary to have that define in the file? Maybe it can be removed?

I do this in WinFormsX in order to avoid duplicate definition errors when compiling:

#IfnDef UNICODE
   #Define UNICODE
#EndIf   
#IfnDef _WIN32_WINNT
   #Define _WIN32_WINNT &h0602 
#EndIf

Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Josť Roca

  • Moderator
  • Guru Member
  • *****
  • Posts: 3255
Re: #Define Unicode (CSQLite3.inc)
« Reply #1 on: March 28, 2020, 09:17:07 AM »

#define unicode is not needed at all. I have removed it.

I'm fine, thanks very much for your interest.

What I'm having problems is reading the posts of this forum. It time outs often.

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 9206
  • Windows 10
    • PlanetSquires Software
Re: #Define Unicode (CSQLite3.inc)
« Reply #2 on: March 28, 2020, 10:08:56 AM »

Session times out is not an error that I've seen in a very long time. Maybe try logging out, delete cookies, and then login using this link:
https://www.planetsquires.com/protect/forum/index.php?action=login

Also, maybe update your browser shortcut to the forum to:
https://www.planetsquires.com/protect/forum/index.php

(Try to use the secure https:// links rather than http: because I configured the server to redirect to secure links and maybe that could be interfering with your session)
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Josť Roca

  • Moderator
  • Guru Member
  • *****
  • Posts: 3255
Re: #Define Unicode (CSQLite3.inc)
« Reply #3 on: March 28, 2020, 11:07:55 AM »

I'm using the correct link and all has worked fine until yesterday. It not only happens when trying lo log, but also when trying to read posts or posting, and it happens with Google Chrome, Microsoft Edge and Firexox. I don't have problems with any other web site.

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 9206
  • Windows 10
    • PlanetSquires Software
Re: #Define Unicode (CSQLite3.inc)
« Reply #4 on: March 28, 2020, 11:22:24 AM »

That's very strange because I have done nothing to the website, server, or forum in several months.
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Bruce Huber

  • Little Newbie
  • *
  • Posts: 29
Re: #Define Unicode (CSQLite3.inc)
« Reply #5 on: March 28, 2020, 04:42:38 PM »

Note: I was having the same site timeout problems yesterday, Paul.... but it's not just PlanetSquires... seeing it happen everywhere at different times. Covid-19 work-at-home is killing the internet at times.
Logged

Josť Roca

  • Moderator
  • Guru Member
  • *****
  • Posts: 3255
Re: #Define Unicode (CSQLite3.inc)
« Reply #6 on: March 28, 2020, 10:49:11 PM »

All of a sudden, it has started to work fine again. Let's hope it lasts.