|
Someone can tell me where can I download an Icon Collection for my c++ apps ?? I would like them to be cool !!
Thankx !!
Written by: Rafael Fernández López.
void life ( bool me, bool her )
{
if ( her )
{
me = true ;
}
else
{
me = false ;
} }
|
|
|
|
|
|
Check these:
http://www.glyfx.com/
http://www.glyfz.com/
http://www.stockicons.com/browse.asp
Not free, but reasonable prices and good looking.
Igor Green
http://www.grigsoft.com/ - files and folders comparison tools
|
|
|
|
|
I sometimes use www.iconbazaar.com
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
hi all,
I am new to DLLs. I have one doubt on dll loading.
if two or more different applications use a same dll. how many instance of the dll will be loaded in memory.
My Question is whether each application will has its own instance of the dll. or just one instance of the dll will be loaded and all applications have its mapping to the single instance.
please clarfy me.
thankyou in advance
Mohamed Hasan S
|
|
|
|
|
The code will have one instance but data will have one instance for each appliction that is using the dll. You can use a shared data segment to share data between processes if you want, in this case this data will only have one instance.
John
|
|
|
|
|
|
Hi,
I am using DDE (Dynamic Data Exchange) protocol to send data from my system to another system in my network. I dont know any forums which give programming support for this protocol and hope somebody here helps me in it... Back to my question,
I wanted to automate the data sending process and so I have a loop in my thread with a waitforsingleobject function . whenever new data arrives the object is signaled and data is thus transfered.I have a problem here The data is not transferred as such, but when I include a Afxmessagebox somewhere inside the loop.It works perfectly ok. I had to quit the box everytime.
what difference does the AfxMessagebox does ?
I dont understand it.Can anyone help me in it?
Thanks.
Deepak Samuel
|
|
|
|
|
Maybe the message box is giving somewhat a Sleep equivalent and is permitting the arrival of the data to the other system?
I suspect its a timing issue
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Hi,
Thanks for the reply.
I even tried introducing a sleep in the loop instead of the AfxMessageBox but it didnt work that way.
|
|
|
|
|
Hello,
I have a little question regarding CriticalSection:
I have a resource that is protected by a CCriticalSection variable.
let's say that the CriticalSection variable has an owner.
Now, another thread is trying to access the resource, and as expected - locked.
My question is: if an additional event took place, and as a result, the locked thread needs to exit the waiting, and perform some other activities (not related to the locked resource), how can I exit the attempted lock?
Is it possible?
Thanks...
He didn't fall?
Inconceivable!!!
|
|
|
|
|
Check WaitForMultipleObjects and WaitForMultipleObjectsEx
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
no, that won't work because a critical section is no object with a handle, it is a memory structure. There is a function called TryEnterCriticalSection , this should be the right choice here.
Don't try it, just do it!
|
|
|
|
|
I never said he should use it with a critical section
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
he was talking about one!
Don't try it, just do it!
|
|
|
|
|
I read his post, that why i answered
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
just accept that your answer was not the best one and don't argue with me!
Don't try it, just do it!
|
|
|
|
|
Quite lame
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Thanks for everyone response..
I need to use criticalsection due to the following facts:
1. Mutex is signaled off after a task that took ownership ends, and I need the status to be on.
2. events are not good since i have several tasks waiting on the Critical Section , and the order of arrival is important
what I thought about doing is to create a temp thread that locks the critical section, while the main thread is waiting for several events (the temp thread receives reference to the critical section, as well as a reference to an additional event)
now, if the temp thread actually took control of the critical section, it ends normaly, and the wait command in the main thread is ended due to that.
The really interesting situation is when the temp thread is trying to lock the critical section, and the critical section is already locked - so the temp thread is waiting.
Now, I'm receiving another event, that is causing the wait on the main thread to finish - but the temp thread is still up and running.
I've found out that if, after we are exiting the wait, I'm performing Unlock to the critical section, the attempted lock is finished.
Am I correct?
He didn't fall?
Inconceivable!!!
|
|
|
|
|
To do what you are asking you will have to replace the CRITICAL_SECTION with a waitable event of some form. Then you can use WaitForMultipleEvents to wait for both the currently CRITICAL_SECTION protected resource and for the other events that may take place.
It seems to me that this scenario may imply that it's worth considering the design of your app, just to be sure there isn't a simpler solution. I treat CRITICAL_SECTIONs as efficient lightweight objects used to protect shared resources that aren't held very long.
Paul
|
|
|
|
|
Actually you could do a 'TryEnterCriticalSection' followed by a 'WaitForMultipleEvents' for your other events with a short timeout and repeat until done. But this is a clunky design. We shouldn't be spinning unless we have good reason deep in the kernel.
Paul
|
|
|
|
|
HI,
How can i access resources (printer / Cam etc) of other machine/PC on network provided that i already know the IP of that Machine/PC.
reply thanx
|
|
|
|
|
are you sure we are allowed to do so ?
TOXCCT >>> GEII power
|
|
|
|
|
If I understand your question, the resources on the machine in question would need to be shared.
In the Local Area Connections Properties dialog, make sure File and Printer Sharing for Microsoft Networks is listed in the Components box. On the machine that wants to use the resource, when asked for the name and/or location of the device, use something like \\a.b.c.d\resource_name.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Dear Mr Bhavani;
Thank you for the help that you have given me in accessing a public variable from anywhere within my application. The problem is that the code did not work at all. The compiler strongly complained when i added these code:
((CDatastructorView *) AfxGetMainWnd())->m_main.Navigate"file://c:/datastructor/lectures/recursion_implementation.htm",0,0,0,0);
CDatastructorView is my view class and m_main is a web-control which i want to use.
The compiler responded as :
:\datastructor\lefttooldlg.cpp(1296) : error C2065: 'CDatastructorView' : undeclared identifier
C:\datastructor\lefttooldlg.cpp(1296) : error C2059: syntax error : ')'
C:\datastructor\lefttooldlg.cpp(1296) : error C2059: syntax error : ')'
Ps. I have tried whatever Mr Davy and Mr Chen told me but when i include the "datastructorView.h" file within lefttooldlg, i have a few errors telling me that some "doc" stuff are not recognised....
Could you please help me out because i am still pretty at lost.
Krugger
Krugger
|
|
|
|