|
Greetings. Perhaps this isn't the best forum for this request, since it's not necessarily *Visual* C++, but what the heck.
I see some articles on CodeProject with sample SMTP proxies, but what I need is a sample POP3 proxy for Windows, in C++. So far searching all the "usual places" has turned up nothing.
I've been working on a sample COM Add-In for Outlook (in C++ of course) to provide anti-spam capabilities, and that part is working great. The actual anti-spam "engine" is a COM Object called from within the COM Add-In. Now I'd like to see if I can retrofit a POP3 proxy approach to complement the Add-In for Outlook, thus showing two different ways to achieve the goal.
Anybody know of any such sample POP3 proxy projects that I can take a look at?
Brad.
|
|
|
|
|
Be patient... I think Colin is working on just such a proxy server. Keep a watch on the article submissions...
|
|
|
|
|
I'm nothing if not patient. :->
Thanks for the heads-up. I get the weekly "newsletter" promoting the new/updated articles, so I'll keep an eye out. This is more of a pet project for me, luckily.
|
|
|
|
|
Hello,
I have never tried to use a Active X object in a MDI or SDI before.. I am trying to take advantage of a active x object in my SDI and for some reason (which I don't know) It will not run.. This is the error I get in debug mode.
Inside of WINOCC.CPP
....
ASSERT(m_pCtrlSite != NULL); // not an OLE control (not yet, at least)
....
Is there some special way I am supposed to use Active X controls in a SDI??
I simply added the control through projects -> Add to Project -> comps and controls.. It added all the .cpp and .h files I needed.
Then in MainFrm.h I added a reference to the object..
...
CActiveXcontrol m_pControl;
...
now when I try to use it in MainFrm.cpp everything compiles fine but I get the ASSERT error upon launching..
I'm sure there is some dumb reason that this is erroring...
Any ideas?
Rob
|
|
|
|
|
Never mind I figured it out.
|
|
|
|
|
I just (for the heck of it) compiled a project I've been working on for some time on warning 4. I always leave the default of warning 3. My project does produce some warnings because of a few mixes of BOOL and bool types... anyway... so there I am, minding my own business, compiling at level 4, and I get something like 311 warnings. 308 of them were in Microsoft's standard built in header and source files- like fstream!
What's up with that?!?
Paul
|
|
|
|
|
Sounds like VC6. hehehe
That version of Dinkware's STL port is known to not want to build at warning level 4. Hopefully the version included in VC7 is better.
Tim Smith
"Programmers are always surrounded by complexity; we can not avoid it... If our basic tool, the language in which we design and code our programs, is also complicated, the language itself becomes part of the problem rather that part of the solution."
Hoare - 1980 ACM Turing Award Lecture
|
|
|
|
|
You can use follow method to avoid some warning:
int a;
#pragma warning( disable : 4705 )//stop warn 4705
void func()
{
a;
}
#pragma warning( default : 4705 )//recover it
I am seeking...
For what?
Why did you ask me for what? I don't know!
|
|
|
|
|
Paul Oss wrote:
308 of them were in Microsoft's standard built in header and source files- like fstream!
That's STL for you. You can ignore all that cruft safely.
--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
|
|
|
|
|
I wanted my indicator for the image to be positioned like this:
static UINT indicators[] =
{
ID_SEPARATOR,
ID_INDICATOR_RAINBOW,
ID_INDICATOR_TEST,
ID_INDICATOR_CAPS,
ID_INDICATOR_NUM,
ID_INDICATOR_SCRL,
};
but this positioned it after the _TEST indicator, though I did:
inx=CommandToIndex(ID_INDICATOR_RAINBOW);
GetItemRect(inx,&rect);
m_WzdProgressCtrl.MoveWindow(rect);
So I had to position it before the seperator and then it showed up predictably as the first panel.
Why, any ideas, the bizarre positioning? It actually cut into the space occupied by _TEST indicator.
|
|
|
|
|
Hello,
I've created a simple doc/view application using a list view in report mode
with 2 columns with the extended styles LVS_EX_FULLROWSELECT and
LVS_EX_INFOTIP set via:
DWORD dwStyle = GetListCtrl().GetExtendedStyle();
GetListCtrl().SetExtendedStyle(dwStyle|LVS_EX_FULLROWSELECT|LVS_EX_INFOTIP);
in OnInitialUpdate().
The MSDN Documentation says:
"This notification is only sent by list-view controls that have the
LVS_EX_INFOTIP extended style. The LVN_GETINFOTIP notification is sent for
sub-items while in report mode only when the LVS_EX_FULLROWSELECT extended
style is in use."
I've added my message map:
ON_NOTIFY_REFLECT(LVN_GETINFOTIP, OnGetInfoTip)
and the function:
void CInfotipView::OnGetInfoTip(NMHDR* pnmhdr, LRESULT* pResult)
{
NMLVGETINFOTIP* pnmlvgit = (NMLVGETINFOTIP*) pnmhdr;
ASSERT(pnmlvgit);
}
When I run the application, I DO get an InfoTip notification when
positioning the mouse overtop of the 1st column in the list view BUT NOT
over the 2nd column. MY understanding (and correct me if I'm
misunderstanding the documentation) is that with LVS_EX_FULLROWSELECT set, I
should also receive a notification when positioning the mouse overtop of the
2nd column.
I have tried testing this both compiling with Visual Studio 6 & 7 and
running the test under both Windows 200 and Windows XP.
Any help is greatly appreciated.
Thanks,
Chris Holt
|
|
|
|
|
I'm following a sample project and they are creating a progressctrl in the staus bar: After defining a progressCtrl object in the mainframe, they have:
int CWzdStatusBar::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CStatusBar::OnCreate(lpCreateStruct) == -1)
return -1;
CRect rect(0,0,0,0);
m_WzdProgressCtrl.Create(WS_CHILD|WS_VISIBLE,rect,this,IDC_WZD_PROGRESS);
return 0;
}
What I'm puzzled by is where is IDC_WZD_PROGRESS generated. They didnt draw it on any dialog or anything. Yet there is an entry
C:\swanke\A31\RESOURCE.H(9):#define IDC_WZD_PROGRESS 104
The only ID_ s I have seen generated have been for a control drawn on some dialog form, and the resource.h gets the entry automatically.
I hope you can see my dilemma,
thanks,
ns
|
|
|
|
|
int CPaletteStatusBar::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CStatusBar::OnCreate(lpCreateStruct) == -1)
return -1;
CRect rect(0,0,0,0);
m_THBImageRainbow.Create("Rainbow", WS_CHILD, rect, this, IDC_THBIMAGERAINBOW);
return 0;
}
I havent drawn the image control anywhere, and the compiler says:
C:\PaletteStatusBar.cpp(43) : error C2065: 'IDC_THBIMAGERAINBOW' : undeclared identifier
So how do I generate this IDC ?
Very confused...
|
|
|
|
|
I'm not sure, but I think you can 'add Strings' in the String Table which is shown on the resources tab, and lists out IDs.
BW
{insert witty/thought-provoking saying here}
|
|
|
|
|
If you are using VS6:
- Go to resource tab
- Right click on the project name in the tree
- Select Resource symbols
- Press New button
Pavel
Sonork 100.15206
|
|
|
|
|
They just defined it themselves. They picked an arbitrary number that wasn't used is all.
Nothing special.
If using VC 6, and you view the 'Resources' tab, you can select 'View|Resource Symbols' from the main VC menu.
Just click on the 'New' button in the dialog and create a new ID and assign it an ID.
Remember, controls need identifiers. The resource editor assigns them automatically because it's our friend and tries to do things for us.
But when you're doing things manually, you'll have to use this process.
Chris
|
|
|
|
|
Ah! MAny thanks. That worked. Appreciate it!
ns
|
|
|
|
|
I am creating my own class derived from CStatusBar, and will embed an imagecontrol in it, called m_THBImageRainbow. Now in my view class, I need to populate this box with an image through a function defined in the view class. If m_THBImageRainbow had been a view class member I'd have done:
ShowTHBImage(m_rainbow.GetImageSize(), m_rainbow.GetImagePointer(), &m_THBImageRainbow)
but my m_THBImageRainbow is a member of my new statusbar class. How will I access this?
Instead of &m_THBImageRainbow , what will it be?
I'll have MyStatusBar m_wndStatusBar; in the mainframe.
So to get at it in view :
((CMainFrame*)AfxGetMainWnd())->m_wndStatusBar.m_THBImageRainbow) , but where will the & go?
<code>&</code>((CMainFrame*)AfxGetMainWnd())->m_wndStatusBar.m_THBImageRainbow)
or somewhere else in there?
Thanks,
ns
|
|
|
|
|
Hi !
I need some grid control to display data in a table format with the avalability of recognizing clicks no cells and so on.
I rememeber seeing an article here that was perfet for me but I cant find it.
Any help is welcome, just dont recommand the MS FlexGrid, I hate it
Thanks,
Shay Harel
|
|
|
|
|
Best grid control here you can find on the CP homepage - first item in Most Popular section - Chris Maunder's MFC Grid control 2.24;).
Pavel
Sonork 100.15206
|
|
|
|
|
Great, exactly the one I was looking for
|
|
|
|
|
I am trying to come up to a crawl using VC6. I have been using Optima++. Under Optima I could save the current project and create a new one by using the Save Project As button under the file menu and providing a new name Ie.. test1, test2, test3 and so on. I have been unable to figure out how to do the same thing with VC6. What I want to do is save a current project, but create a new one based on the original for modification, so that I don't screw up the original. Is there a way to do this?
Steve Daly
|
|
|
|
|
No .
You can of course copy the project directory. If you want to rename it also, you need to edit dsp and dsw files in text editor.
Pavel
Sonork 100.15206
|
|
|
|
|
ever thought of using sourcesafe? or another CVS? I like the idea of revisioning code. I use it in JBuilder all the time, kinda the same way Word handles revisions.
Ryan Baillargeon
Software Specialist
Fuel Cell Technologies Inc.
|
|
|
|
|
Has anyone come across resources on how to architect FDI models as opposed to MDI. I am starting out a new project and I would like to use an architecture similar to VS.NET. Workspaces in my application will be able to contain any number of document modules (dynamically load a new document type). Just wondering if anyone has found any tutorials or discussions on such a model?
Ryan Baillargeon
Software Specialist
Fuel Cell Technologies Inc.
|
|
|
|