Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#993 closed Bug (No Bug)

_WinAPI_CreateWindowEx: Cannot find window class

Reported by: PSandu.Ro Owned by:
Milestone: Component: AutoIt
Version: 3.3.1.0 Severity: None
Keywords: Cc:

Description (last modified by Valik)

hi,
with 3.3.0.0 everything is ok
only with 3.3.1.0 show me this error.

Func Targetare_Planificare()
   $buffer_filtre_targetare_planificare = ''
   $main_gui_position = WinGetPos($main_gui)
   WinMove($main_gui_title, "", (@DesktopWidth - $main_gui_position[2]) / 2, (@DesktopHeight - $main_gui_position[3]) / 2, $main_gui_width, $main_gui_height, 1)
   Local $main_pos = "", $minimize_button = ""
   $main_pos = WinGetClientSize($main_gui_title)
   $targetare_planificare_client_win = GUICreate($targetare_planificare_client_title, $main_pos[0], $main_pos[1], -2, 0, $ws_caption + $ws_sysmenu, $ws_ex_toolwindow, $main_gui)
   GUISetOnEvent($gui_event_close, "Exit_Targetare_Planificare_Client")
   DllCall("user32.dll", "int", "SetParent", "hwnd", $targetare_planificare_client_win, "hwnd", $main_gui)
   GUIRegisterMsg($wm_nchittest, "GUI_Lock_2")
   $listare_targetare_planificare_client = GUICtrlCreateListView("ID|Nume|Prenume|Telefon|E-mail|Data Nastere|Judet|Oras|Titlu|Functie|Specialitate_1|Specialitate_2|Specialitate_3|Institutie_1|Institutie_2|Institutie_3|Rank_General|Rank_Romastru|Frecventa|Targetat|Planificat|Profil|Rep.Medical", 5, 5, $main_pos[0] - 10, $main_pos[1] - 10, $lvs_singlesel + $lvs_nosortheader + $lvs_showselalways, $lvs_ex_fullrowselect + $ws_ex_clientedge)
   $minimize_button = _GUICtrlMenu_GetSystemMenu($targetare_planificare_client_win)
   $listare_targetare_planificare_client_contextual = GUICtrlCreateContextMenu($listare_targetare_planificare_client)
   $listare_targetare_planificare_client_go = GUICtrlCreateMenuItem('Targetare/Planificare', $listare_targetare_planificare_client_contextual)
   GUICtrlSetOnEvent($listare_targetare_planificare_client_go, 'GO_Targetare_Planificare')
   GUICtrlCreateMenuItem("", $listare_targetare_planificare_client_contextual)
   $meniu_contextual_filtrare = GUICtrlCreateMenuItem("Filtrare", $listare_targetare_planificare_client_contextual)
   GUICtrlSetOnEvent($meniu_contextual_filtrare, "Adauga_Filtru_Targetare_Planificare_Client")
   _GUICtrlMenu_EnableMenuItem($minimize_button, $sc_minimize, 1, False)
   _GUICtrlMenu_EnableMenuItem($minimize_button, $sc_restore, 1, False)
   _GUICtrlMenu_EnableMenuItem($minimize_button, $sc_maximize, 1, False)
   GUISetState()
   GUISetState(@SW_MAXIMIZE)
   Adauga_Filtru_Targetare_Planificare_Client()
EndFunc   ;==>Targetare_Planificare

Attachments (0)

Change History (4)

comment:1 Changed 15 years ago by Valik

  • Description modified (diff)

You've been here long enough to know that posting such a long script is not what we want. Maybe you need to review WikiStart?

comment:2 Changed 15 years ago by Valik

  • Resolution set to No Bug
  • Status changed from new to closed

I'm closing this as no bug. The example is non-runnable (Again, you know better to give such a poor example). I see nothing obviously wrong with the example.

comment:3 Changed 15 years ago by Zedna

Just note:

As far as I know _WinAPI_CreateWindowEx() doesn't work on Win9x systems.
So it may be cause of his problem.

comment:4 Changed 15 years ago by Valik

He would never get that far. AutoIt won't even start on non-NT based versions of Windows.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.