|
Amir_m wrote: so if my "a.mdb" file is password protected and the password is "123" what should i do?
Have you tried:
m_db.Open(NULL,false,false,L"ODBC;DRIVER={MICROSOFT ACCESS DRIVER (*.mdb)};DSN='';DBQ=C:\\a.mdb;Pwd=123"); "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
|
|
|
|
|
|
Hi Alls,
I have Set the 96DPI . But problem is that this is showing that my Dpi is 96. but the Screen has no any effect. but if i restart the system . All the requirement has fullfill. but i dont want to restart my Computer. so Please help me. how can i acheive my prob. I am also giving my Code . please modify my code and send me as soon as possible.
CRegKey key;
CString strKeyName = "SYSTEM\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts";
if(key.Open(HKEY_LOCAL_MACHINE,strKeyName) ==ERROR_SUCCESS)
{
if(key.SetValue(96L,"LogPixels") != ERROR_SUCCESS)
{
}
This is my code. please give me solution that how can i fix my problem. main problem is that i donot want to restart my computer. so please edit my code and send me as soon as possible.
Thanks
Prabhat
|
|
|
|
|
I don't think this is possible. If you change the DPI through the Control Panel/Display applet, it pops up the message, "Any font changes resulting from a new DPI setting will take effect after the fonts are installed and Windows is restarted.""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
|
|
|
|
|
David's answer is correct. Windows requires a restart whenever you change the DPI setting.
Being bitchy and voting his post a 2 just because you don't like the answer is ill-mannered.
|
|
|
|
|
I have a string like this one:
"Album Release Party"
But I want to change the " escapes to the normal symbol:
"Album Release Party"
I tried with UrlUnescape but it didn't work. Can someone suggest another function?There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Are you using MFC, C, or C++?
sashoalm wrote:
I tried with UrlUnescape but it didn't work.
Most likely because what you have is not a URL with escape sequences."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
|
|
|
|
|
I'm using MFC. There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
So have you tried CString::Replace() ?"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
|
|
|
|
|
Sorry, I meant I need to replace any type of HTML encoding I might encounter - ", &, etc., according to whatever the html specification is. I'd rather not make my own buggy/incomplete implementation. String substitution is not the problem here, lol There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
sashoalm wrote: Sorry, I meant I need to replace any type of HTML encoding I might encounter - ", &, etc., according to whatever the html specification is. I'd rather not make my own buggy/incomplete implementation. String substitution is not the problem here, lol
Do you know in advance it would be buggy? lol 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 tried doing it for %20 and the likes in URLs, until I found about UrlUnescape by asking in codeproject. There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
sashoalm wrote: Sorry, I meant I need to replace any type of HTML encoding I might encounter - ", &, etc., according to whatever the html specification is.
See here."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
|
|
|
|
|
I was trying to find something that's equivalent to this library function for .NET called HttpUtility.HtmlDecode[^].
Or this PHP function htmlspecialchars[^]
Those functions are available as part of the framework in PHP and .NET is something like it available in MFC?
I just want to make sure I don't go reinventing the wheel before asking at codeproject if there's a function in MFC that does what I need.There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
sashoalm wrote: ...is something like it available in MFC?
Definitely not."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
|
|
|
|
|
Hi all,
My application looks cool in 1280 by 1024 pixels.. but when i change the pixels(monitor resolution) to 1024 by 768 , layout is getting changed.
my toolbar is disturbed and am not getting the whole tool bar present the window..
does any one know how to make a desktop application flexible?? for eg., ms word, excel are all flexible ones...right? like that i want my application to be flexible..
Thanks
rakesh.
|
|
|
|
|
As I know
there is no automation from the MFC side here...
So you could check it explicitly,
for example - by sizing of the frame - like this:
if (pcBar->IsThereNoSpace()) {
pcBar->ReDock();
}
|
|
|
|
|
Hello sir,
Are IsThereNoSpace() and ReDock() MFC Functions???
If not, can u please tell me the definition of the functions??
thanks,
rakesh.
|
|
|
|
|
Hello Rakesh,
no, sorry,
there are function GetWindowRect(..)
and nember functions of your ToolBar class only...
Do you use CMFCToolBar in your application ?
Eugen
|
|
|
|
|
|
what are the diffaence between .exe and .dll
While developing a com componet which is best pratice ..should u go for .exe or .Dll?????
|
|
|
|
|
DLL is the Best practice for all time ..because its safe and secured.
An exe is executable programs and DLL is file that can be loaded and executed dynamically.
DLL doesnot have main Function and exe have.. Failure is Success If we learn from it!!
|
|
|
|
|
It is easier to begin by a DLL
if you will not use DCOM...
A DLL component will be faster
but more dangerous (by errors) for a client.
An EXE component could be a service
|
|
|
|
|
COM servers come in two basic varieties: in-process and out-of-process. In-process servers (often referred to as in-proc servers) are DLLs. They're called in-procs because in the Win32 environment, a DLL loads and runs in the same address space as its client. EXEs, in contrast, run in separate address spaces that are physically isolated from one another. In most cases, calls to in-proc objects are very fast because they're little more than calls to other addresses in memory. Calling a method on an in-proc object is much like calling a subroutine in your own application.
Out-of-process servers (also known as out-of-proc servers) come in EXEs. One advantage to packaging COM objects in EXEs is that clients and objects running in two different processes are protected from one another if one crashes. The disadvantage is speed. Calls to objects in other processes are roughly 1,000 times slower than calls to in-proc objects because of the overhead incurred when a method call crosses process boundaries.
Please refer Programming Windows with MFC by Jeff Prosise ->COM
|
|
|
|
|
Given that code is same how can DLL be faster then EXE.
-Saurabh
|
|
|
|