|
G Haranadh wrote:
Hey do you know this is my hundredth post.
Good
"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
Support CRY- Child Relief and You
|
|
|
|
|
How to append the text in a new line in CEdit control.
\r\n becomes garbage in winCE.
|
|
|
|
|
have u set the multiline property of the edit control?
nave
|
|
|
|
|
I think following code will help you.
Where you want to send enter or new line put this code.
SendDlgItemMessage(IDC_EDIT1,WM_CHAR,(WPARAM)VK_RETURN,0);
The secret of life is not enjoyment
but education through experience.
- Swami Vivekananda.
|
|
|
|
|
Mahesh Kulkarni wrote: SendDlgItemMessage(IDC_EDIT1,WM_CHAR,(WPARAM)VK_RETURN,0);
this code will stand good only when inserting text not in continous block!
"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
Support CRY- Child Relief and You
|
|
|
|
|
I want to move my code ( using Visual Studio 6) to use the Platform SDK . I have not worked with this before .
My current project is a MFC based application project . DO the MFC files also come from Platform SDK or they still use the existing VC98 files ?
Engineering is the effort !
|
|
|
|
|
act_x wrote: DO the MFC files also come from Platform SDK
no..
u have to use the mfc files that comes with the Visual Studio.
To use the Platform SDK only thing u have to do is to set the Directories( tools->option->Directories )
put the directories of the SDK as the first entry.
nave
|
|
|
|
|
I assume you mean move to using the plain Win32 API? VC apps already use the Platform SDK headers and libs.
You're going to have a lot of work if you do that, since you won't have all the UI and utility classes MFC provides. I would recommend using WTL for your UI, doing UI at the API level is tedious and error-prone.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
VB > soccer
|
|
|
|
|
act_x wrote: DO the MFC files also come from Platform SDK
Plateform sdk... you can consider upgrade to normal MFC or api function there
"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
Support CRY- Child Relief and You
|
|
|
|
|
Is there an API for changing the default audio playback device? I had no luck digging through MSDN and my current solution involves registry grovelling.
|
|
|
|
|
I haven't tried this but only read about it.
You can look for RtAudio if this helps.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thanks, but unfortunately this doesn't have what I'm looking for. Currently I think that perhaps Microsoft decided not to have an API for this as they consider changing the default audio playback device programmatically as something which could be abused.
|
|
|
|
|
There is a messenger button on IE toolbar.
How can IE excute messenger from this button?
|
|
|
|
|
An application can run/create another application using the following functions
ShellExecute() function
or
CreateProcess() function
nave
|
|
|
|
|
It can also do so via CoCreateInstance and friends. If the server is of the out-of-process variety another process can be launched.
Steve
|
|
|
|
|
Thank you.
if the plugin is a exe. I can just excute it.
but if the plugin is a dll component.
How could I know which interface to query?
because I only know the filename such as test.dll and the CLSID, I don't even know the IID_***.
|
|
|
|
|
hi all
i want my VC++ application to post data to asp page, how to do that any class or any help.
or i want my application to talk to asp web page.
Tasleem Arif
|
|
|
|
|
You can use :
HINTERNET structure
Opening the internet Connection and inItialising WinInet function
Use the InternetOpen() function.
Now for postig and getting the data.
use: InternetOpenUrl() function
Before this Read the msdn for HINTERNET.
Cheers
"Peace of mind through Technology"
|
|
|
|
|
Make use the web browser(IE) activex control.
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
|
|
|
|
|
VuNic wrote: Make use the web browser(IE) activex control.
Hum.......
"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
Support CRY- Child Relief and You
|
|
|
|
|
Yes boss ! he he
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
|
|
|
|
|
tasleem143 wrote: i want my VC++ application to post data to asp page, how to do that any class or any help.
or i want my application to talk to asp web page.
use http://www.codeproject.com/internet/amhttputils.asp to post data t0 asp page!
"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
Support CRY- Child Relief and You
|
|
|
|
|
I am trying to initialize a "brush" in visual C++ and then call it back and changing the colors of RGB. My statments for initialization are:
CFrame::CFrame()
{
...
...
...
colorbar.CreateSolidBrush(RGB(a,b,c));
...
...
}
void CFrame::OnPaint()
{
CPaintDC dc(this);
dc.TextOut (5,40,"Red Color Is:");
//Output color frame
COLORREF(RGB(a,b,c));
a = x;
CRect rc(100,150,150,200);
dc.FillSolidRect(&rc,RGB(a,250,250));
}
No matter what I try, the colors only get defined
at initialize time and never change. Are there functions
in MFC that allow one to change the colors after
initialization and what are they? Please let me know at sid_kraft@msn.com. Thanks in advance, Sid Kraft
Sid
|
|
|
|
|
u can change the color of CBrush. u have to delete the previous brush before creating the new brush.
if( 0 != colorbar.m_hObject )
{
colorbar.DeleteObject();
}
colorbar.CreateSolidBrush(RGB(a,b,c));
nave
|
|
|
|
|
I need to pass dereference a pointer so that I can obtain a CString. It seems to crash on the second function call. I think I'm not handling the deletion of the pointer correctly? What do you think? Thanks!
CString new_date;
BOOL new_date;
new_date = IsDate("4/5/07", &new_date);
int CDateTime::IsDate(CString datestr, CString * new_date_format)
{
CString month;
CString day;
CString year;
/* parse datestr */
CString revised_str = month + "/" + day + "/" + year;
*new_date_format = revised_str;
}
|
|
|
|