|
can any say how to convert a bitmap file on disk to gif. urgently required
|
|
|
|
|
Will this[^] helpful ?
Regards,
Paresh.
|
|
|
|
|
You can use of CImage class.
|
|
|
|
|
May be this is not the right forum to ask as this question relates to Borland C++ v 3.1. I could not find that topic in this. Suggest me the right forum. I am not able to debug my borland C++ project. When i press F8 it says 'no debug info at program start.Run Anyway' I checked the compiler options. Debug info is enabled. Is there anything i am missing?
Thanks for your help
|
|
|
|
|
Did you set debug options for it?
|
|
|
|
|
yes..I enabled degug option in the compiler settings. But still is of no use
|
|
|
|
|
I'm building a filtergraph and I'm sort of new at this. I want to build a filter graph that takes input from a Windows Media Player to capture the audio, whether I'm playing music or a video. I read about a filter with the class id of CLSID_WMPCD and I tried to access it from Direct Show on my PC, but wasn't able to. I Googled it and it wasn't anywhere to be found. Does anyone know anything about it, and is there possibly a CLSID_WMPDVD?
Thanks for any help anyone can provide.
GrizMan
|
|
|
|
|
The class is used for recording informations which may be massive.In the initialization:
<code><pre>m_qwFileSize = 0x4000000;
m_qwFileOffset = 0;
m_T = 600 * m_siInfo.dwAllocationGranularity;
m_hMappingFile = ::CreateFileMapping(m_hFile,NULL,PAGE_READWRITE,0,m_qwFileSize + sizeof(TCHAR),NULL);
m_lpStartLoc = ::MapViewOfFil(m_hMappingFile,FILE_MAP_ALL_ACCESS,static_cast<dword>(m_qwFileOffset >> 32),static_cast<dword>(m_qwFileOffset & 0xFFFFFFFF),m_dwBytesInBlock);</dword></dword></pre></code>
When the view's size is larger than 60%,I re-mapping the file:
<pre><code>if (m_qwFileOffset >= m_T){
m_T = m_qwFileOffset + 600 * m_siInfo.dwAllocationGranularity;
::UnmapViewOfFile(m_lpStartLoc);
__int64 qwOldFileOffset = m_qwFileOffset;
RndToSysAllocGranularity(m_qwFileOffset);
__int64 qwOffVar = qwOldFileOffset - m_qwFileOffset;
m_lpStartLoc = ::MapViewOfFile
(m_hMappingFile,FILE_MAP_ALL_ACCESS,static_cast<dword>(m_qwFileOffset >>
32),static_cast<dword>(m_qwFileOffset & 0xFFFFFFFF),m_dwBytesInBlock);
PBYTE pByte = reinterpret_cast<pbyte>(m_lpStartLoc);
pByte += qwOffVar;
m_lpStartLoc = pByte;}</pbyte></dword></dword></code></pre>
in the RndToSysAllocGranularity(), I allocate the File offset:
<code><pre__int64 dwremains="dwValue" %="" m_siinfo.dwallocationgranularity;<br="" mode="hold" /> if (dwRemains){
__int64 dwDevided = dwValue / m_siInfo.dwAllocationGranularity;
dwValue = (dwDevided + 1) * m_siInfo.dwAllocationGranularity;}</code>
When it works, I get the errors and its error code is 0x5,it means access denied.Why?
Later buggers harm more.
modified on Tuesday, December 18, 2007 7:57:40 PM
<div class="ForumMod">modified on Tuesday, December 18, 2007 8:08:17 PM</div>
|
|
|
|
|
Please use the <pre></pre> tags to surround code.
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.
|
|
|
|
|
Is it ok?
Later buggers harm more.
|
|
|
|
|
Can't you see what a mess is it?
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.
|
|
|
|
|
You can always use "Preview" to check if format is ok or not before posting.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
hi all, i am also looking for same error's solution.
first iteration it worked for me. second iteration not worked at all.
any help appriciated.
Nice talking to you. If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|
We have a native Visual C++/MFC app, and have a dialog which contains a web browser control.
The web browser control is a CWnd-derived class which uses InvokeHelper to communicate with the browser control. We call Navigate2() to send it to a URL and display the HTML in a child window within our dialog. This works great.
The question is how do we go about handling HTML events in the containing C++ dialog? For example, suppose we have a button in the displayed HTML which has an onclick event handler. We'd like the user to be able to click on the button in the HTML and have the containing MFC dialog get the event.
How do we communicate events out to the containing dialog?
The specifics of the control we're using are below. This is whats in the registry under the CLSID referenced in the wrapper class.
<br />
Windows Registry Editor Version 5.00<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}]<br />
@="Microsoft Web Browser"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\Control]<br />
@=""<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\InProcServer32]<br />
@="C:\\WINDOWS\\system32\\ieframe.dll"<br />
"ThreadingModel"="Apartment"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\MiscStatus]<br />
@="0"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\MiscStatus\1]<br />
@="131473"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\ProgID]<br />
@="Shell.Explorer.2"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\ToolboxBitmap32]<br />
@="C:\\WINDOWS\\system32\\ieframe.dll, 257"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\TypeLib]<br />
@="{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\Version]<br />
@="1.1"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\VersionIndependentProgID]<br />
@="Shell.Explorer"<br />
|
|
|
|
|
Dave Calkins wrote: We have a native Visual C++/MFC app, and have a dialog which contains a web browser control.
So you did not use the CDHtmlDialog MFC class[^]? Why not?
|
|
|
|
|
I'm adding this to an existing dialog. I don't want the entire dialog to be HTML. I want to have regular controls on the dialog and then have one area of the dialog display HTML content.
|
|
|
|
|
|
|
I have several vecors, loaded with data. I need to insert this data into a presentable display in a large RichEdit Editbox.
Since the data will vary in how many records will be displayed, I need a portion fixed to display the top portion of the "Form" and then just add the data afterward.
I'm afraid I'm at a loss as to how to begin. Could anyone supply some code as to how to load from file a "Form"(letter actually) and then be able to insert data after that "Form is displayed; thenn I would save the entire document to file.
A C++ programming language novice, but striving to learn
|
|
|
|
|
Larry Mills Sr wrote: I have several vecors, loaded with data. I need to insert this data into a presentable display in a large RichEdit Editbox.
Why don't you use a ListView instead?
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.
|
|
|
|
|
The data is alin a ListView. But I need to present a "Document" (I'm NOT using MFC's Document interface)for viewing and printout.
A C++ programming language novice, but striving to learn
|
|
|
|
|
Larry Mills Sr wrote: Could anyone supply some code as to how to load from file a "Form"(letter actually)...
I would start by looking at EM_STREAMIN . In the callback function, extract the data from your vectors.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Since I know next to nothing about EM_STREAMIN I have to ask? How do you use it in MFC. Somewhere I saw an example uing SendMessage which require a HWND as the first item in the SendMessage(HWND,...,....,);. How do you use SendMessage in MFC, in a dialog's Editbox?
A C++ programming language novice, but striving to learn
|
|
|
|
|
Since you are using MFC, just call the CRichEditCtrl::StreamIn() method.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Do any one know how to capture the audio from Internet so that only that audio is captured not the whole music which is available on the sound card.
For Example: If we are in a call with the recipient through a SoftPhone and that SoftPhone has a facility to playback the music from Internet and if we capture the sound from the sound card then the recipient's voice will also get mixed with the music that we captured from Internet.
If any one knows how to resolve this issue. Please tell me.
from-
Saurabh Srivastava
|
|
|
|