Re: Error-- Argument not optional
- From: "Giovanni Dicanio" <giovanni.dicanio@xxxxxxxxxx>
- Date: Thu, 4 Oct 2007 12:12:54 +0200
"Shishir" <cooldude.programmer@xxxxxxxxx> ha scritto nel messaggio
news:1191407867.705795.232150@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I added a new function into the OCX by adding in the header file,
However when i call the function from VB script, it gives an error
"argument not optional"... But there are no arguments in the function.
//in ctrl page
DISP_FUNCTION(CAlmWinCtrl, "Somefn", Somefn, VT_EMPTY, VTS_NONE)
Is this in BEGIN_DISPATCH_MAP/END_DISPATCH_MAP block?
dispidSomefn = 66L,
Is this in the control header file, declared as a public enum inside the
control class?
//in .odl file
[id(66)] void Somefn();
Is this in the "methods:" section of "dispinterface" ?
Is the ID 66 *uniquely* associated to the aforementioned method?
Giovanni
.
- References:
- Error-- Argument not optional
- From: Shishir
- Error-- Argument not optional
- Prev by Date: Re: Owner draw menu does not call DrawItem
- Next by Date: This calculation is just wrong / computer can't count!
- Previous by thread: Error-- Argument not optional
- Next by thread: Pch problem
- Index(es):