|
One way would be GlobalMemoryStatusEx() . Another is here.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I have an application developed on VS6 that I used to connect to an SQL Server 2000 without problem.
Due to some system upgrades, now I have to establish the connection to an SQL Server 2005 at the same database.
The connection string remains the same: "DSN=DSN_NAME;UID=user_name;PWD=password"
At the OpenEx function of the CDatabase object I get the following error:
"Unhandled exception in myexe.exe (DSSENH.DLL): 0xC0000005. Access Violation."
Does anyone know anything about the issue?
Thanks in Advance
|
|
|
|
|
sirtimid wrote: At the OpenEx function of the CDatabase object I get the following error:
"Unhandled exception in myexe.exe (DSSENH.DLL): 0xC0000005. Access Violation."
Does anyone know anything about the issue?
Have you stepped into the OpenEx() call to find the offending statement?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Yes I have...the error was in line:
AFX_SQL_SYNC(::SQLDriverConnect(m_hdbc, hWnd,
(UCHAR*)T2A((LPTSTR)(LPCTSTR)m_strConnect), SQL_NTS,
szConnectOutput, _countof(szConnectOutput),
&nResult, wConnectOption));
in the Connect function of CDatabase class.
|
|
|
|
|
So are the arguments being passed to SQLDriverConnect() and AFX_SQL_SYNC() valid?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
As much as I see, there is no argument with unspecified value. They all have a valid value.
|
|
|
|
|
Hello,
I want to add the activeX Spreadsheet included with visual studio 2005 in a C++ dialog based application.
I have problem to use the fonction of the related Class, because there is no documentation.
Did someone have a example of code using this actixeX in a C++ program, or documentation about this activeX ?
Thanks for your help
|
|
|
|
|
Hello dear friends,
I've one problem in the application I am going to write in VC++ 6.0.
Problem:
1)Suppose I've a list of the file opened by the ShellExecute API.
2)The list contains the path of the files.
2)I am modifying some files and the other remains as it is without any modification.
3)When I close any of the file I want to remove that file from the list.
How can I do this?
If this is not possible in Unmanaged then
How can I do this in Managed code using .NET's Library(.NET 2005).
Thanks in Advance to all of you.
ritz1234
|
|
|
|
|
ritz1234 wrote: How can I do this in Managed code using .NET's Library(.NET 2005).
You must ask on the Managed C++/CLI[^].
|
|
|
|
|
I'll take care next time.
Thanks for the reply.
ritz1234
|
|
|
|
|
use ShellExecuteEx or CreateProcess API to open the file which returns the Handle to the process, wait for the process to exit (WaitForMultipleObject), if a process is exited the handle is signalled and you can remove the particular item from the list.
|
|
|
|
|
Hello,
is there any limit for worker threads, i mean limit to start/run worker threads in a application!?
Thanks for any help
termal
|
|
|
|
|
|
Hello
thanks for answer!!
regards
termal
|
|
|
|
|
Hi
What is the difference between Dialog based application and Document view Architecture? tell me ...
Regards
Nisha.S
|
|
|
|
|
NO effing way. BUY A BOOK!
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Addendum to Rajesh reply: "Read the bought book!"
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
|
|
|
|
|
A dialog based application is an application that is dialog based... and document view architecture application is an application that is not dialog based...
nisha00000 wrote: tell me ...
Is it an order from my boss or my teacher...
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
_AnShUmAn_ wrote: A dialog based application is an application that is dialog based... and document view architecture application is an application that is not dialog based
And whats different between a programmer and customer?
|
|
|
|
|
A customer pays for answers.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
|
|
nisha00000 wrote: tell me
No. We wont.
Regards,
Vijay.
|
|
|
|
|
Nisha,
You are getting all these replies because of your basic question. Clearly, you have not taken effort to do search, or read some thing on the web or books. Don't be disheartened by these replies, people here are very helpful indeed, but you need to show some effort from your side. Do some study, and then come up with problems.
|
|
|
|
|
prasad_som wrote: Do some study, and then come up with problems.
I'll hold my breath and wait for her to come up with 'problems' for us to solve.
BTW how are you doing? It's been a long time.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|