|
Hej Joshua.
This code is quite simple. All you have to do is prepare picture image (in resource editor) and write a procedure which will take a string as a parameter, traverse this string, compute offset of image corresponding to each letter and blit it. Simple, eh?
It remainds me old times - low level assembler procedures, demos, scrollers, vectors, amigas
Regards
Bartek
|
|
|
|
|
|
Suppose that you know make sounds, use this to manipulate the time:
The time in seconds is the value returned by the clock function, divided by CLOCKS_PER_SEC. CLK_TCK is equivalent, but considered obsolete.
#include <time.h>
#include <conio.h>
clock_t start, end;
void time_start()
{
start = clock();
}
int time_trans()
{
end = clock();
return((double)((end - start) / CLOCKS_PER_SEC) );
}
|
|
|
|
|
Hello,
I have a Cable/Dsl Linksys Router and was wondering how I could get the IP address it is using with the Internet provider. I know I can get it manually from the configuration but was wondering how it could be obtained programmatically.
Any thoughts will be appreciated.
Thanks,
Todd
|
|
|
|
|
This one goes out the ATL Wizards out there.
I need to wrap a MFC Window Class control inside an ATL Control.
I know I can subclass, I need to what the best method is.
Has any body done this kind of thing before, eg. Wrapping an Stingray GridWnd for instance
|
|
|
|
|
I am dealing list view ctr in dialog box, all is right i.e no error or warnig is ther but when I run the programm it gives "Unhandeled exception" message.
|
|
|
|
|
Hi Ali,
your description is too short to answer you. Your code is compiling correctly, but you have errors at run time (as I understood). One is certain - you are doing something wrong, but I can't help you Provide some more info ...
Regards
Bartek
|
|
|
|
|
Hello all.
I'am designing some application and I wish that end user could send an e-mail with some attachement by simple pressing button. I want to avoid him of being confused by configuring any connections.
I assume that user's machine has already configurated Internet connection (in most cases Dial-Up with modem) and E-mail client installed (in most cases MS Outlook).
So I see it working in this way: user clicks on a button and this action runs E-mail client - sets the recipient, message and attachement. User only has to press the Submit button (from e-mail client) (or even without - e-mail is sending automatically). The client optionally calls the Dial-Up connection to set up the connection.
I tried opening url ("mailto:xxx@yyy?subject=zzz"), but I cant figure how to set attachement and message body in this manner. So I looked into MAPI specyfication and implemented some sample. But there is a problem: after Submit action, even I have Lotus Notes and MS Outlook installed (LN is default client) I always see an screen to set up the profile. Bleee - this is the less expected thing I wanted to see ...
I dont know the MS Exchange technology well. Any help will by appreciated.
Similiar mechanism works fine in WinZip.
And sorry for my not always briliant english
Best regards
|
|
|
|
|
if you wolud like i could send you a MAPI class for you to handle e-mail sending (recieving)
through vc++
|
|
|
|
|
You HAVE to set up the client machine (configure an e-mail profile) at least once before you can use MAPI to send e-mail. Actually, before doing that, you HAVE to add the an e-mail account for this client to the exchange server that is processing the e-mails. If you have done the above, the rest (sending e-mail from a program) is easy. I have sample code (a simple ActiveX control) if you are interested.
|
|
|
|
|
Hello again
After receiving some answers (thank you very much!) I want to slightly modify the question: Is anybody know how to send e-mail programatically (with attachement and message) without using MAPI (like WinZip menu-context: 'Zip and Email sth.zip')?
Becase potential end-users are rather rookies than professionals I don't want to get them confused by configuring profiles with Exchange server. Is there any way to get an advantage of Ms Outlook or Lotus Notes installed and configured? As I know those apps don't use Exchandge profiles and vice versa.
Best regards and smile
|
|
|
|
|
I haven't used this myself, but it looks like this may be what you want:
http://www.codeproject.com/internet/csmtpconn.asp
|
|
|
|
|
OK - it's fine. But as I said before - there is a need to specify SMTP server - beginner users not always know it. And then I should call Dial-Up connection where MS Outlook does it all for me.
Regards
Bartek
|
|
|
|
|
As said before, there are two ways: MAPI or POP3/SMTP. Using MAPI you take advantage of your email application installed on the same computer, assuming that email application handles MAPI (most do). All you have to do is select that application as MAPI application, this is done in the application's preferences (Outlook/Netscape etc).
There are some classes on CodeTools for simplifying the MAPI job, but VC++ 6.0 docs contains a good guide also. Sending email is a LOT easier than receiveing and I'd guess that WinZip uses MAPI to send it's email.
|
|
|
|
|
try using pj naughter's pop3 and smtp classes
they work real good (if you use unicode you'll have to make a couple of mods)
mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them
|
|
|
|
|
Why Not send a link ??
There are security concerns to consider when sending attachments,
But Links become the users resposibility !
Regardz
Colin Davies
redo C++ , Coder
|
|
|
|
|
Huh, it was a little delay since last reply
Could you explain what does it mean: send a link?
Regards
Bartosz Lizak
|
|
|
|
|
Hi,
I have not done this before, but I'd like to do it some day fro myself as well as I thought of it once long ago!
One thing though, isn't the attachment an exisitng in HD file! Try it with FTP stuff!
I've seen some apps w/source code but in VB that show how to send files with FTP.
Am gonna follow up to find stuff I had before, meanwhile please let me know as well of your findings!
Cheers
"Silence is golden, but my eyes still see."
-- Masoud Samimi
Website: www.geocities.com/samimi73
|
|
|
|
|
Using "MAPI" eg your default "email program"
Send an e-mail with an "html link" in the Body !
You'll have to make sure your user FTpUploads the file to the predefined "html link"
on a server.
I've implemented it in a Demo APP of mine
at http://www.ownguide.tv if you car to download it at look !
Regardz
Colin Davies
|
|
|
|
|
If yes please send me an URL, where can I get subscription.
Thanks in advance
|
|
|
|
|
take a look at: http://peach.ease.lsoft.com/archives/msvc.html
- Anders
|
|
|
|
|
I COULD SEND YOU A CLASS THAT YOU CAN USE FOR THAT
EMAIL ME IF YOU WANT IT
|
|
|
|
|
John
Do an article and include the code. Stuff like this is missing from this site, and I'm sure it will be warmly welcomed
|
|
|
|
|
Hi everyone,
I've got a really simple question compared to everything I've been doing this entire weekend.
Well, to begin with, I have a programming assignment to be delivered tomorrow (Monday) and after finishing all the hard work on the inner structures, I decided out of the blue to learn how to make an interface with Visual C++ 6.0 and MFC to make my program presentable.
Now I'm all set, and the program is running fine, but I'm afraid I just don't know how to statically compile my program so it doesn't depend on ANY of visual c's dll's. I've already made MFC static by changing the combo box in project/settings/general... but I'm really afraid that tomorrow when I take my program to the presentation it may not work on the target machine due to some missing dll's.
Is there anything I'm missing to statically link all the libraries??
BTW: I'll have no chance of testing if it's working on a 'clean' machine until tomorrow's presentation.
Any sort of comment will be welcome.
Thanks in advance
Fernando
|
|
|
|
|
What you want to do here is to use depends.exe , which comes with Visual Studio (You don't mention what version of VC++ you have, but I am pretty sure that it comes with VC++ Pro and above). Depends.exe is also part of the Platform SDK (http://msdn.microsoft.com/downloads/c-frame.htm?/downloads/sdks/platform/platform.asp).
If you run depends on your executable image, it will list which external dlls your executable depends on to run. You will, of course, see several core windows dlls (such as gdi32.dll , kernel32.dll , etc.) but what you want to look out for are msvc*.dll , mfc*.dll , and atl*.dll . If you see these, you have not succeeded in completely statically linking your program.
If you can't find depends.exe, go to the command line and
dumpbin /imports myprog.dll | find /i ".DLL"
This will give you a list of all dlls your program imports functions from. Look for the same things as with depends, above.
Nonetheless, this is all terribly risky, running code for the first time on an untested machine. Have a backup plan in case the program won't run. I recently went to a colloquium given by a nationally known expert on computer drug design and he had to give his presentation on a chalkboard because the projection system didn't work well when plugged into his laptop and the version of PowerPoint on the desktop machine in the lectern was incompatible with the version of PowerPoint on his laptop, so he couldn't transfer the presentation. Great presentation, but I think he could have used some of his designer nonsteroidal anti-inflammatory drugs (a category of drugs like aspirin, acetominophen, ibuprofen) by the time he was through.
He was allying himself to science, for what was science but the absence of prejudice backed by the presence of money? --- Henry James, The Golden Bowl
|
|
|
|