Click here to Skip to main content
15,913,610 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
Questionsend serialized object Pin
staticv22-Jan-09 5:15
staticv22-Jan-09 5:15 
AnswerRe: send serialized object Pin
led mike22-Jan-09 6:19
led mike22-Jan-09 6:19 
GeneralRe: send serialized object [modified] Pin
staticv22-Jan-09 7:59
staticv22-Jan-09 7:59 
GeneralRe: send serialized object Pin
led mike22-Jan-09 8:22
led mike22-Jan-09 8:22 
GeneralRe: send serialized object [modified] Pin
staticv23-Jan-09 0:24
staticv23-Jan-09 0:24 
GeneralRe: send serialized object Pin
led mike23-Jan-09 5:10
led mike23-Jan-09 5:10 
GeneralRe: send serialized object Pin
staticv23-Jan-09 5:13
staticv23-Jan-09 5:13 
QuestionProblem with File Open Dialog Pin
bubuzzz22-Jan-09 5:05
bubuzzz22-Jan-09 5:05 
i am trying to write a small window form application. I use a file dialog to select a file in my computer. However, in the debug mode, when pressing the browse button, i got this error message :

"An unhandled exception of type 'System.Threading.ThreadStateException' occurred in System.Windows.Forms.dll

Additional information: 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."

This problem happen only when i try to create a object of a class in the Form1.h file. If i delete the code of creating object, everything goes fine.

I have checked the main function, it already had [STAThreadAttribute] marked on it. So, can you give me any suggestion, please? thanks
AnswerRe: Problem with File Open Dialog Pin
AVTProgrammerKeith12-Feb-10 6:12
AVTProgrammerKeith12-Feb-10 6:12 
QuestionT-SQL using Sql server Pin
maheesh22-Jan-09 2:29
maheesh22-Jan-09 2:29 
AnswerRe: T-SQL using Sql server Pin
led mike22-Jan-09 4:35
led mike22-Jan-09 4:35 
QuestionAbout T-SQL Pin
maheesh22-Jan-09 2:28
maheesh22-Jan-09 2:28 
Questioncan play video file in visual c++ window form? [modified] Pin
sai5621-Jan-09 3:01
sai5621-Jan-09 3:01 
AnswerRe: can play video file in visual c++ window form? Pin
Mark Salsbery21-Jan-09 5:38
Mark Salsbery21-Jan-09 5:38 
GeneralRe: can play video file in visual c++ window form? Pin
sai5626-Jan-09 22:58
sai5626-Jan-09 22:58 
GeneralRe: can play video file in visual c++ window form? Pin
Mark Salsbery27-Jan-09 5:55
Mark Salsbery27-Jan-09 5:55 
QuestionStreamWriter and char array [modified] Pin
staticv20-Jan-09 5:32
staticv20-Jan-09 5:32 
AnswerRe: StreamWriter and char array Pin
led mike20-Jan-09 6:04
led mike20-Jan-09 6:04 
AnswerRe: StreamWriter and char array Pin
George L. Jackson21-Jan-09 7:26
George L. Jackson21-Jan-09 7:26 
QuestionSql server 2005 connection through VC++ Pin
maheesh19-Jan-09 17:38
maheesh19-Jan-09 17:38 
AnswerRe: Sql server 2005 connection through VC++ Pin
N a v a n e e t h19-Jan-09 22:03
N a v a n e e t h19-Jan-09 22:03 
GeneralRe: Sql server 2005 connection through VC++ Pin
maheesh22-Jan-09 2:26
maheesh22-Jan-09 2:26 
QuestionHow to open ms excel 2007 file in VC++ Pin
maheesh19-Jan-09 0:17
maheesh19-Jan-09 0:17 
AnswerRe: How to open ms excel 2007 file in VC++ Pin
staticv19-Jan-09 4:46
staticv19-Jan-09 4:46 
Questionwinsock not sending udp packet form multithreaded app.. Pin
IKoB18-Jan-09 11:49
IKoB18-Jan-09 11:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.