|
Hi,
I have created MFC Activex Control in VS 2005.It is working very fine on my machine.
Now I want to run it on the different machine(NOTE : Without VS 2005).So I tried to register it with REGSVR32 , but I gives me the error like.....
LoadLibrary ("ActivexVS05.ocx") failed - This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
And also it is registered very easily on diff machine with installled VS 2005.
So,Can anyone suggest me what is the problem??
Ashish Bhatt
|
|
|
|
|
|
Thanks For Reply.
As you told me to read the content as linked in your reply, I read it very carefully.
And I got one confusion that In this content I found the below line.........
If you redistribute an MFC DLL, be sure you redistribute the retail version rather than the debug version. Debug versions of the DLLs are not redistributable. Debug versions of the MFC DLLs have a trailing "d" in their file names, as in Mfc80d.dll.
Here how can I redistribute my ocx of the retail version not debug version.And where this retail version is on my system. Sorry for the such silly quetions but I have no idea about this retail version.
can you suggest me something more?
Thanks.
Ashish Bhatt
|
|
|
|
|
|
Thank you very much for replying me. After very long time but still reply is important.
Now in present I have started my control to be registered on other PC also.
If you have no any problem then may I ask you one more quetion?
So, At right now I have created one package of Project setup to install my Activex on other PC.But I have to register my control manually Using REGSVR32.exe But I want to register that Control during package installation Process.
Do you have any Idea?
I so then you can share with me.
Thanks.
Ashish Bhatt
|
|
|
|
|
Hi Ashish,
Thanks.
Yes, you can very well use the RegSvr32.exe in packager. However, I don't know much about how to.
Regards,
Paresh.
|
|
|
|
|
Hi,
I am working on disabling menu options,tool bar options and handling windows messages on another application.
I am able to disable the menu options of another application by getting
a handle to that application using FindWindow API.
Is it possible to handle the windows messages on another Application?
I want to disable the right click option on another application.
Is it possible? Any suggestions would be appreciated.
Thanks
Satya
Today is a gift, that's why it is called the present.
|
|
|
|
|
Windows hooks! See, for instance, the articles API hooking revealed, Hooks and DLLs and, of course, the documentation ^.
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.
|
|
|
|
|
I've created a Single Document MFC Project. If I run this project,a window opens. If I select File->Print or File->Save, the corresponding Dialog opens. But If I select File->Open from the File menu
the File Open Dialog doesn't open. How can I do this? Pls help.
|
|
|
|
|
???
Revise your Menu in the resource editor and ensure that you have ID_FILE_OPEN in the Menu option File->Open.
it should be automatically included.
BTW you can always call CMyDocument::OnOpenDocument (); it should have a call to CDocument::OnOpenDocument (lpszPath) inside.
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 friends,
How do i change the size of the font( i mean text) in my listbox control??if possible explain that to me with sample code.
|
|
|
|
|
Call SetFont() function of the list box( CListBox ).
|
|
|
|
|
hi whanks for the reply,
since i'm new to vc++, can u tell me the syntax of setFont()
|
|
|
|
|
Click on the "?" button in your VC++ toolbar, go to the "index" tab in the help and write CListBox, then choose class members, look for SetFont () and click on it. You will have the info there
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
|
|
|
|
|
It was for SetFont and for CreateFont!
|
|
|
|
|
you are a very bad guy ;P
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
|
|
|
|
|
Are you also new (or allergic) to documentation (MSDN,...)?
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.
|
|
|
|
|
CPallini wrote: Are you also new (or allergic) to documentation (MSDN,...)?
Online help or local help?
|
|
|
|
|
|
Deepu Antony wrote: can u tell me the syntax of setFont()
Haven't u heared of MSDN?
Create a CFont object as member variable of the class. say m_font.
After that..
m_font.CreatePointFont( 200, "Arial" );<br />
m_ListBox..SetFont( &m_font, TRUE );
|
|
|
|
|
See CFontListBox[^] of course I didnt see it uses of SetFont for listbox or no but I think if you are new to vc++ its helpful for you.
|
|
|
|
|
Deepu Antony wrote: ...can u tell me the syntax of setFont()
If you are using MFC, see here. Otherwise, see here.
"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
|
|
|
|
|
Hi! Everyone!
Now I'm developing an application which will play a .wmv file. I do it using mciSendCommand. But a mistake will happen sometimes. The description of it is: "the alias had been used by other program, plz use the unique alias."
This mistake can't happen everytime. The application was executed only once. So it isn't make by two program executing at same time. I hope someone can tell me the reason and how to resolve it. Thx!
The code is as below:
<br />
MCI_DGV_OPEN_PARMS mciOpen;<br />
MCI_DGV_STATUS_PARMS mciStatus;<br />
UINT uDeviceID;<br />
HWND hwndVideo;<br />
RECT video_rect;<br />
ZeroMemory(&mciOpen,sizeof(MCI_DGV_OPEN_PARMS));<br />
mciStatus.dwItem=MCI_DGV_STATUS_HWND;<br />
mciOpen.lpstrAlias=_T("thevideo");<br />
mciOpen.lpstrElementName=(LPWSTR)m_szVideoName.GetString();<br />
mciOpen.hWndParent=this->m_hWnd;<br />
mciOpen.dwCallback=(DWORD)this->m_hWnd;<br />
mciOpen.dwStyle=WS_CHILD;<br />
DWORD ret = mciSendCommand(0,MCI_OPEN,MCI_OPEN_ALIAS|MCI_OPEN_ELEMENT|MCI_DGV_OPEN_PARENT|MCI_DGV_OPEN_WS,(DWORD)&mciOpen);<br />
if(ret != 0)<br />
{<br />
CString dbg_str;<br />
wchar_t str[100];<br />
CMajoyComLog::WriteDefaultLog(L"Can't open this file:"+m_szVideoName);<br />
mciGetErrorString(ret,str,100);<br />
dbg_str.Format(_T("Error occured:%s"),str);<br />
CMajoyComLog::WriteDefaultLog(dbg_str);<br />
MessageBox(m_szVideoName + _T("Can not open Media File"));<br />
return 0;<br />
}<br />
else<br />
{<br />
uDeviceID=mciOpen.wDeviceID;<br />
mciSendCommand(uDeviceID,MCI_STATUS,MCI_STATUS_ITEM,(DWORD)&mciStatus);<br />
hwndVideo=(HWND)mciStatus.dwReturn;<br />
::GetClientRect(hwndVideo,&video_rect);<br />
ShowWindow(SW_SHOW);<br />
UpdateWindow();<br />
}<br />
mciSendString(_T("play thevideo"), 0, 0, 0);<br />
GetParent()->PostMessageW(WM_VIDEO_START);<br />
SetTimer(1,1000,NULL);<br />
<br />
m_szVideoName.ReleaseBuffer();<br />
|
|
|
|
|
Hello All,
i worked on a application which is SDI using mfc with VS 2005.
when i start this application it takes arround 20.5MB memory.
if i minimize it once than it shows only 1.7MB memory which is actual.
so please tell me what have to do so without minimze the application it should take only 1.7 MB memory.
please share your knowledge with me.
thanks
Bankey
|
|
|
|
|
Minimizing does not normally reduce memory footprint substantially so your program must be responding to being minimized by running some special function.
You need to look for what happens on minimize to find where the extra memory is used and if it's all needed. Also make sure your memory usage figures take into account all types of memory, ordinary ram heap, virtual memory, non-paged pool.
Memory usage is application specific so I can't advise you any further without a detailed understanding of what your app is doing.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|