Hi All,
i want to create a ATL com Object, and add this object as a reference to my VB application.
my ATL com should contain 3 parametes. two are input parameters of type string, and an out put parameter of type long.
when i try to pass strings as parameters, the .lib file is being crated and i am able to add it as a reference to my VB application also. but when i try to run the VB application, an error is coming like "Memory out of space".
i am thinking that the strings what i am passing from vb application are not compatible with the parameters in ATL Com.
in ATL com the method is as follows.
please let me know how to pass string parameters.Code:STDMETHODIMP CSampleFun::Method1(char *S1, char *S2, long *n) { // TODO: Add your implementation code here *n=40; return S_OK; }
Thanks in advance...




Reply With Quote