Wikipedia might help: http://en.wikipedia.org/wiki/API[^]
koothkeeper
Posts
-
API -
(u_char *)Hi Idineen: Do you have access to the source code of snmp_pdu_add_variable? It could be that all variables are passed in as u_char*, then because of ASN_INTEGER, that function has code to convert it to an integer from the string value in test.
-
Atheism , religion , ID etcI didn't say "all" answers. :)
espeir wrote:
I thought atheists become atheists because they don't want to be lemmings and follow organized religion.
-
Atheism , religion , ID etcRight on Rob!
Rob Graham wrote:
I would argue that anyone whose only moral foundation stems from a belief that what is moral is that which was dictated by some entity whose existance can't be proven has a rather weak moral foundation.
-
Atheism , religion , ID etcPlease visit http://www.atheists.org/ for answers to what we Atheists believe.
-
Release build problemI would really think that the compiler is doing this to you. Set the optimization to DEBUG on your release build and rebuild everything. Are you stepping through this with the debugger?
-
identifier 'THIS'Shouldn't it be lower case (this)?
-
which is the Best book for 'C'I agree with Giorgi: Thinking C++ by Eckel is really good! Also, every programmer, no matter what language, should read two books by Steve McConnell: "Code Complete", and "Rapid Development" (IMHO). Peace!
-
Hide my app w/o CreateProcess()??Nishant is right. I had the same problem and finally figured it out. It now works great without any screen flicker!
-
Visual C++/MFC Thread QuestionHere is a useful link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/\_mfc\_afxbeginthread.asp Try something like this to get you started: INT MyThread( LPVOID ptr ); int main( int argc, char** argv ) { CWinThread* T; DWORD dwWait; T = AfxBeginThread( MyThread, NULL ); dwWait = WaitForSingleObject( T->m_hThread, INFINITE ); return 0; } /* main() */ INT MyThread( LPVOID ptr ) { AfxMessageBox( "Hello, world!" ); return 0; }
-
To get message from Windows if user writes on hard disk?Take a look at this link about directory management functions: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/directory\_management\_functions.asp
-
C++ QuestionYou get a pointer to an array of 50 unique integers.
-
JOB_INFO_2 Time member not setWell, it turns out I had two problems. One, I wasn't selecting the JOB_NOTIFY_FIELD_TIME in my FindFirstPrinterChangeNotification and FindNextPrinterChangeNotification calls, and two, y'all were right, that field doesn't get modified until the printer started actually printing. I was able to use the JOB_NOTIFY_FIELD_TOTAL_BYTES field to get the event when the other application was writing to the spool file (it's a long story). Thanks to you all who responded!
-
Searching for help on-lineIs it pRecordset, or m_pRecordset?
-
JOB_INFO_2 Time member not setHey thanks for your input! Hmmmm. Good question. I have the job paused, so no, it hasn't been printed. I assumed, perhaps incorrectly, that the time would be updated on each call to EnumJobs. Did I miss something in the documentation? What I'm trying to do is capture all jobs for printers that I am monitoring. I pause the job, then notify another program (via the clipboard) that a job is being printed. I need to know when the other app is is finished adding its content to the job (or some period of time) so I can unpause it. While I know there are several solutions to what I need to do, I thought that time member of the JOB_INFO_2 struct would do the trick. But alas it doesn't get updated.
-
JOB_INFO_2 Time member not setHELP! I've searched all over this, Microsoft's, and many other sites. In using EnumJobs in C++ version 6, I am specifying a JOB_INFO_2 structure. According to the MSDN: Time Specifies the total time, in milliseconds, that has elapsed since the job began printing. However, this value is always zero. The EnumJobs function always returns TRUE, and the rest of the structure's members seem OK. Does anyone out there know if there is a bug in the API that discusses anything about this? I greatly appreciate it in advance!