Click to See Complete Forum and Search --> : Unusable ocx, dll created with VB


Zdenek
February 7th, 2000, 05:31 AM
My colleague created a ocx and dll with Visual Basic 6. He used some Events too.

If I add OCX: Project -> Add to project -> Components and controls -> ActiveX,
VisualC studio create a class with methods and properties, but it does not imports the events.

If I add DLL: View -> Class wizard -> Add class -> From a type library,
VisualC studio create a class with methods and properties, but it does not imports the events.

Events do not have complicate list of types. (e.g. Sub Progress())

What is the problem? Please.

Thank you

Zdenek

February 7th, 2000, 10:12 AM
Have you looked in the class wizard? They may not be mentioned in the .c, .cpp and .h files until you include them there. Just MS'es oddities.

Zdenek
February 7th, 2000, 11:25 AM
Thank you. I can see events of a OCX now. But DLL do not work properly still. E.g:

// Operations
public:
// method 'Progress' not emitted because of invalid return type or parameter type
// method 'CopyFile' not emitted because of invalid return type or parameter type
// method 'CopyDone' not emitted because of invalid return type or parameter type
// method 'SendError' not emitted because of invalid return type or parameter type
// method 'DeleteDone' not emitted because of invalid return type or parameter type

But my dll have not wrong parametres and types :-(

Zdenek