|
sdancer75 wrote: I mean a standard PC without any local network to connect with, but with or without internet connection.
Not sure how to fullfill your requirement, even a household with a single PC and a (wireless) router uses a local network connection, e.g. 192.168.2.0/24. On Windows, have a look at GetIpAddrTable() or for a quick check run ipconfig from command line.
/M
|
|
|
|
|
Hi,
Yes, you have right, but i was thinking about checking host names like windows do, when you double click on network icon on the desktop, but I dont know where to start looking for.
Windows somehow knows that in the network there are local computers or just dump devices like printers with a network card.
Regards,
sdancer75
|
|
|
|
|
I am not familiar with Windows APIs for service discovery or Microsoft's proprietary networking protocols. Could be worth to ask another forum question and see if someone else can help.
|
|
|
|
|
COleDateTime date = COleDateTime::GetCurrentTime();
CString one_id = "A001";
CString description = "test";
sqlSP.Format("declare @data_uid as integer exec dbo.msp_Insert %s, %s, %d, @doc_uid output select @doc_uid AS doc_uid",
one_id,
description,
date
);
i need to insert a COleDateTime in MFC to a MS SQL table, with column as datetime.
Can anybody tell me what is the error???
I guess there is a CString formatting error...
Any help will be great.
Saleem
|
|
|
|
|
Found a fix....
COleDateTime dateTime = COleDateTime::GetCurrentTime();
double date = dateTime.m_dt;
CString one_id = "A001";
CString description = "test";
sqlSP.Format("declare @data_uid as integer exec dbo.msp_Insert %s, %s, %f, @doc_uid output select @doc_uid AS doc_uid",
one_id,
description,
date
);
|
|
|
|
|
Hi all,
i m using CRecordset to handle access data base.
i retreive the record count by GetRecordCount but its not change after Update.
but it gives same value as i open the recordset.
Ctest* test_sett = new Ctest;
if ( !test_sett->IsOpen() )
test_sett->Open();
test_sett->AddNew();
test_sett->Update();
int ct=test_sett->GetRecordCount();
CString str;
str.Format("%d",ct);
AfxMessageBox(str);
if ( test_sett->IsOpen() )
test_sett->Close();
delete test_sett;
please help me for this.
please tell me how can refresh the record count after inserting the record.
thanks in advance.
|
|
|
|
|
Le@rner wrote: please tell me how can refresh the record count after inserting the record.
See the 'yellow' note here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
i also chk with move last option but problem is still same.
|
|
|
|
|
What part of "For performance reasons, the count is not updated when you call MoveLast." did you miss?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Hi all,
i have an list control and there is so much items.
list control have list of site links here i want to chk all links.
but all links have diffrent interval time to chk the link status so thats why not able to chk with single thread or function.
please tell me how can i do this for each and every link individually.
thank in advance.
|
|
|
|
|
Le@rner wrote: but all links have diffrent interval time
That's the reality of the internet; there is nothing you can do by program to improve the speed of external web sites.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
I believe what he means is that he wants to process the links simulteniously, paralell to each other, not one by one, to gain some speed.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> "It doesn't work, fix it" does not qualify as a bug report. <
> Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <
|
|
|
|
|
Le@rner wrote: i have an list control and there is so much items.
Le@rner wrote: list control have list of site links here i want to chk all links.
Check them for what? Existence?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
chke the link is working or not.
|
|
|
|
|
I just completed a project that does just this sort of thing. I've entertained the idea of turning it into an article.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
so please give me any example or provide any help for this.
|
|
|
|
|
|
Le@rner wrote: previously i also ask for any example or info.
Previously, I sent you two e-mails. When you did not respond, I just assumed you were not interested in the project I had.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
|
Le@rner wrote: there is no other information in mail...
I did not send anything. I was simply asking for your e-mail so that I could send you the program directly.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
its only a exe not source.
|
|
|
|
|
Of course. I was not going to go to all the trouble of bundling up the source code if it wasn't going to do what you needed.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
In example exe how can chek the status of links,and its only chk the status at once.
i want while i m not stop, application chk the status of link,
and each link checked after given time interval of corresponding link.
|
|
|
|
|
Le@rner wrote: In example exe how can chek the status of links...
After it finishes up gathering the items in your Favorites folder, click the Start button. As each link is checked, its icon will change to reflect the status.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
i m waiting for ur reply.
received no response from you.
|
|
|
|