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

Managed C++/CLI

 
QuestionHow to mix managed code and API code? Pin
Jeremy Osner26-Jun-03 7:41
Jeremy Osner26-Jun-03 7:41 
AnswerRe: Figured it out! Pin
Jeremy Osner26-Jun-03 7:49
Jeremy Osner26-Jun-03 7:49 
GeneralRe: Figured it out! Pin
Nathan Blomquist27-Jun-03 1:54
Nathan Blomquist27-Jun-03 1:54 
GeneralRe: Figured it out! Pin
Jeremy Osner27-Jun-03 2:20
Jeremy Osner27-Jun-03 2:20 
Generalconverting an idl file to .h Pin
si_6926-Jun-03 0:37
si_6926-Jun-03 0:37 
GeneralRe: converting an idl file to .h Pin
leppie26-Jun-03 7:17
leppie26-Jun-03 7:17 
Generalmouse pointer movement Pin
mujay23-Jun-03 2:42
mujay23-Jun-03 2:42 
GeneralShared Assembly Problem Pin
SuperGeek20-Jun-03 15:31
SuperGeek20-Jun-03 15:31 
I am running into some probems using the shared assembly. I seem to be able
to check it into the GAC, but I do not seem to able to find the file when I
reference it. I think I have done everything the help files say to do, but
when I go to build it, I get file not found error. This code works when the
assembly is private. I put a detailed explaination of problem with screen
shots and source code on the web at

http://www.robertpeterson.ws/screenshots/GACproblem.htm

Sorry for using large image sizes. I suspect that there may be some compiler
option that I haven't set, but I can't imagine what else I should change. I
will continue to research and hopefully correct the problem, but I hope you
will look at the web page and let me know if you have any suggestions. I have
looked at 4 books on Visual C++.NET. They all say how to make an assembly
shared, but they don't say how to include it into a program (at least I
haven't noticed an example yet.) The other thing I noticed is that they all
show c://winnt/assembly as the example, but not C://WINDOWS/assembly where the
gacutil puts it on the XP box.

#include "stdafx.h"


#using <mscorlib.dll>
#using <reformaterclasslibrary.dll> // File that is in the GAC
#include <iostream.h>
#include <tchar.h>
using namespace ReformaterClassLibrary;


using namespace System;

// This is the entry point for this application
int _tmain(void)
{

ParagraphReader * pReader = new ParagraphReader();


// Read the contents of the file
pReader->FilePath = "a://paragraph.txt";
pReader->Read();

// Instantiate a Paragraph Rewriter class;
ParagraphRewriter * pRewriter = new ParagraphRewriter(pReader->Data);
pRewriter->MakeTriangle2(); // Reformat the paragraph

// Instantiate a Paragraph Writer object to write the data to a disk
ParagraphWriter * pWriter = new ParagraphWriter("a://triangle.txt");
pWriter->WriteParagraph(pRewriter->Output);

cout << "System terminated normally." << endl;

return 0;
}
GeneralRe: Shared Assembly Problem Pin
James T. Johnson20-Jun-03 15:49
James T. Johnson20-Jun-03 15:49 
GeneralRe: Shared Assembly Problem Pin
SuperGeek20-Jun-03 16:07
SuperGeek20-Jun-03 16:07 
GeneralRe: Shared Assembly Problem Pin
James T. Johnson20-Jun-03 17:18
James T. Johnson20-Jun-03 17:18 
GeneralRe: Shared Assembly Problem Pin
SuperGeek21-Jun-03 6:44
SuperGeek21-Jun-03 6:44 
GeneralRe: Shared Assembly Problem Pin
James T. Johnson21-Jun-03 7:02
James T. Johnson21-Jun-03 7:02 
GeneralRe: Shared Assembly Problem Pin
SuperGeek21-Jun-03 8:33
SuperGeek21-Jun-03 8:33 
GeneralRe: Shared Assembly Problem Pin
SuperGeek21-Jun-03 9:48
SuperGeek21-Jun-03 9:48 
GeneralRe: Shared Assembly Problem Pin
leppie20-Jun-03 15:53
leppie20-Jun-03 15:53 
QuestionIs this the correct syntax? Pin
monrobot1320-Jun-03 12:10
monrobot1320-Jun-03 12:10 
AnswerRe: Is this the correct syntax? Pin
Nemanja Trifunovic20-Jun-03 12:23
Nemanja Trifunovic20-Jun-03 12:23 
GeneralRe: Is this the correct syntax? Pin
monrobot1321-Jun-03 7:01
monrobot1321-Jun-03 7:01 
AnswerRe: Is this the correct syntax? Pin
Nathan Blomquist24-Jun-03 4:18
Nathan Blomquist24-Jun-03 4:18 
GeneralRe: Is this the correct syntax? Pin
monrobot1325-Jun-03 3:24
monrobot1325-Jun-03 3:24 
Generalcontrol is not coming out from Application::DoEvents method Pin
Uma Mahes19-Jun-03 18:21
Uma Mahes19-Jun-03 18:21 
GeneralRe: control is not coming out from Application::DoEvents method Pin
Uma Mahes19-Jun-03 21:20
Uma Mahes19-Jun-03 21:20 
GeneralStrange Compiler Error ... Pin
SD319-Jun-03 4:00
SD319-Jun-03 4:00 
GeneralRe: Strange Compiler Error ... Pin
Nathan Blomquist19-Jun-03 5:03
Nathan Blomquist19-Jun-03 5:03 

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.