Using components from other vendors

  • Thread starter Thread starter Roy Chastain
  • Start date Start date
R

Roy Chastain

My boss loves Delphi. End of story. He recently purchased Delphi 8.0 which is a .net version. He has created a component that I
need to use.

We seem to be running into all sorts of problems going both ways. Me giving him components and him giving me components.

I get the following error message when I try to use the control created in Delphi.

"The language for this file does not support the necessary code parsing and generation services. Please ensure the file you are
opening is a member of a project and then try to open the file again."

When he tries to open a control that I create, he gets strange messages about properties and methods having the same name.

Does anyone have any experience with using Delphi created controls?
 
Hi Roy,

Can you send me such a control (DLL file) for test? You can just send me a
very simple control created in Delphi which can reproduce the problem on
your computer. I will check the file to see what I can find.

Thanks,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
When you send me the file, please remove "online" from the
(e-mail address removed).

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
No, I got the boss to produce a simple control (just a form with a button) and it APPEARS to work okay. I got sidetracked on
other issues and did not get to do complete testing. I will try to follow up today. I guess if this one works, I will send you
the other control. It is not TOO much more complicated.
 
Well, I finally have the component working at design time.

I have spent the last 4 hours getting it 'put into' the solution within VS.

I ended up blowing away the project that needed the Delphi component. I removed the component from the Toolbox and everywhere on
my disk.
I then created my project again and added the existing code modules back to it and got all that to compile again.

I then copied the component and the Delphi runtime back to my solution and put a reference to it into the project in question. At
this point things went very haywire again.
My builds would fail only the task list would not show the failure. The Build Output tab would indicate that the 'error starting
build'. I finally discovered that this meant something in the obj/debug directory could not be deleted. I would have to stop VS
and restart it to get things to delete. I went through about 20 iterations of this process.

Next step was to put the component back into the toolbox. Many of the same problems I just described happened again.

When I tried to drag the component to form same thing again.

Anyway have 4 hours 50 restarts of VS. 200 Solutions Rebuilds, countless closing and reopening of the solution and much cussing;
crying and throwing things, I have a solution that compiles with a reference to the Delphi component that was created at design
time.

I doubt that I could do it again and I really doubt that anyone one else is going to want to do either.

BTW. The number numbers above are NOT exaggerations.
 
Hi Roy,

Thank you for the information. I exact the files on my computer and tried
to add it on Toolbox. However, I get the error "Insufficient state to
deserialize the object. More information is needed". Normally, this kind of
error might be caused by some files which are missed on the computer.

I suggest you may check the original project in Delphi to see what
references the project has, and are they all installed on your development
computer. Since a simple project didn't make trouble, the original problem
should be related to the components added into the project.

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
That is just one of the many errors that I got during the process. I will send you the borland.delphi dll. I forgot it. That is
all that is 'needed'.
 
Hi Roy,

It seems the controls didn't make any more trouble on my computer. After I
add the Delphi support file to reference, I can add the controls to toolbox
and compile/run the winform. Currently, I am working with VS.NET 2003 and
Windows server 2003. I suggest you may create a new project to see if it is
your original project cause the trouble.

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Back
Top