Advertisement

06.20.2008 at 04:42PM PDT, ID: 23503898
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.8

Converting some C++ definitions to VB6

Asked by Bobeo in Visual Basic Programming

Hi guys,

I've been given the following code and need to get it to work in VB6. I don't necessarily need them all doing, but if you could advise me on what to replace with what to get the correct definitions in VB6 I'd really appreciate it.

Cheers,

BobStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
typedef struct MsgsBlock
	{
	int				StructSize;
	int				ReturnCode;
	int				Flags;							// ProtData flags:	BIT0 = trial, BIT1 = non-web
	char			ProductKey[(MAX_PRODKEY_LEN+3)&0xfc]; // 30 bytes (16+13+1) rounded up to multiple of 4 bytes = 32
	int				NextRefresh;
	int				LocalExecsLeft;
	int				Expiry;	
	int				Features;
	int				MaxNetUsers;						// -1 = no limit
	int				WebExecsLeft;						// -1 = no limit
	char			ProductCode[MAX_PRODCODE_LEN+1];	// 17 bytes
	char			ExtendedError[32];
	} MSGSBLOCK;
 
#define	COMPANY_OPTIONAL	1
#define	COMPANY_REQUIRED	2
#define	NAME_OPTIONAL		4
#define	NAME_REQUIRED		8
#define	HOUSE_OPTIONAL		16
#define	HOUSE_REQUIRED		32
#define	STREET_OPTIONAL		64
#define	STREET_REQUIRED		128
#define	TOWN_OPTIONAL		256
#define	TOWN_REQUIRED		0x200
#define	COUNTY_OPTIONAL		0x400
#define	COUNTY_REQUIRED		0x800
#define	POSTCODE_OPTIONAL	0x1000
#define	POSTCODE_REQUIRED	0x2000
#define	COUNTRY_OPTIONAL	0x4000
#define	COUNTRY_REQUIRED	0x8000
#define	PHONE_OPTIONAL		0x10000
#define	PHONE_REQUIRED		0x20000
#define	EMAIL_OPTIONAL		0x40000
#define	EMAIL_REQUIRED		0x80000
#define EMAIL_VERIFY		0x100000		// Email required and verification required
 
 
typedef struct MsgsCountry
{
char	Code[4];
char	Name[40];
} MSGS_COUNTRY;
 
typedef struct MsgsRegInfoTag
	{
	char Name[51];
	char Company[51];
	char Address1[51];
	char Address2[51];
	char Address3[51];
	char Address4[51];
	char PostCode[11];
	char Country[4];
	char Tel[21];
	char email[51];
	} MSGS_REGINFO;
[+][-]06.20.2008 at 09:32PM PDT, ID: 21836344

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Visual Basic Programming
Sign Up Now!
Solution Provided By: aikimark
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628