|
All clear now...
|
|
|
|
|
You can't. Explorer is not running in the secure desktop where the login window is shown, so there is no taskbar and no notification area. The ability to customize that window is purposely very limited.
|
|
|
|
|
you have to write msgina.dll.. search Msgina you will get all information releted to it
"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>
|
|
|
|
|
Hi all,
I have made a application in vc2008 and my problem is its not working on any other machine. its giving an error side by side configration incorrect. i was told to install vcredist_x86.exe , as i installed it my exe started working.
i wanted to know that if i want to run my exe on 20 machines then i have to install this exe seprately on each and every machine or is there any way to do it..
thanks in advance
|
|
|
|
|
VCProgrammer wrote: i wanted to know that if i want to run my exe on 20 machines then i have to install this exe seprately on each and every machine or is there any way to do it..
Yes, You have to install vcredist_x86.exe on each machine.
No other way..
Regards,
Sandip.
|
|
|
|
|
What's the problem with that ? You also have to distribute your application on every machine.
If you really don't want to install vcredist_x86.exe on every machine, you can still link statically to the MFC (if you use them) and to the C-runtime library.
|
|
|
|
|
VCProgrammer wrote: i wanted to know that if i want to run my exe on 20 machines then i have to install this exe seprately on each and every machine or is there any way to do it..
If you installed it on one machine to get your app working, why would you think that it would be any different for the other 19 machines?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
If running the redist installer is something you want to avoid, the only other choice is to statically-link any libraries you use (MFC, CRT, etc.)
|
|
|
|
|
I am having an application where there is 17 dialogs. now i need to change the size of the font throughout the project. is there any way to do that. i am aware of changing the font using the dialog properties. doing so the whole layout changes. i want to avoid that. is there any other way?
|
|
|
|
|
WM_SETFONT [^].
(if using MFC , CWnd::SetFont [^]).
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Chandrasekharanp wrote: changing the font using the dialog properties. doing so the whole layout changes. i want to avoid that.
Dialog layout is based on the font so there's no way around it.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
so what u mean to say is i need to change the layout manually if i change the font.
|
|
|
|
|
If you don't get the results you want, then yes.
Do you know the font you want to use at design time or will it
be picked at runtime?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
in my application I have to support single instance functionality I tried with FindWindow and sendmessage but it failed in some times so I want to try with mutex,can anybody suggest me how to support single instance with mutex?
Thanks in advance....
|
|
|
|
|
you can add some code like this... in your application initinstance
HANDLE hMutex = CreateMutex( NULL, TRUE, "MyMutex" );
if( GetLastError() == ERROR_ALREADY_EXISTS )
{//application is already running. dont proceed further
CloseHandle( hMutex );
return FALSE;
}
|
|
|
|
|
since w2k sp4 it is better to use global mutexes:
HANDLE hMutex = CreateMutex( NULL, TRUE, "Global\\MyMutex" );
to aovid conflicts in multiple sessions.
Greetings from Germany
|
|
|
|
|
Hi,
Try this Link[^]
The price of anything is the amount of life you exchange for it.
Thanks and Regards.
SANTHOSH V
|
|
|
|
|
|
|
How can i call a URL from a mfc app and POST some values to it (Using get is easy url..?id=1 but how do i do it using POST)
Thanks
C++ where friends have access to your private members !
|
|
|
|
|
If you would do much more than doing a HTTP Post, then consider CURL[^].
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Sorry all about pre-my post
Here is my source code: http://www.in4site.com/hms.txt
When i run compiler i got this error
Error 1 error LNK2001: unresolved external symbol "private: static class std::list > * Hotel::_rooms" (?_rooms@Hotel@@0PAV?$list@VRoom@@V?$allocator@VRoom@@@std@@@std@@A) HSM.obj
Error 2 fatal error LNK1120: 1 unresolved externals C:\Users\Google\Documents\Visual Studio 2005\Projects\HMSv10\Debug\HMSv10.exe
i have looked up LNK2001 error code on MSDN website but no solution for this situation. Can any1 help me solve it ?
but when i use vs 2005 to compile i got LNK2001 error, but when i use vs 2008 to compile , i got no error, this program run normally ?
i dont know why ? can any1 answer this ?
thanks in advance
|
|
|
|
|
Member 2428381 wrote: have looked up LNK2001 error code on MSDN website but no solution for this situation
I don't know what you saw there, and what you tried to fix that out, but :
unresolved external symbol "private: static class std::list > * Hotel::_rooms"
means that the compiler knows the definition of your class (in its .h file most probably), but the implementation is not foundin the directoried the linker is searching into.
do you have the implementation file somewhere else ?
is it an external library ?
if so, you certainly missed to had its path in the linker settings of your project...
|
|
|
|
|
Hi,
I just combinated all code into once file as you saw at http://www.in4iste.com/hms.txt
But when i use vs 2005 to compile i got LNK2001 error and when i use vs 2008 to compile , i got no error, this program run normally.
im a new in c++, please help!
|
|
|
|
|
Looking at the code you posted earlier, Hotel::_rooms is a std::list (I don't know a list of what because the < and > symbols were treated as html tags and disappeared). I'm not sure, but it looks like it is a pointer also. Is that what you want instead of just having a list object ?
Anyway, as I asked in my previous post, static variables need to be defined in a cpp file. Do you have something like this:
std::list<...;>* Hotel::_rooms = NULL;
in your cpp file ?
|
|
|
|