IonicWind Software

IWBasic => General Questions => Topic started by: Andy on October 22, 2011, 01:25:43 AM

Title: Script errors
Post by: Andy on October 22, 2011, 01:25:43 AM
Hi,

I was able to disable script error messages when browsing the internet using sapero's code called 'BrowserMakeSilent'.

It works fine in EB but cannot resolve an external called 'MyIOleInPlaceSiteTable' in IW.

Compiling...
IWBASIC2.iwb
File: C:\2\projects\Classes\IWBASIC2.iwb (25) Warning: RETURN value expected.
No Errors

Linking...
IWBasicLinker v1.12 Copyright © 2009,2010 Ionic Wind Software
Unresolved external _MyIOleInPlaceSiteTable
Error: Unresolved extern _MyIOleInPlaceSiteTable
Error(s) in linking C:\2\projects\Classes\IWBASIC2.exe


Can anyone help, or tell me where the MyIOleInPlaceSiteTable external was in EB?

Sent a message to sapero but no reply as yet.

Please help if you can it's driving me crazy!

Attached is the code that worked in EB.

Thanks,
Andy.

Attached is the code
Title: Re: Script errors
Post by: Brian on October 22, 2011, 02:41:43 AM
Andy, I only get one error with this code (don't understand the error), but it
doesn't stop it running. Maybe you can fix the error

Brian
Title: Re: Script errors
Post by: Andy on October 22, 2011, 03:22:09 AM
Hi Brian,

Thanks for trying the code, but it will not run for me, I keep getting this:

Compiling...
silent.iwb
No Errors

Linking...
IWBasicLinker v1.12 Copyright © 2009,2010 Ionic Wind Software
Unresolved external _MyIOleInPlaceSiteTable
Error: Unresolved extern _MyIOleInPlaceSiteTable
Error(s) in linking C:\Users\Anne\AppData\Local\Temp\silent.exe

What error do you get?

The problem for me is 'MyIOleInPlaceSiteTable'.

Not sure about externals, but it must be somewhere in the old EBasic (include file? Library file?)

tried searching for it in EB but cannot find it.

Anybody have any ideas?

Thanks,
Andy.
Title: Re: Script errors
Post by: LarryMc on October 22, 2011, 08:05:46 AM
Compiles fine for me but I am running the latest version of IWB2.

Your linker says:
QuoteLinking...
IWBasicLinker v1.12 Copyright © 2009,2010 Ionic Wind Software

Mine says:
QuoteLinking...
IWBasicLinker v1.11 Copyright © 2011 Ionic Wind Software


MyIOleInPlaceSiteTable is located in iwbbrowser.lib

LarryMc
Title: Re: Script errors
Post by: Brian on October 22, 2011, 10:24:05 AM
Andy,

Sorry, but I should have said that I am using the latest compiler version, 2.095,
and I also get the same Linker message as Larry, v1.11

Brian
Title: Re: Script errors
Post by: Andy on October 23, 2011, 12:11:32 AM
Thanks for the replies,

I downloaded and installed the latest version of IW (compiler version 2.095).

The script program now works but I have a linking error in one of my programs:

No Errors

Linking...
IWBasic Linker v1.11 Copyright © 2011 Ionic Wind Software
Unresolved external __imp__gmtime64
Error: C:\Program Files\iwbdev\iwbdev\libs\disphelper.lib\disphelper.obj - Unresolved extern __imp__gmtime64
Error: C:\Program Files\iwbdev\iwbdev\libs\disphelper.lib\disphelper.obj - Unresolved extern __imp__mktime64
Error: C:\Program Files\iwbdev\iwbdev\libs\disphelper.lib\disphelper.obj - Unresolved extern __imp__localtime64
Warning: unable to open file C:\Program Files\iwbdev\iwbdev\libs\msvcrt.lib
Error(s) in linking C:\Users\Public\Documents\IWBasic\projects\KMSbrowser.exe

I don't get this problem with the Browser_Test2 example so it is in my program.

Can anyone tell me what is going wrong here, I didn't get this error with the previous compiler version.

Basically, can anyone tell me what in my program might be causing the linking problem in the new version?

Thanks,
Andy.
Title: Re: Script errors - fixed
Post by: Andy on October 23, 2011, 11:16:33 PM
Found the problem!

I ran the IWheaders setup program again and installed the latest updates, fixed the problem.

Thanks,
Andy.
:)