basara55
asked on
IE toolbar that works in visual studio c++ .net
I am looking for tutorial or sample source code on how to Build simple IE toolbar in Visual c++ .net
I have found several samples and tutorials in code guru and other sites but they were only for visual c++ 6
i tried to use them but could not get them to work in visual c++ .net
So if you have one that works for visual studion .net , you wull be awarded 500 points
I have found several samples and tutorials in code guru and other sites but they were only for visual c++ 6
i tried to use them but could not get them to work in visual c++ .net
So if you have one that works for visual studion .net , you wull be awarded 500 points
ASKER
I can't get to install that Atl object wizard ... There is no directory
C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Temp late\ATL
closest i could find is
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\VCWizards
but still it is not showing up in new projects ??? i also registered that dll too
C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Temp
closest i could find is
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\VCWizards
but still it is not showing up in new projects ??? i also registered that dll too
I would forget about that wizard. Just download the sample project and change it to meet your needs. I mean, all you asked for is a sample. You don't need the wizard to compile the sample.
If you can get it to compile, then hurray: you've got your sample.
If you can't get it to compile, post the errors you get, and we'll keep going.
Dex*
If you can get it to compile, then hurray: you've got your sample.
If you can't get it to compile, post the errors you get, and we'll keep going.
Dex*
ASKER
Cool thanks for your help , I am new to c++ so i appreciate all of the help
I tried to compile it and these are errors
c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\gooddesktop\ToolB andObj.h(5 6): error C2440: 'initializing' : cannot convert from 'ATL::_ATL_CREATORARGFUNC (__stdcall *)' to 'DWORD_PTR'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\gooddesktop\ToolB andObj.h(5 6): error C2787: 'IInputObject' : no GUID has been associated with this object
c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\gooddesktop\ToolB andObj.h(5 6): error C2440: 'initializing' : cannot convert from 'DWORD_PTR' to 'const IID *'
c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\gooddesktop\ToolB andObj.h(5 6): error C2440: 'initializing' : cannot convert from 'ATL::_ATL_CREATORARGFUNC (__stdcall *)' to 'DWORD_PTR'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\gooddesktop\ToolB andObj.h(5 6): error C2787: 'IInputObject' : no GUID has been associated with this object
c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\gooddesktop\ToolB andObj.h(5 6): error C2440: 'initializing' : cannot convert from 'DWORD_PTR' to 'const IID *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\gooddesktop\ToolB andObj.h(5 6): error C2440: 'initializing' : cannot convert from 'ATL::_ATL_CREATORARGFUNC (__stdcall *)' to 'DWORD_PTR'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\gooddesktop\ToolB andObj.h(5 6): error C2787: 'IInputObject' : no GUID has been associated with this object
c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\gooddesktop\ToolB andObj.h(5 6): error C2440: 'initializing' : cannot convert from 'DWORD_PTR' to 'const IID *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
I tried to compile it and these are errors
c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\gooddesktop\ToolB
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\gooddesktop\ToolB
c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\gooddesktop\ToolB
c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\gooddesktop\ToolB
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\gooddesktop\ToolB
c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\gooddesktop\ToolB
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\gooddesktop\ToolB
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\gooddesktop\ToolB
c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\gooddesktop\ToolB
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
ASKER
Can you figure out these errors ? Anyone
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That worked Thanks a lot for your help , Why was that causing compiling error ?
basara55:
No problem. I'm glad you got it working.
It seems in the new compiler, they rearranged the header files so that the GUID is separate from the interface, and so the compiler couldn't associate it the IID with the interface. The change we made explicitly says what the IID for the interface is, so the compiler had no problems. If you look at the code, he does a similiar thing for at least one other interface.
Hope that helps,
Dex*
No problem. I'm glad you got it working.
It seems in the new compiler, they rearranged the header files so that the GUID is separate from the interface, and so the compiler couldn't associate it the IID with the interface. The change we made explicitly says what the IID for the interface is, so the compiler had no problems. If you look at the code, he does a similiar thing for at least one other interface.
Hope that helps,
Dex*
> I am looking for tutorial or sample source code on how to Build simple IE
> toolbar in Visual c++ .net
Try this one from CodeProject.
http://www.codeproject.com/wtl/toolband.asp
It will totally work with VS.NET, but it might need some tweaking. If you can't get it to work, post the problems and I'll help you get it worked out.
Hope that helps,
Dex*