Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

reference variable

200 views
Skip to first unread message

Steve DeWitt

unread,
Jul 21, 2003, 1:17:38 PM7/21/03
to
I have the following function of_internetopen

Ulong ll_rc
String ls_null
Application la_app

SetNull( ls_null)
la_app = GetApplication()
ll_rc = InternetOpenA( la_app.AppName, &
ai_accesstype, ls_null, ls_null, 0 )

iul_errorcode = GetLastError()
RETURN ll_rc

the error I get is 0082:reference argument must be a non-constant and
non-readonly variable reference

why would this happen? I am not passing in any arguments.

Steve DeWitt

unread,
Jul 21, 2003, 1:47:09 PM7/21/03
to
that did the trick
thanks

Tyler Craft wrote:
> Try to replace


>
> la_app = GetApplication()
> ll_rc = InternetOpenA( la_app.AppName, &
> ai_accesstype, ls_null, ls_null, 0 )
>

> with
>
> la_app = GetApplication()
> ls_appName = la_app.AppName
> ll_rc = InternetOpenA( ls_appName, &


> ai_accesstype, ls_null, ls_null, 0 )
>

> Tyler
>
>
> "Steve DeWitt" <everythi...@hotmail.com> wrote in message
> news:OLUMe06TDHA.349@forums-2-dub...

Tyler Craft

unread,
Jul 21, 2003, 1:35:45 PM7/21/03
to
Try to replace

la_app = GetApplication()
ll_rc = InternetOpenA( la_app.AppName, &
ai_accesstype, ls_null, ls_null, 0 )

with

la_app = GetApplication()
ls_appName = la_app.AppName

ll_rc = InternetOpenA( ls_appName, &


ai_accesstype, ls_null, ls_null, 0 )

Tyler


"Steve DeWitt" <everythi...@hotmail.com> wrote in message
news:OLUMe06TDHA.349@forums-2-dub...

0 new messages