1. No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here.

Is there an example of Drag and Drop. Most other .. No ALL other .. languages have it ?

Direct me to it if it exists please In anticipation ..

Selgor

new topic     » topic index » view message » categorize

2. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

Selgor here.

Is there an example of Drag and Drop. Most other .. No ALL other .. languages have it ?

Direct me to it if it exists please In anticipation ..

There is a demo that demonstrates this. Look at ListTreeView.EXW. The function, lvsort needs to be updated for 4.0. It has a variable named break, which is now a keyword.

Matt

new topic     » goto parent     » topic index » view message » categorize

3. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here. Matt .. I want to Drag and Drop . Drag an icon or file and put it in a specific place. For example put an icon as a shortcut to a programme on the desktop from its original directory (folder). Can't see how the programme you suggest does that. What am I not seeing, doing ??? Thanks for the reply. Need more !.

Selgor.

new topic     » goto parent     » topic index » view message » categorize

4. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

Selgor here. Matt .. I want to Drag and Drop . Drag an icon or file and put it in a specific place. For example put an icon as a shortcut to a programme on the desktop from its original directory (folder). Can't see how the programme you suggest does that. What am I not seeing, doing ??? Thanks for the reply. Need more !.

The code allows you to drag something to a particular place. Do you want to drag something to an instance of explorer and create something in the filesystem? I don't understand what you want to do.

Take a look at that program. There are drag and drop handlers in there. Select something from the tree view. Some of them have items that will show up in the listview. You can drag those to other parts of the tree view, and they'll be moved to that place in the tree view.

Matt

new topic     » goto parent     » topic index » view message » categorize

5. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

Drag an icon or file and put it in a specific place.

The following code lets you drag and drop a file icon onto the textbox control and have that icon's path displayed in the textbox.

include Win32Lib.ew 
 
constant Window1 = createEx( Window, "Window1", 0, Default, Default, 371, 119, 0, 0 ) 
constant txt_FileName = createEx( EditText, "", Window1, 24, 16, 308, 32, 0, 0 ) 
 
procedure txt_FileName_onDragAndDrop (integer self, integer event, sequence params)--params is ( int id, seq FileName ) 
	if length(params[2]) > 0 then 
		setText( txt_FileName, params[2] ) 
	end if 
end procedure 
setHandler( txt_FileName, w32HDragAndDrop, routine_id("txt_FileName_onDragAndDrop")) 
 
WinMain( Window1,Normal ) 
new topic     » goto parent     » topic index » view message » categorize

6. Re: No Win32Lib Drag and Drop example OR IS THERE ??

mattlewis said...
Selgor said...

Selgor here. Matt .. I want to Drag and Drop . Drag an icon or file and put it in a specific place. For example put an icon as a shortcut to a programme on the desktop from its original directory (folder). Can't see how the programme you suggest does that. What am I not seeing, doing ??? Thanks for the reply. Need more !.

The code allows you to drag something to a particular place. Do you want to drag something to an instance of explorer and create something in the filesystem? I don't understand what you want to do.

Take a look at that program. There are drag and drop handlers in there. Select something from the tree view. Some of them have items that will show up in the listview. You can drag those to other parts of the tree view, and they'll be moved to that place in the tree view.

Matt


I believe what he wants is a program to generate desktop icons from applications. I base this belief on him saying:

"For example put an icon as a shortcut to a programme on the desktop from its original directory (folder). Can't see how the programme you suggest does that."

Possibly these icons then accept Drops and launch the application which the icon represents.

useless

new topic     » goto parent     » topic index » view message » categorize

7. Re: No Win32Lib Drag and Drop example OR IS THERE ??

useless said...

I believe what he wants is a program to generate desktop icons from applications. I base this belief on him saying:

"For example put an icon as a shortcut to a programme on the desktop from its original directory (folder). Can't see how the programme you suggest does that."

To create shortcuts, he'll need to use some simple COM calls, a search for "shortcut" in the archive will provide a few different libs to do this.

useless said...

Possibly these icons then accept Drops and launch the application which the icon represents.

useless

This is the native behavior of shortcuts in Windows, so long as one's application will take a file name as a single parameter.

-Greg

new topic     » goto parent     » topic index » view message » categorize

8. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here.

Thank you all for your interest in helping.All make sense. Here is the situation.

I have a window onto which I want to place icons to launch applications. To do this I would like to drag n drop an icon from its folder and place it on the window. The icon's home has to be databased. Then when you click the icon on the app launch window the application is found and runs(executes) the application. Yes O.K. there are many other ways of doing the aforementioned. I am trying to "learn" the drag n drop method.

The programme is at the moment 450 approx lines long.

And this is the error I am getting. The window will not accept the information .

C:\EUPHORIA\include\Win32lib.ew:6303 in function addLVItem()  
type_check failure, id is {21,1}  
    id = {21,1} 
    iIcon = 2 
    text = { 
             {83'S',80'P',82'R',73'I',84'T',69'E',83'S',46'.',69'E',88'X', 
87'W'} 
           } 
    lParam = <no value> 
    iItem = <no value> 
    LV_ITEM = <no value> 
    i = <no value> 
    i = <no value> 
 
... called from C:\EUPHORIA\win32lib_0_70_20\Demo\QkLaunch.exw:179 in procedure additems()   
    FileName = {67'C',58':',92'\',69'E',85'U',80'P',72'H',79'O',82'R',73'I', 
65'A',92'\',119'w',51'3',50'2',101'e',110'n',103'g',105'i',110'n',92'\', 
119'w',51'3',50'2',101'e',110'n',103'g',105'i',110'n',92'\',83'S',80'P', 
82'R',73'I',84'T',69'E',83'S',46'.',69'E',88'X',87'W'} 
    ico = 2 
    at = 1 
    size = 0 
    key = 1 
    Name = {83'S',80'P',82'R',73'I',84'T',69'E',83'S',46'.',69'E',88'X',87'W'} 
    Ext = {108'l',110'n',107'k'} 
    seq = { 
            {83'S',80'P',82'R',73'I',84'T',69'E',83'S',46'.',69'E',88'X', 
87'W'}, 
            {69'E',88'X',87'W'} 
          } 
    filename = {67'C',58':',92'\',69'E',85'U',80'P',72'H',79'O',82'R',73'I', 
65'A',92'\',119'w',51'3',50'2',101'e',110'n',103'g',105'i',110'n',92'\', 
119'w',51'3',50'2',101'e',110'n',103'g',105'i',110'n',92'\',83'S',80'P', 
82'R',73'I',84'T',69'E',83'S',46'.',69'E',88'X',87'W'} 
 
... called from C:\EUPHORIA\win32lib_0_70_20\Demo\QkLaunch.exw:380 in procedure QkLaunch_onDragAndDrop()   
    self = 4 
    event = 18 
    params = { 
               0, 
               {67'C',58':',92'\',68'D',111'o',99'c',117'u',109'm',101'e', 
110'n',116't',115's',32' ',97'a',110'n',100'd',32' ',83'S',101'e',116't', 
116't',105'i',110'n',103'g',115's',92'\',65'A',100'd',109'm',105'i',110'n', 
105'i',115's',116't',114'r',97'a',116't',111'o',114'r',92'\',68'D',101'e', 
115's',107'k',116't',111'o',112'p',92'\',69'E',85'U',92'\',83'S',80'P',82'R', 
73'I',84'T',69'E',83'S',46'.',69'E',88'X',87'W',46'.',108'l',110'n',107'k'} 
             }.. 
And on and on it goes.

The next time the programme runs the icons are on the window. But on clicking do nothing. And the programme used to work with (win32lib0.57.9) without error..

Thank you for your time . Much appreciated.

Selgor.

new topic     » goto parent     » topic index » view message » categorize

9. Re: No Win32Lib Drag and Drop example OR IS THERE ??

include Win32lib.ew 
include CreateLink.ew 
include hotkey.e 
include systray.ew 
include reg.ew 
include database.e 
include inputbox.ew 
include startpath.e 
include file.e 
include win32ini.ew 
without warning 
--------------- custom your own parameters here--------------------------------- 
integer Width ,Height 
sequence Font, HotKeys 
Width =400   Height= 200---Window's default width and height 
Font  = {"Times New Roman",10,Normal} 
HotKeys={{8,81}, ---Win + Q  --Alt=1,Ctrl=2,Shift=4,Win=8 
         {0,192},       ---192 is the key upper to the Tab 
         {0,106}}       ---106 is the multiply key in number pad 
--------------- file names------------------------------------------------ 
sequence AppDirectroy AppDirectroy =startup_dir() 
constant datafile=AppDirectroy&"userdata.edb" 
constant runfile=AppDirectroy&"QkLaunch.exw" 
constant systrtayicon=AppDirectroy&"systray.ico" 
constant defaulticon=AppDirectroy&"default.ico" 
constant appsetting=AppDirectroy&"config.ini" 
constant helpfile=AppDirectroy&"readme.txt" 
-------------------------------------------------------------------------------- 
sequence data 
if compare(dir(appsetting),-1)=0 then 
    WritePrivateProfileString("WindowSize","Width",sprint(Width),appsetting) 
    WritePrivateProfileString("WindowSize","Height",sprint(Height),appsetting) 
    WritePrivateProfileString("HotKeys","hotkey",sprint(HotKeys),appsetting) 
else 
    data=value(getString("WindowSize","Width",appsetting)) 
    if data[1]=GET_SUCCESS then Width=data[2] end if 
    data=value(getString("WindowSize","Height",appsetting)) 
    if data[1]=GET_SUCCESS then Height=data[2] end if 
    data=value(getString("HotKeys","hotkey",appsetting)) 
    if data[1]=GET_SUCCESS then HotKeys=data[2] end if 
