|
Yes, as long as you have the dlls. I do not know how usefule this link is, but someone wrote a component on codeproject that may get you started. http://www.codeproject.com/internet/xymailclient.asp.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
The most common ways of doing this are:
A) Use the MAPI interface. MAPI is a bloated interface and can't be used by NT services, I would avoid it.
b) Use SMTP to talk directly to the email server. This is very simple to use but requires a third party library. It works with NT services too. You can buy a library that does this or use a public domain version. I think PJ Naughter has some public domain classes for this.
Chris Hafey
|
|
|
|
|
Chris Hafey wrote:
b) Use SMTP to talk directly to the email server. This is very simple to use but requires a third party library.
Actually, you can use MFC sockets support to send the SMTP verbs to the server.
I personally prefer MAPI as it's much easier to use.
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
Does anyone know how to set the background color of:
- a radio button
- date picker control (spin view)
Thank you
|
|
|
|
|
I have a problem with the function CreateProcessWithLogonW(). The right header files are included, but i always get a compiler error:
error C2065: 'CreateProcessWithLogonW' : undeclared identifier
CreateProcessWithLogonW() is declared in WinBase.h and implemented in Advapi32.lib!!! Both are included!!! What is wrong with them ??
|
|
|
|
|
Don't panic, i got it!!!
Please, stop answering, the time is over!!
And the solution is .....
#define _WIN32_WINNT 0x0500
... must be declared before includinge WinBase.h in Win2000!!!
Here's the manual for each OS:
Windows NT 4.0 _WIN32_WINNT>=0x0400
Windows 98 _WIN32_WINDOWS>=0x0410
Windows 2000 _WIN32_WINNT>=0x0500
Windows Me _WIN32_WINDOWS=0x0490
Windows XP and
Windows .NET Server _WIN32_WINNT>=0x0501
|
|
|
|
|
Consider the following file in a C++ program:
fstream employees(ios::in|ios::out|ios::binary);
This file is going to be a random access file in the program. The user will be allowed to read and write records. Records are based upon the following struct:
struct emp
{ int empId;
char empName[20];
long empSalary;
chat smpDept[4];
}
The question is as follows: Is the file required to be a binary file, or can the ios::binary clause be omitted? Can anyone explain this to me?
Loli10
|
|
|
|
|
unless you're converting that long to text when you output, then yes, the file has to be binary. otherwise, you will end up with a bunch of unprintable characters.
-c
Civilization is the limitless multiplication of unnecessary necessities.
Mark Twain
|
|
|
|
|
|
I was just wondering if you can open VS 7 projects and workspaces [does it still use workspaces] in VS6???
<centre>
Now taking suggestions for a new sig. please email me all suggestions.
|
|
|
|
|
No.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"But there isn't a whole lot out there that pisses me off more than someone leaving my code looking like they leaned on the keyboard and prayed that it would compile.
- Jamie Hale, 17/4/2002
|
|
|
|
|
ok. thanks
<centre>
Now taking suggestions for a new sig. please email me all suggestions.
|
|
|
|
|
I have a question about debugging in VC6.
When the IDE breaks at a location and you look at the variables window for the "Value" of a class if the class is descendent of a CObject you'll see the class name ex: {CMyObject} but for a CString, CRect, CPoint, etc. you'll see the value(s) of the most important member(s) of the class, CString - the actual string, CPoint - the X and Y coordinate.
So my question is: Is there a way to control the text in the value column or the variable window of the IDE for a class or is it the IDE that decides what to display?
For example if I created a CMyString class that's a descendent of a CObject class. When I debug in the "Value" column I only see {CMyString}, I always have to click on the "+" sign to see the value of the CMyString class. I would be very useful to have control on what the IDE would display for a value of a class.
But if the IDE decides what members is displayed for certain class, then I guess I would kind of be impossible to do...
Thanks...
Serge R
|
|
|
|
|
You have to edit this file:
(wherever you installed Visual)\Common\MsDev98\Bin\Autoexp.dat
Add a line like this:
CMyString=<membervariable>
Fortunately, there are (should be) some instructions within this file that explain exactly what you can do. I'd recommend closing down Visual before editing this file.
No generalization is 100% true.
Not even this one.
|
|
|
|
|
take a look here:
http://www.codeguru.com/tips/CustomizingDebug.shtml
|
|
|
|
|
I'm writing this code to control a mechincal syring and I keep getting this error when I try to build it.
header file: int pl32ComClose(void);
call fn in .cpp: pl32ComClose();
error recieved: myc32.obj : error LNK2019: unresolved external symbol "int __cdecl pl32ComClose(void)" (pl32ComClose@@YAHXZ) referenced in function _main
How do I go about fixing this? I'm using a predefined .lib and .dll file for the functions. Am I not linking correctly to the files? Am I calling it incorrectly?? Any help would be greatly appreciated.
|
|
|
|
|
Try including the header in your .cpp like this:
extern "C"{
#include "lpr32.h"
}
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
That is still not working. I include the header #include "Test32C.h" originally. I tried it this new way and the same error came up. Thanks for trying though. any other suggestions???
|
|
|
|
|
It's hard to say without further info:- Does it work if you link the DLL in a C-only project?
- Could it be the DLL was built for a different version of VC++ than you're using?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hello all,
I've been lurking here for quite a while and have run into a problem that I can't seem to find an answer to, so I thought I'd give you guys (and gals) a shot.
I'm trying to create a MAPI preprocessor using a minimal Transport Provider as described in the MAPI SDK. This Preprocessor is to be used in conjunction with Microsoft Exchange. According to the SDK, the Preprocessor method is *supposed* to be called from the MAPI spooler. In my case, it is not being called at all. There are a statements buried within the SDK documentation about the case of a tightly coupled Transport Provider and Message Store bypassing the MAPI spooler entirely.
"This implies that the individual parts within the combined service provider should interact with each other in a way that simulates the interaction they would normally have with the parts of the MAPI subsystem that are not being used." - directly from the Microsoft SDK.
What I suspect is that the Exchange provider is a tightly coupled Message Store and Transport, thus bypassing the spooler and not internally duplicating the spooler's behavior by calling other registered preprocessors.
Can anyone out there confirm, deny or perhaps point me somewhere to find out if this is in fact the case?
To answer the first wave of "Have you tried..." questions, here goes:
No, I can't use Hook providers as they only get called after a message is sent, I need to modify a message before it is sent.
No, I can't use Outlook Automation, it only works within the outlook client app, I need to grap ALL messages, not just those sent from within Outlook (besides, the Outlook automation is grossly incomplete and buggy).
Yes, my Transport Provider is being loaded, and logged into properly when a MAPI client (including Outlook) is used.
Thanks in advance for any light or dark that you might be able to shed on this...
PS. You guys (and gals) are pretty funny to sit back and watch.
George
|
|
|
|
|
I have a little problem with WinForms.
I've created a Managed C++ app. Then I wanted to add a WinForm but I couldn't find the appropriate function. So I decided to see the samples.
I find the solution but I still cannot use the designer as in C# or VB.Net.
Does anybody know how to add a WinForm to VC++.Net which can be modified in the designer.
Thanks in advance
|
|
|
|
|
Nish has some article about it.
http://codeproject.com/useritems/mcppwinforms01.asp
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
When calling GetOpenFileName w/ multi-select enabled, is there a way to determine the buffer space required by the lpstrFile pointer ?
|
|
|
|
|
I don't think so.
GetOpenFileName() returns FALSE if you specify a buffer that's too small. I ran into this annoying problem some time ago, and now always allocate a generous (64K) buffer when I call the multiselect version of GetOpenFileName() .
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
<click> This link is solution that works for win 98. I am trying to figure out how to do this with W2K without much luck so far.
---
CPUA 0x5041
Sonork 100.11743 Chicken Little
It may be that your sole purpose in life is simply to serve as a warning to others.
|
|
|
|