|
I can't figure out what's really happening there. The IContextMenu inteface should work well with your application. Have properly set set _WIN32_WINNT and WINVER macros? According to your target OS?
Using the Windows Headers[^]
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
is this the following code that i have to make in stdafx.h
#ifndef _WIN32_WINNT NTDDI_VERSION
#define _WIN32_WINNT NTDDI_VISTASP1
#endif
#ifndef _WIN32_IE
#define _WIN32_IE 0x0700
#endif
after making the above change i am getting the following error
error C1189: #error : _WIN32_WINNT settings conflicts with _WIN32_IE setting c:\program files\microsoft sdks\windows\v6.0a\include\sdkddkver.h
it is failing here
#if ((_WIN32_WINNT < _WIN32_WINNT_WIN2K) && (_WIN32_IE > _WIN32_IE_IE60SP1))
#error _WIN32_WINNT settings conflicts with _WIN32_IE setting
#endif
I am working on vistasp1
what could be the problem
Regards
modified on Friday, February 13, 2009 10:22 AM
|
|
|
|
|
I am also facing same issue...I have ported my activex plugin to 64bit by compiling with x64. it has created .ocx file as well as .dll file.
Created cab and inf file to install my activex plugin.
When i install it crashes.
I ran dependency walker on .ocx file it says
two dlls not found...
devmgr.dll dwmapi.dll
please let me know how to resolve....
|
|
|
|
|
Hi,
TO run a web application with 32bit dll in an 64 bit server, just in the IIS, "enable 32-bit application" to true for the application pool. This seting will work almost all servers expect SBS server.
|
|
|
|
|
hi experts please let me knowhow to create a dll's in vc++ 1.52
kir_MFC
|
|
|
|
|
Why don't you use a more recent compiler?
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 all,
How can I set a partition as active partition using c++ code?
Is there any API or function to do that?
Please guide me with your comments.
thanks.
|
|
|
|
|
I suspect DeviceIoControl[^] and the IOCTL_DISK_SET_PARTITION_INFO_EX[^] control code may point you in the right direction. I don't know if they'll actually let you do what you want, though - that function may only be accessible through lower level NT functions that are (publicly) undocumented, or documented in the device driver documentation?
In fact, looking a bit further, I suspect IoSetPartitionInformationEx[^] is probably the function you need - but that's part of the NT API, not the Win32 API.
|
|
|
|
|
how to get the list of software programs installed using c?
|
|
|
|
|
The details of all installed applications are stored in registry under,
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
Since you have a preference for C Compiler, You can use plain windows api to read the registry and populate the list. This article[^] will be helpful.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Googling[^] would lead you to an article[^] on a useful programming related site called CodeProject.com - you may have heard of it.
|
|
|
|
|
Stuart Dootson wrote: Googling[^] would lead you to an article[^] on a useful programming related site called CodeProject.com
My vote 5!!!!
Regards,
Sandip.
|
|
|
|
|
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
|
|
|
|
|
Hi anybody knows how to use the active X control Windows Media Player.
I want to play a .WAV file.
How to use the class for media player CWmpPlayer.
Which all functions should i call.
Please help me
With regards
Deepu
|
|
|
|
|
you can right click on the dialog and select Insert ActiveX Control and select the windows media player activex.
once its selected then create a member variable for it. you get all the wrapper classes that is required for the activex component to work properly.
|
|
|
|
|
i have done that.But can u tell me which all member functions should i call to play a file if i am having the url of that file.
|
|
|
|
|
use MCIWnd functions
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
If i can use CWMPPlayer4 class windows media player window i can use in my dialog .
I want just to know which functions should i call for opening and playing the file.
If somebody used it before or have any documentation,please help me.
|
|
|
|
|
|
do you mean MCIWnd class.It is helpful.But i need to have a windows media player window in my Dialog.
It is possible with activeX control windows media player.
|
|
|
|
|
I am really sorry.That link was not there previous.
Thank you very much.
|
|
|
|
|
The link I gave was related to Embedded Development... So I am not sure about usefulness...
- ns -
|
|
|
|
|
I just tried it...
I inserted the activex and created a control variable of class CWMPPlayer4. And called the the m_obj.SetUrl( "filepath" ). I could play an mp3 file.
But I am not sure about a good reference. But I found that googling the string "CWMPPlayer4" would guide you better.
- ns -
|
|
|
|
|
You can use of MCI functions for playing your audio but you can desgin your idea for it id you dont need to CWMPPlayer4.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
I am working on a project intended to control the print flow on the network. User will not be allowed to print on the printer directly. In any case EMF spool file will be generated and parsed and then forwarded to the actual printer(any PS/PCL) printer.
For forwarding the print job , I am just taking the destination printer device context and playing the spool file on the destination printer using PlayEnhMetaFile function, so it is printing on paper. Every thing works fine up to this level.
But I am getting some problem. The output from print job forwarding and the direct printing to the printer is somewhat differ.
I want to get same out put from print job forwarding as I am getting direct printing.
For that reason I am counting RECT to play enhanced meta file on the destination printer using following formula.
float PixelsX, PixelsY, MMX, MMY;
RECT rect;
PixelsX = (float)GetDeviceCaps( dc ,HORZRES );
PixelsY = (float)GetDeviceCaps( dc, VERTRES );
MMX = (float)GetDeviceCaps( dc, HORZSIZE );
MMY = (float)GetDeviceCaps( dc, VERTSIZE );
rect.top = (int)((float)(pEMRHeader->rclFrame.top) * PixelsY / (MMY*100.0f));
rect.left = (int)((float)(pEMRHeader->rclFrame.left) * PixelsX / (MMX*100.0f));
rect.right = (int)((float)(pEMRHeader->rclFrame.right) * PixelsX / (MMX*100.0f));
rect.bottom = (int)((float)(pEMRHeader->rclFrame.bottom) * PixelsY / (MMY*100.0f));
Here "dc is Device context for the destination printer" .
But each time I am getting somewhat big print from the printer.
Is it right way to calculate the RECT?
It would be help me if you can look into the problem please.
Thank you.
Regards,
MAhendra
|
|
|
|