home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / misc / 6553 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.5 KB

  1. Path: sparky!uunet!gatech!pitt!cup.edu!mcc0798
  2. From: mcc0798@cup.edu
  3. Newsgroups: comp.os.ms-windows.misc
  4. Subject: .DLL Programming Problems
  5. Message-ID: <1993Jan25.120646.183@cup.edu>
  6. Date: 25 Jan 93 17:06:45 GMT
  7. Organization: California University of Pennsylvania, California, PA
  8. Lines: 34
  9.  
  10. Heah,
  11.     Anyone know how to get a dialog box to popup in a Windows 3.1 DLL?
  12.  
  13.     I'm using Turbo C++ for Windows 3.1 and Windows 3.1 and I'm trying to
  14. develop a neat little File Manager Extension.  I've tried to do it two
  15. completely different ways:
  16.     
  17.         Programming only in C (with file extension of .C to force C
  18.         only compilation).  
  19.         Result:  Windows API function CreateWindow() fails, reason
  20.         unknown.
  21.     
  22.         Programming in C++ with Object Windows Libraries.
  23.         Result:  OWL displays the all to framiliar "Error: -5"
  24.         (EM_INVALIDWINDOW).
  25.  
  26.  
  27.  
  28. I am sure that the dialog reesource exists and that I'm using the correct
  29. module handle.  A .DLL example that pops up a modal dialog box  would be most
  30. helpful (OWL preferred).  The only examples I've found on my disk poped up a
  31. plain old window...sure I could make my dialog box dynamicly but I would prefer
  32. make a template.
  33.  
  34. Any comments (even shots in the dark) are welcome.  More details available on
  35. request.
  36.  
  37. For those that are curious this Extension will include such features as:
  38.     BMP/PCX/GIF/JPG viewer (That multitasks properly!)
  39.     A text file viewer (that can handle any file size!)
  40.     A utility to change file(s) date and time to user specified d/t
  41.     Maybe a seperate launch menu that would mirror program manager groups?
  42.  
  43.   
  44.