Click here to Skip to main content
15,913,296 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Now, how to delete? Pin
Astricks11-Feb-07 22:50
Astricks11-Feb-07 22:50 
GeneralRe: Now, how to delete? Pin
Hamid_RT12-Feb-07 6:56
Hamid_RT12-Feb-07 6:56 
GeneralRe: Now, how to delete? Pin
jhwurmbach12-Feb-07 6:58
jhwurmbach12-Feb-07 6:58 
GeneralRe: Now, how to delete? Pin
Hamid_RT12-Feb-07 7:15
Hamid_RT12-Feb-07 7:15 
GeneralRe: Now, how to delete? Pin
toxcct12-Feb-07 20:25
toxcct12-Feb-07 20:25 
AnswerRe: Now, how to delete? Pin
toxcct11-Feb-07 22:28
toxcct11-Feb-07 22:28 
GeneralRe: Now, how to delete? Pin
Astricks11-Feb-07 22:48
Astricks11-Feb-07 22:48 
Questionclass library Pin
dalbhide bipin11-Feb-07 21:03
dalbhide bipin11-Feb-07 21:03 
hi..

I hve design .net based C++ class library. I want to use it in vb.net proj.
My class library code compile without an error. But when i access that library in vb.net proj it gives me an error (its run time error)

error discription:

Unhandled Exception: System.BadImageFormatException: Could not load file or asse
mbly 'Appa, Version=1.0.2598.12775, Culture=neutral, PublicKeyToken=null' or one
of its dependencies. An attempt was made to load a program with an incorrect fo
rmat.
File name: 'Appa, Version=1.0.2598.12775, Culture=neutral, PublicKeyToken=null'
at Anna.MyModule.Main()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\M
icrosoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure lo
gging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fus
ion!EnableLog].
===========================================================
// Appa.h
#pragma once
using namespace System;
namespace Appa
{
public ref class MyClass
{
public:
int Add(int x, int y);
};
}

===========================================================
// This is the main DLL file.

#include "stdafx.h"
#include "Appa.h"
namespace Appa
{
int MyClass :: Add(int x, int y)
{
int k = x+y;
return k;
}
}
=================================================
//MyModule.vb
Module MyModule

Sub Main()

Dim obj As New Appa.MyClass
Console.WriteLine(obj.Add(10, 15))
End Sub

End Module
=================================================

plz help me guys




AnswerRe: class library Pin
Cedric Moonen11-Feb-07 21:10
Cedric Moonen11-Feb-07 21:10 
GeneralRe: class library Pin
dalbhide bipin11-Feb-07 21:37
dalbhide bipin11-Feb-07 21:37 
GeneralRe: class library Pin
Cedric Moonen11-Feb-07 23:15
Cedric Moonen11-Feb-07 23:15 
QuestionThe best place for ReadFile() Pin
awwase11-Feb-07 19:45
awwase11-Feb-07 19:45 
AnswerRe: The best place for ReadFile() Pin
Ram Murali11-Feb-07 20:19
Ram Murali11-Feb-07 20:19 
AnswerRe: The best place for ReadFile() Pin
Roger Stoltz11-Feb-07 21:58
Roger Stoltz11-Feb-07 21:58 
GeneralRe: The best place for ReadFile() Pin
awwase12-Feb-07 4:04
awwase12-Feb-07 4:04 
GeneralRe: The best place for ReadFile() Pin
Roger Stoltz12-Feb-07 4:21
Roger Stoltz12-Feb-07 4:21 
QuestionRight Justification of Text Pin
T.RATHA KRISHNAN11-Feb-07 19:06
T.RATHA KRISHNAN11-Feb-07 19:06 
AnswerRe: Right Justification of Text Pin
Naveen11-Feb-07 19:52
Naveen11-Feb-07 19:52 
GeneralRe: Right Justification of Text Pin
T.RATHA KRISHNAN11-Feb-07 20:32
T.RATHA KRISHNAN11-Feb-07 20:32 
GeneralRe: Right Justification of Text Pin
Naveen11-Feb-07 20:50
Naveen11-Feb-07 20:50 
GeneralRe: Right Justification of Text Pin
Hamid_RT12-Feb-07 6:50
Hamid_RT12-Feb-07 6:50 
QuestionHow to mimic the Windows XP Welcome Screen in MFC ? Pin
erajsri11-Feb-07 18:22
erajsri11-Feb-07 18:22 
AnswerRe: How to mimic the Windows XP Welcome Screen in MFC ? Pin
Waldermort11-Feb-07 20:47
Waldermort11-Feb-07 20:47 
GeneralRe: How to mimic the Windows XP Welcome Screen in MFC ? Pin
erajsri11-Feb-07 20:57
erajsri11-Feb-07 20:57 
GeneralRe: How to mimic the Windows XP Welcome Screen in MFC ? Pin
Waldermort11-Feb-07 21:17
Waldermort11-Feb-07 21:17 

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.