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');
User Profile
Collapse
-
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... -
OK. Thank you very much! I really appreciate your patience for my questions.
Best Regards
97612...Leave a comment:
-
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...Leave a comment:
-
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!...Leave a comment:
-
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...
No activity results to display
Show More
Leave a comment: