|
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.
|
|
|
|
|
the problem arises that the device i m working with stops responding..
so as my client requires this functionality to continue altogether when the system resumes from hibernate.. or he asked that the system should not go into hibernate.. since there is nothing we can do with the device hence stopping the windows from entering hibernate was the best option..
|
|
|
|
|
Hi,
Are you making a single call to the SetThreadExecutionState function[^]? The NT kernel tracks how long the user has been idle... by keeping track of the last time the mouse/keyboard has been used or last time it recieved any type of HID input.
When you make that call to SetThreadExecutionState[^]... all it does it set the idle time back to zero. You need to call it over and over again to continuously reset the user idle-count.
I recommend the following:
1.) Make your call to SetThreadExecutionState[^].
2.) Then use the the CallNtPowerInformation function[^] with the SystemPowerInformation index and populate a SYSTEM_POWER_INFORMATION structure[^].
3.) Read the unsigned long SYSTEM_POWER_INFORMATION.TimeRemaining which represents seconds remaining before the user is considered idle and save it.
4.) Begin a window,thread or multimedia timer with a period less than the TimeRemaining you obtained in the previous step.
5.) When your timer fires... call the SetThreadExecutionState function[^] again.
Laptop manufacturers have been known to write device drivers that interfere with preventing hibernation from usermode so your mileage may vary. Preventing hibernation from usermode could be considered a hostile act...
Best Wishes,
-David Delaune
|
|
|
|
|
That's the client side requirement so this wont be a hostile act..
and this code wont allow window to any state.. system will be continuously ON in windows 7
|
|
|
|
|
can't you just disable hibernation from the OS's power settings ?
seems cleaner than trying to do it from an application.
|
|
|
|
|
Juts disable it by schemes
code had been posted many times on pro win32 group
news://nntp.aioe.org/comp.os.ms-windows.programmer.win32
or http://tinyurl.com/cmhb5g by Google
|
|
|
|
|
how we can change array length in c and c++?
for example: dose the programmer have to dispose the allocated memory and reallocate a new space in memory or the own language do this?
thanks if gimme a good document about it.
I need the answer in design programming language scope.
thanks so much.
|
|
|
|
|
desatir7316 wrote: dose the programmer have to dispose the allocated memory and reallocate a new space
Yes.
See here[^] for details about the C++ language.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
In C programming language:
If you allocate the array on the stack then you cannot change its size.
On the other hand, if you allocate an array on the heap (using, for instance malloc ) then you may change the size calling realloc .
All the above rules hold for C++. However you usually use the new operator for allocating arrays on the heap and new lacks of a reallocating mechanism. Anyway C++ provides, via the STL library, containers[^] that take care about memory reallocation.
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]
|
|
|
|
|
CPallini wrote: In C programming language:
If you allocate the array on the stack then you cannot change its size.
Heh, don't forget about that Microsoft non-standard _malloca[^] beast that was added to the CRT a few years ago.
-Dave the Nitpicker.
|
|
|
|
|
Hey man, if it is Microsoft then it is 'the standard'!
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]
|
|
|
|