Click here to Skip to main content
15,917,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwhat is the max that will fit in a char Pin
johnstonsk8-Jul-03 17:31
johnstonsk8-Jul-03 17:31 
AnswerRe: what is the max that will fit in a char Pin
John M. Drescher8-Jul-03 17:38
John M. Drescher8-Jul-03 17:38 
AnswerRe: what is the max that will fit in a char Pin
Terry O'Nolley10-Jul-03 8:30
Terry O'Nolley10-Jul-03 8:30 
QuestionIf I know a font's name, how I can acquire its character set? Pin
Alice808-Jul-03 17:26
Alice808-Jul-03 17:26 
AnswerRe: If I know a font's name, how I can acquire its character set? Pin
Ryan Binns8-Jul-03 17:41
Ryan Binns8-Jul-03 17:41 
GeneralRe: If I know a font's name, how I can acquire its character set? Pin
Alice808-Jul-03 21:41
Alice808-Jul-03 21:41 
GeneralRe: If I know a font's name, how I can acquire its character set? Pin
Ryan Binns8-Jul-03 22:12
Ryan Binns8-Jul-03 22:12 
GeneralAccessing Visual C# DLL in Visual C++ project Pin
bluegemcy8-Jul-03 17:02
bluegemcy8-Jul-03 17:02 
I am developing a project using .NET Remoting technology to achieve the talk between client and server. The shared object interface in the server is written in C# and compilered into a DLL, which will be used in the client code. So how to access the object in the C# DLL?Here are the source code:
=======IInfoMan.cs->IInfoMan.dll===========
using System;
using System.Runtime.Remoting;

namespace InfoMan
{
///
/// Summary description for IInfoMan.
///
public interface IInformationManager
{
string DataItem(int whichItem);
int DataCollectionLength();
}
}
and Here is the implementation for the interface
=======InformationManager.cs========
using System;
using System.Runtime.Remoting;

namespace InfoMan
{
///
/// Summary description for InfoManager.
///
public class InformationManager: MarshalByRefObject, IInformationManager
{
private string[] theData = new string[ARRAY_SIZE];
private const int ARRAY_SIZE = 3;

public InformationManager()
{
theData[0] = "In a village of LaMancha, ";
theData[1] = "the name of which I have to desire ";
theData[2] = "to call to mind, there lived ";
}

public string DataItem(int whichItem)
{
string theItem = null;
if(whichItem >= 0 && whichItem < ARRAY_SIZE)
{
theItem = theData[whichItem];
}
return theItem;
}

public int DataCollectionLength()
{
return ARRAY_SIZE;
}
}
}

I know that I should use #using keyword to use the C# dll in the Visual C++ code. That is #using "IInfoMan.dll" and also #using <mscorlib.dll>. But when I tried to using the following codes to connect to the server and create a instance of the remote object, I got the error message. Why?
try
{
::RemotingConfiguration::Configure(S"AioTest.exe.config");
InformationManager *m_InfoMan = new InformationManager();//Maybe this line has an error.But I don't know why.
}
catch(Exception * exp)
{
CString msg = exp->Message;
MessageBox(msg);
}

error C3828: 'InfoMan::InformationManager': placement arguments not allowed while creating instances of managed classes

Can someone help me to solve the problem? Thanks!
Generallink error,why Pin
littlelv8-Jul-03 16:58
littlelv8-Jul-03 16:58 
GeneralRe: link error,why Pin
littlelv10-Jul-03 22:59
littlelv10-Jul-03 22:59 
GeneralNatural Language Processing open source.. Pin
JoeSox8-Jul-03 14:00
JoeSox8-Jul-03 14:00 
GeneralProgrammatically starting IE in &quot;a new window&quot; Pin
Iain Clarke, Warrior Programmer8-Jul-03 11:35
Iain Clarke, Warrior Programmer8-Jul-03 11:35 
GeneralRe: Programmatically starting IE in &quot;a new window&quot; Pin
Michael Dunn8-Jul-03 11:56
sitebuilderMichael Dunn8-Jul-03 11:56 
GeneralRe: Programmatically starting IE in &quot;a new window&quot; Pin
Iain Clarke, Warrior Programmer8-Jul-03 12:22
Iain Clarke, Warrior Programmer8-Jul-03 12:22 
GeneralRe: Programmatically starting IE in &quot;a new window&quot; Pin
Michael Dunn8-Jul-03 15:32
sitebuilderMichael Dunn8-Jul-03 15:32 
GeneralRe: Programmatically starting IE in &quot;a new window&quot; Pin
Rob Caldecott8-Jul-03 12:28
Rob Caldecott8-Jul-03 12:28 
GeneralRe: Programmatically starting IE in "a new window" Pin
Iain Clarke, Warrior Programmer8-Jul-03 12:48
Iain Clarke, Warrior Programmer8-Jul-03 12:48 
GeneralRe: Programmatically starting IE in &quot;a new window&quot; Pin
Ryan Binns8-Jul-03 16:54
Ryan Binns8-Jul-03 16:54 
GeneralRe: Programmatically starting IE in &quot;a new window&quot; Pin
Rob Caldecott8-Jul-03 21:22
Rob Caldecott8-Jul-03 21:22 
GeneralRe: Programmatically starting IE in &quot;a new window&quot; Pin
Ryan Binns8-Jul-03 21:24
Ryan Binns8-Jul-03 21:24 
GeneralLZW Data Pin
keb8-Jul-03 11:29
keb8-Jul-03 11:29 
GeneralLinking problem Pin
Navin8-Jul-03 10:55
Navin8-Jul-03 10:55 
GeneralRe: Linking problem Pin
Dave Bryant8-Jul-03 11:00
Dave Bryant8-Jul-03 11:00 
GeneralRe: Linking problem Pin
Navin8-Jul-03 11:54
Navin8-Jul-03 11:54 
GeneralModal Dailog Box Pin
ppathan8-Jul-03 9:57
ppathan8-Jul-03 9:57 

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.