|
|
Hi again, I remembered a way to copy files across network:
TransmitFile Function
The TransmitFile function transmits file data over a connected socket handle. This function uses the operating system's cache manager to retrieve the file data, and provides high-performance file data transfer over sockets.
Note This function is a Microsoft-specific extension to the Windows Sockets specification.
http://msdn.microsoft.com/en-us/library/ms740565(VS.85).aspx[^]
Hope this one works...
|
|
|
|
|
Hey,
That is really a good information. Thanks.
|
|
|
|
|
hi,
how to draw line and a small circle below that line on a dialog based application? i want to display 8 such lines on a dialog.
thanks in advance 
|
|
|
|
|
Handle the WM_PAINT message.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Are you sure you want to draw directly on the dialog ? In general, it doesn't make a lot of sense. A better approach would be to create a custom control and delegate the work to it.
What are you trying to achieve exactly ?
|
|
|
|
|
hi Cedric,
thx for ur reply.
i want to display a line(straight line not dotted as shown below) and 1 small circle as shown below:
|
|
|
O
|
|
|
|
|
Ok but this doesn't answer my question. Do you really need to draw on the dialog itself rather than using a custom control ? Here[^] is an article about creating custom controls. It is much cleaner than drawing directly on the dialog.
|
|
|
|
|
Hi all,
I m using two COleDateTimeCtrl,i have some records i want to filter these records according to date.
COleDateTime from_date;
COleDateTime to_date;
COleDateTime Record_date;
for example: i want to filter records from 15/oct/2008 to today.
today record is present.
i m using COleDateTime operators.
filter like this;
if(from_date>=Record_date && to_date<=Record_date)
{
AfxMessageBox("Record Found");
}
its not working correct for today record.
if record date is greater than today date,than its working fine.
please tell me what can i do?
thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
"_$h@nky_" wrote: from_date>=Record_date
Your record date should be smaller than the 'from_date' (so earlier than the from_date) ?
"_$h@nky_" wrote: to_date<=Record_date
Your record should be bigger than the 'to_date' (so, after the to_date) ?
Think a bit about your checks.
|
|
|
|
|
thnks
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
"_$h@nky_" wrote: if(from_date>=Record_date && to_date<=Record_date)
Funny.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hello to all,
I have created one MDI application and in this application I want to remove maximize button of main application window with its box also,means I want to keep only minimize and close button there.I wrote following code in CMainFrame::PreCreateWindow() function,
BOOL CMainFrame::PreCreateWindow()
{
if( !CMDIFrameWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.style = WS_OVERLAPPED | WS_CAPTION | FWS_ADDTOTITLE
| WS_THICKFRAME | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_MAXIMIZE;
cs.style &= ~WS_MAXIMIZEBOX;
return CMDIFrameWnd::PreCreateWindow(cs);
}
But the problem is that it is not removing maximize button completly,it is only disabling maximize button there, though now I can not operate maximize button but I can see maximize button and its box there which is disabled.I want to remove that box and maximize button completly,can anyone help me how to do it?
Thanks and Regards,
Anay
|
|
|
|
|
AFAIK you cannot do that. MAXIMIZE & MINIMIZE buttons are a 'both or none' option.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
AnayKulkarni wrote: cs.style = WS_OVERLAPPED | WS_CAPTION | FWS_ADDTOTITLE
| WS_THICKFRAME | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_MAXIMIZE;
cs.style &= ~WS_MAXIMIZEBOX;
Why are you adding the WS_MAXIMIZEBOX style and then immediately deleting it?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Try following
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
cs.style &= ~(WS_MINIMIZEBOX|WS_MAXIMIZEBOX);
return CFrameWnd::PreCreateWindow(cs);
}
|
|
|
|
|
Hello,
I made a dll that exports several functions, 2 of them are:
-dllCallCreateWindow
-dllCallHandleMessages
My console application calls above two functions. Now, in my console application, I want to be able to attach child dialogs to my CFrameWnd. How can I do that?
The idea is to have my dll creating a CFrameWnd and running with a default behaviour, but if the user wants to customize the CFrameWnd, he should be able to add child dialogs created by himself in the console application.
I can create dialogs in the console application, but I cannot specify the parent window (If I use the CWnd object returned by the dllCallCreateWindow, the application crashes).
Any help is greatly appreciated 
|
|
|
|
|
Hi All,
I would like to know about the system() command in C++. pls help me....
Thanks and Regards,
Anitha
|
|
|
|
|
system() ? For once, it's a nasty thing, which must be avoided. If you're calling it for some reason, there's most probably some other better way.
Say me, what more would you like to know about system() command?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
hi,
I need to access Java Servlet ("http://192.197.66.99/sample/checkName") in C++.
|
|
|
|
|
I don't know how do you access a Java servlet from C++.
We were talking about the system() command and how bad it is... But probably you are looking for ShellExecute() may be?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
AnithaSubramani wrote: I need to access Java Servlet...in C++.
See here.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
yah sir but why system iz bad and System iz good? Iz becoz System.Console.write workz?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
What about reading the documentation [^]?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: What about reading the documentation [^]?
Cheettar! So, you are reeding the docs and answering. You plagiarist!
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|