|
How do i change the IP address?
|
|
|
|
|
Can you be more specific? On which platform are you trying to do this?
Jon Sagara
"Oh Lisa, you and your lies. Bart's a vampire, beer kills brain cells. Let's go back to that building... thingy... where our beds... is."
|
|
|
|
|
|
Hello, the codegurus around the world.;)
On Windows 9x, we can use Winipcfg.exe /release and then /renew.
So, use CreateProcess function to run winipcfg.exe at the background.
I'm still looking for how we can do these by our own program.
Have a nice day!
-Masaaki Onishi-
|
|
|
|
|
hi !!
i have a directory structure which i monitor using a File-Hook. now i don't want to allow creations or copying of directories in this directory structure. i can detect these events using the file hook.
now my question is:
HOW DO I UNDO THESE EVENTS??
i don't wanna delete these newly created/moved diretories coz user may have some data in it.
does anyone know how to do this??? then plz do help me...
|
|
|
|
|
Is it possible to find out the serial numbers of motherboard, graphic device, hard disk, RAM, and the others?
|
|
|
|
|
Yeah, unscrew them, take them out and hold them under a light.
Seriously, I don't think that info is electronically coded to the peripherals. Imagine how much more video cards would cost to make if they were also unique. The only peripheral I know like that is a Network card, that's why they used to be used to build GUID's.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Hard disks have a serial number, but I don't know any WinAPI call to read it. The ATA command IDENTIFY DEVICE or SCSI INQUIRY command will return the serial number information (among other info).
|
|
|
|
|
I know i make a fool of myself but i never heard of ATA
|
|
|
|
|
ATA = AT Attachment is the official name of the interface commonly called "IDE". The ATA standards are developed by NCITS T13
|
|
|
|
|
i have created 5 pages in a propertysheet.when the second page appears a LogonDialog wil come.if the user clicks on the cancel button of LogonDlg,that page should call the next page.i created that LogonDlg in the InitDialog function of that page.if antbody helps me in this will be praised.
thanx and regards
Thomas
Thomas Kennedy
|
|
|
|
|
i have created 5 pages in a propertysheet.when the second page appears a LogonDialog wil come.if the user clicks on the cancel button of LogonDlg,that page should call the next page.i created that LogonDlg in the InitDialog function of that page.if antbody helps me in this will be praised.
thanx and regards
Thomas
|
|
|
|
|
i have created 5 pages in a propertysheet.when the second page appears a LogonDialog wil come.if the user clicks on the cancel button of LogonDlg,that page should call the next page.i created that LogonDlg in the InitDialog function of that page.if antbody helps me in this will be praised.
thsnx and regards
Thomas
|
|
|
|
|
Hi,
I have a strange problem using SQL API from Visual C++ 6.
I'm not working directly with the SQL API , instead I'm using MFC CRecordset
and CDatabase. Of course, I had to subclass these to modify general
behaviour (and , what a task!). One of the (many) things that
CRecordset doesn't support is asynchronous query processing. And that's
where I have a strange problem that I can't find a solution for.
After allocating the statement (::SQLAllocStmt) and setting the option for
asynchronous processing
(::SQLSetStmtOption(m_hstmt, SQL_ASYNC_ENABLE, SQL_ASYNC_ENABLE_ON)) the
query is executed
(::SQLExecDirect(m_hstmt, query_nts_string, SQL_NTS)). This last SQL
function returns SQL_STILL_EXECUTING as long as the query isn't finished.
The SQL documentation states that when processing asynchronously, only the
same SQL function with the same arguments or SQLCancel or some other
diagnostic functions can be called on the statement, as long as the original
SQL function is still executing (check MSDN).
I modified CRecordset (Visual C++) through subclassing to support
asynchronous processing using these rules. I added a method IsStillExecuting
to check whether the query is still executing, and a method CancelQuery
which cancels the query if it is still executing (CRecordset's method Cancel
doesn't work). These methods work fine following the rules I mentioned.
Also, reading the records from the resultset (recordset) works fine, *but*,
only for the first number of rows (around 20). The records in CRecordset are
read using SQLExtendedFetch, but I modified this in my subclass to use
SQLFetchScroll because I read in SQL docu that SQLExtendedFetch cannot be
used on asynchronous statements. After some number of rows the
SQLFetchScroll function returns SQL_STILL_EXECUTING.
Ok , I thought, I'll just have to call SQLFetchScroll until it no longer
returns SQL_STILL_EXECUTING, but that does *not* work , contrary to what the
SQL API docu states. The second time SQLFetchScroll is called it returns -1
(an error code). The exception that is thrown states "HY010 Function
sequence error". I checked SQL API docu and didn't find why this is
happening. The statement is processed from one thread only, no other SQL
functions are executed on the statement when it is still executing, and I
didn't mix SQLExtendedFetch calls with SQLFetchScroll calls.
So what can I be doing wrong?
Tnx
PS: OS specifics are: NT4/SP5, Visual C++6SP4(?), ODBC driver for MS SQL
Server version: 3.70.08.20 (SQLSRV32.DLL).
TiTi (Tom Tempelaere)
Upsilon S.A. - Financial and Computer Engineering
Luxembourg
|
|
|
|
|
- first i use navigate2 to load a web page
- then i want to fill in an edit box and then to press a submit button
(of course i dont want to do it manually, but code pls)
|
|
|
|
|
You need to get a pointer the the IHTMLDocument2 interface which can be done like so:
IDispatch* pDisp = GetHtmlDocument();
IHTMLDocument2* pDoc = NULL;
pDisp->QueryInterface(IID_IHTMLDocument2, (void**)&pDoc);
IHTMLElementCollection* pColl = NULL;
pDoc->get_forms(&pColl);
Then you can browse through all the objects on the form (document) by using the methods of the IHTMLElementCollection interface. Hope this helps.
Bret Faller
Odyssey Computing, Inc.
|
|
|
|
|
I would Like to create a window that essentially looks like a toolbar but is independent can any one help how to do it
thanks in advance
|
|
|
|
|
you could try using the WS_EX_TOOLWINDOW style
Nish
|
|
|
|
|
I try now to convert all my project (that I writed as MFC dll) to ATL type
I opened by the wizars ATL class Dialog with mfc support and I fill its method with my code that I copies from my project.
Maybe someone can tell me if is it possible that the ATL will contain code of MFC as mfc functions , types and objects like CString.
I trys it and this is works with mfc client program but the question if is it will be match for Delphi and another .
What do you say ?
With manny thanks !!!
|
|
|
|
|
hi,
i want to capture pix from cam. in win98. i am using quickcam's activeX
componment. however, it is really a bad ocx. it will crashed in a k6-300 but
work perfect in my p3-800. since, i need to deploy my program in a embedded
pc. so, i need to find other solution. did anyone has such experience? anyone try to capture a picture start with video for windows?
thanks,
jim
|
|
|
|
|
Does anybody know how to accomplish this?when i use dumpbin like
dumpbin /exports gcmail.dll iam getting problem like
gcmail.dll ia an ne format ,use exehdr to dump it.
chands
|
|
|
|
|
Can anyone help me? I need to extract information about functions in a dll. Does anybody know how to accomplish this?when i use dumpbin like
dumpbin /exports gcmail.dll iam getting problem like
gcmail.dll ia an ne format ,use exehdr to dump it.
chands
|
|
|
|
|
I don't know in wich version was the "dependency walker" included, but in the VC++6 there's that app. it can help you (I think).
There you can load the DLL and look for information related to it.
I'm novice, I expect to help you...
I was trying them... (just kidding...)
|
|
|
|
|
I run VS6(SP5) on Win2000(SR2). I have a one line program which will not compile.
#include windows.h
int APIENTRY WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,LPSTR lpCmdLine, int nCmdShow )
{
CreateWaitableTimer( NULL, TRUE, "JOE" );
return 0;
}
c:\develop\test\test.cpp(8) : error C2065: 'CreateWaitableTimer' : undeclared identifier
To clarify the situation, I have no precompiled headers. The call definition is seen by VS because a mouse hover over the source shows the call prototype correctly. If I change windows.h to afxwin.h I get a good compile.
QUESTION:
Why can't I compile with windows.h? What has a Win32 API call got to do with MFC - or rather what does afxwin.h do that I don't?
Thanks for any advice !
|
|
|
|
|
Forgot to mention: The MSDN example fails to compile also.
|
|
|
|