|
-
Sep 1st, 2000, 04:38 AM
#1
Thread Starter
Member
I installed VB5 at home and transferred a personal project I started at work, the version of VB is exacliy the same.
I already had my share of porting problems (OCXs won't load... usual stuff).
I finally made my project to run as it did at work, and it did quite well... two times.
Then, don't know why, I started to get an error on this line:
lvwList.Columnheaders(1).Tag = "+"
Where lvwList is a ListView control, and I always used the tag to mark which column the list was sorted, and in which direction.
Visual Basic now says the type of the object property is not correct!
If I check the property with Control Expressions (I think the name is correct, I'm not using the American version) is says the type of lvwList.Columnheaders(1).Tag is Variant/Integer instead of Variant/String!
This really baffles me!
If anybody can help me, It would be really, really appreciated!
-
Sep 1st, 2000, 04:59 AM
#2
Frenzied Member
You may find that at work you are using the new updated versions of the common controls - Are both PCs running the same version of Windows / Internet Explorer?
Has the PC at work ever had a VB6 program installed?
Look in the components list of the project at work and see which components are ticked - are they Windows Common Controls 6.0 or Windows Common Control 5.0 ?
The 6.0 controls shipped with VB6, Win'98 and IE5 (I think)
When you loaded VB5 on your home machine and installed the project it failed to find MSCOMCTL (v6.0) so you had to point them towards COMCTL32 (v5.0). There aren't many differences between the two but you may have just found one.
Try copying MSCOMCTL.* and MSCOMCT2.* from the work PC and put them on your home PC. You will then need to change the project to look at the v6.0 components and not the v5.0 ones.
Let me know how you get on.
'Buzby'
Visual Basic Developer
"I'm moving to Theory. Everything works there."
-
Sep 1st, 2000, 07:39 AM
#3
Thread Starter
Member
Unfortunately I changed job (thhat's why I took my project with me), so I can't check out what I recall.
Actually, at work I had Win 95 SP1, while at home I have Win98, so my home cumputer is more updated than the other. None of the computers ever had a VB installed.
When I first loaded my project at home it refused to start at all (actually, the additional controls such as ListView) disappeared or were magically transformed in PictureBoxes!),
so I ended creating a brand new project, manually adding the components and adding all the forms of the old project.
So I'm sure I have now Common Controls 5.0 in my project (both were listed).
I also took the copies of the COMCTL32.OCX from work, and I tried to point the project to them but with no result.
I'm gonna try some other thing, and I'll let you know.
Pardon me one more question: you told me to copy COMCTL32.*
Does it mean I need other files besides COMCTL32.OCX to run my project?
Thank you very much for your kind advice!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|