end if 
-------------------------------------------------------------------------------- 
integer Left,Top,X,Y,moveWindow moveWindow=0 
sequence ScreenSize, rect 
ScreenSize = getRect(Screen) 
Left=(ScreenSize[3]-Width)/2 
Top=(ScreenSize[4]-Height)/2 
constant QkLaunch_Parent=create( Window,"QkLaunch",0,0,0,50,50,WS_POPUP) 
constant QkLaunch = createEx( Window, "QkLaunch", QkLaunch_Parent,Left, Top, Width, Height ,{WS_POPUP, WS_THICKFRAME},WS_EX_TOPMOST) 
--setIcon( QkLaunch,"thounder.ico") 
constant SysTray = systray_Create(QkLaunch) 
systray_SetIcon(SysTray,systrtayicon) 
systray_SetTip(SysTray,"QkLaunch") 
constant tabControl = createEx( TabControl, "TabControl", QkLaunch, 0, 28, 460, 280, 0, 0 ) 
constant menu      =  create(Popup,"",QkLaunch,0,0,0,0,0), 
         menu1     =  create(MenuItem,"New Page",menu,0,0,0,0,0), 
         menu2     =  create(MenuItem,"Delete Page",menu,0,0,0,0,0), 
         menu3     =  create(MenuItem,"Rename Page",menu,0,0,0,0,0), 
         sep1      =  create(MenuItem,"-", menu, 0, 0, 0, 0, 0), 
         menu4     =  create(MenuItem,"New Item",menu,0,0,0,0,0), 
         menu5     =  create(MenuItem,"Delete Item",menu,0,0,0,0,0), 
         menu6     =  create(MenuItem,"Rename Item",menu,0,0,0,0,0), 
         menu7     =  create(MenuItem,"Relink Item",menu,0,0,0,0,0), 
         sep2      =  create(MenuItem,"-", menu, 0, 0, 0, 0, 0), 
         menu8     =  create(MenuItem,"Help",menu,0,0,0,0,0), 
         menu9     =  create(MenuItem,"Hide",menu,0,0,0,0,0), 
         menu10    =  create(MenuItem,"Exit",menu,0,0,0,0,0) 
-------------------------------------------------------------------------------- 
constant Shell32 = open_dll("Shell32.dll") 
constant SHGetFileInfo = define_c_proc(Shell32,"SHGetFileInfo",{C_POINTER,C_UINT,C_POINTER,C_UINT, C_INT}) 
constant 
        SHGFI_ICON =             #000000100,     -- get icon 
        SHGFI_DISPLAYNAME =      #000000200,     -- get display name 
        SHGFI_TYPENAME =         #000000400,     -- get type name 
        SHGFI_ATTRIBUTES =       #000000800,     -- get attributes 
        SHGFI_ICONLOCATION =     #000001000,     -- get icon location 
        SHGFI_EXETYPE =          #000002000,     -- return exe type 
        SHGFI_SYSICONINDEX =     #000004000,     -- get system icon index 
        SHGFI_LINKOVERLAY =      #000008000,     -- put a link overlay on icon 
        SHGFI_SELECTED =         #000010000,     -- show icon in selected state 
        SHGFI_ATTR_SPECIFIED =   #000020000,     -- get only specified attributes 
        SHGFI_LARGEICON =        #000000000,     -- get large icon 
        SHGFI_SMALLICON =        #000000001,     -- get small icon 
        SHGFI_OPENICON =         #000000002,     -- get open icon 
        SHGFI_SHELLICONSIZE =    #000000004,     -- get shell size icon 
        SHGFI_PIDL =             #000000008,     -- pszPath is a pidl 
        SHGFI_USEFILEATTRIBUTES = #000000010     -- use passed dwFileAttribute 
global function GetIcon(sequence strPath, atom bSmall) 
    sequence info 
    atom path,infoptr,hicon, cbFileInfo,flags 
    path=allocate_string(strPath) 
    cbFileInfo= 32  
    infoptr=allocate(256) 
    if bSmall then 
        flags =or_bits(SHGFI_ICON,SHGFI_SMALLICON) 
    else 
        flags =or_bits(SHGFI_ICON,SHGFI_LARGEICON) 
    end if 
    c_proc(SHGetFileInfo,{path, 256,infoptr,cbFileInfo,flags}) 
    hicon=peek4s(infoptr) 
    free(path) 
    free(infoptr) 
    return addIcon(hicon) 
end function 
function getico(sequence FileName) 
    integer ico 
    if compare(dir(FileName),-1)=0 then  
           ico=GetIcon(defaulticon,0) 
    else ico=GetIcon(FileName,0) end if 
    return ico 
end function 
------------------------------------------------------------------------------- 
global procedure setLVItemSelected( integer LV, integer pRow, integer pColumn, atom selected) 
atom LV_ITEM 
object VOID     
    LV_ITEM = struct_LVITEM(LVIF_STATE, pRow, pColumn, selected, 1, 0, 0, 0)     
    VOID = sendMessage( LV, LVM_SETITEMSTATE, pRow-1, LV_ITEM )     
    release_mem(LV_ITEM)     
end procedure 
-------------------------------------------------------------------------------- 
sequence tabitems,names,listviews 
atom ok, err 
ok=DB_OK 
integer currentview 
currentview=1 
tabitems={} listviews={} 
-------------------------------------------------------------------------------- 
function getfilenameandextension(sequence filename) 
    sequence s,f,e 
    integer i,j 
    s=reverse(filename) 
    i=find('\\',s) 
    if i!=1 then 
       f=reverse(s[1..i-1]) 
    else 
       f=filename 
    end if 
    j=find('.',s) 
    if j=0 then j=1 end if 
    e=reverse(s[1..j-1]) 
    return {f,e} 
end function 
procedure showitems(integer index) 
    integer ico,at 
    sequence seq 
    if db_select_table(getHint(tabitems[index])) = DB_OK then 
        for i=db_table_size() to 1 by -1 do 
          seq=db_record_data(i) 
          ico=getico(seq[2]) 
          at=addLVItem(listviews[index],ico,{seq[1]}) 
        end for 
    end if 
end procedure 
procedure additems(sequence FileName) 
      integer ico,at,size,key 
      sequence Name,Ext,seq,filename 
      seq=getfilenameandextension(FileName) 
      Name=seq[1] 
      Ext =seq[2] 
      if compare(lower(Ext),"lnk")=0 then 
          filename=resolve_link(FileName) 
          seq=getfilenameandextension(filename) 
          at=deleteFile(FileName) 
          Name=seq[1] 
          FileName=filename 
      end if 
      ico=getico(FileName) 
      if db_select_table(getHint(tabitems[currentview])) = DB_OK then 
          size=db_table_size() 
          if size=0 then key=1 else 
          key=db_record_key(size)+1 end if 
          ok=db_insert(key, {Name, FileName}) 
          at=addLVItem({listviews[currentview],size+1},ico,{Name}) 
      end if 
end procedure 
procedure deleteitems() 
      integer re 
      sequence pos 
      object ctrl 
      ctrl=listviews[currentview] 
          pos=getIndex(ctrl) 
          if length(pos) and db_select_table(getHint(tabitems[currentview])) = DB_OK then 
              --for i=1 to length(pos) do 
                 db_delete_record(pos[1]) 
                 re=deleteItem(ctrl,pos[1]) 
                 --refreshWindow(ctrl) 
              --end for 
          end if 
end procedure 
-------------------------------------------------------------------------------- 
procedure TabItem_onClick (integer self, integer event, sequence params)--params is () 
    setFocus(self) 
    currentview=find(self,tabitems) 
end procedure 
procedure ListView_onClick (integer self, integer event, sequence params)--params is () 
      sequence item,seq 
      atom al 
      item = getIndex(self) 
      if length(item) and db_select_table(getHint(tabitems[currentview])) = DB_OK then 
          seq=db_record_data(item[1]) 
          setVisible(QkLaunch,False) 
          al=chdir(file_dir(seq[2])) 
          shellExecute("open",seq[2],SW_SHOWNORMAL) 
      end if 
end procedure 
procedure QkLaunch_onKeyDown (integer self, integer event, sequence params)--params is ( atom scanCode, atom shift ) 
      atom scanCode,shift 
      scanCode=params[1] 
      if scanCode=VK_DELETE then 
          deleteitems() 
      elsif scanCode=VK_RETURN then 
          ListView_onClick(listviews[currentview],4,{}) 
      end if 
end procedure 
setHandler( {QkLaunch,tabControl}, w32HKeyDown, routine_id("QkLaunch_onKeyDown")) 
procedure QkLaunch_onMouse (integer self, integer event, sequence params)--params is ( int event, int x, int y, int shift ) 
    object x, y 
    sequence it     
    it= "" 
    x=params[2] 
    y=params[3] 
    if params[1] = RightDown then 
        popup( menu, x, y ) 
    elsif params[1] = LeftDown and self=tabControl then 
        X=x 
        Y=y 
        moveWindow=1 
    elsif params[1] = MouseMove then 
          if moveWindow=1 then 
              Left+=x-X 
              Top+=y-Y 
              setRect(QkLaunch,Left, Top,Width, Height,True) 
          else  
             -- it=hitTestLV(self) 
              if length(it)=2 then 
              setFocus(self) 
              setLVItemSelected(self,it[1],it[2],1) 
              end if 
          end if 
    elsif params[1] = LeftUp then 
        moveWindow=0 
    end if 
