![]() |
|
#1
|
|||
|
|||
Problem with ThreadHi
I want to use an OpenFileDialog box. But when I try to show the dialog box, I get the following error: "Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process" [STAThreadAttribute] is already defined on the Main function, but I still getting the error message. CPP / C++ / C Code:
|
|||
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can I call Fl::lock() and Fl::unlock() from the Main Thread? | nharder | FLTK Forum | 1 | 15-May-2009 14:13 |
| Thread synchronization Assignment help!! | rossi143 | C Programming Language | 1 | 25-Mar-2007 21:10 |
| Thread | itch | C++ Forum | 7 | 10-May-2006 16:10 |
| Sending message to GUI thread that ISNT the main thread | mpviii | MS Visual C++ / MFC Forum | 1 | 20-Apr-2005 13:49 |
| Problem with Thread | r_m_zhang | MS Visual C++ / MFC Forum | 0 | 08-Mar-2005 08:59 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The