Link to home
Start Free TrialLog in
Avatar of MonNerd
MonNerd

asked on

compiling a visual basic project that uses FarPoint Spread 3.0 on new computer.

Here goes... Not able to compile.Getting errors on the spread control members. Installed spread 3.0.. what do I have to do to make it work..
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Did you duplicate your original development environment?

Can you acutally open the project on your new machine? If so, can you verify that all your references are correct in the project?
Avatar of MonNerd
MonNerd

ASKER

The references are to a common .dll file, Visual basic procedures and so on. In the components section I have referred to Farpoints spread 3.0 control which I copied from Program files to C:\WINNT\system32\spr32x30.ocx..I also changed the path in the VB.ini file to point to this.  Thanks
You'll need to install the Farpoint Spreadsheet on the new machine ... the installer will correctly install the various items needed, and will register all controls correctly. You'd also need to do this for any other components you use, at least any that aren't native to VB.
Avatar of MonNerd

ASKER

I did install the software... After that I opened the project and pointed to the ocx file already registered.  Now I have a ptrctrl of type copymemory called spdworkspace..When the member of this spdworkspace is being accessed, that's when it brings up this error saying " Compiler error.Member not defined"..Thanks
I'm assuming you were able to compile the app your old machine?
Avatar of MonNerd

ASKER

Yes..I have been able to...The readme file says that if I copy over all these ocx files and dll files to another directory then I must change the path in vb.ini file and so I did..I dunno know what to do next..Thanks
Well, yes, but you'd also have to unregister/re-register the .oxc and .dll files so that VB can find them. When the installer installs the Farpoint stuff, it automatically registers these files for you ... I think you'd probably be better off re-installing FarPoint and putting the files where you need them to be. If you want, however, you can unregister by doing this:

regsvr32 "path to the file" /u

then re-register the file in it's new location:

regsvr32 "path to file"

However, I can't quite figure out why you would move registered .dll and .ocx files on your development machine ... typically they are installed in the <root>Program Files section under their own directory on the dev machine.

Avatar of MonNerd

ASKER

I've done everything possible to make it work. Now after  referencing the ocx, I go back in to the components window and try to uncheck the ocx, its supposed to give me a message saying " the control is in use..". But it does not. Why could that be..
Avatar of MonNerd

ASKER

I figured it out... The reason is when you install a custom control application which is already being referenced in a ccustomized application, one has to rebuild the forms containing the custom control...

Moderator, pls. close the question.. No points granted...Thanks
ASKER CERTIFIED SOLUTION
Avatar of GranMod
GranMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial