|
I m working on a website monitoring project
in that whenever the software found that a site is down
it will send a mail to the webmaster of that site
how can i do so
|
|
|
|
|
|
C++ has no native support for sending email. You'd have to search the web for options. The Ultimate TCP/IP library is one commercial option.
Christian Graus - C++ MVP
|
|
|
|
|
I have made a list ctrl using this code
CListCtrl& lc = GetListCtrl();
lc.ModifyStyle(0,LVS_REPORT);
lc.InsertColumn(0, _T("Name"), LVCFMT_LEFT,50);
LVCOLUMN col;
col.mask = LVCF_FMT | LVCF_TEXT;
col.pszText = _T("Monitor Type");
col.fmt = LVCFMT_LEFT;
lc.InsertColumn(1, &col);
lc.SetColumnWidth(1,150);
lc.InsertColumn(2, _T("Host(Url)"), LVCFMT_LEFT,150);
i want to insert item in this ctrl from a different class
i have a pointer of that class, assigned memory to that pointer
inserting item like this
object->lc.InsertItem(0,strName);
But it is not working
it is compiled correctly
but when we run exe
it gives abort ignore error
what to do
|
|
|
|
|
What exactly does the "abort | ignore" error say?
Also, just a friendly suggestion, how about giving your variables some more "user friendly" names? You use CListCtrl& lc , when you start adding more controls, or like now when you share your code, it becomes a headache trying to keep track of your names. How about CListCtrl& HostList ?
|
|
|
|
|
okey i'll keep that in mind
the abort error is saying debug assertion failed
file:afxcmn.inl
line:142
|
|
|
|
|
Do any one have a GUI Telnet client(not an console one) or any idea about how to implement it.
Thanks.
More relaxed the person high is his status.
|
|
|
|
|
It's been a long while since I used Telnet, but you might want to have a look at http://www.putty.nl/[^].
|
|
|
|
|
My application generates some text files and some wav files. It has take backup of those file to a remote system in the network once in a week.
can u please tell me which apis can help me doing the following
1. i need to connect to the remote system at runtime with its username and password at runtime.
2. i need to go to certain path in that system and cretate a folder and copy the files from this system to that system.
it would be a great help for me if u can suggest me a way .
Thank you.
KIRAN PINJARLA
|
|
|
|
|
Hi,
http://msdn2.microsoft.com/en-gb/library/aa385327.aspx[^]
or if it isn't shared:
- WNetAddConnection2 to connect,
- NetShareGetInfo to check ADMIN$ administrative share - probably %systemroot% or basis on it, you can get system drive letter in shi2_path of SHARE_INFO_2 struct,
- next you can simply copy files by "\\\\computer\\drive$\\Folder1\\Folder2"
or if c$ is disabled you can add an needed share:
- NetShareAdd - and copy then.
If someone has got better solution I'm iterested in it too
-----------
Mila
|
|
|
|
|
Thank you very much for a reply.
I used WnetAddConnection2 to connect with username and password and could create a directory and could copy files.
The problem i have in that is when i am connecting to the sytem with my application i want the connection to remain at my application level but the connection is in user level. Means if i am about to connect to the same system by typing system ip inthe windows strat button->run... ,when its already connected with my application,i am not asked for userid and password.
This can be security problem.
I hope you understood my problem. Is there a way?
Thank you.
KIRAN PINJARLA
|
|
|
|
|
Hi,
Do you disconnect session after WnetAddConnection2 ? if not next connetion will be proceed with previous username and password.
-----------
Mila
|
|
|
|
|
Mila025 wrote: Do you disconnect session after WnetAddConnection2
Yes i do it with WNetCancelConnection2.after this stmt its ok. but between the connection and disconnection it has to perform operations. Mean while it should not allow the local sytem to acess the remote sytem with out producing uid and password.
Is my problem clear to u?
KIRAN PINJARLA
|
|
|
|
|
Hi,
Yes, I get it now. I'm not sure, but it could be not possible to protect this connection. I think WNetCancelConnection2 by establishing connection retrieves specific access token to all system actions.
Perhaps, you should change media - I mean use sockets and full client/server application.
-----------
Mila
|
|
|
|
|
Hi...all
i want to save data from clipboard to .bmp file.The data in the clipboard is bitmap.
Pls if possible help me.
Thank U....
Abhijit.
|
|
|
|
|
I believe you need to create the header yourself.
Christian Graus - C++ MVP
|
|
|
|
|
Hi
1.IS IT TRUE in any case code of DLL is not duplicated?2.Although as u said at first instance it may need relocation BUT wat if the next process also needs DLL to be relocated?3.Is it like this that DLL uses data of the process associated with it at that time
Hope to get some answers soon
bye
pitchu
|
|
|
|
|
Do your own homework, and next time you may want to try formating your message rather than copying and pasting from your assignment sheet!
|
|
|
|
|
Fine man
If u hav problem with extracting DATA then it goes like this:
1.IS IT TRUE in any case code of DLL is not duplicated?
2.Although as u said at first instance it may need relocation BUT wat if the next process also needs DLL to be relocated?
3.Is it like this that DLL uses data of the process associated with it at that time
Bye
pitchu
|
|
|
|
|
|
that was remarkably generous of you, considering the quality of the question !
(I doubt you'll get a thanks, I could be proven wrong)
'g'
|
|
|
|
|
We are developing a desktop application and the current mode we are using to display the content in the active desktop uses ActiveX controls, but this is not the best method to do this.
Some active desktop tools we saw are able to put the content inside a window and display it behind the icons. Also Bspalyer has a mode named desktop mode that can do this. We are trying to find out how this could be done.
Any help is highly appreciated.
|
|
|
|
|
Starting with the IE4 shell, you can add a web page as a desktop item. This page can have anything you want in it (subject to the usual IE security restrictions, of course). I don't know if Vista still supports this, I would guess so but I still can't find squat in Vista's control panel so I can't verify it.
|
|
|
|
|
1. I created a c# class.
2. Ran regasm file.dll /tlb
3. Ran gacutil -i file.dll
Now I'm trying to create an instance of this in VC++ or view it as an object in OLECOMViewer (comes with VS.NET) but I keep getting
"80070002 system cannot find specified file" error when trying to instantiate this object or view its com object in olecomview.
Can anyone help? I just need its funcionality in VC++.
thanks all!
L
|
|
|
|
|
Hi,
I wonder if we can start any console application which resides on a remote system from another system. Say I have abc.exe console application on pc2 and I would like to run it from pc1 say via an ethernet cable. There is no bi-directional data transfer, all I have to do is, whenever the user on pc1 wants to run that application he will communicate with pc2 to start the console application.
Yeh I know you can do that by having another program on pc2 running and listening to the ethernet port. But is there any other way to run the application on pc2 without having another program on pc2 listening to the ethernet port??
I am not sure if I am clear, but lemme know if I am not clear.
thanks,
-Pavan.
|
|
|
|