To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 17384
17383  |  17385
Subject: 
MFHead v0.26P - Programming Help Needed!
Newsgroups: 
lugnet.cad
Followup-To: 
lugnet.cad.dev
Date: 
Sun, 3 Oct 2010 12:33:26 GMT
Viewed: 
26521 times
  
In lugnet.cad, Tore Eriksson wrote:
> I re-wrote the MFHead program from scratch due to public demand. (Public demand
> = two requests ithin one week...) :) Current version: 0.25 - stable, no
> appearant bug from what I'm aware of. Not much of a UI but does its work.
> 
> Feel free to use the source code at will if you are able to look away from the
> fact that I'm breaking all programming conventions and still use Borland Turbo
> C++ v3.0 from 1992(!)
> 
> http://sourceforge.net/projects/mfhead/
> 
> /Tore

Added a 026P version with LDRAWDIR hard-coded set to C:\LDraw in case that
environment string is not set.
If your LDraw Base Directory is somewhere else, you may just want to temporarily
create the folder C:\LDraw\Parts and copy those heads you wish to convert there.

If somebody wishes to add LDraw.ini support to my GetBaseDir function, you are
very welcome to contribute!

/Tore


void GetBaseDir(void)
{
   char *ptr;

   /* get the current ldrawdir environment */
   ptr = getenv("LDRAWDIR");

   if (ptr==NULL)
      strcpy(BaseDir,"Not found!");
   else
   {
     strcpy(BaseDir,ptr);
     strcat(BaseDir,"\\");
     if (BaseDir[strlen(BaseDir)-1] != '\\')
strcat(BaseDir,"\\");

   }
}   /// *** END OF GetBaseDir() *** ///



Message is in Reply To:
  MFHead v0.25
 
I re-wrote the MFHead program from scratch due to public demand. (Public demand = two requests ithin one week...) :) Current version: 0.25 - stable, no appearant bug from what I'm aware of. Not much of a UI but does its work. Feel free to use the (...) (16 years ago, 29-Sep-10, to lugnet.cad)  

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR