|
How do you know my project is in c:\Sockets Programming\111???
|
|
|
|
|
Because you posted it when you posted the results of your search.
He's right, I should have looked closer at the post, but I wasn't thinking along those lines.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
How can i detect and count two blank circles on a bitmap?
My project is to mark quiz MCQs.
|
|
|
|
|
What form do your bitmaps take - have they been scanned ? What does MCQ stand for ?
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
MCQ = Multiple Choice Questions
|
|
|
|
|
I'm in the process of developing an application that has two dialog windows open at one time.
I would like to update both of these windows every x seconds, but can only seem to do this when the user clicks a button.
Any idea on how I might get this to update without intervention from the user?
Later I'm going to add in a socket and get data from there to update the windows.
Thanks for any help
|
|
|
|
|
|
Are you using MFC?
Is this a dialog-based application, or does it have a parent froame window (SDI/MDI)?
To hell with those thin-skinned pillow-biters. - Me, 10/03/2001
|
|
|
|
|
If you are using a MDI or SDI application you can use the Run function. Stopping every x seconds.
If you are in a Dialog App, you can use the SetTimer function....
Best Regards...
Chau!!!
Carlos Antollini.
|
|
|
|
|
Thanks for the replies.
I just finished trying the Timer function and now I see that is what you reccomended. So I guess I'm on the right track.
No we'll see if I can do some communication with another computer and display this info in both dialog boxes.
Thanks again,
Jim
|
|
|
|
|
Has anyone had any experience creating hands or fingers in OpenGL? My plan of attack so far is to user 3 cylinders for each finger and work it out from there. I'm still relatively new to OpenGL so I'm finding this task a little daunting... any ideas?
|
|
|
|
|
first sorry for my poor english.
I use the Visual C++ 6.0 in win2000 server(not installed the win2000 platform SDK) to develope application.Today when a complier a application that use some API function only run under win2000.I get a complier error:
Linking...
SetTransPlusDlg.obj : error LNK2001: unresolved external symbol __imp__SetLayeredWindowAttributes@16
Release/SetTransPlus.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
It seemed that i have not the correlative lib file.somebody told me that i need to install the win2000 SDK in my computer to let the visual c++ support this function.My internet connection speed is slowly and don't want to download the SDK (250M).
fortunate,i have installed the visul studio.NET(beta 2)in my computer,I think the Visual Stuido.NET should included these lib file.
how i use these lib file in my visual C++?
thanks
|
|
|
|
|
You're right that .Net will have it, but the problem is noyt a lib file, it's that you've not installed a new Platform SDK. As Windows 200 was released after VC6, you need to download a new platform SDK in order to include the headers for any commands new to W2000.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
Hi,
I want to develop and ActiveX control with some standard controls ( or maybe if possible with a cooler look ), but It seems to be very hard to disable buttons and such things with ATL ( sending the message, instead of getting the controls and...).
Can anybody help me on that ?, Thanks, Bye
Braulio
|
|
|
|
|
I was wondering how I go about changing the background color of a View in a WTL application. I have a handler to WM_ERASEBKGND and my code breaks into the OnEraseBkgnd function but it seems that the code is just ignored.
LRESULT OnEraseBkgnd(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
CBrush br;
CClientDC dc(m_hWnd);
br.CreateSolidBrush(RGB(30,30,30));
CRect rect;
GetClientRect(rect); // Using this because
//dc.GetClipBox(rect); // this usually comes back empty.
dc.PatBlt(rect.left, rect.top, rect.Width(),
rect.Height(), PATCOPY);
bHandled = true;
return 0;
}
Cheers,
Clint
|
|
|
|
|
I'm using OnCtlColor event to paint the dialog background.
HBRUSH CMyClass::OnCtlColor(CDC* pDC,
CWnd* pWnd,
UINT nCtlColor)
{
switch (nCtlColor)
{
case CTLCOLOR_BTN:
case CTLCOLOR_STATIC:
pDC->SetBkMode(TRANSPARENT);
break;
case CTLCOLOR_DLG:
{
if (m_pBrush)
delete m_pBrush;
m_pBrush = new CBrush(m_dwCorBkgDlg);
return (HBRUSH) (m_pBrush->m_hObject);
}
}
return(CDialog::OnCtlColor(pDC, pWnd, nCtlColor));
}
and it's working well.
[]'s
|
|
|
|
|
I am not using a dialog. I am just using your standard doc/view default where the view is white and the surrounding document is windows standard. I am not sure how I would use this in my case.
Cheers,
Clint
|
|
|
|
|
Btw is there a way to make this work?
<cpp>
#define REPEAT( TYPE, DIM, I ) \
#if ( I == 0 ) \
#( \
#endif \
#const TYPE& + rv#ii \
#if ( I < DIM - 1 ) \
#, \
REPEAT( TYPE, DIM, I + 1 ) \
#else \
#) \
#endif \
The idea is
if we have REPEAT( double, 3, 0 )
to get as result
"const double& rv0, const double& rv1, const& rv2"
|
|
|
|
|
1) I can't tell what you're trying to do.
2) If it's this complex, make it a function instead of a macro. If the type is unknown, overload the function for the expected types.
To hell with those thin-skinned pillow-biters. - Me, 10/03/2001
|
|
|
|
|
You can't perform stuff like this with preprocessor macros. what do you want to achieve?
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
The idea is following:
I have containers like
template< class T >
struct TSPACE3
{
TSPECE3( T x, T y, T z, T w );
T x;
T y;
T z;
};
template< class T >
struct TSPACE4
{
TSPECE4( T x, T y, T z, T w );
T x;
T y;
T z;
T w;
};
and vector like
template< class T >
class TVector : public T
{
};
typedef TVector< TSpace3<double> > Vector3d;
typedef TVector< TSpace4<float> > Vector4f;
So now if I make a instance of these objects, I would like to use constructors of TSpace, without to define them into TVector, also I don't want to make ctor like
TVector( T& x,...)
Usage
Vector3d v3d( 1, 0, 3 );
Vector4f v4f( 1.0f, 2.3f, 4.4f, 3.4f );
Some kind of "inherited" the ctor of TSpace
|
|
|
|
|
Assuming that your REPEAT macro works, how would you use it to solve this problem?
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
So what you really want is a way to initialize the elements to a specific set of values? You can do that with a custom allocator or if it's just for a single element then you can just use an init function.
Todd Smith
|
|
|
|
|
No you can't do that.
<soap box=""> And besides it's unreadable to another programmer.
However, you could do
#define REPEAT( TYPE, DIM, I ) const TYPE& rv[DIM];
and then use another macro for accessing the elements
instead of rv0 it would be rv[0]
Todd Smith
|
|
|
|
|
The problem is that you'd have to initialize the array of references...
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|