|
Hi,
I am getting the following error, while i filter the process using Createprocess API.
---------------------------
E:\__MyFolder\__Testing\HookApp\1.htm
---------------------------
Windows cannot find 'E:\__MyFolder\__Testing\HookApp\1.htm'. Make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search.
---------------------------
OK
---------------------------
I need it to be hide this error message or don't show it to user. How could I do this. Anyone help me.
Be simple and Be sample.
|
|
|
|
|
I am not sure I understand exactly what you want, but you may consider one of the following:
- if the path is to be passed as a string to some function, then use two backslashes instead of one
- if you do not want to show the error message, you may try to use a try-catch block and treat the error yourself.
SkyWalker
|
|
|
|
|
Hello...I am trying to develop FTP application with SSL security layer.
Base on your article on CAsyncSocketEx, I do not understand how to change the CAsyncSocket to CAsyncSocketEx? Do I have to change other files besides to change CAsyncSocket occurences to CAsyncSocketEx?
Please Help me.
This is my alternate email : hanan6014@yahoo.com
But still...i am in the process of studying those code for FTP application Server and Client.
Thanks.
|
|
|
|
|
Friends,
I'm developing an application in which i've used bitmaps to fill the dialog boxes.I've added the bitmaps using the OnEraseBkgnd function and set the background of the controls in the dialog box in the OnCtlColor function.the problem what i'm facing now is,i've few radio buttons and group boxes in the dialog boxes ,the background of the text what they(radio buitton & group box) display is always GRAY and i'm not able to change it.
Is there any method using which i can change the background colour of the radiobuttons text?it would be great if someone can help me out in this.thank you.
NOTE:I've tried using SetTextColor & SetBkColor functions.
|
|
|
|
|
rajeev82 wrote:
Is there any method using which i can change the background colour of the radiobuttons text?it would be great if someone can help me out in this.thank you.
Actually Radio, Check Boxes and Button all share comon class with diffrent style, now for changing color of Button control you have to make them owner drawn and then darw accroding on you dialog Box... or look for alternative bitmap supporting button class.
"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
|
|
|
|
|
U have got he righ question for me?
I have just done some R&D on this topic .
Do one this add this message handler to your
code WM_CTLCOLOR
IN the Code
By the Controls Resource ID get the
pointer to that control's window
and then send
pDC->SetBkMode(TRANSPARENT);
message to the control
remember to set the HBRUSH as NULL by
adding this line
hbr = (HBRUSH)GetStockObject( NULL_BRUSH );
// if u dont set this then the label will not be trasparent
if u are not able to get me then i send u the code
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
vikas amin wrote:
if u are not able to get me then i send u the code
I am Afraid, you have posted you reply to wrong user....
"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
|
|
|
|
|
I think ur problem is to Set Transperent the Backgroudn colour of the CStatic ??
Ok
Add this message handler to your code WM_CTLCOLOR
By the Controls Resource ID get the
pointer to that control's window "IDC_STATIC" is the static text on my dialog box
and then send
pDC->SetBkMode(TRANSPARENT);
message to the control
I am sending u the code from my dialobbox(LoginBox) for the OnCtlColor event :-
HBRUSH LoginBox::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
CBrush m_brush;
m_brush.CreateSolidBrush (RGB(45, 55, 0));
// TODO: Change any attributes of the DC here
if (pWnd->GetDlgCtrlID() == IDC_STATIC)
{
// Set the text color to red
pDC->SetTextColor(RGB(200, 200, 200));
pDC->SetBkColor(RGB(45, 55, 0)); //THIS DONT WORK
// Set the background mode for text to transparent
// so background will show thru.
pDC->SetBkMode(TRANSPARENT);
hbr = (HBRUSH)GetStockObject( NULL_BRUSH );// if u dont set this then the label will not be trasparent
// Return handle to our CBrush object
//hbr = m_brush; //here the m_brush is the initialized and created CBrush member named m_brush of the dialog box it is need for the backgroud painting so i have disabled it
}
// TODO: Return a different brush if the default is not desired
return hbr;
}
hope so this clears ur query
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
U have got he righ question for me?
I have just done some R&D on this topic .
Do one this add this message handler to your
code WM_CTLCOLOR
IN the Code
By the Controls Resource ID get the
pointer to that control's window
and then send
pDC->SetBkMode(TRANSPARENT);
message to the control
remember to set the HBRUSH as NULL by
adding this line
hbr = (HBRUSH)GetStockObject( NULL_BRUSH );
// if u dont set this then the label will not be trasparent
if u are not able to get me then i send u the code
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Hi all!
I have a requirement to display text in Taskbar system tray( Like clock text). Can any one help how to do that. There is a way to display two characters( By printing characters in bitmap and then convert into icon and pass it to Shell_Notify). But I need to display atleast 8 characters .
Thank you for helping!
Ram
|
|
|
|
|
Can you resize the ToolbarWindow32 window? Can you create a floating toolbar and place it near the clock?
|
|
|
|
|
I am new to VC++. Can you please elaborate the solution.
Ram
|
|
|
|
|
Ram, you could experiment with resizing the toolbar area but I am not sure if this would work. Most of the time when you try to resize a Microsoft piece such as the taskbar it will not allow it.
Creating a floating toolbar window and placing it near the clock is the most straight forward. This would involve creating a window and message handler within the main program to display the text.
|
|
|
|
|
Hi all
Could anyone help me with a recursive function to
1) Search all the files in a given directory path ?
2) To search specific files (fr ex *.jpg etc)
I am newbie to this area .
Any one to tell me ?
redindian
|
|
|
|
|
dharani wrote:
Could anyone help me with a recursive function to
1) Search all the files in a given directory path ?
2) To search specific files (fr ex *.jpg etc)
Why don't you use CFileFind class directly
"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
|
|
|
|
|
have you tried FindFirstFile and FindNextFile already?
|
|
|
|
|
I have an application, which does not have a window handle.
I need to get a CString data from another window of different process.
Can i use WM_COPYDATA to send the CString data? How?
The other window application is also written by me.
- NS -
|
|
|
|
|
NS17 wrote:
I have an application, which does not have a window handle.
I need to get a CString data from another window of different process.
Can i use WM_COPYDATA to send the CString data? How?
Nope you cannot use WM_COPYDATA in you listed Scenario... but what you can use shared memory in this scenario...
"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
|
|
|
|
|
Create a global ATOM that has the string then pass the ATOM value between applications with a user defined message (WM_USER).
|
|
|
|
|
Help me please, cos there's no help on the web either for this topic.
The platform is Windows XP service pack 2.
I have installed VS.Net 2003 and several other compilers such as Metrowerks CodeWarrior for Symbian OS C++, Symbian OS SDK.... and that's all. Well also the SDKs for Java and J2EE.
But Im baffled, when I try to install from the Hard drive it goes into the installer but fails to go beyond " Searching for installed components ". Why is this happening ? I tried several times but failed. I even uninstalled the Metrowerks compiler hoping that there might be some dependencies, but that doesnt work either. I didnt remove VS.Net yet cos I dont want to go thru the trouble of reinstalling it again. What do u suggest I should do.
P.S. A month back I tried installing VS6 from a CD. But I think the CD was corrupt, since the installation went fine, except for copying certain files. However the installation aborted cos these files were corrupt. Im jus thinkin, if that "half installation" could have effects on this strange behaviour.
|
|
|
|
|
I have a C# code below:
Header=Encoding.ASCII.GetString(Header_byte);
How to convert it into visual c++?
I really weak in programming, can somebody help me..
|
|
|
|
|
Anyone know if Access 97 can work on Windows XP. Hoping there is a conversion, 'cause I can't get it to work
HELP
|
|
|
|
|
I am writing a small application using ODBC API calls to display unicode character. For example, euro sign, the hex value is 0x20AC. How can I display the euro sign character through its hex value in VC++?
Thanks,
- Colin
|
|
|
|
|
For our next release, we need to import data from a competitor's product. They use Microsoft Access/Jet. I do know I'll need to install a run-time on the user's system, but am not sure what package that I should be looking at.
As a side note, does anyone have suggestions on the best run-time solutions to read (not write) Access/Jet files? Is there a third party tool available that can read the files directly and do a data dump?
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
You don't need much, just MDAC and the Jet drivers. Both of those are distributed as part of the OS with Windows 2000 and above, but not for NT4. No idea about Windows 9x/Me.
Links: MDAC[^] and the Jet drivers[^].
|
|
|
|