|
|
yep,this looks like the agsact kind of function i am looking for!
thanks m8t
chris
|
|
|
|
|
how i got started was the C++ for dummies u should buy it
|
|
|
|
|
wow,thats really good advice....you got a link by any chance,i hate paying 4 stuff like that....
|
|
|
|
|
hi there,
how do you convert
"0x3a" to an integer (note the quotes)
atoi doesn't work
any ideas ?
CString str = "3a";
how to convert it in to decimal
|
|
|
|
|
|
My application connects to the internet using functions in ras32.dll
I would like to know if my system is connected to the ineternet?
I've used the following code but it returns false both when connected or disconnected
Online()
{
BOOL bRet;
DWORD dwState = 0;
DWORD dwSize = sizeof(DWORD);
bRet = InternetQueryOption(NULL,
INTERNET_OPTION_CONNECTED_STATE, &dwState, &dwSize)
&& (dwState & INTERNET_STATE_CONNECTED);
return bRet;
}
|
|
|
|
|
|
I am trying to make a backup utility for outlook
i found many password recovery tools , but nothing about how all this stuff was developed , what is the format of these pst files
thanks
Willy
|
|
|
|
|
i know we can write program for macintosh using Microsoft Visual c++ crosss platfrom edition.
but there are one or two problems.
1)Latest version for cross platfrom edition i found is 4.0 that is with respect to MFC4.0(Microsoft visual c++ 4.0 cross platfrom edition) .So what about the latest compiler version such as 5.0,6.0,7.0
2)Second question where can i get this comiler(specially for free)
so can anyone help.
3)Every articale i found in msdn and other sources about Programming macintosh has been writtn in 90's(95,96) .
what is the reason of it.
No Worries!
|
|
|
|
|
|
This is the first time I am working with UNIX, and I have some problems related to threads.
I wish to have a timer class, which works fine as it does in WIN. So I created one, using signals, and now when the time interval is expired, I need to invoke a fn. say,
void OnTimer( int ProcessID );
When this Timer object is created, I am creating a new thread for the signals to execute, means this timer is running in a seperate thread. But the OnTimer fn. needs to be invoked from the thread that created the object. So I would like to know, is there any way by which I can get the CurrentThread handle ( main thread / the thread that created the object ), and make it to invoke the OnTimer fn.
Your suggestions are appreciated!!!
"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
|
|
|
|
|
I got the fn. to get the thread handle which is pthread_self( ), But still I dont know how to make it to invoke the OnTimer fn.
"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
|
|
|
|
|
Not sure exactly what you are trying to do here. Why do you want the timer in another thread, but the function called in the original thread? It's a bit excessive just to create a thread for the purpose of sleeping. How many timers are you likely to have running at once? Signals and threads dont really mix very well, so I wouldnt rely on that method. If you must have a seperate timer thread, then you need to look at some way of notifying the original thread - look at condition variables, or pipes, to achieve this. However, as your parent thread will need to be explicitly waiting for this notification, it may as well perform the timer itself and so not require a seperate thread.
|
|
|
|
|
Thanks for the reply.
If I am not going for a seperate thread, then the signals/timer would block the main thread. Thats why I decided to go for threads. Now my problem is not with notifying the main thread, But I need to invoke a method in the scope of main thread, and my main thread is not waiting for any notifications( If it were, then I would have gone for pthread_join ). The parent thread would still be working with some other tasks, and in btw, the timer object has to sent an interrupt like message ( by invoking some fns say OnTimer(...) ), and that fn. invocation has to be in the scope of the main thread.
It shud work some what like the OnTimer( ... ) msg in windows which is send by the framework when the SetTimer(...) is called, and the interval has expired.
Once again thanks for the suggestion Johnny...
"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
|
|
|
|
|
You should re-design your application to work with the UNIX/POSIX threading model instead of trying to build a Windows emulation layer. Use condition variables and mutexes to synchronize the threads.
If you need a platform-independent interface, use Boost threads
|
|
|
|
|
errrrr mouse hook?
u should be enumerating all processes etc
"there is no spoon" biz stuff about me
|
|
|
|
|
That's true. But thing is that to get confidence I am just trapping one process at a time, using mouse. So that I should have good insight into hooking before integrating it with project. I am trying to get information like Handle of the winow, name of the window ..
|
|
|
|
|
Hi..
If all other exe r your..then u can use
1. Mailslot
2. Pipe
& check by communicate with other exe...
This is a good solution..if all exe are your.
One thing is sure that if u are not able to do mouse hook then u need to go in "Process" direction...
Thanks...sumit
Sumit Kapoor
|
|
|
|
|
Hi Pal!
It's not just my exe. I want handle of all the exe windows. The problem I am having is that with mouse hook is that system crashes very often. I am just trying to hook all exe and get handle of the exe I am interested.
with Cheer!!!
siddharth
|
|
|
|
|
I have a data like this
40126024302350123
The first no of this data reperesent what is the no of 4 digit nos in the data.
Here it is 4 because i have 4 4digit no.
If i have 3, 4digit no i will represent like this 3024302350123
CString GetString(int NO )
{
switch (NO)
{
case 1:
return 3024302350123;
break;
case 2:
return 40126024302350123;
break;
case 3:
return 10245;
break;
}
I need your help in these areas
1.The return type i have mentioned is CString .Is this correct one.
or else plz suggest the correct datatype
2.Then i need a function where
to trim the first character of the data and convert that into a integer
and put it into a for loop to fix how many loops the function have.
for example if it is 3024302350123 then the first character is 3 so the for loop should go 3 times and in first loop it should take the first 4 digit and do some operations and in second loop it should take the next 4 digit and do the same operation but with new value ie 2nd 4digits and in 3rd loop it should take the 3rd 4digit no and do same operations with that new no
Sir please if there is anybody who can help me in this
thanks in advance
vimal
|
|
|
|
|
i have no idea what ur actually asking but it doesnt look like rocket science so if u could asctually ask an intelligible question maybe u could get some help
"there is no spoon" biz stuff about me
|
|
|
|
|
hi
I want to program MicroSoft Agent Control in my VC++ application so how i program it.Please help me.Send me some sample code.
222222
|
|
|
|
|
Um, did you even take the time to type "MS Agent" in CP's search box? /ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
enum { IDD = IDD_SYMBOLSELECT };
CListCtrl m_list1;
//}}AFX_DATA
CImageList mm;
............
mm.Create (IDB_SYMBOLS, 16, 100, RGB(192,192,192));
............
DDX_Control(pDX, IDC_LIST1, m_list1);
............
BOOL CSymbolSelectDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_list1.SetImageList(&mm,LVSIL_SMALL);
CString cc;
for(int i=0;i
|
|
|
|