15,905,144 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Mr Sam (Top 28 by date)
Mr Sam
8-Jul-13 5:22am
View
Deleted
In Window, Cursor has to move with keyboard input enterkeys, up,down,left,right keys only. Mouse should not place the position with mouse left button clicks.
Mr Sam
4-Apr-13 5:26am
View
Any other solutions plz ?
Mr Sam
4-Apr-13 1:17am
View
Thanks Rashid. I'm trying.
Mr Sam
15-Mar-13 4:53am
View
Hi! parths,
Using GetLongPathName() resolved my issue. Thank You!
Mr Sam
11-Mar-13 4:45am
View
OK, MS Gothic is a non monospaced font. So can we design our own font looking similar to MS Gothic with same pitch, same width? If my question is meaningless, plz ignore it.
Thanks
Mr Sam
7-Mar-13 0:23am
View
How to rewind a file when writing text into file and when maximum file size reached.
Mr Sam
6-Mar-13 22:51pm
View
Hi! Doesn't matter whether it is char by char or chunk of data. But whatever writing the text into capture file, it should be rewind once reached max file size. file size is configured from 1K to 10MB.
Mr Sam
6-Mar-13 22:49pm
View
Hi! my question is my capture text file size is limited some size which is configurable from 1k to 10MB. If suppose my capture text file size is mentioned 1024 bytes, and if i'm continuously writing text, size of text file should not increase 1024 bytes and whatever the text writing into capture file after reaching 1024 bytes. It should rewind the previous text. in capture text file on top left corner should show [Rewinded...].
Mr Sam
6-Mar-13 11:52am
View
hi!
writing char by char into com port. need to send char by char.
To avoid the above expensive process i'm reading the file initially file open logic was written before calling of writedata().
But if file open always how to know where to position the file pointer in file.
Mr Sam
27-Feb-13 10:31am
View
Yes, what could be the reason for this. In Win7,"The file is in use.
Enter a new name or close the file that's open in another program." is showing. why not showing my application msg.
Mr Sam
27-Feb-13 10:02am
View
Opening the file as:
CFile m_file;
if(!m_file.Open((m_FilePath, CFile::modeCreate | CFile::modeNoTruncate | CFile::modeWrite,&ex))
Mr Sam
27-Feb-13 8:04am
View
Ok sure.
Mr Sam
27-Feb-13 7:44am
View
Yes - But my file size is not more than 2 KB.
Mr Sam
27-Feb-13 7:36am
View
You mean the question which i posted is already in codeproject forum ?
Mr Sam
27-Feb-13 7:17am
View
Thank You!
Mr Sam
27-Feb-13 7:17am
View
Thank you!
Mr Sam
27-Feb-13 7:16am
View
Oh! Sorry, i forgot. Thank you!
Mr Sam
26-Feb-13 9:33am
View
Thank You so much! my problem got solved :-)
Mr Sam
26-Feb-13 7:35am
View
Thank you! SA.
Mr Sam
25-Feb-13 12:32pm
View
I did not get success by using above functions. Any other solutions please. And how to resolved this : cannot convert parameter 1 from 'CString' to 'const char *'?
Mr Sam
25-Feb-13 12:26pm
View
Deleted
I did not get success by using above functions. Any other solutions please.
And how to resolved this : cannot convert parameter 1 from 'CString' to 'const char *'?
Mr Sam
11-Feb-13 20:21pm
View
Albert, thanks to you!!
Mr Sam
11-Feb-13 20:21pm
View
Thanks you!!!
Mr Sam
7-Feb-13 3:29am
View
yes, instead of writing char by char into file. Writing chunk by chunk, so that it will get finish very fastly.
Mr Sam
7-Feb-13 2:12am
View
1KB
Mr Sam
28-Jan-13 5:10am
View
Giving error like: error C2501: 'CStringW' : missing storage-class or type specifiers
Mr Sam
28-Jan-13 4:52am
View
I have converted the code like this
CString UTF8toUTF16(const CString& utf8)
{
CString utf16;
int len = MultiByteToWideChar(CP_UTF8, 0, utf8, -1, NULL, 0);
if (len>1)
{
wchar_t *ptr = utf16.GetBuffer(len-1);
if (ptr) MultiByteToWideChar(CP_UTF8, 0, utf8, -1, ptr, len);
utf16.ReleaseBuffer();
}
return utf16;
}
and getting errors...
error C2664: 'MultiByteToWideChar' : cannot convert parameter 3 from 'const class CString' to 'const char *'
Mr Sam
28-Jan-13 4:31am
View
This function is not working, getting errors on vc6.0. There is not CStringW, CStringA is not there CString only. Please check...
CStringW CFunctions::UTF8toUTF16(const CStringA& utf8)
{
CStringW utf16;
int len = MultiByteToWideChar(CP_UTF8, 0, utf8, -1, NULL, 0);
if (len>1)
{
wchar_t *ptr = utf16.GetBuffer(len-1);
if (ptr) MultiByteToWideChar(CP_UTF8, 0, utf8, -1, ptr, len);
utf16.ReleaseBuffer();
}
return utf16;
}
Show More