|
Hello Tim,
I just started to work on this and I guess I am doing it kinda backwards.
I was going to copy the data to globlal buffer and I got stuck on how to tell the application the callback is finished.
I am trying to implement windows subclassing to be able to use PostMessage API and my whole program is now hopelesly broken!
Anyway, I like your approach better,I think it is cleaner, but now I just need to finsh typing !!
But I have dsicovered something during our discussion- every AVI application I have seen uses clipboard to get to the data, however, the callback puts the data into buffer!. No more messing around with clipboard, nice and neat!
Thanks.
Vaclav
|
|
|
|
|
Hi all,
I have made a .net application which usees a COM component hosted by a C++ service. The service is a simple C++ service developed using ATL (and not using MFC).
My development environment is Windows XP. Now everything works fine on my dev machine. But when I tried to install my service on a fresh VISTA machine, I could not do so. I got below message:
Activation context generation failed for "C:\Windows\System32\PSPW.exe". Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis.
But when I tried to install my service on VISTA machine which already have Visual Studio 2008, service got installed without any problem.
It means before installing my service on a fresh VISTA (or even fresh Windows 7), I also need to install/copy some other dlls which comes with VS 2008. Can anybody help me in knowing how should I go about it. Or might be my assumption that I need to install/copy some other VS dlls is wrong.
I could not resolve this problem. So seeking for help.
Regards
Aseem
modified on Sunday, October 10, 2010 11:36 PM
|
|
|
|
|
First of all try building a release version. Then when you've done that distribute the "Microsoft Visual C++ 2008 redistributable" (name from memory, might have it slightly wrong) with your service. Either add it to the installation media OR set the installer to download it directly from MS on installation. Personally I bung it on the CD.
Cheers,
Ash
|
|
|
|
|
Hi Ash,
Thanks for your reply. I could fix the problem the way you said.
Thanks and Regards
Aseem Sharma
|
|
|
|
|
Hi,
Can you please instruct me, how to detect if the current computer that is running my app, is part of a local network.
In other words, I just need to know if the computer is a standalone system or is part of a local network system.
Best Regards,
sdancer75
|
|
|
|
|
Not sure what qualifies as "standalone system".
You could check the list of network interfaces and see if you have something else than the loopback IP addresses. As long as no static IP address was assigned, you will be able to detect LAN connections (DHCP server).
Hope this helps...
|
|
|
|
|
Thank you for your reply.
What is the appropriate class for network interface ? The CSocket class I dont think that have member functions to accomplish that.
When I talk about standalone machine, I mean a standard PC without any local network to connect with, but with or without internet connection.
Regards,
sdancer75
|
|
|
|
|
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
|
|
|
|