Problem with DllMain without a CWinApp
I have a TSP (Telephony Service Provider) DLL. This DLL has two parts: a
GUI-part which uses some MFC stuff and a non-GUI part (doesn't use MFC).
Everything works fine. I don't have a CWinApp object and I don't want / need
Now I need to add some multithreading support and therefore need to
initialize a critical section Win32 object only once (when loading /
unloading the DLL). This can only be done in DllMain as far as I found out.
When I define such a function, I get a duplicate symbol (DllMain) linker
error conflicting with uafxcwd.lib(dllmodul.obj).
Current ...Message box with multiple buttons
Im trying to create a message box that has the message "Do you want t
print?" with buttons "Yes" and "No". When yes is selected the prin
macro is activated. When no is selceted the macro stops and goes bac
to the work sheet.
Can anyone help me?
Message posted from http://www.ExcelForum.com
If MsgBox("DO YOU WANT TO PRINT?", vbYesNo, "PRINT") = vbYes Then
'Your code for print macro
Message posted from http://www.ExcelForu...Read or sel message in outlook re-appears as new message on Blackb
Using Outlook 2007 on pc and Imap exchange server
A read or even just a selected message in inbox from outlook re-appears as
new message on Blackberry.
Searched the internet but no solution found yet..........
Anyone a clue?
Ed Crowley MVP
"There are seldom good technological solutions to behavioral problems."
"George AV" <George AV@discussions.microsoft.com> wrote in message
> Using Outlook 2007 on pc ...CWinApp
When I exit an app via the "Exit" menu event that maps
to "OnFileExit" I get control before anything has been
done to alter the state of the app. I can check to be
sure that the user has not left the database he is
working on in an unacceptable state. And cancel the exit
if he needs to do more work to clean it up.
When you "Close" the app via the "X" icon in the upper
right hand corner of the app window I can not find an
event that gives me control before anything is done to
the app so I can cancel the close if I need to.
Any idea how to get th...Messages Cut off
A recipient receives forwarded mail messages that are cut
off in random locations throughout the email. Outlook
2000 with latest SP. Any ideas?
...news messages disappear
I am using windows xp home sr3. I use outlook express to read my
newsgroups. For some reason the messages disappear when I leave the current
folder. This is happening on my laptop. I have my desktop and laptop
configured the same way. this doesn't happen on my desktop. Can I do
something to fix this?
P.S. The laptop uses the same version of windows.
thanks for any help.
Regards, Gary Metzler
send to: email@example.com
Msn messenger: firstname.lastname@example.org
Skype name: garymetz
While in a newsgroup: V...export messages in Outlook Express 6
I've tried to export messages from Outlook Express 6 and
got an error message: MAPI error.
Anyone knows how to get around this problem? I
ran "fixmapi.exe" to create a new MAPI.DLL but still
"fdp" <email@example.com> wrote in message
> I've tried to export messages from Outlook Express 6 and
> got an error message: MAPI error.
> Anyone knows how to get around this problem? I
> ran "fixmapi.exe" to create a new MAPI.DLL but still
> ...I cant send messages
I have windows live mail and have recently reformatted the hard drive for an
unrelated problem. I connected back onto the net and an receiving emails ok
but i cant send any.
Here is the error message:
The host 'mail.bigpond.com ' could not be found. Please verify that you have
entered the server name correctly.
Subject 'deal or no deal'
Server: 'mail.bigpond.com '
Windows Live Mail Error ID: 0x800CCC0D
Socket Error: 11004
I have triple checked the writing in the accounts and cannot see that i have
wri...Writing email replies UNDER the original message
I believe a reply/response should default to AFTER a question/original
I cannot see how to do this in Vista using Office 2007.
it's not an option in outlook, but you can move the insertion point to the
end of the message.
FWIW, I find it easier to read messages when the reply is on top - no need
for me to search for the newest reply, its right on top where I can see it.
It also works better on phones - especially since only the first few bytes
are sent to the phone until I request the full message.
Diane Poremsky [MVP - Outlook]
Outlook Tips: http...Intelligent Message Filtering Question
We just installed the filter yesterday and have set the gateway SCL setting
to 4. Unfortunately mail sent by the public from our comercial web site back
to the home office is being given a SCL of 4 and it is archived, thus never
reaching some important departments.
I have added the recipient to the Exception List under Connection Filterng
in Message Delivery Properties and this has not made a difference.
Is there another way besides increasing the SCL to let mail from this
particular domain pass through the Gateway?
I would add it to the Accept section of the "Global ...Can we intercept messages in general?
When one class sends a message to another (e.g. via SendMessage), can we
intercept this message? How?
I want to find out all the messages that one child window sends another, for
Thanks in advance,
Juan Dent, M.Sc.
It is possible to determine which messages are sent to a window. There is no
way to detect only those messages that were sent from some other window.
How to detect messages sent to a window depends on if the window is part of
your application or another one.
"Juan Dent" <...Mem leak when implement Singleton pattern on CWinApp derived class
Coded my MFC app to have singleton pattern, my code looks like this:
class CMyApp : public CWinApp
// static obj
static CMyApp* MyAppInstance;
// some other obj composed in this class
// private cons, I init the COtherObj here
obj = new COtherObj();
// only way to access cons
static CMyApp* GetInstance()
//check if already instantiated
if( MyAppInstance == NULL)
MyAppInstance = new CMyApp();
virtual int ExitInstance()
// I use ExitInstance to delete all ...Message Size Exceeds....
I'm running Exchange 5.5 with about 160 users. I added an address to our
'Externals' container (custom recipients frequently used by a number of employees)
which is very similar to a set of addresses already listed - same domain,
actually. However, when anyone sends an email, a System Administrator note
comes back: " Either the message size exceeds the maximum allowed for the
recipient or transport, or you have exceeded the storage limit on your mailbox."
This is not the case as size is not an issue with our mailboxes. Another
thing is if someone sends to the address...Detail reports on message store
I need a way (canned software, or I can write it) to be able to analyze my
message store. I want to be able to report by folder, age the messages in
buckets (current, 30-60 days, etc), # and size of attachements, etc. Most
mail systems let you do this easily. Running Exchange 203 Enterprise.
I am trying to write a macro that will do the following as long as there is
data in column A.
.ColorIndex = 38
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
Selection.Locked = True
How do I write a Loop that will keep doing this on each successive row until
the cell in column A is blank?
Dim R As Range
Set R = Range("F4")
Do Until...Error Message when send/receiving: An object could not be found.
Can anyone tell me why this error message comes up when I
try to send/receive in Outlook? I have tried to repair
using the disc, but it doesn't help this problem.
! The operation failed. An object could not be found.
...Slow messag retrival
I'm running exchange 2003 sp1 on a windows 2000 sp4 server. My problem is
(if it is a problem) that the massage retrival is very slow. Say I whant to
make my mailbox available offline and my mailbox is 300MB it takes upp to
20min to syncronize! my machine is connected to a GB network with the
exchange server!!!! is there any parameters in exchange that I can change to
speed up things? the ordinary transfer is very good, 300MB takes about 7-10
sec (from my computer to and from the exchange server)
Thanx for any help
Try Outlook 2003 and cached mode.
Ed Crowley...Receiving the same messages over and over
Every time I open Outlook 2002, I receive the same old
messages over and over. Please help, I'm at 30 messages
Go to your ISP webmail and delete the messages. Then, turn off your
incoming/outgoing AV from scanning your mail.
Milly Staples [MVP - Outlook]
Post all replies to the group to keep the discussion intact. Due to
the (insert latest virus name here) virus, all mail sent to my personal
account will be deleted without reading.
After searching google.groups.com and finding no answer, Chris asked:
| Every time I open Outlook 2002, I receive the same old
| me...Exchange 2003 Message Tracking #4
We have just moved to running Exchange 2003 with Outlook 2003, we have
had someone emailing from externally to a couple of our users at 09:44
yesterday and the users are saying they don't recieve the mail.
So I checked the Message Tracking Centre, and it isn't listed for the
time it was supposed to be sent. There was an earlier message (09:15)
sent from the same person to the same reciepients, with the same
subject, so I checked the Message History.
In the message history, there are events at 09:15 showing the message
being submitted and delivered to the local user, after this ...Message to all outgoing
Is it possible add a message to all outgoing mails for all users at one
time, we are using Exchange 2003 ?
Jeg beskyttes af den gratis SPAMfighter til privatbrugere.
Den har indtil videre sparet mig for at f� 16769 spam-mails
Betalende brugere f�r ikke denne besked i deres e-mails.
Hent en gratis SPAMfighter her.
You mean like a disclaimer?
Nothing native or built-in.
- Using a transport event sink - (the following code has a is a painful
exercise at best, doesn't work for locally delivered messa...view pics in body of message ???
Is there any EASY way to enable viewing attched pictures in the message body
of the email I receive (Outlook 2003) ?
When I receive a pic attachment...it is only viewable by opening each pic
separately, as opposed to just scrolling down through the message and seeing
them in the body of the email ( how it was in OE).
When I looked up the help on "view attachment in body of message" I got this
1.. Use the keyboard to choose the Customize Current View command (View
menu, Arrange By, Current View submenu).
2.. Click Fields, and then click New Field.
3.. In t..."Could not find a part of the path" error message
I am trying to load XML files from a mapped drive into my web application and I get the above error. When I load the files from my local drives, it works fine.
Can anyone help?
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
...CWinApp in a dll?
Is it possible to create a CWinApp object in a DLL? I
don't want to give access to the CWinApp object outside of
the DLL so that is not an issue. In fact I don't want to
give access to any of the MFC objects contained within
Yes, you can do this. As far as exposing the app object, anyone can get it
using AfxGetApp if they want to. You dont have to export your class if its
derived from CWinApp. Use an MFC Extension DLL to do this.
Ajay Kalra [MVP - VC++]
"Murrgon" <firstname.lastname@example.org> wrote in message
news:eh7AHxqxEHA.1300@...Pump messages while waiting
In some parts of my code I EnterCriticalSection which may stop the
message pump. For the time being there's no code that would
SendMessage from critical section, so there's no deadlock, but I would
like to prevent future headaches and handle SendMessage-from-CS
For this I probably have to use mutex and MsgWaitForSingleObject, but
what should I do when some message arrives? The important thing is
that the code is in the class that may be used in both the MFC and
Mihajlo Cvetanovic wrote:
>In some parts of my code I EnterCriticalSection which m...WM_ERASEBGND not caught by CWinApp::PreTranslateMessage
I am having a problem with a handler for WM_ERASEBGND and wanted to
intercept WM_ERASEBGND in an overriden CWinApp::PreTranslateMessage.
However, for some reason, WM_ERASEBGND is NEVER received in
Am I doing something wrong?
Thanks in advance,
Juan Dent, M.Sc.
Juan Dent wrote:
> I am having a problem with a handler for WM_ERASEBGND and wanted to
> intercept WM_ERASEBGND in an overriden CWinApp::PreTranslateMessage.
> However, for some reason, WM_ERASEBGND is NEVER received in
> Am I doing something wrong...