Time to talk about wxZDL
Moderator: BioHazard
- Risen
- Posts: 39
- Joined: Fri Sep 02, 2005 17:48
- Contact:
- BioHazard
- Posts: 408
- Joined: Mon Jul 25, 2005 10:02
- Location: Middle of California where there is no air.
- Contact:
- Doomguy0505
- Posts: 40
- Joined: Fri Jul 08, 2005 11:07
- Doomguy0505
- Posts: 40
- Joined: Fri Jul 08, 2005 11:07
- grubber
- Site Founder
- Posts: 230
- Joined: Wed Jun 29, 2005 18:57
- Location: Czech Republic, Zlin
- Contact:
- Doomguy0505
- Posts: 40
- Joined: Fri Jul 08, 2005 11:07
- BioHazard
- Posts: 408
- Joined: Mon Jul 25, 2005 10:02
- Location: Middle of California where there is no air.
- Contact:
Hey everyone. Now that I'm back from the grave, it's time to catch up on posts.
wxZDL may still happen, but I'm much more likely to write the next ZDL in GTK+ or GTKmm.
If Grubber wants to write a copy in QT, that's excellent. That would cover the KDE crowd and I could get the GNOME people. I'm not sure what to say about Win32ZDL. I'm not capable of working on Windows programs any longer as I don't have any windows machines.
I'm really sorry I haven't managed to get the source out yet. I fully intend to GPL the code, I'm just working on getting a server. I'm really close to getting hold of one, I just have to work on it a bit longer. (who has heard that before? )
wxZDL may still happen, but I'm much more likely to write the next ZDL in GTK+ or GTKmm.
If Grubber wants to write a copy in QT, that's excellent. That would cover the KDE crowd and I could get the GNOME people. I'm not sure what to say about Win32ZDL. I'm not capable of working on Windows programs any longer as I don't have any windows machines.
I'm really sorry I haven't managed to get the source out yet. I fully intend to GPL the code, I'm just working on getting a server. I'm really close to getting hold of one, I just have to work on it a bit longer. (who has heard that before? )
- Risen
- Posts: 39
- Joined: Fri Sep 02, 2005 17:48
- Contact:
- BioHazard
- Posts: 408
- Joined: Mon Jul 25, 2005 10:02
- Location: Middle of California where there is no air.
- Contact:
Well, the current state of the ZDL source is a bit shaky. I was adding/fixing a feature when I got sidetracked. I'm not even sure what feature it was so I don't know where to look.
If you try to compile it with VC6, it should work. I don't know about MinGW or VCwhatever>6. If you can't get it compiled, post the errors and I'll try to make up an answer for you.
About working on it. Be aware you have to like pointers. I understand them deeply and hacked them to bits to do what I wanted.
Also, I wrote that back in the days when I could understand badly-formatted code. It's not uncommon to see lines like:or blocks that look like:Sorry. I'm better now. I promise.
(EDIT: Actually, now that I look at it, that's only a little worse than KwikStrip's drawing code.)
Like I said, I'll have the code out eventually, then you can all take it apart to do what you want.
If you try to compile it with VC6, it should work. I don't know about MinGW or VCwhatever>6. If you can't get it compiled, post the errors and I'll try to make up an answer for you.
About working on it. Be aware you have to like pointers. I understand them deeply and hacked them to bits to do what I wanted.
Also, I wrote that back in the days when I could understand badly-formatted code. It's not uncommon to see lines like:
Code: Select all
if((i=SendMessage(GetDlgItem(dlg,q),LB_GETCURSEL,0,0))!=LB_ERR&&i!=SendMessage(GetDlgItem(dlg,q),LB_GETCOUNT,0,0)-1){tmpi=item[i+1];item[i+1]=item[i];item[i]=tmpi;}
Code: Select all
i=(strlen(section)+3)*sizeof(char);
memset((sct=malloc(i)),0,i);
strcpy(sct,"[");strcat(sct,section);strcat(sct,"]"); // make [sct] = "[*section*]"
i=(strlen(entry)+2)*sizeof(char);
memset((key=malloc(i)),0,i);
strcpy(key,entry);strcat(key,"="); // make [key] = "*entry*="
i=(strlen((strlen(sct)>strlen(key))?(sct):(key))+1)*sizeof(char);
memset((tmp=malloc(i)),0,i);
// Get to the proper section
do{fgets(tmp,strlen(sct)+1,fptr);
if(feof(fptr)){i=-2;goto exit;} // Die if [section] can't be found
}while(strcmp(tmp,sct));
// Find the right entry
do{fgets(tmp,strlen(key)+1,fptr);
if(feof(fptr)||tmp[0]=='['){i=-3;goto exit;} // Die if [entry] can't be found in [section]
}while(strcmp(tmp,key));
(EDIT: Actually, now that I look at it, that's only a little worse than KwikStrip's drawing code.)
Like I said, I'll have the code out eventually, then you can all take it apart to do what you want.
- grubber
- Site Founder
- Posts: 230
- Joined: Wed Jun 29, 2005 18:57
- Location: Czech Republic, Zlin
- Contact:
- solarsnowfall
- Persecution Complex
- Posts: 363
- Joined: Fri Aug 05, 2005 8:51
- BioHazard
- Posts: 408
- Joined: Mon Jul 25, 2005 10:02
- Location: Middle of California where there is no air.
- Contact:
Heh, when I get my SVN service up, I'll have to make a ZDL meta-repository for all the different versions.
svn://bio.vectec.net/svn/
ZDL/Classic
ZDL/dotNET
ZDL/wx
ZDL/GTKmm
ZDL/GTK+
ZDL/QT4
All we'd need is Java and Python to complete the list!
I'll totally set that up when I get a good server up...
svn://bio.vectec.net/svn/
ZDL/Classic
ZDL/dotNET
ZDL/wx
ZDL/GTKmm
ZDL/GTK+
ZDL/QT4
All we'd need is Java and Python to complete the list!
I'll totally set that up when I get a good server up...