×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    185

    How to Create MDL File?

    Hi guys,

    anybody can tell how to create .mdl file for S60 2nd Edition?

    Thanks.

  2. #2
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: How to Create MDL File?

    Quote Originally Posted by Zero 6630
    Hi guys,

    anybody can tell how to create .mdl file for S60 2nd Edition?

    Thanks.
    here is one example of MDL file.
    Attached Files Attached Files

  3. #3
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: How to Create MDL File?

    the mmp file for that would be
    *************************************
    target AppAutostart.MDL
    targettype MDL
    targetpath \system\recogs\

    uid 0x10003A19 0x061B3769

    SOURCEPATH ..\src
    SOURCE cl_autostart.cpp

    LANG SC

    USERINCLUDE . ..\inc

    SYSTEMINCLUDE . \epoc32\include \epoc32\include\libc


    library EUSER.LIB APMIME.LIB efsrv.lib apparc.lib apgrfx.lib
    LIBRARY efile.lib

    deffile CL_AUTOSTART.DEF
    *********************************************

    specifying at the start that the target would be - target AppAutostart.MDL
    Attached Files Attached Files
    Last edited by vasant21; 2006-12-16 at 04:51.

  4. #4
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    185

    Re: How to Create MDL File?

    Hi

    Thnx vasant21 but i don't know where i input that?
    or can give me only source code for create .mdl file?
    Last edited by Zero 6630; 2006-12-16 at 22:29.

  5. #5
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: How to Create MDL File?

    Quote Originally Posted by Zero 6630
    Hi

    Thnx vasant21 but i don't know where i input that?
    or can give me only source code for create .mdl file?

    Here is the attached project for creating the autostart.
    Attached Files Attached Files

  6. #6
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    185

    Smile Re: How to Create MDL File?

    Hi,

    Thnx dude..for the source code.
    Last edited by Zero 6630; 2006-12-22 at 06:25.

  7. #7
    Regular Contributor
    Join Date
    Aug 2006
    Location
    India
    Posts
    55

    Re: How to Create MDL File?

    Quote Originally Posted by vasant21
    Here is the attached project for creating the autostart.
    Hi Just I wanted to know If copying files is possible in .Mdl ,
    I'm using Buatils.h and CFileMan to copy files but when I try to copy files
    I'm getting errcode as KErrNoMemory, but in the same mdl I'm able to create
    files but copying is not posible,
    can u pls guide us
    Regards,
    Hemraj.

  8. #8
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: How to Create MDL File?

    Quote Originally Posted by hemrajn
    Hi Just I wanted to know If copying files is possible in .Mdl ,
    I'm using Buatils.h and CFileMan to copy files but when I try to copy files
    I'm getting errcode as KErrNoMemory, but in the same mdl I'm able to create
    files but copying is not posible,
    can u pls guide us

    IS your phone have enough memory to copy the file?
    try BaflUtils::CopyFile
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  9. #9
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,347

    Smile Re: How to Create MDL File?

    Quote Originally Posted by hemrajn
    Hi Just I wanted to know If copying files is possible in .Mdl
    Yes, It is possible.

    Have you tried something like:
    Code:
    TBool CMyClass::Copy(const TDesC &anOld,const TDesC &aNew)
    {
    	RFs iFs;
    	iFs.Connect();
    	
    	CFileMan* iFileMan=CFileMan::NewL(iFs);
    	CleanupStack::PushL(iFileMan);
     
    	TInt iErr=iFileMan->Copy(anOld,aNew);
     
    	CleanupStack::PopAndDestroy(iFileMan);
    	iFs.Close();
     
    	if(iErr==KErrNone)
    		return ETrue;
    	else
    		return EFalse;
    }
    Check for your available memory also.
    Kiran.

Similar Threads

  1. Can't create settings file and log file.
    By skhimsara in forum Symbian
    Replies: 1
    Last Post: 2006-05-08, 09:25
  2. How to reformat the file?
    By ryanfunghk in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-03-26, 17:43
  3. How to create mbm file?
    By qt_raip in forum Symbian Tools & SDKs
    Replies: 13
    Last Post: 2004-05-12, 11:07
  4. Steps to create SIS. How create .pkg file for petran?
    By BobbyFletcher in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2004-04-21, 18:26
  5. how to install mdl file
    By sridhar_ratna in forum Symbian
    Replies: 1
    Last Post: 2003-05-05, 13:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×