end procedure 
setHandler( tabControl, w32HMouse, routine_id("QkLaunch_onMouse")) 
-------------------------------------------------------------------------------- 
procedure QkLaunch_onOpen (integer self, integer event, sequence params)--params is () 
    if compare(dir(datafile),-1)=0 then 
            ok=db_create(datafile,DB_LOCK_NO) 
            ok=db_create_table("System") 
            ok=db_create_table("Text") 
            ok=db_create_table("Media") 
            ok=db_create_table("Web") 
    end if 
    ok=db_open(datafile, DB_LOCK_NO) 
    if ok=DB_OK then 
        rect = getClientRect( QkLaunch ) 
        setRect(tabControl,rect[1], rect[2], rect[3], rect[4],True) 
        rect = getClientRect( tabControl ) 
        names = db_table_list() 
        for i = 1 to length(names) do 
            tabitems &= createEx( TabItem, names[i], tabControl, 0, 0, 0, 0, 0, 0 ) 
            setHint(tabitems[i],names[i]) 
            listviews &= createEx( ListView, {"ListView",""}, tabitems[i], rect[1], 20, rect[3], rect[4],or_all({LVS_ICON,LVS_SHOWSELALWAYS}),0) 
            showitems(i) 
            setHandler( tabitems[i], w32HClick, routine_id("TabItem_onClick")) 
            setHandler( listviews[i], w32HClick, routine_id("ListView_onClick")) 
            setHandler( listviews[i], w32HKeyDown, routine_id("QkLaunch_onKeyDown")) 
            setHandler( listviews[i], w32HMouse, routine_id("QkLaunch_onMouse")) 
        end for 
        setFocus(tabitems[1]) 
    end if 
    for i=1 to length(HotKeys) do 
         setHotKey(QkLaunch, i, HotKeys[i][1],HotKeys[i][2] ) 
    end for 
    systray_Show(SysTray) 
    setFont(QkLaunch,Font[1],Font[2],Font[3]) 
    err = regSetValue( 
                "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Run", -- key 
                "QkLaunch",                                     -- name 
                 runfile)                                         -- value 
end procedure 
setHandler( QkLaunch, w32HOpen, routine_id("QkLaunch_onOpen")) 
-------------------------------------------------------------------------------- 
procedure PopupItem_onClick (integer self, integer event, sequence params)--params is () 
    sequence name,filename,pos,seq,new_name 
    object control 
    integer n,m 
        setEnable(listviews[currentview],False) 
        setEnable(listviews[currentview],True) 
    if  self = menu1 then 
         name = input_box("Enter a name for your new page",QkLaunch) 
         if compare(name,"")!=0 then 
         ok=db_create_table(name) 
         tabitems &= createEx( TabItem, name, tabControl, 0, 0, 0, 0, 0, 0 ) 
         n=length(tabitems) 
         setHint(tabitems[n],name) 
         listviews &= createEx( ListView, {"ListView",""}, tabitems[n], rect[1], 20, rect[3], rect[4],or_all({LVS_ICON,LVS_SHOWSELALWAYS}),0) 
         setHandler( tabitems[n], w32HClick, routine_id("TabItem_onClick")) 
         setHandler( listviews[n], w32HClick, routine_id("ListView_onClick")) 
         setHandler( listviews[n], w32HKeyDown, routine_id("QkLaunch_onKeyDown")) 
         setHandler( listviews[n], w32HMouse, routine_id("QkLaunch_onMouse")) 
         currentview=n 
         end if 
    elsif self = menu2 then 
          name=getHint(tabitems[currentview]) 
          m=getLVCount(listviews[currentview]) 
          if m=0 or (m>0 and 
             message_box("All the items in page "&name&" will be deleted, are you sure?","Message",{MB_YESNO, MB_ICONQUESTION})=IDYES) then 
               db_delete_table(name) 
               destroy(tabitems[currentview]) 
               tabitems=tabitems[1..currentview-1]&tabitems[currentview+1..length(tabitems)] 
               listviews=listviews[1..currentview-1]&listviews[currentview+1..length(listviews)] 
               n=length(tabitems) 
               if currentview>n then currentview=n end if 
          end if 
    elsif  self = menu3 then 
         control=tabitems[currentview] 
         name=getHint(control) 
         new_name = input_box("Enter new name for page "&name,QkLaunch) 
         if compare(new_name,"")!=0 then 
         db_rename_table(name,new_name) 
         db_close() 
         --setTabItemText(tabControl,currentview,new_name) 
         shellExecute("open",runfile,SW_SHOWNORMAL) 
         closeWindow(QkLaunch) 
         --setText(tabitems[currentview],new_name) 
         --setHint(control,new_name) 
         end if 
    elsif self = menu4 then 
          filename = getOpenFileName(QkLaunch,"",{"All Files", "*.*" } ) 
          if compare(filename,"")!=0 then 
              additems(filename) 
          end if 
    elsif self = menu5 then 
          deleteitems() 
    elsif self = menu6 then 
         control=listviews[currentview] 
         pos=getIndex(control) 
         if length(pos) and db_select_table(getHint(tabitems[currentview])) = DB_OK then 
              name=getLVItemText(control,pos[1],1) 
              name = input_box("Enter new name for item "&name,QkLaunch) 
              if compare(name,"")!=0 then 
                  seq=db_record_data(pos[1]) 
                  setLVItemText(control,pos[1],1,name) 
                  db_replace_data(pos[1],{name,seq[2]}) 
              end if 
         end if 
    elsif self = menu7 then 
         control=listviews[currentview] 
         pos=getIndex(control) 
         if length(pos) and db_select_table(getHint(tabitems[currentview])) = DB_OK then 
              name=getLVItemText(control,pos[1],1) 
              name = input_box("Enter new link for item "&name,QkLaunch) 
              if compare(name,"")!=0 then 
                  seq=db_record_data(pos[1]) 
                  db_replace_data(pos[1],{seq[1],name}) 
                  --setIcon(pos[1],GetIcon(name,0)) 
              end if 
         end if 
    elsif self = menu8 then 
        shellExecute("open",helpfile,SW_SHOWNORMAL) 
        setVisible(QkLaunch,False) 
    elsif self = menu9 then 
        setVisible(QkLaunch ,False) 
    elsif self = menu10 then 
        closeWindow(QkLaunch) 
    end if 
end procedure 
setHandler({menu1,menu2,menu3,menu4,menu5,menu6,menu7,menu8,menu9,menu10}, w32HClick, routine_id("PopupItem_onClick")) 
-------------------------------------------------------------------------------- 
procedure QkLaunch_onDragAndDrop (integer self, integer event, sequence params) 
               --params is ( int id, sequence FileName ) 
            additems(params[2]) 
       end procedure 
setHandler( QkLaunch, w32HDragAndDrop, routine_id("QkLaunch_onDragAndDrop")) 
-------------------------------------------------------------------------------- 
procedure QkLaunch_onHotKey(atom id) 
    setVisible(QkLaunch,not isVisible(QkLaunch)) 
end procedure 
onHotKey = routine_id("QkLaunch_onHotKey") 
-------------------------------------------------------------------------------- 
procedure onsystray(integer id, atom message) 
    sequence mpos 
    if message= WM_LBUTTONDOWN then 
        setVisible(QkLaunch,not isVisible(QkLaunch)) 
    elsif message= WM_RBUTTONDOWN then 
        mpos=getMousePos () 
        popup( menu, mpos[1],mpos[2] ) 
    end if 
end procedure 
systray_SetEvent(SysTray,routine_id("onsystray")) 
--------------------------------------------------------------------------------- 
procedure QkLaunch_onGotFocus (integer self, integer event, sequence params)--params is () 
refreshWindow(QkLaunch) 
end procedure 
setHandler( QkLaunch, w32HGotFocus, routine_id("QkLaunch_onGotFocus")) 
-------------------------------------------------------------------------------- 
procedure QkLaunch_onClose (integer self, integer event, sequence params)--params is () 
    db_close() 
    for i=1 to length(HotKeys) do 
         killHotKey(QkLaunch,i) 
    end for 
    systray_Hide(SysTray) 
end procedure 
setHandler( QkLaunch, w32HClose, routine_id("QkLaunch_onClose")) 
-------------------------------------------------------------------------------- 
WinMain( QkLaunch,Normal ) 
 
.. 
 
Thank you for looking. 
 
Cheers Selgor. 
new topic     » goto parent     » topic index » view message » categorize

10. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

C:\EUPHORIA\include\Win32lib.ew:6303 in function addLVItem()  
type_check failure, id is {21,1}  
... called from C:\EUPHORIA\win32lib_0_70_20\Demo\QkLaunch.exw:179 in procedure additems()   
... called from C:\EUPHORIA\win32lib_0_70_20\Demo\QkLaunch.exw:380 in procedure 

Looks like you are including the wrong version of win32lib.ew. From the info above, on your system I would create a new directory C:\Euphoria\include\oldwin32lib and move win32lib.ew and associated files out of C:\Euphoria\include into it. Then set EUINC or better create an eu.cfg file to load the one out of C:\EUPHORIA\win32lib_0_70_20\include.

HTH, Pete

new topic     » goto parent     » topic index » view message » categorize

11. Re: No Win32Lib Drag and Drop example OR IS THERE ??

petelomax said...
Selgor said...

C:\EUPHORIA\include\Win32lib.ew:6303 in function addLVItem()  
type_check failure, id is {21,1}  
... called from C:\EUPHORIA\win32lib_0_70_20\Demo\QkLaunch.exw:179 in procedure additems()   
... called from C:\EUPHORIA\win32lib_0_70_20\Demo\QkLaunch.exw:380 in procedure 

Looks like you are including the wrong version of win32lib.ew. From the info above, on your system I would create a new directory C:\Euphoria\include\oldwin32lib and move win32lib.ew and associated files out of C:\Euphoria\include into it. Then set EUINC or better create an eu.cfg file to load the one out of C:\EUPHORIA\win32lib_0_70_20\include.

HTH, Pete


Again quoting Selgor:

And the programme used to work with (win32lib0.57.9) without error..

So whatever his reason for "upgrading" win32lib, with all apologies to Derek et al, if Selgor put all his required includes in the same dir with his app, including the older version of win32lib, his app may run again.

useless

new topic     » goto parent     » topic index » view message » categorize

12. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here.

Thank you Pete and useless for answering my post. A system crash and I lost all . And that is why what I could salvage went into the new win32lib.So anyone know where the old win32libs are .

So yes Pete I know its the wrong version. And yes useless by putting all salvaged into the new win32lib I can run 90% odd of programmes.I wish "they" would stop mucking with the library. But then , what would I know.

Thanks again.

Cheers Selgor.

new topic     » goto parent     » topic index » view message » categorize

13. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

So yes Pete I know its the wrong version.

