|
I have to create a Visual Studio Installer Project
in order to install my application (a single executable file)
and a Freeware Tool (as in example Acrobat Reader).
I can't find the way to let the Freeware Tool installation
executable file to be launched by the Visual Studio Installer Project
(during the installation of the mine application) !!!
Which settings have I to do in my Visual Studio Installer Project?
Thanks a lot !!!!
|
|
|
|
|
|
If I have well understood, you suggest me to insert a line of code
in my application in order to launch the installation file.
I'd like to don't modify the source code of my application.
I'd prefer that the installation package makes this operation.
Is it possible ??
|
|
|
|
|
The executable file cannot execute itself until the user,the system or the other program launchs it!
By the way,what's your installer for? why you dont want to add the line of code?
|
|
|
|
|
This is the situation:
I have developed an application that uses DAO interface.
This application has to run in any PC (WINNT) and I don't know
if Access (or the DAO support) is installed.
But I have got the executable file (MS Redist) that installs the
DAO support.
I have to create an installation package for my application
(.msi file) and I'd like that this package installs the DAO support
before installing my application.
I don't like to insert a line of code in my application in order to
solve this problem, because is not a software requirement required
by the customer and because my application has already been test.
I think that it is possible to solve this problem but I don't know
how !!!
|
|
|
|
|
Ask the user manually install this packet before launch your installer
|
|
|
|
|
Hi,all...
How to make a standard Win32 screensaver ONLY with C/C++(VC6+Win32API+MFC)?
Any articles,samples,or other related URLs are welcome, thanks!
|
|
|
|
|
Hi,
Check this link:
http://www.funducode.com/freevc.asp
|
|
|
|
|
|
Hi all...
I'n new to VC++ development company.I need to create an Active X control(like one listbox and image) and I plug in to I.E 5.5 tool bar with out using the ATL COM APPWizard.After searching in our website ,they gave the link
http://www.codeproject.com/atl/ietoolbartutorial.asp
It asks to install
1)RBDeskBand ATL object Wizard(version 2.0)
2)CWindowImplATL Object Wizard.
Without installing these,I need to create..Please send me the steps quickly.
I should finish within TWO DAYS.my mail id(if possible send to here also) : vcarivu@indiatimes.com
After all tries,I have hope only with our peoples in this site....Otherwise I can't survive here..
Thanks for viewing this.Please help me.
Ever friendly,
Arivu
|
|
|
|
|
I have to wonder why you are avoiding ATL, since without it you'll have a LOT of COM grunt-work to do. You can still use Erik's sample, just remove the ATL base classes and implement all the COM methods yourself.
Also, an IE toolbar is not an ActiveX control, so I think you need to read Erik's article to understand how toolbars work in general.
--Mike--
I'm bored... Episode I bored.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Dear Michael,
Thanks.My superior needs like that.Already I'm new to VC++ environment.
I know only basic MFC concepts.In this situation,I know little bit of ActiveX Controls only.I don't know anything about COM.
I understand IE toolbar is not an ActiveX Control.In that IE toolbar I have to put an activeX controls.
I need two things...Could you clear me?
1)Suppose if I want to do this using COM means what to learn?.
2)How to do using ATL?
From thie Erik's article...If download and Extract ,it display the message in
messageBok like that service is already available.If I search it,I found that the service is in Visual Studio .NET folder.Can I remove the Visual Studio .NET and and install it?.
Here nobody is there to help me.
Thanks for u're immediate help.
Arivu
mail id :vcarivu@indiatimes.com
Thanks for viewing this.Please help me.
|
|
|
|
|
i am also new to ATL but i can help you a bit..
see IE toolbar tutorials
http://www.codeproject.com/useritems/toolband.asp
http://www.codeproject.com/shell/2find.asp
Erik's tutorial tells us how to use his deskband and CWindowImpl Classes. I guess you haven't gone deep. I hope now these 2 tutorials will help you in doing what you wish to do.
cheers..
Himanshu
|
|
|
|
|
It's better to show me the sample-code or step.
ANYWAY,Thanks for your reply!
|
|
|
|
|
Wrong forum!!!
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
Here is what I mean abstractly: I have a project that has 3 class, each defined in its own header.
Class A has a variable of class B, and class B has a variable of class C. What I need to do is pass down the "this" pointer from class A to class C, so that class C can interact with some of the memebers of A. To do this, I have to pass it through B then to C. Also, class C's header file needs to include A's, and so does B.
The problem is that when I include "ClassA.h" in "ClassC.h", I get C2079 errors saying that class C is not defined, when I make an instance of class C inside class B. I realize what is going on here (correct me if I am wrong) is that MSVC gets a little confused when I have the include's tangled up like this (C includes A which includes B which includes C AND A, even though I am most definately using #ifndef)
Make any sense? I have seen this error a lot in the past, usually predeclaring all involved classes before making any include directives fixes this, but this time around that isnt working. Is there a fairly simple solution to this? I am using .NET, unmannaged C++, and I also tried using precompiled headers (and no, I am not using MFC, this is a straight up console app that is later going to be turned into a lib once I am done testing everything).
(maybe this is neater)
ClassA.h includes ClassB.h, and class A has a variable of class B
ClassB.h includes ClassA.h and ClassC.h, and class B has a variable of class C. One of the methods of class B takes a pointer to a variable of class A
ClassC.h includes ClassB.h and ClassA.h, and has a method that takes a pointer to a variable of class A.
|
|
|
|
|
|
Can anyone tell me how and if you can derive a template clkass from another template class? I do not know how to declare this (syntax) if this is possible.
Also, is it possible to make a template class inherit from one that was not a tempalte class?
Thanks in advance.
|
|
|
|
|
Try
template<typename T>
class A
{
// Blah
};
template<typename T>
class B : public A<T>
{
// Blah
};
Template classes can inherit from non-template classes (using standard syntax).
Dave
|
|
|
|
|
Actually, when you derive from a template class you don't use the template keyword if the derived class has no template params of its own. In ATL you do this:
class CSomeWnd : public CWindowImpl<CSomeWnd>
{ ... }; all the time
--Mike--
I'm bored... Episode I bored.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Actually, The derived and the base has the same template params.
template <class type="">
class CBaseClass
{
}
what would the derived class look like?
I want to use a template class as a param in the other template class.
I am really not sure how the syntax goes with this.
class CClass: public CBaseClass<x>
{
}
will give errors as to what X is.
I get a LINK2001 when I put
template <class type="">
class CClass:public CBaseClass<type>
{
}
So how do I declare this?
|
|
|
|
|
(Note for the future: you need to escape < and > (use the buttons below the sig box if you're in IE/Mozilla) for template syntax to appear correctly.)
There are two ways to approach deriving from a template class. 1, you can make the derived class a template; or 2, you can derive from a specialization of the base class. Take this class:
template <typename T>
class A
{
public:
A ( T t ) : m_t(t) { }
T m_t;
};
A<char> a_obj('x'); Pretty simple class with one data member, whose type is passed as the template param. If I want to make a derived class, I can write this:
class B : public A<int>
{
public:
B(int n) : A<int>(n) { }
};
B b_obj(1); Note that objects of type class B will only use the A<int> specialization. You can't have a class B object use, say A<unsigned long> .
The other way is to have the derived class be a template:
template <typename T>
class C : public A<T>
{
public:
C(T t) : A<T>(t) { }
};
C<double> c_obj(3.14); Of course, you can always make the derived class more complicated if you need to:
template <typename T, typename U>
class D : public A<T>
{
public:
D(T t) : A<T>(t), m_u(0) { }
U m_u;
};
D<float,int> d_obj(2.71828); Yes, the syntax sucks. You just have to keep staring at it and seeing examples until it sinks in.
--Mike--
I'm bored... Episode I bored.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
I am still not g etting this. I am tons of errors. What is the syntax if you declare the class functions outside the template class itself? Where can I look up more examples or a tutorial on this? I have been looking but seem not to be able to find anything on this subject, only on direct use and declarations of templates not deriving from templates.
THanks.
|
|
|
|
|
Errors with what? With your own code? In that case you need to post the code and the errors you're getting.
It'd probably be best to start a new thread, since this one is well-buried by now.
--Mike--
I'm bored... Episode I bored.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Agreed. But the original question asked how to derive a template class from another template class, not a non-template class from a template class as you have done here.
Dave
|
|
|
|