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

Managed C++/CLI

 
QuestionForm refresh... and accept click on button while performing other task... Pin
Thilek24-Mar-09 23:31
Thilek24-Mar-09 23:31 
AnswerRe: Form refresh... and accept click on button while performing other task... Pin
N a v a n e e t h25-Mar-09 1:14
N a v a n e e t h25-Mar-09 1:14 
AnswerRe: Form refresh... and accept click on button while performing other task... Pin
erfi25-Mar-09 2:10
erfi25-Mar-09 2:10 
GeneralRe: Form refresh... and accept click on button while performing other task... Pin
Thilek25-Mar-09 3:29
Thilek25-Mar-09 3:29 
GeneralRe: Form refresh... and accept click on button while performing other task... Pin
Thilek25-Mar-09 4:04
Thilek25-Mar-09 4:04 
GeneralRe: Form refresh... and accept click on button while performing other task... [modified] Pin
erfi25-Mar-09 11:21
erfi25-Mar-09 11:21 
QuestionProblem calling C++ DLL from Excel Pin
gvanto24-Mar-09 16:12
gvanto24-Mar-09 16:12 
QuestionDebug Assertion failed error while using an mfc dll via import library in an managed console application Pin
Muhammad.Ahmad.Malik24-Mar-09 10:02
professionalMuhammad.Ahmad.Malik24-Mar-09 10:02 
I have compiled the libtorrent library in an Visual Studio 2008 mfc dll project. I want to use this dll via an import library in a managed exe console application also developed in VS 2008.

The managed application project compiles ok. But when I try to run it I get the following assertion failed error message:

Debug Assertion Failed!

File: F:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\dllinit.cpp
Line: 587

And when I press ignore I get the the following assertion failed error message

Debug Assertion Failed!

File: F:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\dllmodul.cpp
Line: 137

After I press again the application works fine.

Althogh the path for the above files is not correct these files do exist in the following folder on my system
C:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\src\mfc

The following line in dllinit.cpp is cuasing the first assertion failiure:
ASSERT(AfxGetModuleState() != AfxGetAppModuleState());

And the following line in dllmodul.cpp is cuasing the second assertion failure:
VERIFY(AfxSetModuleState(AfxGetThreadState()->m_pPrevModuleState) ==
&afxModuleState);

Can any one help me out as to why these assertion failures are ocurring and how to resolve them?
QuestionRe: Debug Assertion failed error while using an mfc dll via import library in an managed console application Pin
paxal31-Mar-09 4:02
paxal31-Mar-09 4:02 
AnswerRe: Debug Assertion failed error while using an mfc dll via import library in an managed console application Pin
Muhammad.Ahmad.Malik31-Mar-09 6:55
professionalMuhammad.Ahmad.Malik31-Mar-09 6:55 
QuestionCircular Form Reference Pin
thenutz7224-Mar-09 4:28
thenutz7224-Mar-09 4:28 
AnswerRe: Circular Form Reference [modified] Pin
led mike24-Mar-09 5:20
led mike24-Mar-09 5:20 
GeneralRe: Circular Form Reference Pin
thenutz7224-Mar-09 5:47
thenutz7224-Mar-09 5:47 
GeneralRe: Circular Form Reference Pin
led mike24-Mar-09 7:07
led mike24-Mar-09 7:07 
GeneralRe: Circular Form Reference Pin
thenutz7224-Mar-09 7:10
thenutz7224-Mar-09 7:10 
GeneralRe: Circular Form Reference Pin
led mike24-Mar-09 7:12
led mike24-Mar-09 7:12 
GeneralRe: Circular Form Reference Pin
Trollslayer4-May-09 4:26
mentorTrollslayer4-May-09 4:26 
AnswerRe: Circular Form Reference Pin
erfi25-Mar-09 1:47
erfi25-Mar-09 1:47 
QuestionCannot load 64bit CLI/C++ dll in C# project when running in Vista 64bit, .NET 3.5 Pin
ndkit24-Mar-09 3:40
ndkit24-Mar-09 3:40 
AnswerRe: Cannot load 64bit CLI/C++ dll in C# project when running in Vista 64bit, .NET 3.5 Pin
ndkit24-Mar-09 18:10
ndkit24-Mar-09 18:10 
QuestionHow to write an event handler which will be continiously looking for existence of a file Pin
naveen_bij24-Mar-09 2:25
naveen_bij24-Mar-09 2:25 
AnswerRe: How to write an event handler which will be continiously looking for existence of a file Pin
Giorgi Dalakishvili24-Mar-09 2:34
mentorGiorgi Dalakishvili24-Mar-09 2:34 
QuestionCross reference between classes Pin
Sci_fie24-Mar-09 2:17
Sci_fie24-Mar-09 2:17 
AnswerRe: Cross reference between classes Pin
N a v a n e e t h24-Mar-09 3:30
N a v a n e e t h24-Mar-09 3:30 
GeneralRe: Cross reference between classes Pin
Sci_fie24-Mar-09 4:10
Sci_fie24-Mar-09 4:10 

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.