Seriously? You know you are using the wrong version yet you complain that it's not working?! Have you tried getting the current version and using that?

Selgor said...

I wish "they" would stop mucking with the library.

Seriously? I hope then you are still using Euphoria version 2 on Windows 1.0

new topic     » goto parent     » topic index » view message » categorize

14. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here.

I am using the latest version of winlib. And the pogramme does not work with it. See the error report.

I could show many programmes that do not work as the library is updated. But you have had that discussion just recently.

And I use Win XP etc. Gave away using win ver 1 a month ago .

Sarcasm is the lowest form of wit.

So my question is simple .

Why does the above programme not work with the latest version of the library.

Cheers Selgor.

new topic     » goto parent     » topic index » view message » categorize

15. Re: No Win32Lib Drag and Drop example OR IS THERE ??

DerekParnell said...
Selgor said...

So yes Pete I know its the wrong version.

Seriously? You know you are using the wrong version yet you complain that it's not working?! Have you tried getting the current version and using that?


I swear i don't understand humans.

Selgor said he lost the win32lib version his app was written to work with because of a system crash. He replaced it with a current win32lib version. His app does not work with the current win32lib, as win32lib versions are generally not backwards compatable. Selgor then asked if anyone has a version 0.57.9 to send him, so his app can run again.

This is where you chime in and ridicule him for using the wrong version (a current version) and ask if he's tried downloading and using a current version.

I have some older versions, but i quit writing for win32lib when it quit being backwards compatable. And i always save an app with the version of win32lib it was written for, because usually no other version will work.

useless

new topic     » goto parent     » topic index » view message » categorize

16. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here.

Thank you useless for your support. I read all about the non compatibility backward stuff as it all came out in the debate some weeks ago . And there IS a lack of backward compatibility in each win32lib update.

And we all know that , as most of us are hobbyists , that we like to preserve what will work with what we have . So , update by all means.

BUT ..KEEP A COPY SOMEWHERE OF THE PREVIOUS VERSION. This would solve all problems.

Or aren't Euphoria servers large enough.

I have said enough.

I just want to know why "it" NOW will NOT work .

Can do without the sarcasm thank you.

Cheers.

Selgor.

new topic     » goto parent     » topic index » view message » categorize

17. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

And there IS a lack of backward compatibility in each win32lib update.

If you are saying that each release of the library completely invalidates all programs written using the previous release then I dispute this. I believe that apart from mistakes (and one release which was announced with at least 12 months notice), each release is compatible with its predecessor. Please give examples in which you can demonstrate backwards incompatibility.

The particular problem you are describing in this thread appears to be one in which recent code won't work on an earlier library - that is not backward incompatibility.

Selgor said...

I just want to know why "it" NOW will NOT work .

I'm confused then ... in one post you say you are not using the right version and in another post you say you are using the right version.

The error message you are getting implies that the addLVItem() routine being called has the id parameter declared as an atom, but the current version of the library has that parameter declared as an object. So it seems that you are NOT using the right version of the library.

Exactly which version of Win32lib.ew is actually being used by this application?

In the meantime, I'll cut down the program you submitted to the minimum required to demonstrate the issue being discussed.

new topic     » goto parent     » topic index » view message » categorize

18. Re: No Win32Lib Drag and Drop example OR IS THERE ??

DerekParnell said...
Selgor said...

I just want to know why "it" NOW will NOT work .

I'm confused then ... in one post you say you are not using the right version and in another post you say you are using the right version.

The error message you are getting implies that the addLVItem() routine being called has the id parameter declared as an atom, but the current version of the library has that parameter declared as an object. So it seems that you are NOT using the right version of the library.

Exactly which version of Win32lib.ew is actually being used by this application?

He's saying that it was originally developed in an earlier version. Running it with the current version results in an error. So in this case, the "right" version was the version with which it was developed and known to run with: 0.59.

Looking at changes.txt, it appears that v0.59 was from 2003.

Kat is correct that it's useful to keep all of the code together, because there are occasionally breaking changes. Or you might have code that relies on some undocumented or buggy behavior. I'll just plug 4.0 again, to say that euphoria now comes with a tool (eudist) that will do all of this for you, to make archiving or distribution easy.

Matt

new topic     » goto parent     » topic index » view message » categorize

19. Re: No Win32Lib Drag and Drop example OR IS THERE ??

mattlewis said...

So in this case, the "right" version was the version with which it was developed and known to run with: 0.59.

Be that as it may, the code should run correctly with the CURRENT version. I've got the sample code now running on my system using win32lib V0_70_20 and Eu4.

new topic     » goto parent     » topic index » view message » categorize

20. Re: No Win32Lib Drag and Drop example OR IS THERE ??

DerekParnell said...
Selgor said...

And there IS a lack of backward compatibility in each win32lib update.

If you are saying that each release of the library completely invalidates all programs written using the previous release then I dispute this. I believe that apart from mistakes (and one release which was announced with at least 12 months notice), each release is compatible with its predecessor. Please give examples in which you can demonstrate backwards incompatibility.


While rummaging around last nite looking for v0.57.9 (coughMattcough), i ran across this jem in IPC-DEMO\DEVNOTES.TXT:

10/08 I have experimented with several versions of win32lib, and the 0.55.5-ish version included *MUST* be used. (I have cribbed a few fixes from v0.57.9). Later versions cause all manner of trouble, deleteDC failures & the like;

I seem to recall hackserv also was specific about which version it used. And, if memory serves correctly, while Judith was working on the IDE, she had to make changes for each new win32lib that came out, or the IDE would fail in some way.

useless

new topic     » goto parent     » topic index » view message » categorize

21. Re: No Win32Lib Drag and Drop example OR IS THERE ??

useless said...
DerekParnell said...
Selgor said...

And there IS a lack of backward compatibility in each win32lib update.

If you are saying that each release of the library completely invalidates all programs written using the previous release then I dispute this. I believe that apart from mistakes (and one release which was announced with at least 12 months notice), each release is compatible with its predecessor. Please give examples in which you can demonstrate backwards incompatibility.


While rummaging around last nite looking for v0.57.9 (coughMattcough), i ran across this jem in IPC-DEMO\DEVNOTES.TXT:

10/08 I have experimented with several versions of win32lib, and the 0.55.5-ish version included *MUST* be used. (I have cribbed a few fixes from v0.57.9). Later versions cause all manner of trouble, deleteDC failures & the like;

I don't know what that is, but it sounds like something fairly old. I'm not as, er, adamant about non-breaking changes in Win32Lib as Derek is. I think I was still fairly heavily involved back in the 0.55 days.

Matt

new topic     » goto parent     » topic index » view message » categorize

22. Re: No Win32Lib Drag and Drop example OR IS THERE ??

mattlewis said...

I don't know what that is, but it sounds like something fairly old. I'm not as, er, adamant about non-breaking changes in Win32Lib as Derek is. I think I was still fairly heavily involved back in the 0.55 days.

Matt


To be fair to Derek, even as he is being, er, adamant about win32lib being non-breaking, the lib was breaking code weekly even before he got involved with it, or took it over from DavidC. I remember it was one example of why i kept pestering RobC for making Eu smarter, so an api for includes, and vars passed to functions, could take various forms, to keep previous apps working while coding went on with libs to increase functionality. Sadly, things didn't happen the way i'd have preferred, and things got broken left and right in the early days, exacerbated by contributors not including all the support libs their app required. In many cases one had to be a historian of the libs one used in order to pick the right one.

So let me suggest a few things again, as Derek is doing whatever he is doing for Selgor per this thread, what might save everyone (including Derek and friends) some time in the long haul as the lib is further developed. Then Selgor (and i and anyone downloading from user contribs) can finally count on the newest version of win32lib always working with older code.

1) put the old function and procedure names back into the current win32lib, in a way they call the new code transparently to the user, but operate apparently the same olde way they did 5 years ago. This will save patching the olde bugs.

2) if a funct or proc name is the same as 5 years ago but takes different arguements, Eu v4 now has a way of dealing with that, so if the args passed fit win32lib of 5 years ago, perform as if win32lib of yore, else perform as new.

3) And/or, set a var that tells the current win32lib which previous version to act like.

This is usually where the humans jump in and say "do it yourself" or start a character-disparaging name-calling flame war. Proceed.

useless

new topic     » goto parent     » topic index » view message » categorize

23. Re: No Win32Lib Drag and Drop example OR IS THERE ??

useless said...

So let me suggest a few things again, as Derek is doing whatever he is doing for Selgor per this thread, what might save everyone (including Derek and friends) some time in the long haul as the lib is further developed. Then Selgor (and i and anyone downloading from user contribs) can finally count on the newest version of win32lib always working with older code.

1) put the old function and procedure names back into the current win32lib, in a way they call the new code transparently to the user, but operate apparently the same olde way they did 5 years ago. This will save patching the olde bugs.

I think Derek has gone to a lot of trouble to maintain backward compatibility for some time, which probably explains his comments. If you look at the current library, you'll see compat01.ew and compat02.ew. These are full of deprecated bits of code that allow older programs to continue working.

useless said...

2) if a funct or proc name is the same as 5 years ago but takes different arguements, Eu v4 now has a way of dealing with that, so if the args passed fit win32lib of 5 years ago, perform as if win32lib of yore, else perform as new.

Yes, I suspect that you might start seeing default parameters used something like this in new development.

useless said...

3) And/or, set a var that tells the current win32lib which previous version to act like.

Yes, the new ifdef stuff can be used for this sort of thing. Obviously, it makes library development a lot more difficult, so I suspect that if it gets used, it may happen on a case by case basis (if at all). I've been working on Win32Lib in an attempt to port it to run on 64-bit windows, and it is a big, complicated bit of code.

useless said...

This is usually where the humans jump in and say "do it yourself" or start a character-disparaging name-calling flame war. Proceed.

LOL smile

Matt

new topic     » goto parent     » topic index » view message » categorize

24. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

And this is the error I am getting ...

C:\EUPHORIA\include\Win32lib.ew:6303 in function addLVItem()  
type_check failure, id is {21,1}  
    id = {21,1} 

