Click here to Skip to main content
16,005,491 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Search engine inquiry Pin
Matt Godbolt2-Oct-05 4:24
Matt Godbolt2-Oct-05 4:24 
Questionlinked list and random numbers Pin
eprt28-Sep-05 6:40
eprt28-Sep-05 6:40 
AnswerRe: linked list and random numbers Pin
Christian Graus28-Sep-05 7:43
protectorChristian Graus28-Sep-05 7:43 
QuestionBeginner C++/CLI Handle Question... Pin
Cheese Weasel28-Sep-05 6:20
Cheese Weasel28-Sep-05 6:20 
AnswerRe: Beginner C++/CLI Handle Question... Pin
Christian Graus28-Sep-05 7:54
protectorChristian Graus28-Sep-05 7:54 
QuestionNeed an example, Please Pin
Funkytroll0127-Sep-05 6:56
Funkytroll0127-Sep-05 6:56 
AnswerRe: Need an example, Please Pin
mikanu27-Sep-05 11:00
mikanu27-Sep-05 11:00 
Questionusing FILE from Managed C++ Pin
IsaacB26-Sep-05 6:42
IsaacB26-Sep-05 6:42 
Hi, I'm new to managed C++ and I was wondering how could I use fopen from managed C++

I have to call a legacy function that uses FILE but when i try to compile my code I get the following errors

fatal error LNK1120: 2 unresolved externals
error LNK2020: unresolved token (0A00002C) delete
error LNK2020: unresolved token (0A000018) _CxxThrowException

the code looks something like this

#pragma once

using namespace System;
//using namespace System::IO;
using namespace System::Runtime::InteropServices;

#include <openssl rsa.h="">
#include <iostream>

namespace OpenSSLWrapper
{
public __gc class RSAWrapper
{
public:
int RSAEncryption()
{
RSA *privateKey;

FILE *keyFile = fopen("C:\\Documents and Settings\\isaac\\Desktop\\Factura\\.key", "r");
if (keyFile == NULL)
return -1;

fclose(keyFile);



Byte sourceArray[] = __gc new Byte[2];
Byte encryptedArray[] = __gc new Byte[5000];
{


unsigned char __pin *source = &sourceArray[0];
unsigned char __pin *encrypted = &encryptedArray[0];
sourceArray[0] = 7;
sourceArray[1] = 5;

}

return 0;
}

};
}


Thanks in advance
Isaac B
AnswerRe: using FILE from Managed C++ Pin
prasad_som26-Sep-05 19:31
prasad_som26-Sep-05 19:31 
QuestionExe in debug/release don't work outside VS ! Pin
ZeNiTHaR26-Sep-05 1:02
ZeNiTHaR26-Sep-05 1:02 
AnswerRe: Exe in debug/release don't work outside VS ! Pin
RichardS27-Sep-05 21:22
RichardS27-Sep-05 21:22 
AnswerRe: Exe in debug/release don't work outside VS ! Pin
ArunKumar Yalamarthy29-Sep-05 2:42
ArunKumar Yalamarthy29-Sep-05 2:42 
Questiondifference betwwen static &amp; dynamic in MFC Pin
bujji_bec25-Sep-05 20:50
bujji_bec25-Sep-05 20:50 
AnswerRe: difference betwwen static &amp; dynamic in MFC Pin
Neagoe Gabriel26-Sep-05 3:57
Neagoe Gabriel26-Sep-05 3:57 
Questionconvert interbase database file into sql server Pin
briju23-Sep-05 23:25
briju23-Sep-05 23:25 
QuestionInterlockedExchange64 and .NET assembly permission issues. Pin
mikanu23-Sep-05 7:39
mikanu23-Sep-05 7:39 
NewsRe: InterlockedExchange64 and .NET assembly permission issues. Pin
mikanu28-Sep-05 5:17
mikanu28-Sep-05 5:17 
QuestionEndReceiveFrom problem Pin
toto567822-Sep-05 20:54
toto567822-Sep-05 20:54 
QuestionADO RecordSets Pin
budidharma22-Sep-05 17:27
budidharma22-Sep-05 17:27 
QuestionReading Excel on Unix using C++ Pin
Tanz22-Sep-05 12:15
Tanz22-Sep-05 12:15 
QuestionVC++ 6.0 Database Programming Pin
budidharma22-Sep-05 3:49
budidharma22-Sep-05 3:49 
AnswerRe: VC++ 6.0 Database Programming Pin
John M. Drescher22-Sep-05 5:14
John M. Drescher22-Sep-05 5:14 
GeneralRe: VC++ 6.0 Database Programming Pin
budidharma22-Sep-05 5:57
budidharma22-Sep-05 5:57 
GeneralRe: VC++ 6.0 Database Programming Pin
John M. Drescher22-Sep-05 6:51
John M. Drescher22-Sep-05 6:51 
GeneralRe: VC++ 6.0 Database Programming Pin
budidharma22-Sep-05 6:06
budidharma22-Sep-05 6:06 

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.