Click here to Skip to main content
15,895,656 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Manually Selecting / De-Selecting a Radio Btn in MFC Pin
David Crow17-Mar-05 7:48
David Crow17-Mar-05 7:48 
GeneralRe: Manually Selecting / De-Selecting a Radio Btn in MFC Pin
John R. Shaw17-Mar-05 8:26
John R. Shaw17-Mar-05 8:26 
GeneralRe: Manually Selecting / De-Selecting a Radio Btn in MFC Pin
WarChildWTS27-Mar-05 9:21
WarChildWTS27-Mar-05 9:21 
GeneralRe: Manually Selecting / De-Selecting a Radio Btn in MFC Pin
WarChildWTS27-Mar-05 9:29
WarChildWTS27-Mar-05 9:29 
GeneralRe: Manually Selecting / De-Selecting a Radio Btn in MFC Pin
John R. Shaw30-Mar-05 6:21
John R. Shaw30-Mar-05 6:21 
GeneralRe: Manually Selecting / De-Selecting a Radio Btn in MFC Pin
WarChildWTS30-Mar-05 7:01
WarChildWTS30-Mar-05 7:01 
GeneralRe: Manually Selecting / De-Selecting a Radio Btn in MFC Pin
John R. Shaw30-Mar-05 8:03
John R. Shaw30-Mar-05 8:03 
GeneralCalling C# dll from C++ 6.0 and GPF Pin
Al_Pennyworth17-Mar-05 7:10
Al_Pennyworth17-Mar-05 7:10 
This is a little difficult to explain. I created a dll in .NET using C# and I need to call this dll from a Visual C++ 6.0 application. I read numerous materials on setting the C# dll up with COM Interop and I think I have it working. Now for the difficult part: when I call the function to launch the UI in the C# dll, it comes up, then I do my thing and close it down. I then go through the functionality again and the dll is called w/ no problems, the form comes up, etc. When I close it down, I will get a GPF. In trying to trace the problem, it returns from my dll, then returns from my function in the 6.0 c++ application, and returns from another function. I cannot discover where the GPF is occurring. Here is a basic outline of my 6.0 c++ function:

void functionname
{
// Initialize COM.
HRESULT hr = CoInitialize(NULL);

// Create the interface pointer.
IManageInterfacePtr pIInterface(__uuidof(ManagerInterface));

// Call the Add method.
pIInterface->LaunchRSSDLL(string, string, string);

pIInterface->Dispose(); <--this is from trying something with the C# dll

pIInterface->Release();

// Uninitialize COM.
CoUninitialize();
}

I have put try/catch inside this function, around the call to this function, inside my C# DLL COM interface, and I still cannot find where the gpf is occurring. This is my first C# dll so be please be patient if I so kind of idiotic in describing this. Any ideas on what I may be missing? Any ideas on what I can look at?
GeneralRe: Calling C# dll from C++ 6.0 and GPF Pin
Al_Pennyworth18-Mar-05 5:15
Al_Pennyworth18-Mar-05 5:15 
GeneralGetObjectSchema always returns -1 Pin
MacWarrior17-Mar-05 6:18
MacWarrior17-Mar-05 6:18 
GeneralRe: GetObjectSchema always returns -1 Pin
Blake Miller17-Mar-05 6:51
Blake Miller17-Mar-05 6:51 
GeneralRe: GetObjectSchema always returns -1 Pin
MacWarrior17-Mar-05 8:10
MacWarrior17-Mar-05 8:10 
GeneralRe: GetObjectSchema always returns -1 Pin
Ravi Bhavnani17-Mar-05 7:49
professionalRavi Bhavnani17-Mar-05 7:49 
GeneralRe: GetObjectSchema always returns -1 Pin
MacWarrior17-Mar-05 8:12
MacWarrior17-Mar-05 8:12 
GeneralRe: GetObjectSchema always returns -1 Pin
Ravi Bhavnani17-Mar-05 13:25
professionalRavi Bhavnani17-Mar-05 13:25 
GeneralCreate a multithread for reading a file Pin
inbakumar.G17-Mar-05 5:33
inbakumar.G17-Mar-05 5:33 
GeneralRe: Create a multithread for reading a file Pin
David Crow17-Mar-05 5:42
David Crow17-Mar-05 5:42 
GeneralRe: Create a multithread for reading a file Pin
John M. Drescher17-Mar-05 6:06
John M. Drescher17-Mar-05 6:06 
Questionset-alpha/numeric status, how to? Pin
Lvca17-Mar-05 4:58
Lvca17-Mar-05 4:58 
GeneralTaking actions depending on what was clicked Pin
luizferp17-Mar-05 3:33
luizferp17-Mar-05 3:33 
GeneralRe: Taking actions depending on what was clicked Pin
Iain Clarke, Warrior Programmer17-Mar-05 5:22
Iain Clarke, Warrior Programmer17-Mar-05 5:22 
Generalfile output Pin
mpapeo17-Mar-05 1:52
mpapeo17-Mar-05 1:52 
GeneralRe: file output Pin
eli1502197917-Mar-05 2:20
eli1502197917-Mar-05 2:20 
GeneralRe: file output Pin
mpapeo17-Mar-05 2:44
mpapeo17-Mar-05 2:44 
GeneralRe: file output Pin
David Crow17-Mar-05 2:48
David Crow17-Mar-05 2:48 

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.