|
Why didn't you release the MediaSeeking interface?
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]
|
|
|
|
|
ok not i release MediaSeeking interface also but there is some memory leak.
after RenderFile memory increase and not come down on previous positioin after releasing all interfaces.
|
|
|
|
|
I wrote an application in Visual C++ language, mfc apllication (Dialog Based, MFC in static library), PocketPC 2003 SDK to connect to *.sdf file saved in my PocketPC device.
The same code, for Windows works. The SQL querries from my mfc-Windows affetcs *.sdf file witch is savd on My Computer. But if I wrote the same code for Pocket PC to affect a file witch is saved on device it has no effect.
The code is this:
// ADOWin7Dlg.cpp : implementation file
//
#include "stdafx.h"
#include "ADOWin7.h"
#include "ADOWin7Dlg.h"
#import <<c:\\program files\\common="" files\\system\\ado\\msado15.dll="">> rename( "EOF", "AdoNSEOF")
_bstr_t bstrConnect = "Provider=Microsoft.SQLSERVER.CE.OLEDB.3.5;Data Source=C:\\MyDatabase1.sdf;";
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
-------------ussualy code generated by Visual Sdudio------------------
void CADOWin7Dlg::OnBnClickedButton1()
{
ADODB::_ConnectionPtr pConn;
pConn.CreateInstance(__uuidof(ADODB::Connection));
pConn->Open(bstrConnect, "", "", 0);
pConn->Execute("INSERT INTO Table1 (Nume) Values ('Arad')", NULL, NULL);
pConn->Close();
}
I cann not understand why the code works on PC and the same code does not work on Pocket PC. If I run the *.exe file on Pocket PC does not appears any error or message. If I run Query Analyzer 3.5 what is installed on Pocket PC, and make an SQL querry from it, it affects my *sdf file from device. The SQL Compact Edition is installed on device.
Maybe is an ADO connection problem. I don't know.
Thanks for help.
modified 19-Dec-11 11:42am.
|
|
|
|
|
Adding some debug code, or at the very least, checking the return values from your function calls would probably give you some useful information.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
hello
I want to ask about the library for otimization matrix.
Anyone know about library for optimization matrix that can use in visual c++?
Because I need the library that can solve the optimization matrix like a cvx_solver library in matlab.
Thanks so much
|
|
|
|
|
|
After I read that link, I think all of the library is for matlab. But I need to solve the optimization matrix in visual c++. The sample matlab source that I want to solve in visual c++ is
cvx_begin
variable x(n)
minimize( norm( A * x - b, 2 ) )
subject to
C * x == d
norm( x, Inf ) <= e
cvx_end
Anyone know the library for visual c++ to solve that problem?
Thank you
|
|
|
|
|
There are several links, and while some of the links offered there imply the inclusion of matlab, others don't. I haven't checked any, I just did a quick search on google and this seemed the most promising one for software solutions not including matlab. I've found one other link that pointed to Wolfram Alpha Mathematica instead - but I thought if you don't want matlab, then maybe Mathematica is not an option either.
|
|
|
|
|
How to tell the OS to use the environment provided by the WinForm application instead from system environment.
Example : My WinForm application uses C++ runtime dll's(msvcm80.dll, msvcp80.dll and msvcr80.dll) and bundling them as part of the application. How to make sure that my application will use the C++ runtime dll's that bundled along with product even though the dll's present else where in the system(c:\Windows\Winsxs).
Regards,
Gopal Reddy
|
|
|
|
|
|
Hi Gopal,
Member 8488014 wrote: My WinForm application uses C++ runtime dll's(msvcm80.dll, msvcp80.dll and msvcr80.dll) and bundling them as part of the application. How to make sure that my application will use the C++ runtime dll's that bundled along with product even though the dll's present else where in the system(c:\Windows\Winsxs)
Based on your description it seems that perhaps you want to 'Bind to a specific MFC runtime'. If I am correct then you should have a look at #defining:
#define _BIND_TO_CURRENT_MFC_VERSION 1
Some documentation on MSDN that covers this subject:
Redistributing an Application and Binding It to Specific Libraries[^]
Best Wishes,
-David Delaune
|
|
|
|
|
Thanks for the reference.
We are using Visual Studio 2005 as development environment.
I've not seen any option BIND_TO_CURRENT_VCLIBS_VERSION=1 on the C/C Preprocessor Definitions configuration page.
The article also states, it is only applicable of VS2008.
|
|
|
|
|
Hi Gopal,
Yep, you are correct and BIND_TO_CURRENT_VCLIBS_VERSION will only work for VS2008 and above. It is defined in the crtassem.h file.
However... if you take a closer look... you will find that by defining BIND_TO_CURRENT_VCLIBS_VERSION ... all it does it change the manifest.
I would suggest that you read the article by Martin Richter:
Create projects easily with private MFC, ATL and CRT assemblies[^]
Perhaps a private assembly would allow you to use a local copy of the MFC/CRT runtime.
Best Wishes,
-David Delaune
|
|
|
|
|
Hi
I have writen a TAPI program that can call (works fine)
I want to speak via headset not picking up a phone.
I can do this with Venta Fax & Voice program in my PC (so the modem supports this), but my program can not do this (no sounds send/receive).
Is there any tricks in TAPI function for this?
I have used
LINEMEDIAMODE_AUTOMATEDVOICE for
lineOpen function like this:
lineOpen(m_hLineApp, m_nDevID, &m_hLine, dwTAPIVer, 0, 1, LINECALLPRIVILEGE_MONITOR | LINECALLPRIVILEGE_OWNER, LINEMEDIAMODE_AUTOMATEDVOICE, NULL);
Regards
www.logicsims.ir
|
|
|
|
|
I think you need to take the handle of your headphone. There are 4 or 5 defined steps (function calling) which you should do for establishing a proper communication channel.
See this link.
http://www.tapi.info/default.aspx/TAPI/PSDKSamples.html[^]
Most of these samples are working perfectly however some may not work. Also make sure you are having bi-direction modem otherwise only one side sound will come.
Enjoy TAPI !!!
|
|
|
|
|
Hi
Thanks for your reply.
I have a full-duplex modem, and ir works fine with Venta Fax & Voice program.
What steps(functions) I must do?
I'm using TAPI 2.
Regrads
www.logicsims.ir
|
|
|
|
|
|
Thanks again for your time.
I've found that I should use PhoneApp for taking control of mic/speaker.(I hope this helps)
www.logicsims.ir
|
|
|
|
|
Hello,
I have to prevent Windows 7 from entering Hibernate mode.
Preventing it to enter SLEEP mode was done by
"SetThreadExecutionState(ES_CONTINUOUS |ES_AWAYMODE_REQUIRED|ES_SYSTEM_REQUIRED|ES_DISPLAY_REQUIRED);"
but this code doesn't stop windows from entering Hibernation.
what can be done to achieve the above..??
|
|
|
|
|
|
Actually this looks more like preventing the computer from ever leaving it again! 
|
|
|
|
|
I'm sure you have a good reason, but if a user has configured the computer TO use hibernation, why would you want to circumvent that?
"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
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Kiosk software would be one such example.
|
|
|
|
|
Yes, you would most definitely not want a kiosk to hibernate. But I don't see how that relates to the OP's request. I understood it to mean he wanted to keep a machine, that is configured TO hibernate, FROM hibernating. A kiosk does not fit that description.
"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
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Well, it would certainly make deployment easier... Just load the kiosk software, when running, it makes sure the computer settings don't interrupt it, when not running...works as a regular computer.
|
|
|
|