|
I'm not sure if I'm answering your question. I guess you might want what Weiye Chen suggested and create an application that uses a timer to run something every 2 hours.
To start this first app, put the path in the registry key mentioned earlier. you can set this key using your .msi or whatever installation technique you use when distributing you apps.
Good day.
|
|
|
|
|
im making a scrolling text class and what i cant figure out is
::SetWindowPos(m_move.GetSafeHwnd(), wndTop, count, 15, (m_Stext.GetLength() * 6), 13, SWP_NOZORDER); i cant figure out how to get the handle for the control variable of the static text like m_move.GetSafeHwnd() and make it work in my class any and all help is needed. cuz im
and i need to know how to find out how long the text is thats scrolling right now i use (m_Stext.GetLength() * 6) but the longer the text it the more extra space it adds at the end.
-- modified at 22:12 Sunday 2nd July, 2006
|
|
|
|
|
locoone wrote: i cant figure out how to get the handle for the control variable of the static text like m_move.GetSafeHwnd()
Your static control cannot have the id IDC_STATIC. Change that to whatever other value.
locoone wrote: i need to know how to find out how long the text is
In the CDC class there is a GetTextExtent() metod you can use. To get the dc: CClientDC dc(this); and then dc.GetTextExtent(..)
|
|
|
|
|
I am wondering, if I use String.Substring does it extracts a portion of a string? Basicly, does visual C++ is supportString.Substring. I know we can use String::Substring but I am not sure about String.Substring . Does any one know?
Moujan
|
|
|
|
|
your puropose is C++/CLI
whitesky
|
|
|
|
|
I am trying to manage the Windows Live Messenger Contact List for a usefull add-on, but the .WindowsLiveContact file is encrypted, so I am not sure where to start to follow the encryption process for Windows Live Messenger, so any help or guide to show how to start following the decryption process of Windows Live Messenger for the Contact List?
Thanks in advance
|
|
|
|
|
Hi guys m makin an answering machine using TAPI and m nt usin COM model and mfc as well m usin simple API . I m havinb problems in placing d call . Can ne1 help me plzzzzzz as soon as possible its URGENT !!!!!!! IF ne1 has d source code send me at gaurav_juneja21@yahoo.com. PLZZZZZZZZ GUYS HELP ME OUT !!!!!!!!
|
|
|
|
|
Hi all,
i'm doing some test with VS2005 and I'm wondering if there's any control or view that permits to create a dialog with the look and feel like the windows explorer. I mean the left side blue menu that it's like (or it's) DHTML. I don't know if the only way to do that is with the CHtmlView / CHtmlCtrl but maybe the .Net has a control to do that.
Best,
Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
-- modified at 13:46 Sunday 2nd July, 2006
|
|
|
|
|
|
Great article. Thanks!!!
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
hello I need to write a device driver for serial port, using which I want to handle the serial communication interrupt based and also wanna do serial hooking and get the simple text that is sent and received throught the serial port . but the problem is "I know nothing about system programming and device driver writing" have been studying alot searching on net and also msdn , but all that I know is that we have to write DriverEntry() and some other functions. sooooooooooo plzzzzzzzzzzz help me its an assignment given to me and I must do it but cant find how to do this
thanks in advance
all pros are requested to help me plz
have to do this work in C++.
|
|
|
|
|
Driver development is complex and totally different to writing a user mode application. I suggest you get a good text book and start reading.
Steve
|
|
|
|
|
hi iwant to ask how i can get the full url in isapi , icant find any function return the full path , example
http://test.com/example
pMapInfo->pszURL its return /example iwant a function that return test.com/example ????
any idea????????
thanks
abdz
|
|
|
|
|
hello
I'm working on set covering problem
and i want the code of this problem with ACO or 3-flip
can u help me plz
|
|
|
|
|
Could someone tell me how to write a method overloading?
Thanks
Moujan
|
|
|
|
|
Here's an example:
void SetRect(CRect& rect);<br />
void SetRect(int top, int left, int bottom, int right);<br />
Adding this:
void SetRect(int top, int left, int width, int height);<br />
would be invalid, because a method with (int, int, int, int) already exists above.
Does that help at all?
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
Thanks, but I am still confuse. You mean I should only use the first line:
void SetRect(CRect& rect); and I can exclude the second line.
Could this be an example overloading:
int foo1(int number);
int foo2(int number);
if is not, how can I make it to be a method overloading type?
Moujan
|
|
|
|
|
In my example, I overloaded the SetRect function to accept different types of parameters, but both methods accomplishes the same thing.
So you could use either method, depending on what you need to do.
CRect rc(10, 10, 100, 50);<br />
SetRect(rc);<br />
<br />
- or -<br />
<br />
SetRect(10, 10, 100, 50);
In your example, it is not overloading, since the function names are different (foo1 and foo2)
An example of overloading using your methods would be:
int foo1(int number);<br />
int foo1(float number);<br />
Another note: you CANNOT change the type of the return value.
int foo1(int number);<br />
float foo1(int number);
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
In the example that I wrote and you correct it to:
int foo1(int number);
int foo1(float number);
If I want to keep the number 1 and number 2 instead of float number that you wrote can I write the its over loading method this wasy:
int foo(int number);
int foo(intnumber1, int number);
Moujan
|
|
|
|
|
Yes.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
|
So could this be an example for method overloading?
int foo(int number);
int foo(intnumber1, int number);
Moujan
|
|
|
|
|
Yes, but be careful with default argument. The following does NOT work:
int foo(int number);
int foo(int number1, int number = 0);
Basically, any ambiguity the compiler cannot resolve will not work.
Best,
Jun
|
|
|
|
|
Hi guys,
I am trying to use openprocess however I am running into a few problems. Specifically for the last parameter of the function OpenProcess , I am wondering how would I retreive the process id using hwnd retrieved from FindWindow ? I have tried GetProcessId however that doesnt seem to work. I get a compiler error saying that its an undeclared identifier. However I have included windows.h so there should not be any problems. Would anyone know how to get the process id of a window handle?
Thanks,
Robbie
|
|
|
|
|
First note that GetProcessId requires at least Windows XP or Windows Server 2003.
Call GetWindowThreadProcessId and OpenProcess:
DWORD dwProcessID = 0;
::GetWindowThreadProcessId(hWnd, &dwProcessID);
HANDLE hProcess = ::OpenProcess(PROCESS_QUERY_INFORMATION,
FALSE,
dwProcessID);
if(NULL != hProcess)
{
::CloseHandle(hProcess);
}
else
{
DWORD dwError = ::GetLastError();
}
Ovidiu Cucu
Microsoft MVP - Visual C++
|
|
|
|