This is most likely because you are using a very old edition of Win32lib. The application looks like it is written to use a more recent version of the library.

Selgor said...

The next time the programme runs the icons are on the window. But on clicking do nothing. And the programme used to work with (win32lib0.57.9) without error..

I am using v0.70.20 (the current release) and it runs fine for me.

Will you please try again using the most recent release of the library and let me know what happens?

new topic     » goto parent     » topic index » view message » categorize

25. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here.

Derek . Let's be clear on one thing. The win32Lib used is 0.70.20 . The latest. And the above programme was run under Euphor1a 3.1 . This was clearly stated above.

Now this is what I have done. I downloaded win32Lib 0.70.20 and the new euphoria 4.03. And I cleaned out all my euphoria from one of my other computers. So on this computer NO EUPHORIA IS PRESENT. I installed new euphoria. I installed the win32Library. I made sure the include file contained all necessary .ew's . Then the programme was "installed".

And this is what happened when I ran the programme.

Error message.

C:\EUPHORIA\include\w32file.ew:888 
SHFILEINFO_SIZEOF has not been declared 
    lSHFILEINFO = w32acquire_mem(0, SHFILEINFO_SIZEOF) 
So I am lost as to how you have it working. Maybe you post your proggie and I will put it on my "lonely" euphoria computer and see what happens.

Cheers Selgor ..

new topic     » goto parent     » topic index » view message » categorize

26. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

So I am lost as to how you have it working. Maybe you post your proggie and I will put it on my "lonely" euphoria computer and see what happens.

Cheers Selgor ..

Selgor:
Try including w32structures.ew at the top of w32file.ew

new topic     » goto parent     » topic index » view message » categorize

27. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

Selgor here.

Derek . Let's be clear on one thing. The win32Lib used is 0.70.20 . The latest. And the above programme was run under Euphor1a 3.1 . This was clearly stated above.

Now this is what I have done. I downloaded win32Lib 0.70.20 and the new euphoria 4.03. And I cleaned out all my euphoria from one of my other computers. So on this computer NO EUPHORIA IS PRESENT. I installed new euphoria. I installed the win32Library. I made sure the include file contained all necessary .ew's . Then the programme was "installed".

And this is what happened when I ran the programme.

Error message.

C:\EUPHORIA\include\w32file.ew:888 
SHFILEINFO_SIZEOF has not been declared 
    lSHFILEINFO = w32acquire_mem(0, SHFILEINFO_SIZEOF) 
So I am lost as to how you have it working. Maybe you post your proggie and I will put it on my "lonely" euphoria computer and see what happens.

Cheers Selgor ..

Now I'm not saying that you haven't done what you said you have, but that particular error message is impossible if you are using the v0.70.20 version of the library. I say this because line 888 of file w32file.ew in that version is ...

-- 

Yes, a single comment line with no text. However, in a much earlier version of the library (one that was unofficially amended for the IDE) has in line 888 ...

    lSHFILEINFO = w32acquire_mem(0, SHFILEINFO_SIZEOF) 

This occurs in the function called "getFileInfo()". Now looking at the equivalent line in the v0.70.20 edition of the w32file.ew code, we see ...

    lSHFILEINFO = w32acquire_mem(0, SIZEOF_SHFILEINFO) 

From this evidence, I'm guessing (and its just a guess), that either you have downloaded a different version of the library than you thought you did, or you still have some remnants of an old library hanging about.

So, what is the path to the v0.70.20 version of Euphoria that you downloaded? Is it "C:\EUPHORIA\include\" ?

Also, what is the actual URL that you used to get the download from? Was it either
https://sourceforge.net/projects/win32libex/files/latest/download?_test=goal
or
http://sourceforge.net/projects/win32libex/files/v_0_70_20/win32lib_0_70_20.zip/download

new topic     » goto parent     » topic index » view message » categorize

28. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here.

You were on the right track Derek. I had downloaded the wrong one . But now have the latest. The one with the offending text all commented out. Installed it in Euphoria. And this is what I got when I ran the programme.

 C:\EUPHORIA\include\w32file.ew:94 
OFN_EXPLORER has not been declared 
	    OFN_EXPLORER,           -- looks like windows explorer 
	               ^ 
new topic     » goto parent     » topic index » view message » categorize

29. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

Selgor here.

You were on the right track Derek. I had downloaded the wrong one . But now have the latest. The one with the offending text all commented out. Installed it in Euphoria. And this is what I got when I ran the programme.

 C:\EUPHORIA\include\w32file.ew:94 
OFN_EXPLORER has not been declared 
	    OFN_EXPLORER,           -- looks like windows explorer 
	               ^ 
 

The symbol OFN_EXPLORER is declared as a global symbol in w32constants.ew (line 3875), which is included by win32lib.ew.

Can you confirm if your copy of the file w32constants.ew has that declaration and that you are including win32lib.ew?

Once you have done that, try this in a command prompt window ...

cd c:\euphoria\include 
eui win32lib.ew 
and see if that has any problems.

new topic     » goto parent     » topic index » view message » categorize

30. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor her.

Derek. Yes OFN_EXPLORER is in Global Constants.

OFN_EXPLORER = #8000 and (new look commdlg) after it as a comment SO yes is the answer. It is as you wanted..

And having done the above .. proceeded to insert required code to the command line.

And this was the result.. Didn't bryan mention this in his post above ?.. Cheers Selgor..

c:\euphoria\include\win32lib.ew:576 
<0052>::can't find 'w32structures.ew' in any of ... 
C:\EUPHORIA\INCLUDE 
C:\EUPHORIA\INCLUDE\win32lib.ew 
c:\Euphoria\include 
C:\EUPHORIA 
include w32structures.ew 
warning <not_used> : 
<0328>::machine.e - module variable 'check_calls' is assigned but never used  
Press Enter 
 
 
  
 
 
 
new topic     » goto parent     » topic index » view message » categorize

31. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

c:\euphoria\include\win32lib.ew:576 
<0052>::can't find 'w32structures.ew' in any of ... 
C:\EUPHORIA\INCLUDE 
C:\EUPHORIA\INCLUDE\win32lib.ew 
c:\Euphoria\include 
C:\EUPHORIA 
include w32structures.ew 
warning <not_used> : 
<0328>::machine.e - module variable 'check_calls' is assigned but never used  
Press Enter 

Well I hate to ask the obvious but does w32structures.ew exist in c:\euphoria\include ? And if not, why not? It is supposed to be in the same directory as win32lib.ew.

new topic     » goto parent     » topic index » view message » categorize

32. Re: No Win32Lib Drag and Drop example OR IS THERE ??



Selgor, i figure i should mention again what i often do for big or long-term projects. I put the entire Eu download in one directory and name it the project name. Then i goto the bin dir and copy/rename the exe i'll be using to project-count-eu.exe. Then i make a batch file called project-count.bat and put something like this in it:

echo off 
PATH=%PATH%;C:\euphoria40b4-3412\bin;C:\euphoria40b4-3412\include 
SET EUDIR=C:\euphoria40b4-3412 
start "" C:\euphoria40b4-3412\bin\about5-euiw.exe %1 %2 %3 %4 %5 %6 %7 %8 %9 


What you want the environment vars to be, put in there, whichever way it's needed to be. You can use one win32lib version for one project and another version for another project, no problems. Use no global vars for Eu environment on your machines. Then run the project-count.bat (test-1.bat, test-2.bat, etc) file just like you'd run the euiw.exe, and it won't get the project includes mixed with includes from any other project. The reason for renaming the exe, and not just using a bat file, is this way i know which Eu exe is which if i ever need to force one to die, or if i look in some Taskmanager to check it's memory or cpu use.

useless

new topic     » goto parent     » topic index » view message » categorize

33. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here..

Thank you for your tips useless. They make a lot of sense. I can't understand why you nicknamed yourself useless, You are far from useless.

Cheers Selgor..

new topic     » goto parent     » topic index » view message » categorize

34. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here.

I assume that you have given me up Derek. Well I really did not want version 4 anyway. So the programme does not work for me. End of story. Thanks for the help.

Cheers

Selgor

new topic     » goto parent     » topic index » view message » categorize

35. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

I assume that you have given me up Derek.

Not at all! I asked you a question and you have not answered yet.

I'll repeat it here ...

Does w32structures.ew actually exist in c:\euphoria\include ?

And if not, why not? It is supposed to be in the same directory as win32lib.ew.

new topic     » goto parent     » topic index » view message » categorize

36. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here..

Yes it does exist in euphoria\include.

O.K. what now ?..

Cheers Selgor..

new topic     » goto parent     » topic index » view message » categorize

37. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

Yes it does exist in euphoria\include.

O.K. what now ?..

Well now I'm very confused. You had reported the error messages as ...

c:\euphoria\include\win32lib.ew:576  
<0052>::can't find 'w32structures.ew' in any of ...  
C:\EUPHORIA\INCLUDE  
C:\EUPHORIA\INCLUDE\win32lib.ew  
c:\Euphoria\include  
C:\EUPHORIA  
Which seems to say that "w32structures.ew" is not in C:\EUPHORIA\INCLUDE, but are saying that it does exist in that folder.

I'm a bit sceptical that you have found a bug in Eu in respect of locating files, but maybe you have. So, can you please post a 'dir' listing of C:\EUPHORIA\INCLUDE in this thread?

For example, here is the listing from my computer ...

 
C:\>cd \euphoria\include 
 
C:\Euphoria\include>dir 
 Volume in drive C has no label. 
 Volume Serial Number is B872-CDD3 
 
 Directory of C:\Euphoria\include 
 
