|
Don't you have member variables for the controls in your form ? use them directly.
Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
|
|
|
|
|
They should work because I use them in my CFormView. Maybe you deleted something by mistake?
void CMyFormView::DoDataExchange(CDataExchange* pDX)
{
CFormView::DoDataExchange(pDX);
DDX_Control(pDX, IDC_ICON_WINDOW, m_IconWindowCtrl);
DDX_Control(pDX, IDC_COMBO_ICONVIEW, m_ComboIconViewCtrl);
}
..
..
..
CListCtrl *pListCtrl = (CListCtrl *) GetDlgItem(IDC_ICON_WINDOW);
|
|
|
|
|
Why I can't use "\\servername\....\test.txt"?
When I use full path "c:\....\test.txt" it is fine.
|
|
|
|
|
Are you using CreateFile()? I got sick of that function for this reason and switched to the old <stdio.h> file functions. example:
FILE *file = fopen("\\servername\....\test.txt", "r");/*"r" means you're
reading the file........*/
if (file)
{
while (!feof(file)) /*while the file has not reached end of file*/
{
/*whatever........ go to cplusplus.com for a complete file function reference, type in "file functions" into the search field*/
}
fclose(file);//close the file
}
-- Steve
|
|
|
|
|
use "\\\\servername\\....\\test.txt"
and it will work
|
|
|
|
|
|
and you've tested the same filename string in a program like notepad?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
|
How about a code snippet?
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
i've written a snmp class that uses winsnmp, i'am facing a problem when quering a Win2000 or WinXP snmp agent, the response time is more than 10ms. i've seen applications that can do that much faster like my code, any suggenstions ??
Thank you!
|
|
|
|
|
SNMP is based on UDP and is considered extremely low priority. It's possible that the servers where the agents are running have higher priority tasks.
Joe Woodbury
When all else fails, there's always delusion.
- Conan O'Brien
|
|
|
|
|
but this is with all servers/workstations, is there any way to boost the priortiy, do you have a glue how other programs might do that ?
mario prem
|
|
|
|
|
I have no idea, sorry.
Joe Woodbury
When all else fails, there's always delusion.
- Conan O'Brien
|
|
|
|
|
yeateday i posted following Q:
visible spaces of a Tab ('\t') character equal to 6 space (' ') characters in CRichEditCtrl by default.
in visual c++ ide (not RichEdit), there is a setting which can change visible spaces of a Tab character to any space characters, i want to create a similar setting for our users.
//-------------------------------
a reply says to use SetParaFormat() with TABSTOPS flag.
i tested today, but it doesn't fit our case because it only formats max to 32 TABs in a line, if a line is very long, the format doesn't work fully.
how to solve the Q?
thx.
thanks in advance for any hints and help.
includeh10
|
|
|
|
|
How to determine if the CD ROM door is closed?
|
|
|
|
|
I'm building an app just as a personal toolbox for myself (may become cp article) and I'm looking for some suggestions. This app will need a database of some sort, and I'm leaning on using an embedded database rather then using MySQL or other service.
I've looked at the XML database options, but I don't like the idea of how large those files could potentially become. Anyone know of any free alternatives? Any database libs out there that I can embed into my app?
It doesn't have to be fully SQL complient, but I would like to be able to do simple joins at the bare minimum.
My code isn't buggy. Those are all fleatures.
|
|
|
|
|
|
SQLite seems popular and well supported, so this could be a good way to go. I don't like the fact that it is written in C and some other things are strange, but this is very personal stuff.
I'm working on app that uses pugXML (here on CP) as its database, and am very, very happy with this.
Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
|
|
|
|
|
Ever think about MSDE as a database?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
Can you embed that into your application or does it run as a seperate process?
My code isn't buggy. Those are all fleatures.
|
|
|
|
|
not embedded, but small, practically free, and full SQL implementation including stored procedures.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
Can anyone recommend a good FFT (Fast Fourier Transform) component that I can download? I simply want to pass it some data, and have it pop up a window displaying the FFT.
Why is the phrase "It's none of my business" always followed by "BUT..."
|
|
|
|
|
|
|
CClientDC clientDC(this);
CDC memDC;
CDC srcDC;
CBitmap* pOldSrcBmp = NULL;
CRect rect;
BITMAP bmp;
GetClientRect(&rect);
memDC.CreateCompatibleDC(&clientDC);
srcDC.CreateCompatibleDC(&clientDC);
pOldSrcBmp = srcDC.SelectObject(&myBitmap);
myBitmap.GetBitmap(&bmp);
BOOL bTest = memDC.StretchBlt(0, 0, rect.Width(), rect.Height(), &srcDC, 0, 0, bmp.bmWidth, bmp.bmHeight, SRCCOPY);
srcDC.SelectObject(pOldSrcBmp);
memDC.DeleteDC();
srcDC.DeleteDC();
myBitmap is a CBitmap that has successfully loaded.
This always fails unless I'm in OnDraw or OnPaint. What gives?
"It is better to remain silent and be thought a fool than to open one's mouth and remove all doubt." - Abraham Lincoln
|
|
|
|