|
I've tried that with ActiveX controls and it's possible.
|
|
|
|
|
i have a freeware which can download a large file by breaking it into pieces.
eg. for a 100M file, the software breaks it into 10 pieces and downloads them togather, then combines them into one.
I am interested about tech used by the software - i need to develop an auto-download software for a company now - i want to use the same tech for downloading.
any links or comments?
thanks
includeh10
|
|
|
|
|
there is a grid control in one window. i am trying to read the contents of that grid . using getclassname() function i have got the name of that controls class as 'ApexGrid.19'. now i am having a handle to that control. and class name. next i want to make use of this information to read that controls data. is there any way how to do it. how to get the various interfaces provided by that class. and how to include and use that class in our vc applications. please tell me.
|
|
|
|
|
I want to get the HTTP visit in my computer, which OS is windows 2000 and has IIS.
I create a program that uses socket to listen 80 port every second, but nothing captured.
Should I close the IIS or listen HTML format?
How to get it?
Thanks!
|
|
|
|
|
Can you please explain a little bit more what do you mean by "visit"?! In case you're trying to create a server-type application that listens for the 80 port (which by the way is HTTP) then you should disable IIS or re-direct IIS on a different port than 80 because the two would be attempting to do the same task. Then you should have your application always listen to port 80 (every second doesn't seem like a good ideea -- it's a two seldom)
I'd advise you to check out some documentation on writing TCP/IP client/server applications.. there are a ton of examples out there and just do a bit of readion on how a server works before you decide what to do with your app!
|
|
|
|
|
I want to create an unmanaged VC7.1 dll and use it with VC6? Is this possible? Although my app is MFC the dll does not require any MFC at all. The reason for my question is I would like to use some boost code that does not compile with vc6 in an application that would take too much effort to port to vc7. I know I would have to keep the boost code internal to the dll but that is ok for my application.
John
|
|
|
|
|
Answering my own question...
Well that works. I created a w32 dll in VC7 and linked and executed it from a VC6 application without any problems at all. I did not add boost to the vc7 dll but I'm sure that would work too.
John
|
|
|
|
|
Hi ALL,
I have created a Win32 Simple DLL project in VC++ 6. But although it is producing the .DLL file it is not producing the .LIB file. I don't know what is the problem. Please help me out.
Regds.
Somenath Mukhopadhyay
|
|
|
|
|
|
Hi,
I'm using DrawText(...) fn to draw multiline text.
Can I increase the default line spacing with out changing the text size?
I can't replace the DrawText to TextOut because I need DT_WORDBREAK and DT_CALCRECT.
- NS -
|
|
|
|
|
I would calculate where each line of text will break, create a new string for the new length and draw each line of text independently - then adjust the lpRect to move down the desired spacing.
|
|
|
|
|
Hi,
How can I get the colors set by CWinApp::SetDialogBkColor?
- NS -
|
|
|
|
|
Will this work:
_AFX_WIN_STATE* pWinState = _afxWinState;
COLORREF clrCtlBk = pWinState->m_hDlgBkBrush;
COLORREF clrCtlText = pWinState->m_crDlgTextClr
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Thank you.
But when I use it I get a link error:
error LNK2001: unresolved external symbol "class CProcessLocal<class _afx_win_state=""> _afxWinState" (?_afxWinState@@3V?$CProcessLocal@V_AFX_WIN_STATE@@@@A)
What should I do?
- NS -
|
|
|
|
|
|
Well, it was years back... Thank you...
|
|
|
|
|
I got a different way to get these colors!
I sent WM_CTLCOLORDLG to parent and used the brush returned.
HBRUSH hBrush = (HBRUSH) pWndParent->SendMessage(
WM_CTLCOLORDLG,
WPARAM( dcMem.GetSafeHdc()),
LPARAM( m_hWnd ));
::FillRect( dcMem, &rt, hBrush );
For static texts
HBRUSH hBrush = (HBRUSH) pWndParent->SendMessage(
WM_CTLCOLORSTATIC,
WPARAM( dcMem.GetSafeHdc()),
LPARAM( m_hWnd ));
::FillRect( dcMem, &rt, hBrush );
I have a little fear about bugs!
Could you please tell me that it is bug free?
Thank you.
|
|
|
|
|
hi .problem here .
canu please tell how to establisth a connection between two databases.
my problem is like this. there are two databases ( 2 objecs of Cdatabase class)
one is an ms access database and other is excel database.
i want to use tables of msaccess in excel database. both are in two different locations ( on the pc).
is there any way of importing tables from msaccess database to other one.
or any opther kind of a solution please .
waiting for ur replyy. tejaswi.
|
|
|
|
|
Import how ?
Excel is NOT a database.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
Excel is NOT a database.
No, Excel is not a database. However, using ADO, you can access it like it is. As far as the exporting goes, if you're using automation, there are functions for transferring an Access table to Excel, I don't know about the reverse.
My articles
BlackDice
|
|
|
|
|
reverse is not required now. its sufficient if i can access the data of the other database - ms access .
pls tell those functions for importing tables to excel here i am using atomaton only. how to import. actually in my case i am using l is using the Cdatabase object with 'MICROSOFT EXCEL DRIVER'. and creating ,writing an dupdating tables into excel.
-- modified at 10:39 Tuesday 27th September, 2005
|
|
|
|
|
tejaswi_teja wrote:
reverse is not required now. its sufficient if i can access the data of the other database - ms access .
pls tell those functions for importing tables to excel here i am using atomaton only. how to import. actually in my case i am using l is using the Cdatabase object with 'MICROSOFT EXCEL DRIVER'. and creating ,writing an dupdating tables into excel.
If I understand correctly and I'm not sure I do, you want to export rows from an Access database to and Excel Workbook Correct? If so doing that is easy (using ADO).
objDB.Execute _
"SELECT * INTO [Excel 8.0;DATABASE=" & strExcelFileLocation & _
"].[" & strWorksheet & "] FROM " & "[" & strTableName & "]"
Importing rows from an Excel Workbook theoretically shouldn’t be much more difficult (never tried it my self but should work).
Create a valid data connection to the workbook (using ADO)
Open a client side record set.
Close the connection to the Excel file.
Open a connection to the Access database, Attach the above record set to the data connection and update.
Hope that helps...
-------------------------------
DEBUGGING : Removing the needles from the haystack.
|
|
|
|
|
Im trying to implement something like that:
the user should be able to draw some graphical objects to a CWnd, that allready holds a Bitmap.
I tried to realize this by using GDI+ ... storing the Objects as GraphicsPath in a List and draw them by using Graphics::DrawPath(...).
Works fine so far.
Problem: how to implement undo and clear functionallity?
I tried to use Graphics::Clear(...) to 'empty the Window' and repaint all remaining Objects.
But this will also reset the background-image ... but the background should _not_ be manipulated.
So i thought about using some kind of layer, but really dont know how to start.
Any hints / suggestions / keywords?
Thanks in advance
_NielsB
|
|
|
|
|
_NielsB wrote:
Problem: how to implement undo and clear functionallity?
There's a few ways to do this. The easiest, and ugliest is to keep bitmaps in memory for each action. However, seeing as you're saying the background should not be manipulated, I think you should build an action list, and apply it in your paint handler. Then, undo just means taking the top item out of the list.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
think that will work!
thanks
|
|
|
|