Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by evilpeer

  1. evilpeer

    Determining calling control

    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
  2. evilpeer

    DoModal in a DLL

    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...
  3. evilpeer

    DoModal in a DLL

    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
  4. evilpeer

    DWord problems

    :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...
  5. evilpeer

    Creating a dll

    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...
  6. evilpeer

    Execution on Startup

    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...
  7. evilpeer

    Non-global global?

    Twould seem that it simply is not possible. That's the response I've gotten on another board. Thanks anyway. ---Evil Peer
  8. evilpeer

    What are BOOL and UNIT?

    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...
  9. evilpeer

    Non-global global?

    Well, it seems I've run into MSKB article Q177135 (ODBC stuff in DLL global scope causes GPF &quot;by design&quot;). 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...
  10. evilpeer

    Use MFC DLL in C program?

    Well, throwing the extern &quot;C&quot;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...
  11. evilpeer

    User Input?

    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...
  12. evilpeer

    Use MFC DLL in C program?

    The only error messages I receive (when compiling for C) are several &quot;unresolved external symbol&quot; 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...
  13. evilpeer

    Use MFC DLL in C program?

    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 &quot;unresolved external symbol&quot; errors. The appropriate .h and .lib are included in the program, so I'm a little...
  14. evilpeer

    Program Crashes in NTDLL while exiting

    I removed all of the &quot;#define new DEBUG_NEW&quot; 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...
  15. evilpeer

    double to cstring

    Try the Format member function of CString. MSDN Library should provide the details you'll need.

Part and Inventory Search

Back
Top