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

Managed C++/CLI

 
GeneralRe: Almost desperate, C# into C++, why not work? Pin
adaoja22-Aug-03 7:04
adaoja22-Aug-03 7:04 
GeneralRe: Almost desperate, C# into C++, why not work? Pin
Nemanja Trifunovic22-Aug-03 7:41
Nemanja Trifunovic22-Aug-03 7:41 
GeneralRe: Almost desperate, C# into C++, why not work? Pin
Nemanja Trifunovic22-Aug-03 7:48
Nemanja Trifunovic22-Aug-03 7:48 
GeneralRe: Almost desperate, C# into C++, why not work? Pin
adaoja22-Aug-03 11:02
adaoja22-Aug-03 11:02 
GeneralRe: Almost desperate, C# into C++, why not work? Pin
Nemanja Trifunovic22-Aug-03 11:47
Nemanja Trifunovic22-Aug-03 11:47 
GeneralRe: Almost desperate, C# into C++, why not work? Pin
adaoja25-Aug-03 1:17
adaoja25-Aug-03 1:17 
GeneralRe: Almost desperate, C# into C++, why not work? Pin
Anthony_Yio26-Aug-03 1:53
Anthony_Yio26-Aug-03 1:53 
GeneralRe: Almost desperate, C# into C++, why not work? Pin
adaoja26-Aug-03 2:30
adaoja26-Aug-03 2:30 
Sure sir.

I´m using WSE 1.0 SP1 on Microsoft.NET framework 1.0
I have installed WSE 2.0, but I don´t get it to work.

Here goes.

//Create a new DimeAttachment class
CString m_sFilepath = Server->MapPath("/.../.../");
CString m_sFilename(inFileName) ; // an incomming string
FileStream *fs;
try
{
fs = new FileStream(m_sFilepath + m_sFilename,FileMode::Open,FileAccess::Read);
//copy stream to stream
unsigned char sbuf __gc[];
sbuf = new unsigned char __gc[fs->Length];
fs->Read(sbuf, 0, sbuf.Length);
MemoryStream *ms;
ms = new MemoryStream();
//close file
fs->Close();
//attach body
DimeAttachment* da;
da = new DimeAttachment("application/octet-stream", TypeFormatEnum::MediaType, ms);
HttpSoapContext *hsc;
hsc->get_ResponseContext()->get_Attachments()->Clear();
hsc->get_ResponseContext()->get_Attachments()->Add(da);
}

I can compile it but not run it, due to "Object not set to an instance"

HttpSoapContext->ResponseContext->Attachments->Clear();
HttpSoapContext->ResponseContext->Attachments->Add(attachment);

The above doesn´t work either. "Left of -> must point on a class/struct/union/"

I have had the thread in ExpertsExchange
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_20714751.html#9208316


With the highest regards

// Daniel
GeneralRe: Almost desperate, C# into C++, why not work? Pin
Anthony_Yio26-Aug-03 16:48
Anthony_Yio26-Aug-03 16:48 
GeneralRe: Almost desperate, C# into C++, why not work? Pin
adaoja26-Aug-03 22:35
adaoja26-Aug-03 22:35 
GeneralRe: Almost desperate, C# into C++, why not work? Pin
Anthony_Yio26-Aug-03 1:14
Anthony_Yio26-Aug-03 1:14 
GeneralRe: Almost desperate, C# into C++, why not work? Pin
adaoja26-Aug-03 1:25
adaoja26-Aug-03 1:25 
GeneralRe: Almost desperate, C# into C++, why not work? Pin
Anthony_Yio26-Aug-03 1:31
Anthony_Yio26-Aug-03 1:31 
GeneralRe: Almost desperate, C# into C++, why not work? Pin
adaoja26-Aug-03 1:35
adaoja26-Aug-03 1:35 
AnswerRe: Almost desperate, C# into C++, why not work? Pin
igor196023-Aug-03 17:10
igor196023-Aug-03 17:10 
GeneralIsapi Filters and Extensions is managed C++ Pin
martinbertolino21-Aug-03 16:41
martinbertolino21-Aug-03 16:41 
GeneralRe: Isapi Filters and Extensions is managed C++ Pin
Nemanja Trifunovic22-Aug-03 6:01
Nemanja Trifunovic22-Aug-03 6:01 
GeneralRe: Isapi Filters and Extensions is managed C++ Pin
martinbertolino22-Aug-03 6:37
martinbertolino22-Aug-03 6:37 
GeneralGetting BIOS Information Pin
Member 1115560721-Aug-03 7:39
Member 1115560721-Aug-03 7:39 
GeneralRe: Getting BIOS Information Pin
leppie21-Aug-03 10:06
leppie21-Aug-03 10:06 
GeneralRe: Getting BIOS Information Pin
FlyingDancer4-Sep-03 14:28
FlyingDancer4-Sep-03 14:28 
GeneralRe: Getting BIOS Information Pin
leppie5-Sep-03 6:59
leppie5-Sep-03 6:59 
QuestionHow to convert from .DOC to .PDF, please help me .......... Pin
Atif Bashir16-Aug-03 1:41
Atif Bashir16-Aug-03 1:41 
GeneralThreads with Form updates Pin
MoonWa13-Aug-03 23:44
MoonWa13-Aug-03 23:44 
GeneralRe: Threads with Form updates Pin
edx_fa22-Aug-03 1:12
edx_fa22-Aug-03 1:12 

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.