11/08/2011  07:53 AM    <DIR>          . 
11/08/2011  07:53 AM    <DIR>          .. 
23/06/2011  10:33 AM            38,760 database.e 
23/06/2011  10:33 AM             2,392 dll.e 
11/08/2011  07:53 AM    <DIR>          euphoria 
24/06/2011  10:55 AM             9,045 euphoria.h 
23/06/2011  10:33 AM             5,903 file.e 
23/06/2011  10:33 AM             8,336 get.e 
23/06/2011  10:33 AM             4,554 graphics.e 
24/06/2011  10:55 AM            13,037 image.e 
24/06/2011  10:55 AM             7,633 machine.e 
24/06/2011  10:55 AM             8,398 misc.e 
23/06/2011  10:33 AM             1,338 mouse.e 
23/06/2011  10:33 AM             3,584 msgbox.e 
23/06/2011  10:33 AM            22,085 safe.e 
23/06/2011  10:33 AM             1,778 sort.e 
11/08/2011  07:53 AM    <DIR>          std 
23/06/2011  10:33 AM             2,761 wildcard.e 
              14 File(s)        129,604 bytes 
               4 Dir(s)  208,559,771,648 bytes free 
 
C:\Euphoria\include> 
 
You'll notice that I haven't got the win32lib files in Euphoria's own include folder. Instead I have my win32lib in its own folder and point to that in my eu.cfg file ...
[all] 
-i c:\Projects\eu_proj\HGProj\euphoria\include 
-i C:\Projects\eu_proj\win32lib\win32lib_0_70_20\Include 
-i .\include 
-i ..\include 
-eudir c:\Projects\eu_proj\HGProj\euphoria 
 
[translate] 
-gcc 
-com c:/Projects/eu_proj/HGProj/euphoria 
-lib c:/Projects/eu_proj/HGProj/euphoria/source/build/eu.a 
[bind] 
-eub c:/Projects/eu_proj/HGProj/euphoria/source/build/eub 

new topic     » goto parent     » topic index » view message » categorize

38. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here..

It was not there. And a few others were not there also. So I got "them" from another computer and put all in euphoria\include as well as into win32lib. My include in euphoria is "stacked" . This is the way I do it. I know nothing about pointing to folders or configuring as required in eu ver 4.03. Here is dir of euphoria include. Cheers Selgor..

C:\EUPHORIA\INCLUDE\ 
<Dir>win32lib 
004 - sysmets1.e	7KB 
005 - sysmets2.e	7KB 
006 - sysmets3.e	7KB 
015 - sysmets4.e	7KB 
027 - sysmets.e	7KB 
051 - PopEdit.e	1KB 
051 - PopFile.e	10KB 
051 - PopFind.e	9KB 
051 - PopFont.e	2KB 
051 - Poppad3.e	3KB 
051 - PopPrnt0.e	1KB 
060 - PopEdit.e	1KB 
060 - PopFile.e	10KB 
060 - PopFind.e	9KB 
060 - PopFont.e	2KB 
060 - Poppad.e	3KB 
060 - PopPrnt.e	7KB 
074 - DibFile.e	4KB 
075 - DibFile.e	6KB 
077 - DibFile.e	4KB 
086 - Bounce.e	3KB 
087 - Fader.e	2KB 
088 - AllColor.e	4KB 
089 - Pipes.e	3KB 
090 - Tunnel.e	2KB 
091 - PackedDib.e	7KB 
092 - PackedDib.e	7KB 
093 - PackedDib.e	7KB 
094 - PackedDib.e	7KB 
095 - PackedDib.e	7KB 
096 - PackedDib.e	7KB 
097 - DibConv.e	5KB 
097 - DibHelp.e	38KB 
097 - DibPal.e	20KB 
098 - PickFont.e	19KB 
099 - EZFont.e	2KB 
099 - EZTest.e	1KB 
100 - EZFont.e	2KB 
100 - FontRot.e	1KB 
106 - EZFont.e	2KB 
106 - FontOut1.e	1KB 
107 - EZFont.e	2KB 
108 - EZFont.e	2KB 
108 - FontFill.e	1KB 
109 - EZFont.e	2KB 
109 - FontClip.e	2KB 
119 - Emf8.e	4KB 
120 - Emf9.e	1KB 
121 - Emf10.e	2KB 
122 - Emf11.e	3KB 
123 - Emf12.e	4KB 
124 - Emf13.e	1KB 
131 - EdrLib.e	1KB 
139 - AddSynth.e	36KB 
143 - DrumFile.e	9KB 
143 - DrumTime.e	6KB 
aiconsct.e	1KB 
alphablend.ew	3KB 
animal.e	3KB 
arconst.e	27KB 
Arwen.ew	172KB 
BACK.GIF	12KB 
BB_graph.e	5KB 
browsdir.e	2KB 
changes.txt	70KB 
classes.ew	24KB 
compat01.ew	2KB 
compat02.ew	13KB 
Constants.ew	89KB 
cp01 - REplus.e	62KB 
cp07 - rgbpick.e	11KB 
CreateLink.ew	7KB 
data.e	1KB 
database.e	39KB 
DAYO.EW	1KB 
dcontain.e	16KB 
ddelegat.e	7KB 
dexcept.e	2KB 
diamond.e	93KB 
diamondlite.e	27KB 
diatui.e	28KB 
dib256.ew	27KB 
Dib256.rtf	14KB 
dibdraw.ew	13KB 
DIR95.E	6KB 
dll.e	2KB 
DLL.EW	2KB 
dll_links.ew	45KB 
dll_wrap.e	2KB 
DO_IT.EW	1KB 
dos_rescue.ew	31KB 
DRAWCAL.EW	2KB 
dsingle.e	3KB 
dvar.e	10KB 
dvsaver.e	8KB 
dwidget.e	8KB 
eabind.ew	11KB 
eacca.e	16KB 
eacflow.e	16KB 
eaclip.ew	4KB 
eacolor.ew	17KB 
eacomp.ew	27KB 
eacons.ew	33KB 
eadadj.e	3KB 
eadir.ew	32KB 
eaedb.e	31KB 
eaerr.e	11KB 
eaerror.ew	27KB 
eafext.ew	20KB 
eafif.ew	27KB 
eafind.ew	26KB 
eafonts.ew	18KB 
eaini.e	18KB 
eama.ew	7KB 
eamacro.ew	14KB 
eamarea.ew	3KB 
eamenus.ew	66KB 
eamisc.e	2KB 
eamncode.e	15KB 
eaopts.ew	17KB 
eaplan9.e	16KB 
eaqj.ew	35KB 
earein.e	36KB 
easinst.ew	3KB 
easynclr.e	21KB 
easynld.e	26KB 
eatabl.e	11KB 
eatabs.e	18KB 
eaundo.ew	13KB 
eauto.e	6KB 
eawpaint.exe	268KB 
eaxlate.e	20KB 
eaxutil.ew	8KB 
ebas.e	15KB 
ebas.ex	1KB 
ebhelp.e	1KB 
edita.edb	8KB 
emach.e	1KB 
eubasic.e	3KB 
eubasic.exu	9KB 
EUCOM.EW	22KB 
eufile.e	3KB 
eugl.ew	16KB 
EUPHORIA.H	5KB 
EuPTC.EW	87KB 
EuWinGUI.dll	89KB 
EuWinGUI.ew	17KB 
eval.e	13KB 
EWGUties.ew	3KB 
ewin32api.ew	21KB 
EwWrap.exw	7KB 
ex.err	36KB 
file.e	6KB 
file_ln.e	6KB 
files.e	1KB 
FirstTimeOtherC.ini	28KB 
FirstTimeSynFont2.ini	1KB 
FONT.E	32KB 
FPTR.E	5KB 
freeworld.exw	45KB 
get.e	9KB 
getstartupdir.ew	1KB 
GETSYSMS.EW	1KB 
GL.EW	244KB 
gl_asc.e	7KB 
GLAUX.EW	7KB 
GLU.EW	15KB 
GOR.E	2KB 
gosub.e	1KB 
graphics.e	6KB 
groupadv.ew	16KB 
handy.e	29KB 
help.txt	163KB 
hotkey.e	2KB 
IDE.cfg	2KB 
IDE_about.ew	5KB 
IDE_code.ew	202KB 
IDE_config.ew	49KB 
IDE_design.ew	372KB 
IDE_docking.ew	3KB 
IDE_draw.ew	75KB 
IDE_exErr.ew	8KB 
IDE_FindWin.ew	13KB 
IDE_hints.e	37KB 
IDE_include.ew	23KB 
IDE_initlist.ew	13KB 
IDE_Launch.ew	26KB 
IDE_ListViewStyles.ew	122KB 
IDE_MBox.ew	26KB 
IDE_menu.ew	67KB 
IDE_orderEvents.ew	12KB 
IDE_popup.ew	69KB 
IDE_proj.ew	473KB 
IDE_ProjectView.EW	38KB 
IDE_reorder.ew	16KB 
IDE_ScrollingTable.ew	9KB 
IDE_splash.ew	2KB 
IDE_syntax.ew	149KB 
IDE_systray.ew	7KB 
IDE_timer.ew	38KB 
IDE_WinStyles.ew	31KB 
IDE_XPMmer.ew	125KB 
IDEFirstTime.cfg	2KB 
image.e	19KB 
imagelists.ew	1KB 
INCLUDES.INC	1KB 
ini.e	23KB 
inputbox.ew	1KB 
InstallWinGraph.ex	4KB 
io.e	7KB 
joe.e	3KB 
lanimal.e	3KB 
layout.edb	17KB 
Lfn.e	12KB 
listviews.ew	6KB 
ltchelp.txt	4KB 
mach.e	2KB 
machine.e	10KB 
maths.e	2KB 
MBox.exw	1KB 
MDIDEMO.E	2KB 
me_containers.e	16KB 
me_counted.e	2KB 
me_file_errors.e	1KB 
me_math_errors.e	1KB 
me_misc_errors.e	1KB 
me_std_lib.e	1KB 
me_variables.e	2KB 
me_widgets.e	4KB 
menu.ew	9KB 
MENU_ENG.E	8KB 
message_box.ew	4KB 
method_euphoria.e	80KB 
mighty.e	21KB 
misc.e	7KB 
misc_arwen.e	2KB 
MLTMEDIA.E	1594KB 
modex.e	51KB 
mouse.e	1KB 
mouse_rescue.ew	3KB 
msgbox.e	4KB 
MSGBOX.EW	3KB 
N2S.EW	2KB 
Neil.e	114KB 
nlsEu.ew	3KB 
options.e	7KB 
OtherC.ini	9KB 
OWNRDRAW.E	44KB 
parse.e	1KB 
pFinet.ew	68KB 
pFlist.ew	6KB 
pFreg.ew	3KB 
pFsm.ew	17KB 
pFTP.bmp	2KB 
pFTP.exw	73KB 
pFTPandE.txt	6KB 
pkzarwen.lst	1KB 
pkzplus.lst	1KB 
pp.exe	573KB 
ppp.e	19KB 
PRINT.E	3KB 
printer.e	3KB 
PrintOptions.ew	23KB 
process.ew	6KB 
Prop.ew	38KB 
properties.ew	52KB 
PrtRoutines.ew	25KB 
PUTSXY.E	43KB 
Quick_Allocations.ew	6KB 
quickdb.e	2KB 
Rclick.exw	3KB 
ReadMe.txt	94KB 
reg.ew	18KB 
rttext.e	5KB 
ruler.ew	27KB 
safe.e	23KB 
savetstx.e	1KB 
scifind.ew	12KB 
scintilla.ew	137KB 
sciwin.ew	32KB 
SEL.E	5KB 
SELECT.E	1KB 
SEQOP.E	4KB 
SERIES.E	20KB 
SHELLEX.EW	1KB 
sort.e	2KB 
SPRITES.E	1132KB 
startpath.e	1KB 
structures.ew	21KB 
STYLES.EXW	7KB 
SWFUNCS.E	20KB 
SynMain2.ini	1KB 
system.e	1KB 
systray.ew	7KB 
syswait.ew	4KB 
tabbedpalette.ew	7KB 
TBAR.E	71KB 
TBAR_XPM.E	67KB 
tedb.exe	230KB 
tedb.exw	37KB 
test.ex	1KB 
tga.e	2KB 
THREED.EW	1KB 
TK_MATHS.E	2KB 
TK_MEM.E	35KB 
TK_MISC.E	8KB 
tokens.e	10KB 
treeviews.ew	6KB 
TRUECOLR.E	14KB 
UNICODE.EW	4KB 
VARIANT.EW	9KB 
vedb.exe	238KB 
vedb.exw	25KB 
version.e	2KB 
ViewCodeBase.ew	15KB 
w32advapi.ew	2KB 
w32comctl.ew	2KB 
w32comdlg.ew	1KB 
w32constants.ew	186KB 
w32def_series.ew	2KB 
w32DLL.ew	9KB 
W32ENGIN.EW	873KB 
w32file.ew	35KB 
w32forms.ew	109KB 
w32gdi.ew	15KB 
w32Kernel.ew	4KB 
w32Keys.e	7KB 
w32memory.ew	113KB 
w32msgs.e	10KB 
w32ole.ew	1KB 
w32resources.ew	179KB 
w32Shell.ew	1KB 
w32sock.ew	1KB 
w32start.ew	4KB 
w32structures.ew	42KB 
w32support.e	1KB 
w32tk.e	3KB 
w32user.ew	24KB 
w32utils.e	55KB 
w32version.ew	1KB 
w32winmm.ew	1KB 
w32winspool.ew	1KB 
w32xpm.ew	12KB 
WDEMOS.EXW	24KB 
welcome.txt	9KB 
WILD.E	4KB 
wildcard.e	3KB 
WIN_MISC.EW	4KB 
WIN32.HLP	11015KB 
WIN32INI.EW	3KB 
win32lib.ew	885KB 
winapi.e	195KB 
winbmp.ew	6KB 
winchild.e	48KB 
winconst.e	78KB 
windib.e	83KB 
WinDoc.txt	21KB 
winfile.e	3KB 
winfont.e	7KB 
WinGraphics.ew	9KB 
WinLib.ew	26KB 
winole.e	3KB 
winprog.e	47KB 
WINSTATE.EW	1KB 
winstruc.e	51KB 
wintext.e	12KB 
wintools.e	10KB 
winwin.e	28KB 
wordwrap.txt	13KB 
WPmanual.htm	26KB 
wxeud.e	877KB 
zeitlin.e	15KB 
C:\EUPHORIA\INCLUDE\win32lib\ 
DEMO.PRJ	2KB 
ex.err	1KB 
EX01.EXW	1KB 
EX02.EXW	1KB 
EX03.EXW	1KB 
EX04.EXW	1KB 
EX05.EXW	1KB 
EX06.EXW	1KB 
EX07.EXW	1KB 
EX08.EXW	3KB 
EX09.EXW	2KB 
EX10.EXW	2KB 
EX11.EXW	1KB 
EX12.EXW	14KB 
EX13.EXW	1KB 
EX14.EXW	1KB 
EX15.EXW	1KB 
EX16.EXW	1KB 
EX17.EXW	4KB 
EX18.EXW	20KB 
EX19.EXW	21KB 
EX20.EXW	2KB 
EX21.EXW	1KB 
FIX.DOC	7KB 
FIX.EX	16KB 
GENERIC.EXW	16KB 
GENERIC1.EXW	16KB 
IDE.DOC	14KB 
IDE.EXW	44KB 
IDE_CODE.EW	4KB 
IDE_DRAW.EW	12KB 
IDE_EDIT.EW	47KB 
IDE_MENU.EW	11KB 
IDE_PROJ.EW	16KB 
IDE_PROP.EW	4KB 
IDE_XPM.EW	21KB 
MAKEDOC.EX	12KB 
PRETEND.EXW	12KB 
SCRIBBLE.PRJ	1KB 
SHUTTLE.ICO	1KB 
TBAR_XPM.E	67KB 
WIN32LIB.DOC	121KB 
WIN32LIB.EW	402KB 
WIN32LIB.HTM	285KB 
win32lib.zip	255KB 
new topic     » goto parent     » topic index » view message » categorize

39. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

It was not there. And a few others were not there also. So I got "them" from another computer ...

Ok ... so does it work now? Can we close this issue?

Selgor said...

and put all in euphoria\include as well as into win32lib. My include in euphoria is "stacked" . This is the way I do it. I know nothing about pointing to folders or configuring as required in eu ver 4.03.

Well, in my opinion it would be a useful thing for you to allow the new Euphoria to help you get your folders a bit more organized ... but hey, its your system.

new topic     » goto parent     » topic index » view message » categorize

40. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here.

You are probably right about the organising. No it does not work. Error message now is .

C:\EUPHORIA\include\w32constants.ew:2992 
WC_RICHEDIT has not been declared 
    FINDTEXTEX_lpstrText        = w32allot(w32iff(equal(WC_RICHEDIT,WC_RICHEDIT50), Upsz, Lpsz)) ,. 
 
 
 
new topic     » goto parent     » topic index » view message » categorize

41. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

You are probably right about the organising. No it does not work. Error message now is .

C:\EUPHORIA\include\w32constants.ew:2992 
WC_RICHEDIT has not been declared 
    FINDTEXTEX_lpstrText        = w32allot(w32iff(equal(WC_RICHEDIT,WC_RICHEDIT50), Upsz, Lpsz)) ,. 

In the file C:\Euphoria\include\w32dll.ew, what does line 314 say. It should be ...

global sequence WC_RICHEDIT 

If it doesn't then you have most likely copied the wrong w32dll.ew to your "stacked" include directory.

new topic     » goto parent     » topic index » view message » categorize

42. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here..

Derek, all is O.K. at line 314. global sequence WC_RICHEDIT.. So, If you wish to persist then I will stick it out. If you wish to stop then O.K. too. Up to you.

Cheers Selgor..

new topic     » goto parent     » topic index » view message » categorize

43. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

... at line 314. global sequence WC_RICHEDIT..

Ok. Set your current directory to C:\euphoria\include and then at the command line enter ...

eui win32lib.ew 
What messages, if any are you getting?

new topic     » goto parent     » topic index » view message » categorize

44. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here..

After many items running down the screen all stopped at.. Cheers Selgor..

win32lib.ew:(26310)w32Color_WINDOWTEXT..

