|
I am a Sr.Software Engg, working on Win32 Functions in MAPI developement in VC++6.0.I want to know is there any way of sending a mail in HTML format using MAPI. I want to send the mail in using BOLD,UNDERLINED,FONTSIZE etc etc using HTML tags. Like the features incorporated in Yahoo. I am usingMAPI control in my VC++ application for sending mails. For ex the user enters the body of the mail as Hello World <\b>. Then when i send the mail, the person who receives the mail shld get the Hello World in bold format. Hope my problem is clear for you. So i want to incorporate this HTML tag feature in my mail application using Win32 Functions in MAPI and the programming environment is VC++ 6.0.
Plan your work n work your plan
|
|
|
|
|
Can somebody please initiate me into the basics of a firewall..i need to write a firewall in vc++ but i dont know how to intercept http..
thank you.
Satya Kiran.
|
|
|
|
|
I don't see how anyone can answer that for you without writing you a firewall. Why do you need to write one ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
I'm sure if you look round SourceForge and the other open-source sites you'll find the code for one.
Michael
Life’s not a song.
Life isn’t bliss.
Life is just this.
It’s living. -- Buffy the Vampire Slayer: Once more, with feeling
|
|
|
|
|
SatyaKiran wrote:
intercept http
If you need to "intercept http", it will be a lot easier for you if you write a proxy, not a firewall. There are samples here in Codeproject of proxies that do this.
My latest article:
SQL Server DO's and DONT's[^]
|
|
|
|
|
I am reading from an XML file and I need to convert a value from the variant string that I get to a double. How do I go about doing something like that?
|
|
|
|
|
atol, and use _bstr_t to convert your string into a char * first. If you put the string into a _bstr_t, the conversion to char * is implicit.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Actually, I think you can shove it into a variant_t and ask it to ChangeTo a double.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Thanks for your help, it sent me on the right track. After playing with ChangeType I found out that
the variant_t will do the conversion for me as it has the double() operator overloaded.
Thanks Again,
Clint
|
|
|
|
|
Great - glad to help. My experience with variant_t and VARIANT is limited, so I have only a vague idea.....
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
I am looking for a way to programmatically convert MIDI data to sound data (such as WAV) and then have that handed back to my program or saved to a file. Although I have found plenty of stuff about waveout functions, DirectX, DirectSound, etc., it seems as though the results of the soundcard processing always head straight out to the speakers. Is there a way that I can register my program (or a file) as the destination of the sound generator so that I can effectively convert MIDI to WAV and then do further processing on that sound data? Any ideas are appreciated.
|
|
|
|
|
ADO: how can u access the number of records in a given table again?
-- WITHOUT having to enumerate all records and increment some sort of counters?
thanks
norm
|
|
|
|
|
select count(*) from tblMyTable.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
i'm so stupid. sorry =)
norm
|
|
|
|
|
No worries - I've asked dumber questions. I believe the response you get from ADO is a single cell called 'count', so that is what you need to select. ADO.NET has executescalar, which is far nicer.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
hehe, it's my turn:
SELECT COUNT(*) AS "WHATEVER_NAME" FROM MYTABLE
norm
|
|
|
|
|
*grin* I know, but I thought you may not be aware what it comes back as, and that it might be hard to find out. I forget the vagaries of ADO, I'm in ADO.NET land nowadays.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
let me have my moment of pride =)
ye, hope to move on to dot-net real soon. just have to finish off two small jobs: a connection manager and an installer/un-installer.
norm
|
|
|
|
|
norm wrote:
let me have my moment of pride =)
Oh - sorry. Thanks for the tip, then
norm wrote:
ye, hope to move on to dot-net real soon.
You will love it. The Microsoft ADO.NET Core Reference book is a must have if you're going to use ADO.NET.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Not wise to quote the table pseudonym.
select count(0) as [whatever] from table (nolock)
is the best way to do it in SQL Server.
However, if you're going to select all the data anyway, you'll end up doing two queries which is not necessary. In that case, just select the data and look at Recordset.RecordCount . Only works on client based recordsets though.
#include <beer.h>
|
|
|
|
|
Christian Graus wrote:
select count(*) from tblMyTable.
Actually ADO exposes a property called RecordCount once you have returned a recordset, so you don't actually have to do a "SELECT COUNT(*) FROM [YourTable] WHERE..." . You will need to set the CursorType to 3 (which represnts a static cursor).
Nick Parker
May your glass be ever full.
May the roof over your head be always strong.
And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing
|
|
|
|
|
Ya, but I didn't think it was implicit in the question that he had a recordset already.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Christian Graus wrote:
Ya, but I didn't think it was implicit in the question that he had a recordset already.
I know, I was just commenting on something that wasn't said yet in case someone wanted to use it in the future.
Nick Parker
May your glass be ever full.
May the roof over your head be always strong.
And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing
|
|
|
|
|
You're right, of course. To be honest, I was aware that there was a property, but didn't mention it because I could not recall then name, and did not look it up because it did not seem to be exactly what was needed.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
why "INT" and not "int" again?
thanks
norm
|
|
|
|
|