|
What kind of access do your pc's have?
1. If they are all directly connected then take off their connections.
2. if they are going through a proxy then you can disable the ip's that ypu don't want accessing the net on the proxy server
3. You can try using a firewall if you want to selectively disable access to particular sites.
Hope this helps.
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
|
|
|
|
|
I'm doing some work in some old Win32 code, and I'm working with a dialog that has a tree control and a list control. When I receive a WM_NOTIFY telling me that the selection of the tree has changed, I repopulate the list control with the data that pertains to the selected item.
A problem I'm noticing is that when I repopulate my tree control (when an item is added/removed), I delete all the items and re-populate from scratch, when I call TabCtrl_DeleteAllItems, I'm getting X number of WM_NOTIFY messages telling me the selection has changed. It just makes for a mess on the UI, the list is going nuts... I've encapsulated my population code with LockWindowUpdate(), makes a bit of a difference.
What do you guys recommend? ... A kludgy way would be to have a flag to ignore the WM_NOITFY/SEL_CHANGE msgs when I'm adding/deleting items..
Thoughts?
Mike.
|
|
|
|
|
|
what is unicode subset?
I want to it's defination,thank u.
|
|
|
|
|
|
I have this little problem:
I have created a Installation disk to install a suite of applications along with installing MSDE (Single workstation so using MSDE for databsae). My problem is that I don't know how to import a stored procedure into my SQL database??
I have the stored proc in a txt file. Does anyone know how to import a stored procedure from a txt file through visual c++??
I am really struggling on this one.
Please could someone help me with this matter.
Will be eternally grateful.
|
|
|
|
|
I am creating a program with CFormView. I have added buttons to it. I would like to know how to implement an action when any of the button is clicked. Can I do it all in the LButtonDown function? or is there some other way.
|
|
|
|
|
Have you tried the Message Maps tab of the ClassWizard dialog?
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Can anyone tell me if the latest SDK includes the header file rtflib.h?
It's just that I'm trying to use the Exchange SDK and it needs rtflib.h which isn't provided (despite the fact MSDN states that it contains a core function of the Exchange SDK). I also had difficulty finding ctl3d.h, perhaps because I'm using Visual Studio .NET.
"The folly of man is that he dreams of what he can never achieve rather than dream of what he can."
"If you think education is expensive, try ignorance."
|
|
|
|
|
Strange, as I have the rtflib.h file in my old SDK folder but not in the new one. I am using VS6.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
|
|
Exchange 2003, I'll give the other one a try tomorrow thanks
"The folly of man is that he dreams of what he can never achieve rather than dream of what he can."
"If you think education is expensive, try ignorance."
|
|
|
|
|
I've written a COM+ application in C# there are methods that have parameters of the type System.Collections.Hashtable and I am trying to create a unmanaged CPP wrapper for those method. I used #import with TLB file and TLI and TLH files created automatically have in those methods parameters of the following type: struct _Hashtable*
and I am stuck here!
Does anyone have any idea what to do with that?
Thanks in advance!
Jajco
|
|
|
|
|
Hi guys,
I have a problem with the application I'm currently developing. I lose GDIs, but I don't know where. My question is as it follows:
does someone know any debug tool to control this kind of errors. I mean, I need to know what object is losing its GDIs.
Cheers
|
|
|
|
|
Code Sample:-
ATL Class
class CAtl : public IA, Public IB
{
---------
--------
virtual functions -- overridden of IA and IB
}
class MyClass : public CAtl
{
virtual methods again overridden
}
DEFINE_GUID(CLSID_MyClass, {---GUID---})
My Problem:
I have written a class (CAtl) which is deriving some COM interfaces (IA and IB).
I have written one more class (MyClass) which is derived from CAtl class.
I have overridden those virtual function of Interfaces in both of my classes (in CAtl and also in MyClass).
I defined a new GUID for MyClass class.
Now i have to create Object of my class (CAtl) using CocreateInstance. which is not working .....
it is saying that CLSID is undefined..what shud i do to register my class and create its object.
Output file is a .lib
Please help me out
thanx
Now i want to create "Myclass" object using CoCreateInstance and error is comming that GUID is undefined. How should i create its obj?
|
|
|
|
|
I have a program in MFC where I call a Dialog to make scan of images with TWAIN. The problem is that for some reason the program crash on Exit when I make de Scan and only when I put AfxOleInit() in de InitInstance. If I remove this line of code all works well, but I neet that the funcion AfxOleInit be invoked in the InitInstance, because i'm using some Ole classes. Someone Knows how to resolve this problem.
Thanks for the attention.
|
|
|
|
|
Hi all,
I have an app done in MFC, but I am having some problems with the ethernet part. My app is the client end that connects perfectly fine with a server up and running. The problem I am running into is when the server is not up but I type in the IP of it. It continues to say that it is connect. The only error that I ignore is error #10035 WSAEWOULDBLOCK. (i was told that this was an "OK" error) Basically as long as the IP or host name I enter is valid it says it is connected even though there is nothing there to connect to.
How do I fix this problem so it recognize errors such as #10064 WSAEHOSTDOWN or #11001 WSAEHOST_NOT_FOUND
Can someone also please tell me to how to check if at anytime that the connection is lost, reset by peer (or any other error that occurs that will not let me send data to the server) occurs how to immediately tell the user?
Here is the code I am using:
int connection = sock->Create(0, SOCK_STREAM, FD_READ | FD_WRITE, NULL );
if (connection == FALSE)
{
int ret = sock->GetLastError();
m_Listbox.AddString("Failed to create socket");
}
else
m_Listbox.AddString("Socket Created");
int rVal = sock->Connect(servername, port) ;
if (rVal == FALSE)
{
int ret = sock->GetLastError();
if(ret == WSAEWOULDBLOCK)
{
}
else
{
m_Listbox.AddString("Didn't connect");
return;
}
}
else
m_Listbox.AddString("Connected");
Many thanks in advance
Jimmy
Just cause I am 15, doesn't mean I'm dumb! (I'll really be 4 on Feb. 29...the year 2004)
|
|
|
|
|
The error WSAWOULDBLOCK not indicate that all was right. This code is returned because you are using non-blocking sockets and the operation can't be completed(you have a pending connect). After it, you have to use select api (unless you are using WSAAsyncSelect or WSAEventSelect) to check when the operation is completed. When this occur(after connection timeout), then check the error code of the operation and you will see that the connection can't be established.
|
|
|
|
|
hi,
my application sdi with doc support. i change the title of the application on initinstance of application. after that click in the bar. the caption is changed to untitle-application name. where i capture the this event of caption change. or how to prevent the application caption change on click. any one help to me.
thanks in advance.
|
|
|
|
|
|
thank ravi. i visit us url. very nice.
once again thank u.
email : murali_utr@hotmail.com
|
|
|
|
|
I have opened image file, and create Graphics object from it.
Image image(L"myImage.png");
Graphics grImage(&image);
How can I resize myImage.png ?
yiy
|
|
|
|
|
I need to insert into a list control (with report view) another control into itself, I mean, when I introduce a new item into the report, it needs to have a progress bar (like napster, and emule). But in other column for example, I need a button. To sum up, how I may introduce CONTROLS into a listview control ??
Thank you very much !!!
MaestroProgramador.Com
Where every source code is loved like a girl.
|
|
|
|
|
See if this works:
http://www.codeproject.com/listctrl/xlistctrl.asp
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|