|
hiho@ll
i'm working on a browser helper object, which should have a "Boss coming" feature
the problem is how can i change the Location URL of IE?
what i do:
to load the url fast i have a local copy of google index.htm site with the google logo
i'm loading the file using navigate function, but the Location points to a local file!
using the IWebBrowser interface i only found a get_LocationURL function, but i need a set_LocationURL!!
anybody knows such a function
thx@ll
|
|
|
|
|
I have an activeX control and need to make a setup program and force setup to call DllRegisterServer , how can I achieve this?
|
|
|
|
|
I think a good way to do that is to use an installation program (like InstallShield). This program will call regsvr32 that will register the ActiveX for you.
|
|
|
|
|
Hi ,
I programmed an activeX control with VC++. I added a ClickEvent and a method OnLButtonUp that fires this event, when you click on the control. In the testcontainer of Visual Studio this works fine.
Now I loaded my control into excel. Here nothing happens when I click on the control. Debugging showed me, that my OnLButtonUp is never called.
How do I get the Click Event in Excel?
Can somebody help me?
Thx,
Mimmi511
|
|
|
|
|
Hi all
i have made an mfc dialog based application "test" .there is a dialog named testdlg , a generic class named CStart and a com class named CCall .
in testdlg.h file there is #include "Start.h" . in start.h there is #include "Call.h" . i want to add #include "testdlg.h" in Call.h ,but there is 8 error "IDD_TEST_DLG undeclared identifier and Expected constant expression " on the line enum {IDD=IDD_TEST_DLG} in testdlg.h file .
|
|
|
|
|
You should include resource.h before you include TestDlg.h..
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
I believe that headers should provide all information necessary to use them. Since that header requires Resource.h it should include it in my opinion. Therefore, I do this in my dialog headers :
#ifndef IDD_TEST_DLG
#include "Resource.h"
#endif
|
|
|
|
|
Hi all:
I have a pure white background imagelist which is used for the TabCtrl. But what the problem is when I add this icon to the TabCtrl, it seems it didn't mask the white back ground out. The following is the code
bitmap.LoadBitmap(IDB_ICON);<br />
imgList.Add(&bitmap, RGB(255, 255, 255));
tabctrl.SetImageList(&imgList);<br />
tabctrl.InsertItem(0, "", 0);
I've tried imglist.SetBKColor(CLR_NONE); the result is still the same!
Can anyone help me fix the problem?
|
|
|
|
|
i want to develop a client-server application where the client application is an executable. whenever the executable starts, it should first contact the server, get validated and only then start. the purpose behind it is to see that only those machines for which the server maintains a list can run the executable. can any1 suggest me some sample code or some suggestions on how to proceed?
|
|
|
|
|
|
Hi
Can Visual C++ .Net compiler genarate and make use of the SSE instructions of Intel processors (like Pentium 3 and Pentium 4)?
Let me say it in another way:
Can the compiler make use of the parallel-processing capability of the SSE extension on optimizing the genarated code of my program? Or I should myself use SSE instructios explicitly to make use of SSE capability?
Thank you and Sorry if I did not make it clear.
|
|
|
|
|
i think based on compilation flags like /arch:SSE, /arch:SSE2, compiler will generate the optimised code
naren
VC++ programmer
|
|
|
|
|
try this link
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclang/html/vcrefstreamingsimdextensions.asp
naren
VC++ programmer
|
|
|
|
|
Thanks naren.
I already checked the link provided by you and found no clear statement that .Net produce Parallel SSE code. Yes, the compiler can genarate and use SSE instructions but I ask whether it can use the parallel
capability of the SSE extension which I have no evidence it's could be done by the compiler!!!
thanks again naren
|
|
|
|
|
Code :
at .cpp file :
IMPLEMENT_DYNAMIC(alb2CaptureOptionTree , COptionTree)
//two .h file
class COptionTree : public CWnd
{
....................
}
class alb2CaptureOptionTree : public COptionTree
{
DECLARE_DYNAMIC(alb2CaptureOptionTree)
..........
}
Error :
when compiling the code , Errors occur .
error C2039: 'classCOptionTree' : is not a member of 'COptionTree'
error C2065: 'classCOptionTree' : undeclared identifier
In fact , I never define a class named classCOptionTree.
Why ?
What's the reason?
Thank you !
Fly as a bird
|
|
|
|
|
add DECLARE_DYNAMIC in base class also. In ur code add
DECLARE_DYNAMIC(COptionTree) in class COptionTree, and add
IMPLEMENT_DYNAMIC(COptionTree,CWnd)in the cpp file
Naren
VC++ programmer
|
|
|
|
|
Thanks ! It's right ! But Why?
|
|
|
|
|
When Link Errors occur again ! Do you know why ?
alb2CaptureProxyPluginPage.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
StdAfx.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
OptionTree.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
alb2CaptureOptionTree.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
alb2CaptureProxyPlugin.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
alb2CaptureProxyPluginDll.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
alb2CaptureProxyPluginIFace.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
alb2CaptureOptionTree.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall CWnd::SetOccDialogInfo(struct _AFX_OCC_DIALOG_INFO *)" (?SetOccDialogInfo@CWnd@@MAEHPAU_AFX_OCC_DIALOG_INFO@@@Z)
OptionTree.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall CWnd::SetOccDialogInfo(struct _AFX_OCC_DIALOG_INFO *)" (?SetOccDialogInfo@CWnd@@MAEHPAU_AFX_OCC_DIALOG_INFO@@@Z)
alb2CaptureOptionTree.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CWnd::IsFrameWnd(void)const " (?IsFrameWnd@CWnd@@UBEHXZ)
OptionTree.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CWnd::IsFrameWnd(void)const " (?IsFrameWnd@CWnd@@UBEHXZ)
alb2CaptureOptionTree.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CWnd::CheckAutoCenter(void)" (?CheckAutoCenter@CWnd@@UAEHXZ)
OptionTree.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CWnd::CheckAutoCenter(void)" (?CheckAutoCenter@CWnd@@UAEHXZ)
alb2CaptureOptionTree.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall CWnd::OnChildNotify(unsigned int,unsigned int,long,long *)" (?OnChildNotify@CWnd@@MAEHIIJPAJ@Z)
OptionTree.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall
|
|
|
|
|
try by setting the correct lib paths. Is it linking successfully if u omit the DECLARE_DYNAMIC, IMPLEMENT_DYNAMIC??
naren
VC++ programmer
|
|
|
|
|
What lib paths do I need ? I don't know.
can you tell me ?
|
|
|
|
|
is it linking successfully without DECLARE_DYNAMIC, IMPLEMENT_DYNAMIC
naren
VC++ programmer
|
|
|
|
|
check with the definition of IMPLEMENT_DYNAMIC. ultimately it will call the CRuntimeClass(base_class). Thats why u need to implement dynamic creattion inevery class in up heirarchy
naren
VC++ programmer
|
|
|
|
|
Hello,
The DELCARE_SomeThing {SERIAL, DYNAMIC and DYNCREATE} macros are used to implement some features provided by CObject. Some of these features are RTTI provided by MFC, serialization and dynamic creation using the RUNTIME_CLASS macro.
If your class wants to use one or more of these features, it should be derived from a class that has these features. If you don't you'll get those errors you had. Read here[^] for more information about CObject and dynamic object support.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
I made a basic dialog and it has a CEdit Box ( IDC_EDIT1 )
inside its implementation file.
CScrolling_CwndDlg.h
CPRPViewStaticMap m_prpviewstaticmap_inst;
CScrolling_CwndDlg.cpp
OnInitDialog(){
m_prpviewstaticmap_inst.SubclassDlgItem( IDC_EDIT1, this );
m_prpviewstaticmap_inst.ShowScrollBarSB_BOTH,TRUE);
}
The CPRPViewStaticMap is derived from CWnd
class CPRPViewStaticMap : public CWnd
inside the implementation file shown below
i tried to draw images
the problem is the images go out of the CEdit container
they also overlap the scroll bars instead of being under it.
void CPRPViewStaticMap::OnPaint() {
CBitmap BkBmp;
BkBmp.LoadBitmap(IDB_BITMAP1);
CDC BmpDc;
BmpDc.CreateCompatibleDC(pdc);
BmpDc.SelectObject(&BkBmp);
m_symbolx = 360;
for(int xr=0; xr<3; xr++){
m_symbolx = m_symbolx + 70;
pdc->BitBlt( m_symbolx,
90,
70,
70,
&BmpDc2,
0,
0,
SRCCOPY);
}
}
has anyone encountered this problem before?
how did you solve it?
Thank you very much
|
|
|
|
|
Constrain your BitBlt to not overwrite the area where the scroll bars are located or else set a clipping rectanlge prior to drawing the bitmap. Either way, you need to calculate the recangle it will FIT into, otherwise, it will just erase everything in its path.
|
|
|
|