I want a single function to handle calls from several controls when the EN_KILLFOCUS command is sent. The only problem is that I'm not sure how to determine which control is calling the function.
---Evil Peer
Found the following at:
http://www.faqchest.com/msdn/ATL/atl-98/atl-9809/atl-980901/atl98092805_00271.html
"If your dialog is being displayed as a result of a
COM method call or an
exported dll method, you need to make sure you
have the following macro at
the start of the function...
I found this thread:
thread116-194556 I am getting an assertion error when I try to call AfxGetResourceHandle. I'm not sure where to go with this.
---Evil Peer
:Blink, blink:
Er, by definition a DWORD on a 32bit processor is 32 bits. I'll assume that you mean you have to BYTEs that you want to combine into a WORD. That's pretty easy.
In C++:
unsigned char Hi;
unsigned char Low;
unsigned short Combined;
Combined = (Hi << 8) | Low;
<< is the shift...
I'm afraid I'm not familiar with your software package, and I'm even less familiar with using a DEF file for a DLL. But if your software package is anything like VC++, at some point you need to declare a function as dllexport. Here's a prototype from a DLL I wrote last week:
unsigned char...
I have a dialog-based program that I want to execute a function on startup, after the window is drawn (so that the user knows the program is running).
Unfortunately, there are only two places I can figure to make the call. The first is in OnInitDialog, which unfortunately is before the window...
UINT is unsigned integer.
The difference between BOOL and bool is... well, I'm not really sure typewise, but BOOL is MS's implementation that's been around for quite some time and bool is the ANSI C implementation that hasn't been around quite as long. Since there is no such animal as a...
Well, it seems I've run into MSKB article Q177135 (ODBC stuff in DLL global scope causes GPF "by design").
Now I am left with the task of removing a global database object, while retaining global access to it, and without breaking current function compatibility (which means moving...
Well, throwing the extern "C"s into the DLL header and main source file worked well enough for one of the DLLs. I'm going to go apply it to the other now. In my previous question, I was really asking more about the placement of the stuff with reguards to the DLL and program more so...
Well, I have to admit that I'm a little foggy on what exactly you are asking for, but you should be able to create a simple dialog box to accomplish what you need.
-Create a dialog with a edit box in resources
-Use classwizard to derive a class for the dialog
-Use classwizard to attach a...
The only error messages I receive (when compiling for C) are several "unresolved external symbol" refering to the DLL functions. I can fix all of the C++ errors (like I said, mostly type conversions) no problem. It'll just take me forever.
This is not a standard MFC DLL I suppose...
I've written an MFC DLL that works fine with another C++ program I wrote, but now I want to use it with a C program (that I didn't write).
Upon compilation I receive several "unresolved external symbol" errors. The appropriate .h and .lib are included in the program, so I'm a little...
I removed all of the "#define new DEBUG_NEW" statements generated by MSVC++, since they had previously been giving me some problems with other classes (not sure why), and it has suddenly ceased crashing. I don't trust this lull though since it was having the same problem in release...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.