HSPポータル
サイトマップ お問い合わせ


HSPTV!掲示板


未解決 解決 停止 削除要請

2007
0602
なまこエラーが起きる4未解決


なまこ

リンク

2007/6/2(Sat) 19:27:05|NO.8722


#include "user32.as" #define GWL_STYLE (-16) #define BS_ICON 0x00000040 #define BM_SETIMAGE 0x00F7 #define WS_CHILD 0x40000000 #define WS_VISIBLE 0x10000000 #define IMAGE_ICON 1 #define IDI_APPLICATION 32512 #uselib "shell32" #func global SHGetFileInfo "SHGetFileInfo" sptr, int, int, int, int #uselib "user32.dll" #cfunc FindWindow "FindWindowA" sptr,sptr #func GetWindowRect "GetWindowRect" sptr,sptr hwnd_=FindWindow("Shell_TrayWnd",0) dim lpRect,4
これを実行すると
#HSP script preprocessor ver3.0a / onion software 1997-2005(c)
#Source file not found.[userdef.as]
#Error:symbol in use in line 12 [hsptmp]
#Fatal error reported.
と出てきてしまいます。

#include "user32.as" #define GWL_STYLE (-16) #define BS_ICON 0x00000040 #define BM_SETIMAGE 0x00F7 #define WS_CHILD 0x40000000 #define WS_VISIBLE 0x10000000 #define IMAGE_ICON 1 #define IDI_APPLICATION 32512 #uselib "shell32" #func global SHGetFileInfo "SHGetFileInfo" sptr, int, int, int, int #uselib "user32.dll"


#uselib "user32.dll" #cfunc FindWindow "FindWindowA" sptr,sptr #func GetWindowRect "GetWindowRect" sptr,sptr hwnd_=FindWindow("Shell_TrayWnd",0) dim lpRect,4
に分けるとちゃんと実行できるのに。何ででしょう・・・



この記事に返信する


名無し

リンク

2007/6/2(Sat) 20:16:57|NO.8724

命令だ

自で調べて、原因を調べ報告せよ



Drip

リンク

2007/6/2(Sat) 20:58:41|NO.8726

Dripです。

 なまこさん、こんにちは。
>分けるとちゃんと実行できるのに。何ででしょう・・・
簡単な理由です。FindWindowが2回定義されているため、

#Error:symbol in use in line 12 [hsptmp] (12行目のシンボル(FindWindow)はすでに使われている!)
というエラーが出ます。

 提示されたスクリプトはどこかのサンプルからコピーして組み合わせ、
そのまま使用しているのではないでしょうか?
スクリプトを一文一文理解していけば、なまこさんでもすぐに原因が
突き止められると思います。がんばってくださいね。



PPPP

リンク

2007/6/2(Sat) 20:59:35|NO.8728

一部のユーザーが ここを盛り上げようと 自演してんの?

質問の仕方がなんか似てるよね



f

リンク

2007/7/7(Sat) 02:33:45|NO.9313

age



ONION software Copyright 1997-2023(c) All rights reserved.