If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > C declaration I just dont understand

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-01-04, 12:22
JamesAvery22 JamesAvery22 is offline
Registered User
 
Join Date: Jan 2004
Posts: 70
C declaration I just dont understand

static LSXUniString gCommonErrors[LAST_COMMON_ERROR - FIRST_COMMON_ERROR + 1]=
{
L"LSXCommon:Array of objects expected.",
L"This array must contain objects all of or derived from type: ",
L"LSXCommonate expected.",
L"LSXCommon:Boolean expected.",
L"LSXCommontring array properties must be set to dynamic length arrays of dynamic length strings.",
};

Im guessing that means depending on what LAST_COMMON_ERROR - FIRST_COMMON_ERROR + 1 comes up with (pretty sure it will always be 1-5) it will get the corresponding message. So if LAST_COMMON_ERROR - FIRST_COMMON_ERROR + 1 = 2 it gets "This array must contain objects all of or derived from type: "

but what is the syntax?? I've never seen the L"Some String" thing. I need to cast that string to another type of string and cant figure out the syntax, it keeps kicking back errors if I change it in any way.
Reply With Quote
  #2 (permalink)  
Old 04-01-04, 16:46
JamesAvery22 JamesAvery22 is offline
Registered User
 
Join Date: Jan 2004
Posts: 70
For anyone curious the "L" was a datatype that I cant look at. It was defined in some comments in another field. Its some sort of string it was casting it to.

Sorry for the random post.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On