|
Sure!
Ownerdrawn or custom draw
However each of your listview items would need an additional BOOLEAN feild or something to indicate when to draw the item like that.
Actually I don't see that being to hard especially if you use Custom draw. Mike Dunn wrote an article I think which would serve you well for this task.
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Thanks
|
|
|
|
|
Hi!
My name name is Orlanda, I'm from Montreal.
I'm trying to help out a friend on his first real job.
I would be very grateful could you advise him...
He has a windows 2000 server computer.
Bell has shut down their internet due to unwarranted port 25 traffic.
Nobody can use the internet.
They say it's because someone may have hacked into their systems:
They're not supposed to have port 25 traffic for some reason -and there it is...
They have port 25 traffic.
He can'T see any way out except to reinstall everything.
I suggested a router to transfer port 25 to somewhere else.
What can he do?
His name is Vincent, and he's a great guy.
Any advice would be appreciated.
thanks!
|
|
|
|
|
He can get a software firewall. Do a search for "ZoneAlarm". Or, he can get a switch like the one I got, a Linksys 4-port for DSL/Cable for about $80. The switch by default has all ports disabled and then he can enable the ones he wants.
BTW, I don't think you should ask this question in this forum
|
|
|
|
|
thanks for the info,
but,
why not ask in this forum?
|
|
|
|
|
Because this is a Visual C++ forum. You're asking a question about computer security and not how to program for it and programming security has nothing to do with your problem. Your question would be more appropiate in a forum about switches/routers, port security, computer/Internet security, etc.
|
|
|
|
|
25 is the SMTP port number. In all likelihood your friend has enabled relaying on his SMTP server and thus spammers are using his machine to send trash mail, thus causing heavy traffic. Tell him to either disable SMTP relaying or if he insists on relaying, then he should at least restrict relaying to selected IP addresses [perhaps just to his localhost]
Regards,
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
I have an object that derives from CWindowImpl (ATL Windowing classes) and I would like to make it a drop target. Apparently adding IDropTarget isn't enough and I would like to know what else is required for me to add drag and drop.
My scenario is that I have a TreeView and would like to click on one of the items and drag it onto a custom view and fire off a behaviour based on the item that has been dragged.
Thanks in advance,
Clint
|
|
|
|
|
Does anybody know of a simple, easy to use, simple, free bug/issue tracking software out there. I don't need multi-user capabilities and I'd prefer to not have a web based solution.
Cheers
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
Did you try GNATS, the GNU Bug Tracking System?
I haven't try it yet, but we will need such a tool soon and I kept a note on it. Would love to hear the results of your prospects
http://www.alumni.caltech.edu/~dank/gnats.html
Eric
|
|
|
|
|
I saw it before...
I'm not too sure i want to go through the whole 'trying to get gnu to work' thing.
before you know it you've downloaded and installed 15 other supporting GNU Libraries and had to compile some source code, then one doesn't compile and your buggered.
Currently i'm still just using TextFiles but its all getting a bit overwhelming.
I think i'm going to have to write one, it'll give me a chance to get stuck into .Net anyway.
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
Hi,
I would like to send a text file to a Fax machine with Visual C++ MFC 6.0 at Run Time. If we know the Fax number, is there any simple (or example) codes to do it?
Thanks for any help,
|
|
|
|
|
For Win2000+ there is Fax Service Client API - find its documentation in MSDN under Platform SDK.
Sonork 100.15206;PavelK
|
|
|
|
|
I've imported some bitmaps into my project but in Borland there is a way to save the bitmap files into the resource .rc file so that the original bitmap files do not have to be included with the project. Does VC++ have a similar method?
|
|
|
|
|
Well, i guess you can compile the .rc file to a .res file, but that's not very nice since you loose all the #define d names for things then & have to use numbers. But, if you *really* can't be sending around bitmap files, then i guess it might work.
---
Shog9
Actually I use to find learning in bars when drinking really useful.
It sort of makes a language liquid. - Colin Davies, Thinking in English?
|
|
|
|
|
Thanks for the suggestion. What I was talking about though just made the .rc file larger. It had the BITMAP declaration in it followed by the binary data. Have you ever seen one in a .rc file before? It looks like this:
IDB_MYBITMAP BITMAP
{
.
'42 4D 76 2A 01 00 00 00 00 00 36 04 00 00 28 00'
.
}
My question was how to get it into the .rc file. "import" doesn't do it, it just creates a reference to the existing .bmp file in the directory. Of course, then you have to ensure that file is always there instead of in the resource (.rc) file.
|
|
|
|
|
Well, that syntax might work if you edited the .rc file directly; it sorta looks like the syntax for RCDATA sections. But AFAIK, there's no way to do that using Microsoft's resource editor.
---
Shog9
Actually I use to find learning in bars when drinking really useful.
It sort of makes a language liquid. - Colin Davies, Thinking in English?
|
|
|
|
|
I guess I could put the bitmap in a Borland project and it will automatically put it into the .rc file. Then, cut n' paste it into my VC++ project's .rc file, eh?
|
|
|
|
|
Give it a shot! The worst that could happen is it won't compile.
---
Shog9
Actually I use to find learning in bars when drinking really useful.
It sort of makes a language liquid. - Colin Davies, Thinking in English?
|
|
|
|
|
Actually, paste it into the .rc2 file in the VC project. .rc2 holds resources that are compiled but which are not editable by the resource editors.
--Mike--
Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
|
Hi all,
Can I get a user's emailAddress from a ADS server in VC++? ( on win2k)
Thanks for any answer.
|
|
|
|
|
Hi,
I make some HTML parseing with MSHTML. The returned file paths are put into CString's. My problem is that they contain e.g.
%20
characters instead of space and also other strings with this format:
%number
With them in my file paths they are not valid paths.
Any ideas how to get rid of them?
Thanks
R.
|
|
|
|
|
|
Can someone help me out.. I am trying to get hToken so that I can call CreateProcessAsUser inorder to install software as the specified domain user with admin rights on the local box.. when I run this code in the debugger I always get a "LogonUser failed. Error = 522".. I am running this code on a windows 2k box, I havent tried a NT box Any ideas?
ULONG CInstAdminDlg::Impersonate()
{
ULONG iLastError = 0;
HANDLE hToken = 0;
char *szUserName = "rjones";
char *szDomain = "mydomain";
char *szPassword = "mypassword";
DWORD dwSize = 50+1;
char szUser[50+1]={0};
GetUserName(szUser, &dwSize);
OutputDebugString("*** Before ImpersonateLoggedOnUser: ");
OutputDebugString(szUser);
OutputDebugString("\n");
LUID Luid;
if(!LookupPrivilegeValue(NULL, SE_TCB_NAME, &Luid))
{
OutputDebugString("LookupPrivilegeValue failed.\n");
iLastError = GetLastError();
goto Exit;
}
HANDLE hProcToken;
if(!OpenProcessToken(GetCurrentProcess(),
TOKEN_ADJUST_PRIVILEGES|TOKEN_QUERY|TOKEN_DUPLICATE, &hProcToken))
{
OutputDebugString("OpenProcessToken failed.\n");
iLastError = GetLastError();
goto Exit;
}
TOKEN_PRIVILEGES TokenPriv;
TokenPriv.PrivilegeCount = 1;
TokenPriv.Privileges[0].Luid = Luid;
TokenPriv.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED ;
if(!AdjustTokenPrivileges(hProcToken, FALSE, &TokenPriv, 64, NULL, NULL))
{
OutputDebugString("AdjustTokenPrivileges failed\n");
iLastError = GetLastError();
goto Exit;
}
if (!LogonUser(szUserName, szDomain, szPassword, LOGON32_LOGON_INTERACTIVE,
LOGON32_PROVIDER_DEFAULT, &hToken))
{
OutputDebugString("LogonUser failed.\n");
iLastError = GetLastError();
goto Exit;
}
if (!CreateProcessAsUser(
hToken,
"C:\\CodeProjectSearchBar.exe",
NULL,
NULL,
NULL,
TRUE,
NULL,
NULL,
NULL,
NULL,
NULL
))
{
OutputDebugString("Process failed.\n");
iLastError = GetLastError();
goto Exit;
}
RegCloseKey(HKEY_CURRENT_USER);
Exit:
if (iLastError)
{
char szErr[64];
sprintf(szErr,"Error = %x\n",iLastError);
OutputDebugString(szErr);
}
return iLastError;
}
|
|
|
|