Click here to Skip to main content
15,312,009 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello its me again, on to a new fire, and thanks again for your help.

I receive declaration expected errors using the following code:

VB
Private WithEvents mConnection As clsConnection
Attribute mConnection.VB_VarHelpID = -1
Private WithEvents mTimer As clsTimer
Attribute mTimer.VB_VarHelpID = -1


and

VB
VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "clsRegistry"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_Description = "Allows access to the {application name withheld} registry entrys"
Attribute VB_Ext_KEY = "SavedWithClassBuilder6" ,"Yes"
Attribute VB_Ext_KEY = "Top_Level" ,"Yes"
Posted
Comments
Dave Kreskowiak 20-Aug-12 13:39pm
   
Your tags say VB.NET, but this looks like VB6 code. The two are completely different animals. So, which is it?
Christian Graus 20-Aug-12 14:45pm
   
Don't do VB6. Life is too short
Sergey Alexandrovich Kryukov 20-Aug-12 17:05pm
   
5++! :-)
Is it your own saying? If so, I would like to quote it sometimes, with proper attribution. May I?
--SA
Christian Graus 20-Aug-12 17:10pm
   
Yes, that was off the cuff. By all means, use it :-) I've had to convert a lot of VB6 code to .NEt of late, I am not feeling the love, at all.
Sergey Alexandrovich Kryukov 20-Aug-12 17:33pm
   
Hm. Really sorry for you and your wasted life... :-( :-)
Thank you very much,
--SA
Sergey Alexandrovich Kryukov 20-Aug-12 17:40pm
   
By the way, I have a document referencing answers to be referenced/re-used while sending advice for CodeProject; and recently added a new "Adage" file to collect just sayings. I I already used a number of those, mostly of my own (like some in my articles), but did not collect them so far. So the first one was the saying I came across only recently:

"Programmer is a professional converter of customer's hallucinations into a formal system."

Not 100% true but pretty catchy.

Cheers,
--SA
jonsey29847 20-Aug-12 16:07pm
   
I am not sure, we are trying to build this 'stuff', and keep running into a wall. Some of the source is .NET (ours), and some is VB6 and .NET.

Regardless I have to make it work, and am looking for other sources that will not give us these problems, but...
Sergey Alexandrovich Kryukov 20-Aug-12 17:08pm
   
You might not be sure what you are going to do, but how can you be unsure about the code which is already written, especially in response to a direct question?
I cannot believe you really don't know, otherwise I would have to remove this question as off-topic -- this forum is for software developers... :-)
--SA

1 solution

If you don't know what this code is written in you're in deep sh*t. I CAN tell you, unless you're got some really funky scripting in your app going on that this is not VB.NET code.

If LOOKS like VB6 code that the VB6 form designer used to create. There is no direct conversion to VB.NET. You just scrap this and layout your form in VB.NET as normal.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900