User Profile

Collapse

Profile Sidebar

Collapse
97612
97612
Last Activity: Oct 5 '09, 08:44 AM
Joined: Nov 4 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 97612
    replied to char to TCHAR
    in C
    Dear donbock,

    Thanks for your reply, my problem is solved , thanks!

    Below are the working code:

    const TCHAR* ptr = NULL;
    TCHAR newPath[100];

    ptr = _tcsrchr(absPat h, _T('.'));
    _tcsncpy(newPat h, absPath, ptr - absPath + 1 );
    newPath[ptr - absPath + 1] = TCHAR('\0');
    See more | Go to post

    Leave a comment:


  • 97612
    started a topic char to TCHAR
    in C

    char to TCHAR

    Below are my codes,and I want to use TCHAR to replace the char

    /*************** *************** **********
    const char* ptr = NULL;
    char newPath[100];

    ptr = strrchr(absPath , '.');
    strncpy(newPath , absPath, ptr - absPath + 1);
    newPath[ptr - absPath + 1] = '\0';

    *************** *************** *************/

    Below are modified codes with some logic errors, anyone can...
    See more | Go to post

  • 97612
    replied to Convert a project (ImageStone) to Dll
    in C
    OK. Thank you very much! I really appreciate your patience for my questions.

    Best Regards

    97612...
    See more | Go to post

    Leave a comment:


  • 97612
    replied to Convert a project (ImageStone) to Dll
    in C
    Is that I need to separate the codes that implement ImageStone from the .h files if I still want to build ImageStone as a .dll? Did I misunderstand what you mean?

    Best Regards...
    See more | Go to post

    Leave a comment:


  • 97612
    replied to Convert a project (ImageStone) to Dll
    in C
    Sorry, I can't get what you mean. Did you mean that I can only use ImageStone as static library rather than a .dll?

    Can you explain more detail or tell me what should I do next for build ImageStone as .dll?!

    Thanks a lot!...
    See more | Go to post

    Leave a comment:


  • 97612
    started a topic Convert a project (ImageStone) to Dll
    in C

    Convert a project (ImageStone) to Dll

    Purpose: Convet the project " ImageStone "(with source code) to a DLL

    Platform: Visual Studio 2005 on Windows Vista

    What I've done:
    1. Create a empty DLL project and add all the source codes of ImageStone in the Header Files of the project(because ImageStone project has only header files)

    2. Add "__declspec(dll export)" in all the functions of .h file in the Header Files of...
    See more | Go to post
    Last edited by 97612; Nov 4 '08, 08:14 AM. Reason: update
No activity results to display
Show More
Working...