|
Hi, I have data on device and i have data in SQL Server Database.
I want to compare the data on device with Data in database to make sure both are same after downloading data on device.
what is best way to do that.
How can i implement the checksum on SQL Server tables to compare with checksum of data on device tables. to make sure both data are same.
|
|
|
|
|
You may implement the checksum (the same of the device) in your code and use it with database values, the compare the result with the one stored by the device.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi,
I have COM module which run as local server on invocation by the client.
I have Cisco Security Agent installed on my machine. When I run my client which onvokes COM module.I can run the requests and COM module will give the result. Once I get the result this COM module will be removed which is not suppose to. I cannot run some other requests again because COM module will not be there. This happens only with Cisco Security agent installed on the machine not even you need to run this service.If it just installed on your machine it gives you problem.COM module should go only when Client closes. IF CSA(Cisco Security Agent) is not installed on the machine this perfectly works fine.Any idea why this hehaves like this?
Please help me.
|
|
|
|
|
Hello,
I have the following code
class C
{
void* ptr;
CreateCombo();
};
C::CreateCombo()
{
CRect R(0,0,0,0);
CComboBox* Combo = new CComboBox;
Combo->Create(SIMPLECOMBOBOX,R,this,ID);
ptr = Combo;
}
Now I have a few values in this ComboBox (ptr)
How can I retrieve the values from the ptr?
Prithaa
|
|
|
|
|
Why don't you simply get the values from the Combo Box first and then store them in some appropriate variable after using GetItemData?
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
From the code snippet you've shown, there's no reason to have ptr . It serves no purpose.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
|
You have to cast the void* to a CComboBox*:
((CComboBox *) ptr)->GetCurSel () for example.
|
|
|
|
|
A little bit of C++ to the recipe will be nice. For instance,
CComboBox* pComboBox = static_cast<ccombobox*>( ptr );
pComboBox->TheFnYouNeedToCall();
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Is the only way to call OnDraw() is by calling Invalidate?
Tell me the other ways how i can Call OnDraw()?
Also pls confirm that Is not OnDraw() called by the framework under any circumstances?
If it is called by the framework under any situation describe it.
Thanks in advance.
|
|
|
|
|
Can you explain about your problem?
|
|
|
|
|
No, there is also
OnDraw();
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
You can also send the WM_DRAW message to your window.
OnDraw () isn't called by the framework if the WM_DRAW message isn't sent by the framework.
The WM_DRAW message isn't sent if the framework is unaware that the view has been changed. In this situation, you tell the framework it's been changed by calling Invalidate ().
|
|
|
|
|
Hello !
I am trying to connect remote SQL server from my app. The Connectionstring I am using is as follows .
connection->Open(L"Provider=sqloledb;DBPROP_INIT_DATASOURCE='p3swhsql-v06.shr.phx3.secureserver.net';"
L"Initial Catalog=XXXX;User ID=XXXXX;Password=XXXXX ", L"",
L"", ADODB::adConnectUnspecified);
Error Message comes as "Login failed for user 'XXXXX'"
But for same user using asp.net I can connect.
Anyone please help me to connect this server. I do not have IP address for the remote system.
thank you
|
|
|
|
|
abumath wrote: I do not have IP address for the remote system.
if you need to connect to a remote machine you either need IP address or the machine name.
abumath wrote: But for same user using asp.net I can connect.
See the connection string used by this asp.net webapplication, it may give some clue.
-Suhredayan
|
|
|
|
|
Hello,
I am working on an mfc application in which i have a chat dialogbox with smiley button.
On click of smiley button i am opeining a new dialogbox with emoticon
Now i want to close the dialog with emoticon button when mouse is clicked outside it.
Please help me how to do it.
Thanks In Advance.
modified on Monday, November 17, 2008 5:36 AM
|
|
|
|
|
I believe you shouldn't have managed this with a dialog but with an owner drawn menu...
|
|
|
|
|
can you help me with some article as i dont know this metho.
How to use owner draw menu.
|
|
|
|
|
|
Handle WM_KILLFOCUS.
Another way would be to create your window with WS_POPUPWINDOW style.
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I have created my window with WS_POPUP.
How can I handle WM_KILLFOCUS. Please elaborate it if possible.
Thanks
|
|
|
|
|
If it is a modal dialog box then you have no chance. On the other hand, if it is a modeless dialog, then send it the WM_CLOSE message.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Yes it is a modal dialog box. I am doing DoModal.
|
|
|
|
|
SendMessage(hwnd,WM_CLOSE,0,0);.
|
|
|
|
|
Dhiraj kumar Saini wrote: Now i want to close the dialog...
If it's a modal dialog, call EndDialog() .
Dhiraj kumar Saini wrote: ...when mouse is clicked outside it.
See here.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|