|
I sense a big failure soon. This signature was proudly tested on animals.
|
|
|
|
|
_sprintf will solve your problem then "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
|
|
|
|
|
Why did you removed your message ?
Other people cannot learn from your experience because they do not know the question.This signature was proudly tested on animals.
|
|
|
|
|
Hi how to get the language name,how to find the language that the OS is installed say eg : If the OS is Japaness then i should display the language "Japanness"
|
|
|
|
|
TCHAR szBuffer[MAX_PATH] = { 0 };
// Get language name, for eg: English
GetLocaleInfo( MAKELCID( 1033, SORT_DEFAULT ), LOCALE_SENGLANGUAGE, szBuffer, MAX_PATH );
MessageBox( szBuffer );
// Get country name, for eg: United states.
GetLocaleInfo( MAKELCID( 1033, SORT_DEFAULT ), LOCALE_SENGCOUNTRY, szBuffer, MAX_PATH );
MessageBox( szBuffer ); "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
|
|
|
|
|
Hi All,
Actually I want to design such a software through which user can access internet safely. If something happen through internet (like virus, etc)that should not be affect to our machine/computer.
Please give any idea to do it?
|
|
|
|
|
john5632 wrote: Please give any idea to do it?
Physically disconnect the machine.
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]
|
|
|
|
|
|
CPallini wrote: Physically disconnect the machine.
and Shutdown power supply "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
|
|
|
|
|
Use a licensed antivirus software
|
|
|
|
|
If you could do that, then I'd advise you to apply to microsoft, and ask for a reeeeeeeally big paycheck.
The way I've seen it for semi paranoid people is to run the browser in a virtual machine. So, setup the machine, and when it is "switched off", discard any changes made in the last session. Citrix do a product that does this slightly automatically, but you'll have to go look it up.
Iain.I have now moved to Sweden for love (awwww).
|
|
|
|
|
john5632 wrote: Please give any idea to do it?
With a lot of work :
Define requirements in details (market research, technology research ... )
Define speficications in details
Define design
Plan development cycles and development methodologies.
Plan testing cycles.
...
good luck.This signature was proudly tested on animals.
|
|
|
|
|
You could do that if you could garantee that no downloaded files are ever executed. Problem is that internet access is not only downloading webpages. You want to display them, and there the problem starts. Displaying a PDF means running an external program...and what about javascript?
So: your main problem is how to avoid (implicit) executes. That means write everything yourself or accept that many common things can not be supported (no javascripts for example)
One drastic solution: read the webpage with your own program, change all the links in the webpage to a local non-exsisting path and then display it in your webbrowser. This gives a good idea about the work you have to do...
|
|
|
|
|
Hi to all,
I am using windows registry. please look the following.
const char* subkey ="Software\\Microsoft\\Windows NT\\CurrentVersion";
if(RegOpenKey(HKEY_LOCAL_MACHINE,subkey,&hKey)== ERROR_SUCCESS)
{
cout<<"register is opened";
}
else
{
cout<<"still not working";
}
Above one is working correctly. And also displaying the message correctly.
But when subkey i written like follows it is not working.
const char* subkey ="Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows Messaging Subsystem";
I am not getting the exact problem please address the solution....
Thanks in advance.....To invent something, you need a mountain of junk in your mind.
---------------------Thomas alva edison
|
|
|
|
|
Sorry friends , I got the solution. I am reading incorrectly. I am reading in local machine instead of reading current user.
Any way it is working thanks......To invent something, you need a mountain of junk in your mind.
---------------------Thomas alva edison
|
|
|
|
|
You can use ATL class CRegKey to do registry operations "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
|
|
|
|
|
sampath-padamatinti wrote: But when subkey i written like follows it is not working.
Per MSDN:
If RegOpenKey() fails, the return value is a nonzero error code defined in Winerror.h. You can use the FormatMessage function with the FORMAT_MESSAGE_FROM_SYSTEM flag to get a generic description of the error."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
My project contain 5 dll and 4 dll are win32 and one dll is MFC shared dll.These dll are written in c language.our task is
redesign project and convert these code in c++ language (means use object oriented concept).One main dll is IProfile that contains exported
function and that exported function are called from another dll.In c language they are use extern.But in c++ i have
to create wrapper class for that.But i dont know how to create wrapper class.can anyone please tell me how to create
wrapper class in c++.
Thanks in advance
|
|
|
|
|
jadhavjitendrar wrote: .But i dont know how to create wrapper class.can anyone please tell me how to create
wrapper class in c++
Do you know C++ well?
You probably should create a facade, see "Facade Pattern" at Wikipedia.
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]
|
|
|
|
|
Yes sir,can u explain me in details
|
|
|
|
|
No, I can't do it here, since the facade pattern is a quite large topic and good C++ languaqe knowledge is a pre-requisite.
Anyway I may suggest you reading some good C++ books (see this thread [^] for hints), and the GoF's "Design Patterns" one.
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]
|
|
|
|
|
I want to use the spy++ to get a form control(login button) handle, but I find that it cannot.
If I write the c++ prgram to find the control handle, which methods can be used?
|
|
|
|
|
Without actually seeing that form my guess would be that the button is not a control itself but is drawn and its buttonlike functionality is handled by the form itself, thus, no separate handle. > The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
Hi all,
I am working on a MDI(MFC) application. which has customized OnSysCommand function.
after maximizing any child window of the application, if I try to open other child window using windows menu.
the application didn't receive WM_SYSCOMMAND message, so the function OnSysCommand is not get
called and the result the new window is not restored/painted properly.
anyone have the idea why this is happening.
Thanks,
Smith
|
|
|
|
|
I don't think your application should receive this message when opening a child window. See the description here[^] on MSDN. MVP 2010 - are they mad?
|
|
|
|