|
Just checking timer function called or not.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Hi
I am looking for a good serialization design which can support multi-inheritance.
If anyone knows a good class, please me know.
Best regards,
modified on Monday, May 18, 2009 9:02 AM
|
|
|
|
|
|
i have the following problem, when i print the output to the CEditview window, the line is too long that it get broken and start a new line onspite of
i did not instruct the programm to break the line and complete it in a new line.what is wrong?
|
|
|
|
|
try adding autohscroll and horizontal scroll bar style to the edit view
|
|
|
|
|
can you give me the code please?
|
|
|
|
|
Overload the PreCreateWindow() funcion of the editview class, in that add WS_HSCROLL and ES_AUTOHSCROLL.
....::PreCreateWindow(..)
{
lpcs->style |= WS_HSCROLL|ES_AUTOHSCROLL;
.....
}
|
|
|
|
|
In the Test_View.cpp i h vae the code but it does not work
BOOL CTest_View::PreCreateWindow(CREATESTRUCT->cs)
{
cs.style |= WS_HSCROLL|ES_AUTOHSCROLL;
return CEditView::PreCreateWindow(cs);
}
|
|
|
|
|
Hi all,
I have a richedit control in my program (which is unicode compiled). This richedit control refuses to display the ALT+nnn codes. Instead some sort of random junk (boxes) appear after I let go of the alt key and press any other key. I load the "RICHED20.DLL" library. Another fact is that i can paste unicode characters in the control. It is only with the typing, that the control seems to have a problem. Any help will be appreciated. Thanks in advance.
|
|
|
|
|
I have written a program (C++/MFC) to obtain the correct time from a time server and set the system clock. Unfortunately, Vista & Win 7 with UAC enabled block this operation. How can I elevate the program's security privledge level so that I can set the clock? Is that the right approach? If not, how else might I go about it? I wouldn't have thought the system time would be that protected, but it obviously is. I am using a Code Project solution CSNTPClient class and the class function CSNTPClient::SetClientTime(CTime newTime) The solution on my own machine is to turn UAC off, but that's not practical or reasonable on other people's computers.
Thanks.
Ron
|
|
|
|
|
Source
send me
pencil80@nate.com
|
|
|
|
|
You want us to send you the source to the source in the zip that you've uploaded onto your own website?
|
|
|
|
|
Do you intend to learn recursions?
You forgot to mention the condition, when would this end!
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
|
Hi to All,
I have used the find() function of string lib in my program.
Now my problem is I need to search for case insensitive sub string.
Please help me to convert my code .
My code sample is.........
string::size_type loc=Myword.find("TaG"); //searching if tag/Tag/tAg...is present in the string
if(loc!= string::npos)
{
//tag is present
}
else
{
//"tag absent";
}
thanks in advance
HimangshuS
-----------------------------
I am a beginner
|
|
|
|
|
You have two options
Override your own string type that's case insensitive:
Clicky[^]
Or just make lower case copies of the string and substring, and use find with those.
|
|
|
|
|
is there any function to make the string lowercase before comparing..say
string a="HI How R U"
if(a.find("hi")) //here I want to convert the string into lowercase n compare with lowercase hi
{
cout<<"found";
}
thanks
-----------------------------
I am a beginner
|
|
|
|
|
You can maybe try this function StrStrI . It's takes two buffers look up MSDN. So when you call this function pass in std::string likewise...
StrStrI( &Myword[0], "TaG" );
If successfull it will return address of the substring, else NULL.
Header to include: Declared in Shlwapi.h.
Import Library: Shlwapi.lib.
Also make sure you don't modify the length of Myword buffer. std::string is not aware of any such updates.
|
|
|
|
|
thanks for your reply...
Actually if you dont mind I need little more clearence.
I didnot get how do I use strstrI in the same line
if(myword.find("Tag")!= string::npos)
All we need is to incorporate case insensitive search in the same statement above.
(Or can we pass the lowercase of myword itself so that we can check with "tag" always)...something like
if(lcase(myword).find("Tag")!= string::npos)
myword is of the type string
thanks in advance
-----------------------------
I am a beginner
|
|
|
|
|
himangshuS wrote: if(myword.find("Tag")!= string::npos)
Like this...
if( StrStrI( &Myword[0], "Tag" ))
{
MessageBox( "Found \"Tag\" in Myword :)" );
}
|
|
|
|
|
hi all,
i have a problem with font of a CStatic, CEdit,CRichEdit Control Acctually problem is nothing but when i create a control using drag and Drop from contrl box the control text/Caption is looks like normal, and when i create it dynamically using Create function it looks like it is bold.
so how to change dynamically created control's text normal.
|
|
|
|
|
Hello everybody,
does exist a handler which indicates the end of the maximization code?
Because if I maximize the MDI-Frame i step 4 times into the OnSize Handler of the Frame and its View.
Each time the View is calculated at new, which provokes a ugly effect (+- flickering)
If I get the OnSize Handler for maximization, i could freeze the View or Screen. And after the last OnSize i release the Screen.
But I don't find a way to detect the end of this maximizing process.
Is there already a technique to work arround?
Big thanks for any help 
|
|
|
|
|
Hi all,
I am trying to extend a NTFS partition using FSCTL_EXTEND_VOLUME. The code is
HANDLE hVolume = CreateFile(L"\\\\.\\E:", GENERIC_READ | GENERIC_WRITE,FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE,NULL,OPEN_EXISTING,0,NULL);
LONGLONG liBuffer = 20971520; // size in sectors to be increase
DWORD dwReturnedBytes = NULL;
DeviceIoControl(hVolume,FSCTL_EXTEND_VOLUME,&liBuffer,sizeof(liBuffer),NULL,0,dwReturnedBytes,NULL);
But the function fail with #error 87.
Someone please help me out with your suggestions.
Thanks.
|
|
|
|
|
Madan Chauhan wrote: But the function fail with #error 87.
FormatMessage()[^] says: "The parameter is incorrect". So, you could check if all the parameters are valid before you pass it to the function.
You could as well use the Error lookup utility which comes with VS to get the error description for an error number.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Thanks for the reply.
Yes all the parameters are correct. Is there some extra job need to do before executing this function?
|
|
|
|