class FGColor[lControll]=call_func(pRID[kCRID_Controll],{classPGColor",w32Color_WINDOWTEXT}) 
new topic     » goto parent     » topic index » view message » categorize

45. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

After many items running down the screen all stopped at..

I'm sorry Selgor, but are you trying to help me help you? You seem more intent on making it hard as possible to help you.

I'm sure you are aware that I can't actually see your screen, so what exactly do you mean by "many items"? And did it LITERALLY stop at ...

win32lib.ew:(26310)w32Color_WINDOWTEXT..  
class FGColor[lControll]=call_func(pRID[kCRID_Controll],{classPGColor",w32Color_WINDOWTEXT})  

Ok ... I'll make a guess at what you are trying to tell me this time ... you are saying that Euphoria is reporting many items that seem to be undeclared.

So here is my summary of what you are trying to report ...

  1. The folder "C:\euphoria\include" contains EVERY include file that is part of the Win32lib library.
  2. The version of win32lib that you have in "c:\euphoria\include" is v0.70.20
  3. You are running Eu v4
  4. When running eui win32lib.ew, with the current directory set to "C:\euphoria\include", Euphoria can find "win32lib.ew" and but is not seeing some, or all, of the symbols in the files that "win32lib.ew" itself includes. (I assume it is not reporting that it can't find the files.)


Is this a fair summary?

Ok, here is something else to try ... Similar to before, run this command line ...

eui -i c:\euphoria\include win32lib.ew 

And this time, if it shows you some ERROR messages, can you tell me what the FIRST error message says.

new topic     » goto parent     » topic index » view message » categorize

46. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here ..

As I wrote in 44 above. The screen scrolled down . Too fast to see what was scrolling. Then stopped at the aforementioned. And the message I wrote was visible as well. I can report on only what I can see on the screen. I can't make any of this up. Wouldn't know how.

Your request:- eui -i c:\euphoria\include win32lib.ew

Result ... can't open win32lib.ew.

..

Cheers Selgor..

new topic     » goto parent     » topic index » view message » categorize

47. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

Your request:- eui -i c:\euphoria\include win32lib.ew

Result ... can't open win32lib.ew.

When you ran the command above, was your current directory set to "C:\euphoria\include"?

If not then PLEASE repeat the command AFTER changing the current directory to "C:\euphoria\include".

If it was, can you tell me (using 'dir' for example) if w32lib.ew is in that directory.

new topic     » goto parent     » topic index » view message » categorize

48. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here ..

Well Derek I changed directory to euphoria include and typed in your command as requested above...

eui -i c:\euphoria\include win32lib.ew.Without the full stop at the end. And got what I had told you in the above posts.

The screen sat for a very short while. Then scrolled down through many items. And using the scroll bar to go back to the start I found the first item to be ..

win32lib.ew (9680) :lfFaceName

..

and the last item to be ..

win32lib.ew (26310) : w32Color_WINDOWTEXT

..

Then the screen reads ..

Class FGColor[lControl]=call_func(pRID[kCRID_Control],("class FGColor",w32Color_WINDOWTEXT

followed by ..

Warning {not used}:<0320:: machine.e module variable 'check_calls' is assigned but not used

The screen scrolls through about 200 odd items all with win32lib.ew as the start , a number, and I assume a name.. The only thing I have added in this post the warning message. But it was there before. Anyway I pressed enter and screen came up with

c:\EUPHORIA\INCLUDE

So Derek that is all I can write to you about..

Cheers.

Selgor..

new topic     » goto parent     » topic index » view message » categorize

49. Re: No Win32Lib Drag and Drop example OR IS THERE ??

I am unsure that I can help you. I keep getting confusing, conflicting and abridged information. Sorry that my skills do not meet your needs.

Selgor said...

Well Derek I changed directory to euphoria include and typed in your command as requested above...

Thank you.

Selgor said...

eui -i c:\euphoria\include win32lib.ew.Without the full stop at the end. And got what I had told you in the above posts.

Well, not actually. In previous posts you also got a lot of other messages that seemed to have disappeared now.

Selgor said...

The screen sat for a very short while. Then scrolled down through many items. And using the scroll bar to go back to the start I found the first item to be ..

win32lib.ew (9680) :lfFaceName ..

Again, thank you, but that was not the entire message was it? This is only the first line of a message. What type of error/warning did this line related to?

Selgor said...

and the last item to be ..

win32lib.ew (26310) : w32Color_WINDOWTEXT

..

And by the term "item" I assume you mean "line". Was there any error message to go with line?

Selgor said...

Then the screen reads ..

Class FGColor[lControl]=call_func(pRID[kCRID_Control],("class FGColor",w32Color_WINDOWTEXT

followed by ..

Warning {not used}:<0320:: machine.e module variable 'check_calls' is assigned but not used

Hang on ... you just said the other line was the last line. How can you have more lines after the last one?

Selgor said...

The screen scrolls through about 200 odd items all with win32lib.ew as the start , a number, and I assume a name.. The only thing I have added in this post the warning message. But it was there before. Anyway I pressed enter and screen came up with

c:\EUPHORIA\INCLUDE

So Derek that is all I can write to you about..

Well in that case, there is not much more I can do as I need a lot more information about your set up. There are some strange inconsistencies in what you are reporting, such as message seeming to indicate that Euphoria can't find information in the files that you insist are present and apparently with correct content.

Also, warning message of the type "Warning {not used}" are not the default so you must be running Euphoria with some special switches set. What other switches have are you using that you haven't mentioned? Are there any eu.cfg files that you have hanging around?

Anyhow, sorry I was unable to help.

new topic     » goto parent     » topic index » view message » categorize

50. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

Well Derek I changed directory to euphoria include and typed in your command as requested above...

I think you need to stop fighting the system and reorganize your include files. Putting every file into your main include directory is a recipe for disaster. Eventually you'll have two different files with the same name. Or you'll want to upgrade some library and end up with mixed file versions.

Even with 3.1, it's easy to change your EUINC environment variable to configure where your libraries are. With 4.0, you can even have a per-project configuration by putting a eu.cfg file in the program's directory.

Matt

[edit]

Or, go full nuclear on this problem like Kat does and put everything you need into a program's directory.

new topic     » goto parent     » topic index » view message » categorize

51. Re: No Win32Lib Drag and Drop example OR IS THERE ??

mattlewis said...
Selgor said...

Well Derek I changed directory to euphoria include and typed in your command as requested above...

I think you need to stop fighting the system and reorganize your include files. Putting every file into your main include directory is a recipe for disaster. Eventually you'll have two different files with the same name. Or you'll want to upgrade some library and end up with mixed file versions.

Even with 3.1, it's easy to change your EUINC environment variable to configure where your libraries are. With 4.0, you can even have a per-project configuration by putting a eu.cfg file in the program's directory.

Matt

Hmm. Could you tarball your c:\euphoria\include directory as well as the entire code of your program?

That might allow someone else to sort out the mess and figure out how to clean up your system so as to get the program to run for you.

I'd just say to use eudist, but eudist doesn't work if not all include files can be found.

I understand that this is a clean system, set up just so you can debug this problem. However, it seems you may have accidently copied over some of the breakage when you copied over your program to it.

new topic     » goto parent     » topic index » view message » categorize

52. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here..

So the answer to my question is ..........

There is no Demo example code of Drag 'n' Drop in Euphoria.

And I thank all who have read and tried to assist ..

Cheers ..

Selgor..

new topic     » goto parent     » topic index » view message » categorize

53. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

Selgor here..

So the answer to my question is ..........

There is no Demo example code of Drag 'n' Drop in Euphoria.

And I thank all who have read and tried to assist ..

No, that's not the answer. There is no demo that does exactly what you want (although I'm not entirely clear what that is). But there is a demo that demonstrates dragging and dropping.

Matt

new topic     » goto parent     » topic index » view message » categorize

54. Re: No Win32Lib Drag and Drop example OR IS THERE ??

mattlewis said...
Selgor said...

Selgor here..

So the answer to my question is ..........

There is no Demo example code of Drag 'n' Drop in Euphoria.

And I thank all who have read and tried to assist ..

No, that's not the answer. There is no demo that does exactly what you want (although I'm not entirely clear what that is). But there is a demo that demonstrates dragging and dropping.

Matt

Well, there might be a demo that does exactly what the OP wants, but the OP simply can't run it even though everyone else can.

new topic     » goto parent     » topic index » view message » categorize

55. Re: No Win32Lib Drag and Drop example OR IS THERE ??

jimcbrown said...
mattlewis said...
Selgor said...

Selgor here..

So the answer to my question is ..........

There is no Demo example code of Drag 'n' Drop in Euphoria.

And I thank all who have read and tried to assist ..

No, that's not the answer. There is no demo that does exactly what you want (although I'm not entirely clear what that is). But there is a demo that demonstrates dragging and dropping.

Well, there might be a demo that does exactly what the OP wants, but the OP simply can't run it even though everyone else can.

Yes, I pointed out the demo previously, and he said it wasn't what he wanted, but couldn't articulate why it wasn't what he wanted or how it should be different. His refusal to follow best practices has exceeded his ability to maintain a working system, and that just makes the task of helping him that much more difficult.

Matt

new topic     » goto parent     » topic index » view message » categorize

56. Re: No Win32Lib Drag and Drop example OR IS THERE ??

mattlewis said...
jimcbrown said...

Well, there might be a demo that does exactly what the OP wants, but the OP simply can't run it even though everyone else can.

Yes, I pointed out the demo previously, and he said it wasn't what he wanted, but couldn't articulate why it wasn't what he wanted or how it should be different.

There might be another demo that does exactly what the OP wants, but...

At least, there exists code released by the OP that probably does exactly what the OP wants, and works for the primary maintainer of win32lib.

mattlewis said...

His refusal to follow best practices has exceeded his ability to maintain a working system, and that just makes the task of helping him that much more difficult.

Matt

Agreed.

new topic     » goto parent     » topic index » view message » categorize

57. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here..

Jim , Matt.. Please.. who or what is the OP

Cheers Selgor..

new topic     » goto parent     » topic index » view message » categorize

58. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here..

OP ?

Answer me please..

Who or What ?

Cheers

Selgor

new topic     » goto parent     » topic index » view message » categorize

59. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

Selgor here..

OP ?

Answer me please..

Who or What ?

Cheers

Selgor

What is the rush?

new topic     » goto parent     » topic index » view message » categorize

60. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

Selgor here..

Jim , Matt.. Please.. who or what is the OP

Cheers Selgor..

Original Poster.

new topic     » goto parent     » topic index » view message » categorize

61. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here..

Thank you.

What do you mean ..

"What is the rush ?"..

...........

new topic     » goto parent     » topic index » view message » categorize

62. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

Selgor here..

Thank you.

What do you mean ..

"What is the rush ?"..

You posted your question twice in a row, in relatively rapid succession (as evidenced by the fact that there was only one post inbetween).

new topic     » goto parent     » topic index » view message » categorize

63. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here..

Thank you Jim..

Cheers Selgor

new topic     » goto parent     » topic index » view message » categorize

64. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor here..

So Jim you have the programme working. ?? Because you wrote the following...

""but the OP simply can't run it even though everyone else can.""

You wrote the above statement that I have put in quotes..

To me that means you have the programme working ???

True ??

Cheers Selgor..

new topic     » goto parent     » topic index » view message » categorize

65. Re: No Win32Lib Drag and Drop example OR IS THERE ??

Selgor said...

Selgor here..

So Jim you have the programme working. ?? Because you wrote the following...

""but the OP simply can't run it even though everyone else can.""

You wrote the above statement that I have put in quotes..

To me that means you have the programme working ???

True ??

Cheers Selgor..

I was refering to Derek's post, http://openeuphoria.org/forum/m/116885.wc

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu