Click here to Skip to main content
15,892,674 members
Home / Discussions / C#
   

C#

 
QuestionAdd files to a Msi installer Pin
Radu_209-Apr-08 4:18
Radu_209-Apr-08 4:18 
GeneralRe: Add files to a Msi installer Pin
led mike9-Apr-08 4:42
led mike9-Apr-08 4:42 
GeneralGetting Files LastWriteTime Pin
narayanagvs9-Apr-08 3:59
narayanagvs9-Apr-08 3:59 
GeneralRe: Getting Files LastWriteTime Pin
Abhijit Jana9-Apr-08 4:52
professionalAbhijit Jana9-Apr-08 4:52 
GeneralRe: Getting Files LastWriteTime Pin
narayanagvs9-Apr-08 5:49
narayanagvs9-Apr-08 5:49 
GeneralRe: Getting Files LastWriteTime Pin
Luc Pattyn9-Apr-08 6:32
sitebuilderLuc Pattyn9-Apr-08 6:32 
GeneralRe: Getting Files LastWriteTime Pin
Dave Kreskowiak9-Apr-08 7:05
mveDave Kreskowiak9-Apr-08 7:05 
GeneralInterop c# and cpp unmanaged [modified] Pin
Tomerland9-Apr-08 3:56
Tomerland9-Apr-08 3:56 
Dear gurus,

finally I get totally crazy with interoperability of un/managed code.

I have the unmanged Cpp-Class "MyCppClass" with one simple member-function "add()". This class is not shown here. Now I build a managed wrapper class "MyCppClassWrapper".

I create an instance of this wrapper in a C#-Program and then I want to call the method "add()".



<code>
#include "MyCppClass.h"

namespace Managed {

public ref class MyCppClassWrapper {
MyCppClass *pInst;

public:
int add(int a, int b);
};
}
// implementation
int MyCppClassWrapper::add( int a, int b) {
return pInst->add(a,b);
}


</code>

If I the program starts, I get a FileNotFoundException: "The specified module could not be found. (Exception from HRESULT: 0x8007007E)"


But if I comment out "return pInst->add(a,b);" then everything works fine. It seems that I cannot call the function add() of the pInst-Pointer.

I'm totally lost

<div class="ForumMod">modified on Wednesday, April 9, 2008 10:05 AM</div>
GeneralRe: Interop c# and cpp unmanaged Pin
led mike9-Apr-08 4:45
led mike9-Apr-08 4:45 
GeneralInteger Question Pin
jchigg20009-Apr-08 3:53
jchigg20009-Apr-08 3:53 
GeneralRe: Integer Question Pin
Colin Angus Mackay9-Apr-08 3:57
Colin Angus Mackay9-Apr-08 3:57 
GeneralRe: Integer Question Pin
jchigg20009-Apr-08 3:58
jchigg20009-Apr-08 3:58 
GeneralRe: Integer Question Pin
PIEBALDconsult9-Apr-08 13:25
mvePIEBALDconsult9-Apr-08 13:25 
GeneralRe: Integer Question Pin
Dave Kreskowiak9-Apr-08 7:02
mveDave Kreskowiak9-Apr-08 7:02 
Generalregex.replace question Pin
livez9-Apr-08 3:15
livez9-Apr-08 3:15 
AnswerRe: regex.replace question Pin
Eslam Afifi9-Apr-08 6:47
Eslam Afifi9-Apr-08 6:47 
GeneralRe: regex.replace question Pin
livez10-Apr-08 20:42
livez10-Apr-08 20:42 
GeneralRe: regex.replace question Pin
Eslam Afifi10-Apr-08 23:39
Eslam Afifi10-Apr-08 23:39 
GeneralIs .Net framework supporting for varcharts or is there any control supports for this... Pin
ddinesh9-Apr-08 3:11
ddinesh9-Apr-08 3:11 
GeneralRe: Is .Net framework supporting for varcharts or is there any control supports for this... Pin
Gareth H9-Apr-08 3:25
Gareth H9-Apr-08 3:25 
QuestionIs there any free end-user report designer? Pin
Mr. Candyman9-Apr-08 2:59
Mr. Candyman9-Apr-08 2:59 
GeneralRe: Is there any free end-user report designer? Pin
Gareth H9-Apr-08 3:26
Gareth H9-Apr-08 3:26 
AnswerRe: Is there any free end-user report designer? Pin
Mr. Candyman9-Apr-08 3:49
Mr. Candyman9-Apr-08 3:49 
GeneralRe: Is there any free end-user report designer? Pin
Jesse Squire9-Apr-08 6:15
Jesse Squire9-Apr-08 6:15 
GeneralRe: Is there any free end-user report designer? Pin
Mr. Candyman9-Apr-08 23:36
Mr. Candyman9-Apr-08 23:36 

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.