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

Managed C++/CLI

 
GeneralRe: Convert from __GC String to const WCHAR Pin
DR Clevenger7-Nov-03 3:20
DR Clevenger7-Nov-03 3:20 
GeneralRe: Convert from __GC String to const WCHAR Pin
Tom Archer7-Nov-03 3:50
Tom Archer7-Nov-03 3:50 
GeneralRe: Convert from __GC String to const WCHAR Pin
DR Clevenger7-Nov-03 5:27
DR Clevenger7-Nov-03 5:27 
GeneralString question Pin
Ereinion6-Nov-03 11:24
Ereinion6-Nov-03 11:24 
GeneralRe: String question Pin
George L. Jackson20-Nov-03 7:38
George L. Jackson20-Nov-03 7:38 
GeneralError loading C++.Net dll on networkdrv Pin
michaelschmitt3-Nov-03 0:40
michaelschmitt3-Nov-03 0:40 
GeneralRe: Error loading C++.Net dll on networkdrv Pin
J. Dunlap3-Nov-03 8:45
J. Dunlap3-Nov-03 8:45 
GeneralRe: Error loading C++.Net dll on networkdrv Pin
Michael_Sch3-Nov-03 10:04
sussMichael_Sch3-Nov-03 10:04 
Hi!

But which restrictions? I do have w/r rights for that drv.

In addition, my .exe has already successfully called 1 other dll (which is native c++ (fortunately Smile | :) ) before calling the c++ managed dll.

Meanwhile, I used the MS Dependeny walker. The profile results
seem to show that there is a problem even when the program
is started from a local drive ( by the way: which u don't notice
without any tool, because it runs correctly )

Profile: ( static link this time )

caloader.exe = my exe
cabridge = my c++ managed.dll

Started "CALOADER.EXE" (process 0x6E8) at address 0x00400000.
Loaded "NTDLL.DLL" at address 0x77F40000.
.
.
.
Loaded "CABRIDGE.DLL" at address 0x10000000.
Loaded "MSCOREE.DLL" at address 0x79170000.
DllMain(0x78000000, DLL_PROCESS_ATTACH, 0x00000000) in "RPCRT4.DLL" called.
DllMain(0x78000000, DLL_PROCESS_ATTACH, 0x00000000)
.
.
.


Entrypoint reached. All implicit modules have been loaded.
DllMain(0x10000000, DLL_PROCESS_ATTACH, 0x0012FD30) in "CABRIDGE.DLL" called.
Loaded "MSCORWKS.DLL" at address 0x791B0000.
Loaded "MSVCR70.DLL" at address 0x7C000000.
Loaded "FUSION.DLL" at address 0x79040000.
.
.
.

Loaded "MSCORLIB.DLL" at address 0x79780000.
Loaded "MSCORLIB.DLL" at address 0x79960000.
DllMain(0x10000000, DLL_PROCESS_ATTACH, 0x0012FD30) in "CABRIDGE.DLL" returned 1 (0x1).
DllMain(0x77E40000, DLL_THREAD_ATTACH, 0x00000000) in "KERNEL32.DLL" called.
DllMain(0x77E40000, DLL_THREAD_ATTACH, 0x00000000) in "KERNEL32.DLL" returned 1 (0x1).
DllMain(0x77DA0000, DLL_THREAD_ATTACH, 0x00000000) in "ADVAPI32.DLL" called.
DllMain(0x77DA0000, DLL_THREAD_ATTACH, 0x00000000) in "ADVAPI32.DLL" returned 14679041 (0xDFFC01).
DllMain(0x78000000, DLL_THREAD_ATTACH, 0x00000000) in "RPCRT4.DLL" called.
.
.
First chance exception 0x80000003 (Breakpoint) occurred in "MSCOREE.DLL" at address 0x79172064.
First chance exception 0xC0000005 (Access Violation) occurred in "CABRIDGE.DLL" at address 0x10000005.
Second chance exception 0xC0000005 (Access Violation) occurred in "CABRIDGE.DLL" at address 0x10000005.
Exited "CALOADER.EXE" (process 0x6E8) with code 128 (0x80).



If you did read until here, thanks Smile | :)


here's my dll:

#include "stdafx.h"
#include "cabridge.h"
#include "windows.h"
extern "C"
{
#include <string.h>
}

#using "mycsharp.dll"

using namespace System;
using namespace mycsharp;


BOOL WINAPI DllMain (HMODULE hModule, DWORD x, LPVOID <)
{
return TRUE;
}

extern "C"
{
__declspec (dllexport) void __cdecl CallCobolAssistBridge(char *pszFileName, int icode, int hwndoutput)
{

String __gc *managed_input = new String(pszFileName);

mycsharp __gc *Mycsharp;
Mycsharp = new mycsharp;

Mycsharp ->DOStuff(managed_input,icode, hwndoutput);

return;
}
}


i hope this wasnt to much..
tanks,
byebye
GeneralRe: Error loading C++.Net dll on networkdrv Pin
Michael_Sch3-Nov-03 10:07
sussMichael_Sch3-Nov-03 10:07 
GeneralRe: Error loading C++.Net dll on networkdrv Pin
Michael_Sch3-Nov-03 11:09
sussMichael_Sch3-Nov-03 11:09 
GeneralUML help Pin
code_struck2-Nov-03 8:54
code_struck2-Nov-03 8:54 
GeneralRe: UML help Pin
Dave Kreskowiak4-Nov-03 12:49
mveDave Kreskowiak4-Nov-03 12:49 
GeneralRe: UML help Pin
code_struck4-Nov-03 14:07
code_struck4-Nov-03 14:07 
GeneralRe: UML help Pin
Dave Kreskowiak5-Nov-03 12:44
mveDave Kreskowiak5-Nov-03 12:44 
GeneralVisual C++ .NET Compiler Error ... Pin
SD328-Oct-03 23:43
SD328-Oct-03 23:43 
GeneralDial-up server in windows 98 Pin
choupani25-Oct-03 4:07
choupani25-Oct-03 4:07 
GeneralConverting System::String to char* Pin
peter271324-Oct-03 9:10
peter271324-Oct-03 9:10 
GeneralRe: Converting System::String to char* Pin
Tom Archer2-Nov-03 13:20
Tom Archer2-Nov-03 13:20 
GeneralMixing managed and UNmanaged code... Pin
raitz23-Oct-03 1:46
raitz23-Oct-03 1:46 
GeneralRe: Mixing managed and UNmanaged code... Pin
Nemanja Trifunovic23-Oct-03 6:05
Nemanja Trifunovic23-Oct-03 6:05 
GeneralHelp would be greatly appreciated Pin
Andrew Torrance22-Oct-03 22:09
Andrew Torrance22-Oct-03 22:09 
GeneralSlow Windows Forms Designer Pin
Anonymous22-Oct-03 14:13
Anonymous22-Oct-03 14:13 
General__value type doubt... Pin
raitz22-Oct-03 4:44
raitz22-Oct-03 4:44 
GeneralRe: __value type doubt... Pin
Tom Archer6-Nov-03 17:36
Tom Archer6-Nov-03 17:36 
Generalprintf position Pin
nail8521-Oct-03 21:30
nail8521-Oct-03 21:30 

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.