|
The INetFwAuthorizedApplications interface can be used to get the list of applications authorized to open ports in the firewall. This list will be smaller than the list that is shown when the "Add Program..." button is clicked.
Not having done this before, that's all I can offer.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
Thanx david.
I also tried with this... It makes sense if we display that list also. because firewall used add the programs in exception list and not displaying all the applications.
But then also need to find out how does windows get the list of application. I have VS6.0 intalled on my machine and firewall shows most of the application from Visual Studio 6.0 folder from the installed location.
Anyways...Will look to get....
Thanks again for the help.
"A winner is not one who never fails...but the one who never quits"
|
|
|
|
|
|
hello,
How can we get the proxy setting of a default web browser?
and How to apply these setting on IE?
Thanks...
|
|
|
|
|
I have a problem with this code
CString l_FilePath;
CFileDialog m_ldFile(TRUE,"txt","*.txt",OFN_ALLOWMULTISELECT | OFN_EXPLORER);
m_ldFile.m_ofn.lpstrFilter = "*.txt";
if (m_ldFile.DoModal() == IDOK)
{
POSITION temp = m_ldFile.GetStartPosition();
while(temp)
{
l_FilePath = m_ldFile.GetNextPathName(temp);
m_lstFiles.AddString(l_FilePath);
}
}
Now the problem. i have 8 files in a folder. when i select all the files and try to put the files in a listbox nothing is displaying. but when i am selecting only 7 files then the files are getting displayed. why is that so?
|
|
|
|
|
|
Hi Chandru,
Michael Schubert gave you a working solution but it may also fail if the buffer is too small. I like the solution offered by PJ Arends where you dont have to worry about the size of the buffer.
Multiple Selection in a File Dialog[^]
Its a really good technique.
Best Wishes,
-David Delaune
|
|
|
|
|
Much better solution indeed. My example was really just a suggestion to test whether it's a problem with the buffer being too small.
|
|
|
|
|
Can we use CoCreateInstance if the CLSID is not present . Can we use only dll name to create the object.
|
|
|
|
|
Why do want to call CoCreateInstancewithout CLSID?
I cannot understand your need.
Величие не Бога может быть недооценена.
|
|
|
|
|
Nope.
Possibly CLSIDFromProgID [^] maybe of interest for you.
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]
|
|
|
|
|
No. The DLL could contain more than one different type of object...
The easiest way to use a COM DLL given just the DLL is to use #import. That will bring in all the definitions you need without having to know or do anything else. Have a look at this answer[^] I just gave in the COM forum (which coincidentally is where this question should have been posted...).
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi,
How can I set application icon (left top of the window) to my property sheet?
|
|
|
|
|
Are you using MFC? If so, what type of application is it (e.g., SDI, dialog)? Do you have an .ico file in your project?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
yes, wizard (Dialog based) and have ico file
|
|
|
|
|
Are you calling SetIcon() in the sheet's OnInitDialog() method?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
Hi all vc++ programmers,
I am getting the following fatal error when i am compiling my project..Can anybody suggest me to unresolve the error.....
Thanks in advance.....
11>c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxver_.h(77) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
11>Generating Code...
11>Compiling...
11>DBLOOKUP.CPP
11>c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxver_.h(77) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
11>DBLIBEXT.CPP
11>c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxver_.h(77) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
11>DBINTFC.CPP
11>c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxver_.h(77) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
11>DAILYTIP.CPP
11>c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxver_.h(77) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
11>CSDWIZ.CPP
11>c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxver_.h(77) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
11>CLNTCOMM.CPP
11>c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxver_.h(77) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
11>CheckFace.cpp
11>c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxver_.h(77) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
11>CHANGES.CPP
11>c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxver_.h(77) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
11>CDDTreeCtrl.cpp
11>c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxver_.h(77) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
11>BTNMENU.CPP
11>c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxver_.h(77) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
11>BorrowingFormDlg.cpp
11>c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxver_.h(77) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
11>BorrowingForm.cpp
11>c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxver_.h(77) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
11>BillingNotesDlg.cpp
11>c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxver_.h(77) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
11>AllocateDlg.cpp
11>c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxver_.h(77) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
11>ABOUT.CPP
11>c:\program files\microsoft visual studio 8
|
|
|
|
|
It's so simple! Just use the /MD switch for _AFXDLL builds
|
|
|
|
|
If you want to convert your project from dynamically linked MFC .dlls to statically linked MSC, you need to do following:
1. Open .vcproj file in Notepad
2. Locate and delete all _AFXDLL directives. from some odd reason VC doesn't do it when you change MFC linking type.
3. Save your changes, restart Visual Studio.
As result all these errors will be gone
|
|
|
|
|
|
Actually it is possible to run a our thread in a another process using CreateRemoteThread, that is something which is related to code injection. And if we consider about processes run without shown in the Task Manger is actually done with the help of a technique called API Hooking(API Hooking (LoadLibrary)[^]).
In task Manager every process is updated shown using PSAPI, if we hook those API, it will possible to change the behaviour of task manager, even you can do that using API hooking technique.
Величие не Бога может быть недооценена.
modified on Thursday, August 27, 2009 3:10 AM
|
|
|
|
|
I really thank you for your answer; you're probably a good virus writer
But I actually meant to know if there's anyway to write a DLL or something and force windows explorer to load and run it when OS starts. I guess it should be involved with registry some how.
|
|
|
|
|
I hardly wrote any virus program , but yes wrote few antivirus patches.
Just add your program path to the below key.
Which enable your program to start at StartUp of Windows login.
HKLM\Software\Microsoft\Windows\CurrentVersion\Run.
Величие не Бога может быть недооценена.
|
|
|
|
|
Jusef Marzbany wrote: But I actually meant to know if there's anyway to write a DLL or something and force windows explorer to load and run it when OS starts.
With a DLL, not directly. You'd need to use Rundll32.exe to get it going. If you already had an EXE, then yes. In either case, the registry would be involved.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
How can i connect to a DB2 database from the VC++ code.
|
|
|
|