PDA

View Full Version : Scripting in Visual C++ 6 : BindDefault() unknow function



Unregistered
05-24-2002, 09:34 AM
Iíve used the converter in Sybaseís powerbuilder 6.5 and it works fine, and now Iím trying to use it Visual Studio 6. Unfortunately, the documentation in visual C ( or in Borland C) in not big !
My problem is that Visual C does not understand the BindDefault() function.
Here is a portion of code that I use, but nothing happens :

IConverter Converter; // Create Converter Object
IWaveSettings WaveSettings;

//Converter.BindDefault(); // Bind to Object
Converter.abc();
CString s;

s = GetTreeFullPath(m_Tree.m_tree.GetCurrentItem());

Converter.AddFromFile(s);
Converter.SetToFolder("C:\\temp");
Converter.GoConversion("Wave",FALSE,TRUE,TRUE,FALSE);


Doctor, what should I do ?

Unregistered
05-28-2002, 03:17 AM
I have to use :

Converter.CreateDispatch("dMCScripting.Converter");

Hope it will help someone ...