|
|
Hi!
There are many articles, but none of them describes how to do the interaction with another application.
Michael
Michael P Butler wrote:
There are some useful articles here,
http://www.codeproject.com/clipboard/
Michael
|
|
|
|
|
Hi,
I have an SDI 'windows explorer'-like application (generated by the AppWizard), with a left pane (CLeftView) and a right pane (CRightView).
Here are my questions :
- When the user opens a new file, a file selector is automatically openned. How can I choose the file type (*.xxx instead of *.*) ?
- I would like that when the user chooses to save the file, no matter which view is active, the same method is called. But, with the ClassWizard, the function to react to the 'OnCommand' for a menu is different for each view. How can I have a unique method for the 'File save', no matter which view is active ?
Thank you in advance for your help !
Jerome
|
|
|
|
|
there is a property "Right Alligned Text" of combo box, How I can change this property at run time.
Any CWnd function. or any other help.
Have a nice wishes for HELPER
|
|
|
|
|
How to send a HTML page with images as the body of a email?
|
|
|
|
|
i have to admit that i didn't try to send embedded pictures.. but at least this worked for me to send html mails in general.. i think it shouldn't be a real problem if you attach the pictures and link em into your html page..
the best class for sending html - mails has been this one:
http://www.codeproject.com/internet/csmtpconn.asp
if you still have got problems maybe the author of this class can help you (he has been very kind in answering my questions)
hope this helps
bernhard
"There are three roads to ruin: women, gambling and technicians. The most pleasant is with women, the quickest is with gambling, but the surest is with technicians." Georges Pompidou
|
|
|
|
|
Hello everybody!
I'm create CTime follow:
SYSTEMTIME tm;
tm.wSecond = m_second;
tm.wMinute = m_minute;
tm.wHour = m_hour;
tm.wDayOfWeek = m_day_week;
tm.wDay = m_day;
tm.wMonth = m_month;
tm.wYear = m_year;
CTime time(tm);
But in this cause, constructor CTime re-set the day_week as real calendar day.
I want set myself day_week, and not day_week of calendar!
It is possible?
Best regards,
Eugene Pustovoyt
|
|
|
|
|
Looking at the CTime constructor
CTime::CTime(const SYSTEMTIME& sysTime, int nDST)
{
if (sysTime.wYear < 1900)
{
time_t time0 = 0L;
CTime timeT(time0);
*this = timeT;
}
else
{
CTime timeT(
(int)sysTime.wYear, (int)sysTime.wMonth, (int)sysTime.wDay,
(int)sysTime.wHour, (int)sysTime.wMinute, (int)sysTime.wSecond,
nDST);
*this = timeT;
}
}
The Constructor ignores the DayOfWeek value passed in. You'll have to set it afterwards. I'm puzzled to why you would want to pass your own day of the week. Surely that is determined by the date?
Michael
|
|
|
|
|
Oups!
Has not turned attention!
Many thanks!
In my program of event vary on days of week, it is not dependent on calendar date!
Best regards,
Eugene Pustovoyt
|
|
|
|
|
|
Hi,
In my recent project, i need to capture the timecode of
Audio from the Sony Recorder DVR-28 (D2) and display it
in the VC++ dialogs. I really need some help about
which API functins can be used to do this. The timecode i used is like: hh, mm, ss, and frame. Assume that there are 30 frames in one second.
Hope get your help.
Best Regards,
chen
|
|
|
|
|
As has been stated previously ( when you posted to the main forum ), you need to override WM_MINMAXINFO, and set the max to 800.
I believe you'll have to do this manually.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
It worked beautifully. As always, I appreciate the help!!
Mark
|
|
|
|
|
Did you delete the thread-starting post?
It's missing
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
yes... when I first wrote it, I didn't realize that I posted it in the wrong spot.
Mark
I am not discouraged because every wrong attempt discarded is another step forward.
-- Thomas Edison --
|
|
|
|
|
Marcus2001 wrote:
I didn't realize that I posted it in the wrong spot.
You've deleted it from the wrong spot, this thread no longer has a header.
I'm glad it worked for you - I only found out about that message myself a month or so ago. It's pretty cool.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
hey guys, just a quick one
If i have a OnReceive() handler defined in my CAsyncSocket derived class will OnReceive() be called again straight away if i dont read all of the data in the first OnReceive() call?
Or will it only be called again when more data arrives at the socket?
Thanks
ash
|
|
|
|
|
Hello, the codegurus around the world.;)
It depends on your code inside OnReceive() because
OnReceive() is just called by FD_READ notification message at the
background.
If you use Receive() memeber function in OnReceive and assign the small size
of char szBuf[5] to the first parameter of Receive(), OnReceive must be called
as many times as szBuf gets all buffer size from the socket.
This means that FD_READ is called at the same count.
Please, don't send me your email about your questions directly.
Have a nice day!
Sonork - 100.10571:vcdeveloper
-Masaaki Onishi-
|
|
|
|
|
I have manged to get an icon to appear in my system try when i start my program. The problem is when i click it. Sometimes you need to right-click it twice to get the popup menu to come up, others times just once. How do i fix this?
This is the code i use to make the popup box popup:
int CMyClassDlg::OnTrayIconClick(LPARAM lParam)
{
switch(lParam)
{
case WM_RBUTTONDOWN:
<BR> {
<BR><BR> CPoint curPos;
<BR><BR> GetCursorPos(&curPos);
<BR><BR> CMenu mnuTop;
<BR><BR> mnuTop.LoadMenu(IDR_MY_MENU );
<BR><BR> CMenu* pPopup = mnuTop.GetSubMenu( 0 );
<BR><BR> ASSERT_VALID( pPopup );
<BR><BR> pPopup->TrackPopupMenu( TPM_LEFTALIGN | TPM_LEFTBUTTON, curPos.x, curPos.y, AfxGetMainWnd(), NULL);
<BR> }
<BR> break;
}
return 0;
}
Boredom
|
|
|
|
|
OnInitDialog() I am using GetCommandLine() to return the path to the program and the path to the file that is causing the app to be opened.. Anyway the GetCommandLine() returns a string that truncated.. is there a way to have the string be non shortened?
eg..
the path is "c:\The File That I have Double Clicked on.txt"
GetCommandLine() turns that path into
"c:\The File~1.txt"
Just wondering if there is a way to keep it from being shortened?
I wouldn't usually care but I am displaying the string and it looks really bad.
Thanks,
Rob
|
|
|
|
|
Have you tried GetLongPathName() ?
|
|
|
|
|
I'll give it a shot..
Thanks
Rob
|
|
|
|
|
GetModuleFileName is the recommended way to do what you want to do
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Hello,
I would like to know if a FILE* stream is opened or not.
I've search in the MSDN about this information, but didn't find any help.
Any ideas ?
TIA,
Stephane
"It is ridiculous to claim that video games influence children.
For instance, if PacMan affected kids born in the eighties, we
should by now have a bunch of teenagers who run around in darkened
rooms eating pills while listening to monotonous electronic music."
|
|
|
|
|
From MSDN entry on fopen():
... returns a pointer to the open file. A null pointer value indicates an error.
Jon Sagara
"Ninety percent of baseball is mental, the other half is physical." -- Yogi Bera
|
|
|
|