|
There's sample code if you follow the link provided to you earlier...
Getting the System Version[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
onlyjaypatel wrote: Actualy i want the name of os installed.
You must be able to make that out from OSVERSIONINFOEX[^] structure that you pass on to GetVersionEx(). Please search for examples.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Thanx dear.
I just got it in msdn
but is there any other method to get that
|
|
|
|
|
use WMI
Win32_OperatingSystem
how to use WMI in CPP you can find in MSDN
|
|
|
|
|
My HD has ckt board damaged and may be motor is
also demaged is there any method to get data from HD plates
Can i put plates in another HD and get it?
Thanx
|
|
|
|
|
Please do not do this! [^]
Regards,
Sandip.
|
|
|
|
|
i have one vc++ project.I want to create linux executable from that vc++ project.how i do that.
|
|
|
|
|
Depends a lot of what you are doing with your sources. Is it a GUI application done with MFC ? If yes, then forget about it, MFC is windows specific.
If it is a console application and if you are using only standard C++ stuff, then you would need a specific compiler to compile for linux.
Converting existing code into cross-platform code is not trivial, it is best to take that into account directly before starting to code (and to take care of using only standard functions or to make sure that the correct versions of functions are called depending of the platform, using some #define).
|
|
|
|
|
i want to change default icon of "MFC"
i want to show my own icon on each dialog
how can i do this
my icon ID is IDR_MAINFRAME
|
|
|
|
|
i want to change default icon of "MFC"
i want to show my own icon on each dialog
how can i do this
my icon ID is IDR_MAINFRAME
|
|
|
|
|
You must be load your icon with LoadIcon and then use of SetIcon.
|
|
|
|
|
Open your <<FileName>>.rc file (in view code mode) and rename the icon name with your own icon name. In order to do this,look for IDR_MAINFRAME in that file.The path of the default MFC Icon would be res\\<<File_Name>>.ico. Change the path to your need and copy the new icon into that particular path.
Regards,
Rane
modified on Tuesday, September 2, 2008 4:51 AM
|
|
|
|
|
Hi,
I am confused about nested structure in c. I define a structure inside a another structure. But I am not able to allocate memmry to nested structre variable;
Code is
struct student
{
struct student *sd;
int rollno ;
struct classroom
{
int marks;
struct classroom *claas ;
};
struct classroom *croom;
};
struct student *stud = new student();
stud->croom = new student :: classroom();
I have allocated memory to classroom object using c++ method but how this can happen in c programming
efhghgfffhf
|
|
|
|
|
Not sourcecode only in executeable form ..
like in my visual c++ project i m using different header files that need to be placed in include directory of visual studio so how to run application in any system (where visual studio is not installed)
|
|
|
|
|
You would need atleast the framework for .NET to be installed if not the Visual Studio if you are using .NET API's.
You will need a installer project where you can include all the files that are to be copied on to the target machine and specify the desired locations where installation should put your files.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Please don't start a new thread when you answer a question from somebody.
shaina2231 wrote: like in my visual c++ project i m using different header files that need to be placed in include directory of visual studio so how to run application in any system (where visual studio is not installed)
If you will distribute an executable, you don't need to distribute header files.
|
|
|
|
|
Its easy..Just you need to install the VC++ Redistributables (a zip file that contains the collection of neeeded dlls) into the target system. These dlls are the runtime components of Visual C++ Libraries required to run applications developed with Visual C++ on a computer that does not have Visual C++ 2008 installed. You can download it from MS site...
Regards,
Rane
|
|
|
|
|
Why do you reply to me ?
Anyway, it's not that easy anymore. This was valid for VC6 but for VC2005 you can't do it this way. You have to install the runtime libraries using a specific installer that can be found on microsoft website (here[^]). It is the case for VC2005, I don't know for 2008 though.
Woops, I think I misread your post. Sorry about that.
|
|
|
|
|
True..I really meant that installer(mentioned by you) available in the MS site.. Oops sorry to reply you on that thread... The Redistributable pacakage is available for visual studio 2008 also...It is available here[^]">
Regrads,
Rane
|
|
|
|
|
i want to run my visual c++ project in any system using sw installation even if there is no visual studio already installed ..so how can i do that???
|
|
|
|
|
You mean you want to make an installer for your program ? If that's the case, take a look at InnoSetup[^] (it's free). Don't forget to distribute the release versions of your programs.
|
|
|
|
|
Source code or executable ??
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
|
Its easy..Just you need to install the VC++ Redistributables (a zip file that contains the collection of neeeded dlls) into the target system. These dlls are the runtime components of Visual C++ Libraries required to run applications developed with Visual C++ on a computer that does not have Visual C++ 2008 installed. You can download it from MS site...
Regards,
Rane
|
|
|
|
|
I hope you replied for shaina2231's question.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|