|
See Here[^] maybe it is some helpful to you
whitesky
|
|
|
|
|
Hello there,
again i need some help. I have to write an application to get several information from the MSN Messenger. I've used the IMessengerApp / IMessengerIMWindows and several other classes. It works well, but now I've recognised that it only works with msmsg.exe and not with msnmsgr.exe.
But about msnmsgr.exe i don't find anything (Typelibs, Application-Ids and so on)
Does anyone know how to retrieve information like current user or online state ?
Would be great if someone could help me
thanks
|
|
|
|
|
A lot of the MSN IM features that used to be accessible thru automation were removed a few versions ago (for security reasons, probably)
--Mike--
Visual C++ MVP
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
VB > soccer
|
|
|
|
|
Can you perhaps tell me which IM-Functions were removed ?
|
|
|
|
|
I use the following to Open a file on an FTP server. Below is used . Now after i use OpenFile, is there a way to play the file without storing it to disk. I would like to just have the video played without having to store to disk and then use something like ShellExecute to play. Cause now i will have to be concerned about deleting the file. I only have an FTP server to work with. Is there a way to maybe save in memory and execute from memory using some know API?
CString filenam = "0015.avi";
m_pFtpConnection = m_Session.GetFtpConnection (ftpServer,userName, password, port, TRUE);
CInternetFile* pfRemoteFile=m_pFtpConnection->OpenFile( filenam, GENERIC_READ, FTP_TRANSFER_TYPE_BINARY, 1 );
|
|
|
|
|
I guess what i am attempting to replicate is when you attempt to play a video clip from some sites you get the option to open and play or save to disk. I would just like to automatically open and play without having to save to disk...
|
|
|
|
|
Are you sure that "automatically open and play" is not just saving to some temporary file and deleting it when done?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Well, i tested this by using an app that i found. There is a Get File button that uses a progress bar to seemingly download the file. I searched the drive for the file and could not find it. Then i selected "play video" and it played. So it is from what i can tell being saved in memory and not to disk. Personally i would just use a web server , but for security reasons i am limited to an FTP server so there is a bit of maintainance involved.
|
|
|
|
|
LCI wrote: I searched the drive for the file...
What file did you search for?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Searched for the name of the .avi... I think it was called like
0015.avi. I knew the name cause when i selected it to open, the filename name displayed on the top of the little dialog.
|
|
|
|
|
I guess i can just download to disk... Use it, then delete when done. For now, that sounds like the only option that i have.
|
|
|
|
|
You might want to run Filemon or Handle while the file is being played just to be sure you have the name right. The 0015.avi might be the name on the FTP server, but was given a temporary name while being played. Just a guess...
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi All!
Here is an interesting question, but i need answer for that.
My Application is unable to print the document.
If i feed the paper manually then it starts printing..
What can be problem? and is any specific code need to be specified?
I am using Win32 API calls
StartDOc, StartPage,Endpage, EndDoc
|
|
|
|
|
Have you somehow told the printer to print from a manual source rather than an actual tray? What does the call to OpenPrinter() look like?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hello everybody,
I have to write a program that generates some scripts that execute something in case of certain events.
The program must provide a visual interface from wich the user can pick available events and possible actions. The script language is not specified so I'm thinking of generating logicals relations between events and actions, like:
If Event1 AND Event2 OR Event3... Then Action1 AND Action2 AND...
From theese relations a specialized module would generate the script.
I need a way of expressing this kind of logical expressions. I don't want to reinvent the wheel so I would want to use an existing language. I also need the possibility to express time, for example a timeout can be considered an event or an action can be executed for a certain amount of time.
Any ideeas?
Thanks,
Marius
|
|
|
|
|
can anybody tell me when we login in computer and if caps lock ison then tool tip is there that caps lock is on how it comes as i make an applicsation in dialog based in mfc
plz tellme example
and plz give solid ans as i dont repeatr question
plz..................
Please mail me
|
|
|
|
|
I think what you need is to show the tooltips on the controls of the dialog?
Right?
Use CToolTipCtrl.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
_AnShUmAn_ wrote: Right?
Not entirely. The "balloon" message is displayed regardless of the mouse's position. It is displayed only when the password control has focus.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Adding tooltip is simple. Just google for it...
OnFocusing the edit box get the key state using GetKeyState(VK_CAPITAL) .
The retun value will be 1 if CAPSLOCK is on see detailed return values below.
. If the high-order bit is 1, the key is down; otherwise, it is up.
. If the low-order bit is 1, the key is toggled. A key, such as the CAPS LOCK key, is toggled if it is turned on. The key is off and untoggled if the low-order bit is 0. A toggle key's indicator light (if any) on the keyboard will be on when the key is toggled, and off when the key is untoggled.
Check MSDN for more information
|
|
|
|
|
hi sir iam sorry this is not my question
but as you tell GetKeyState(VK_CAPITAL) is for tool tip
but sir where i can declare it if I MAKE AN DIALOG AND ON WHICH A EDIT BOX IS THERE
Ashish Dogra
MCA
Noida
|
|
|
|
|
ON_EN_SETFOCUS handler of the dialog class
e.g
BEG_MESSAGE_MAP()
ON_EN_SETFOCUS(IDC_EDIT1, OnSetfocusEdit1)
END_MESSAGE_MAP
void CSampleDlgDlg::OnSetfocusEdit1()
{
}
SaRath.
"It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar."
My Blog | Understanding State Pattern in C++
-- modified at 10:41 Tuesday 27th June, 2006
|
|
|
|
|
|
I all
I have the following scheme on two classes:
template <typename T> class MyClass {
public:
class MySubClass {
public:
~MySubClass( void );
};
}; And I tryed:
template <typename T> MyClass<T>::MySubClass::~MySubClass( void )
{
}
And also:
template <typename T> class MyClass {
public:
template <typename T> class MySubClass {
public:
~MySubClass( void );
};
}; With:
template <typename T> MyClass<T>::MySubClass<T>::~MySubClass( void )
{
}
But I get the message "error C2039: '__dtor' : is not a member of 'tBaseArray<T>'" for the 1st case and that same message plus "error C2935: '<Unknown>' : template-class-id redefined as a global function" for the 2nd case.
I tryed googling for __dtor, and it seems to be a function to enable using delete on a class, but I don't understand why I get this error neither how to bypass it.
Can anybody help?? =)
best regards
hint_54
|
|
|
|
|
Its working fine with my VC++ 7 compiler
template <typename T> class MyClass {
public:
class MySubClass {
public:
~MySubClass( void );
};
};
template <typename T> MyClass<T>::MySubClass::~MySubClass( void )
{
}
i created the instance as follows
MyClass<int> t;
SaRath.
"It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar."
My Blog | Understanding State Pattern in C++
|
|
|
|
|
That's exactly what I wanted.. But it's not working with VC++ 6 =$
thx
hint_54
|
|
|
|