Hello,
I'm having some problems with OLE and the use of strings in VBA.
I try to set a string parameter in an OLE connection using a String variable in Pascal, but it errors - there may well be other problems, but if I set the parameter hard it works, but not as a string variable so I'm just wanting to check what type I should beusing in Pascal for a VBA string variable.
So in the code below
NewFileName := PowerPointFilename + FilenamePart;
Label11.caption := NewFileName;
PPServer.ActivePresentation.Slides.Item(i).Shapes.Item(j).LinkFormat.SourceFullName := NewFileName;
if I break point after the first line the variable NewFileName contains a valid text string, 'D:\....etc'.
However going on to the third line it errors with 777E9ABA eb33 jmp 0x777e9aef <ntdll!RtlIsNonEmptyDirectoryReparsePointAllowed+223>
If I hardwire the value to a file string it works ok?
Any thoughts?
Many thanks
Dave