Click here to Skip to main content
15,905,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General[RESOLVED]: Compile Error during project conversion from VC++6.0 to VC++ 2005 [modified] Pin
Priya_Sundar6-Mar-08 23:33
Priya_Sundar6-Mar-08 23:33 
GeneralRe: Compile Error during project conversion from VC++6.0 to VC++ 2005 Pin
toxcct6-Mar-08 23:58
toxcct6-Mar-08 23:58 
GeneralRe: Compile Error during project conversion from VC++6.0 to VC++ 2005 Pin
Priya_Sundar7-Mar-08 0:38
Priya_Sundar7-Mar-08 0:38 
GeneralRe: Compile Error during project conversion from VC++6.0 to VC++ 2005 Pin
Nathan Holt at EMOM7-Mar-08 5:58
Nathan Holt at EMOM7-Mar-08 5:58 
GeneralRe: Compile Error during project conversion from VC++6.0 to VC++ 2005 Pin
prasad_som7-Mar-08 4:01
prasad_som7-Mar-08 4:01 
GeneralRe: Compile Error during project conversion from VC++6.0 to VC++ 2005 Pin
Mike Dimmick7-Mar-08 13:56
Mike Dimmick7-Mar-08 13:56 
General[RESOLVED]: Compile Error during project conversion from VC++6.0 to VC++ 2005 Pin
Priya_Sundar9-Mar-08 18:38
Priya_Sundar9-Mar-08 18:38 
GeneralProblem accessing C++ Win32 Dll from Managed C++/C# application Pin
s.m.shah6-Mar-08 23:19
s.m.shah6-Mar-08 23:19 
I have a C++ win32 console application (built using Visual Studio 2005). I have complete code. I need to convert this console application to a dll and I want to call this DLL in a ASP.Net web service (Just because I know how to create an ASP.Net webservice). I am totally new to C++ programming but now I am getting better at it.

I have successfuly created the DLL of that console app (by changing project properties)and also imported the DLL function successfuly. I can debug the dll code when called from my C#/C++ managed console app (I have tried both C++ and C#).

The problem is when ever the code in DLL uses a std::vector, or any other STL based contianers. The code gives exception i.e.

An unhandled exception of type 'System.AccessViolationException' occurred in C++ManagedConsole.exe

Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.


can someone please point me to a possible solution for this problem. Though I have the code but I cant just remove all the code using the std::vector, or other containers.


Thanking in advance for any kind of hints.
GeneralRe: Problem accessing C++ Win32 Dll from Managed C++/C# application Pin
toxcct6-Mar-08 23:30
toxcct6-Mar-08 23:30 
GeneralRe: Problem accessing C++ Win32 Dll from Managed C++/C# application Pin
s.m.shah6-Mar-08 23:41
s.m.shah6-Mar-08 23:41 
GeneralRe: Problem accessing C++ Win32 Dll from Managed C++/C# application Pin
toxcct6-Mar-08 23:56
toxcct6-Mar-08 23:56 
GeneralData in Memory Pin
Anu_Bala6-Mar-08 22:37
Anu_Bala6-Mar-08 22:37 
GeneralRe: Data in Memory Pin
CPallini7-Mar-08 0:29
mveCPallini7-Mar-08 0:29 
GeneralRe: Data in Memory Pin
Koder7-Mar-08 9:17
Koder7-Mar-08 9:17 
Questionabout return values.. Pin
savitri6-Mar-08 22:29
savitri6-Mar-08 22:29 
GeneralRe: about return values.. Pin
toxcct6-Mar-08 22:33
toxcct6-Mar-08 22:33 
GeneralRe: about return values.. Pin
Rajkumar R6-Mar-08 22:53
Rajkumar R6-Mar-08 22:53 
GeneralRe: about return values.. Pin
Maxwell Chen6-Mar-08 23:08
Maxwell Chen6-Mar-08 23:08 
QuestionRe: about return values.. Pin
Rajesh R Subramanian6-Mar-08 23:15
professionalRajesh R Subramanian6-Mar-08 23:15 
GeneralRe: about return values.. Pin
Maxwell Chen6-Mar-08 23:17
Maxwell Chen6-Mar-08 23:17 
GeneralRe: about return values.. Pin
Rajkumar R6-Mar-08 23:56
Rajkumar R6-Mar-08 23:56 
GeneralRe: about return values.. Pin
toxcct6-Mar-08 23:58
toxcct6-Mar-08 23:58 
QuestionRe: about return values.. Pin
savitri6-Mar-08 23:25
savitri6-Mar-08 23:25 
GeneralRe: about return values.. Pin
toxcct6-Mar-08 23:28
toxcct6-Mar-08 23:28 
GeneralRe: about return values.. Pin
savitri6-Mar-08 23:49
savitri6-Mar-08 23: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.