|
Hi,
I would like to prepare a list of files which are created by any install setup file.
for eg.
When user install googlechat.exe
I need to list out the file names which are created by this setup as,
googlechat.exe -> c:\windows\system32\abcd.dll
googlechat.exe -> c:\program files\googlechat\googlechat.exe
I am using Hook Application. Is anybody have solution please.
Be simple and Be sample.
|
|
|
|
|
Rajesh_MP wrote:
I am using Hook Application. Is anybody have solution please.
Since Hook Application/dll run in context of Application, it is hooked so you can use
AfxGetAppName(...) or GetModuleFileName(...) api to get application name
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
you are right Gupta,
But when i use that, it just gives me the Process name and fails to give me the setup created file name.
Be simple and Be sample.
|
|
|
|
|
when is it ok to do pch++ and when should you use CharNext/_tcsinc? I'm guessing pch++ is fine for ansi char* and unicode TCHAR* for english, so do you use CharNext/_tcsinc for programs that will have text in a non-english encoding, a non-western european encoding?
- thanks
|
|
|
|
|
pch++ can be used for WCHAR* or, if you know the string is using a code page in which there are no multi-byte chars (e.g., English, Spanish, French), for char* too.
CharNext or _tcsinc are used when you want to write code that can be used, whithout changes, either for SBCS, MBCS, or Unicode builds. For example, the following code:
_TCHAR buffer[] = _T("This is a test");
int nLen = 0;
for (const _TCHAR* pch = buffer; *pch; pch = _tcsinc(pch))
{
nLen++;
}
gets expanded as follows:
char buffer[] = "This is a test";
int nLen = 0;
for (const char* pch = buffer; *pch; pch = _strinc(pch))
{
nLen++;
}
wchar_t buffer[] = L"This is a test";
int nLen = 0;
for (const wchar_t* pch = buffer; *pch; pch = _wcsinc(pch))
{
nLen++;
}
char buffer[] = "This is a test";
int nLen = 0;
for (const char* pch = buffer; *pch; pch = _mbsinc(pch))
{
nLen++;
}
See also: A Sample Generic-Text Program[^]
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
thanks for the reply. just wondering, do you know of any reference that tells which code pages are multi-byte, which are single-byte?
- thanks
|
|
|
|
|
good afternoon,
the app crashed with access violation and "scalar deleting destructor". I think it means there was an explicit call to virtual destructor corrupts stack. But I don't really see when did it happen........ here some part of the code that causing the problem..thanks!
bool chrgDlg::charges()
{
...............
if ( !m_bCanceled )
m_dbANI.MoveNext();
}
if (!m_vecBuffer.empty())
{
m_binOutfile.append (&m_vecBuffer[0], m_vecBuffer.size());
m_vecBuffer.clear();
}
if (!m_binOutfile.empty())
m_binOutfile.sort();
return true;
}
|
|
|
|
|
USER32! 77e338b0()
CDialog::EndDialog(CDialog * const 0x00000000 {CDialog hWnd=???}, int 2) line 580 + 13 bytes
CDialog::OnCancel(CDialog * const 0x00000000 {CDialog hWnd=???}) line 709
Run(void * 0x0012f750) line 310
_AfxThreadEntry(void * 0x0012f290) line 112 + 5 bytes
SURCHRG! _beginthreadex + 202 bytes
KERNEL32! 7c57b388()
|
|
|
|
|
Is there any multithread involved.?
-prakash
|
|
|
|
|
I'm trying to add a button that when the user pushes it, the Network Connections window will open. Or if possible the properties of the current connection (i.e. Local Area Connection).
Any suggestions?
I tried searching through the articles and the message board to no avail.
|
|
|
|
|
You are trying to start a control panel app, what you can do is launch the app which has the extention .cpl,
I do not remember how to start the .cpl file, but this would be a good hint for searching.
-prakash
|
|
|
|
|
Quick question: I want to treat an SDI sort of like a dialog box -- I'm going to want to put some graphical buttons on the screen, some edit boxes, etc. But I want more flexibility with what I draw on the window than I get in a dialog app, plus I think I want to use the menu bar... maybe eventually a toolbar. So I'd like to do this with and SDI app. I asked a friend I work with if he knows how to do that, and he said he remembered seeing exactly what I was looking for on The Code Project, but couldn't find it in all the articles.
Okay, so the question wasn't so quick, but the answer should be. Could anyone provide a link to the article I need based on the description I gave above?
Danny
|
|
|
|
|
It sounds like you need to use CFormView .
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
|
Thanks. I'll take a look at it.
Danny
The stupidity of others amazes me!
|
|
|
|
|
Hello,
I have a CTreeCtrl-derived class. I want it to continue to show what item is selected when the control loses focus. I want the same behavior Windows Explorer has: when the control loses focus, the currently selected item's highlight goes from blue to grey.
Currently, when the object loses focus, the selected item loses its high-light.
Does anyone know how to fix this?
Thanks!
Ian
|
|
|
|
|
Does the TVS_SHOWSELALWAYS style do what you want?
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
Unfortunately, no (I am using that style).
|
|
|
|
|
You can set the property Show selection always in the properties dialog box.
Neelesh K J Jain.
|
|
|
|
|
Well, according to the documentation I've read, that is what the TVS_SHOWSELALWAYS style is for. However, I'm using that style, and I'm not getting the desired behavior...
???
|
|
|
|
|
Did u mentioned the style at the creation time or else r u modifying at the a particular message handler.
Better set this property at the time of creating the tree control. If you have placed the tree control on the dialog box, then its very simple as I mentioned earlier.
Neelesh K J Jain.
|
|
|
|
|
Hi,
With yahoo messenger installed, if you would like to send
an instant message, you can goto Run and type like this
ymsgr:sendIM?somebody
The instant message window will popup. If the yahoo messenger is not running in tray, it will popup after it gets signed.
The same can be done with a hyperlink in a html page.
" Yahoo Id: <a href="ymsgr:sendIM?somebody">somebody</a> "
Now the point how is yahoo messenger achieving this. I would like to do the same for a simple dialog based application. I would like add my application name in the html page and the application should run when the hyperlink is clicked.
Please refer this.
http://www.codeproject.com/html/Yahoo.asp
Thank You
|
|
|
|
|
You need to install a handler for the protocol (e.g. in your example, it would be for ymsgr that maps the protocol name to your EXE.
Full details here[^].
The two most common elements in the universe are Hydrogen and stupidity. - Harlan Ellison
Awasu 2.1.3 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
I am programming a Socket enabled with SSL.while asking for credentials
ie AcquireCredentialsHandle returns with SEC_E_INTERNAL_ERROR.I
searching in the net i found that similar problem is faced by some
people and they were suggested that their private key is not available
at the time of getting credentials.
I have created Certificate Request using openssl.i used a command to
obtain private key and certificate request.
openssl> req -newkey rsa:1024 -keyout server.key -nodes -days 365 -out
server.csr
server.key contains RSA private key
server.csr contains the request for certificate.
I clicked the Advance option in the Certificate service and pasted the
contents in the block .i got the certificate named certnew.cer.i opened
this file clicked an option "copy to a file"and marked the option
pkcs#7(.P7B).i named the file "FileStore".the file generated is
"FileStore.p7b" .Also i have not used installed certificate option
since my certificate store provider is a file provider so i did this
/*code for file store*/
#define ENCODING_TYPE (PKCS_7_ASN_ENCODING | X509_ASN_ENCODING)
HCERTSTORE m_hMyCertStore;//handle to certificate store
m_hMyCertStore = CertOpenStore(CERT_STORE_PROV_FILENAME_A,
ENCODING_TYPE,
NULL,
NULL,
_T("FileStore.p7b"));
I want to know that with above procedure i followed whether my private
keys are available when my CERT_CONTEXT gets created.and if any other
problem please suggest me.
Thansx in advance for any suggestion
|
|
|
|
|
Hi,
when I use the MFC Application Wizard to generate a MFC application (dialog based), I can't even run this basic generated code anymore. "Anymore" because it worked 2 days ago. But I really didn't change anything in my VS .NET 2003 installation.
I can compile and link the generated program, but when i run it, i get the following error (it's german...):
Die Anweisung in "0x0000000" verweist auf Speicher in "0x00000000". Der Vorgang "read" konnte nicht auf dem Speicher ausgeführt werden.
Any suggestions?
|
|
|
|