|
|
considering useing GDI+
-prakash
|
|
|
|
|
Hye
I am new to VC++ so I don't have much idea about GDI+. Using GDI+ would I be able to work on pixel values of images of different types.
Please help me out
|
|
|
|
|
hi,I want to convert bmp images into jpg ,But I have no ideal ?could you give me some opinions ,or give me a example ? Thanks!
No pians ,No gains!
|
|
|
|
|
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.
|
|
|
|