Click here to Skip to main content
       

C / C++ / MFC

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
AnswerRe: PCI Printer Ports?memberdusty_dex13hrs 38mins ago 
Some info about parallel port including a free book and source code inpout32.dll
 
the original web page where I found that link.
 
Smile | :)


GeneralRe: PCI Printer Ports?membermacklinbob7hrs 20mins ago 
Thanks,it shows I am not the only one fighting this problem.
 
Fifteen years ago I was designing PCI cards for medical electronics. I designed them using ISA base addresses and no interupts. They did not have to be configured by the system.
 
Today the onboard (ISA) ports are gone and repleaced by P&P PCI or PCIe cards. They have also been enhanced.
 
I had a similar problem with the serial ports. We used the RS-232 control lines to implement an external SPI interface. Again we wrote the code to direct access the serial port card. But when those cards were replaced by PCI cards our method no longer worked.
 
But Windows has a group of COMM instructions for working with a virtual serial port. I converted my applications to use this method and it works very well. It works with both PCI and PCIe serial port cards as well as USB serial port adapters.
 
Maybe i need to look into the new USB PP adapters. I do have one on one of my computers to connect to an old (VERY SPECIAL) printer. The driver for that printer will not work with a PCI PP but it will work with this USB PP.
 
Bob Macklin
Seattle, Wa
Question'System' : is not a class or namespace namememberbugwee21 May '13 - 4:49 
Hi guys,
 
i'm creating an app in c++ that uses the FileSystemEventArgs.
 
In my code i added the namespace System::IO;
 
My problem is, the System Namespace will work if in my configuration
 
Common Language Runtime Support = /clr
 
but it produces an error if
 
Common Language Runtime Support = No CLR Support
 
Need you ideas guys what to do. I need my app to be configured with No CLR Support.
 
Thanks
SuggestionRe: 'System' : is not a class or namespace namememberDavidCrow21 May '13 - 5:17 
This looks like a Managed C++ question. If so, you might consider the other forum.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous


AnswerRe: 'System' : is not a class or namespace namemvpRichard MacCutchan21 May '13 - 6:24 
bugwee wrote:
I need my app to be configured with No CLR Support.
Then you cannot use .NET namespaces or classes.
Use the best guess

GeneralRe: 'System' : is not a class or namespace namememberbugwee21 May '13 - 7:45 
Well, thanks guys. I'm not familiar yet with C++, i'm more on c# and just having a project that needs to be written in c++.
 
Maybe i gonna look forward on creating a wrapper class that uses the .net assemblies and use it on my native code.
 
Any thoughts or references guys?
 
Thanks
QuestionRe: 'System' : is not a class or namespace namememberenhzflep21 May '13 - 8:04 
What advantage do you see this as providing?
Why not just enable CLR support?
 
If you rely on a wrapper class for the .NET assemblies, you rely on .NET. Fiddling the inclusion such that the project settings don't make it immediately apparent still leaves you with a .NET dependence.
Make it work. Then do it better - Andrei Straut

AnswerRe: 'System' : is not a class or namespace namememberbugwee21 May '13 - 8:14 
I just consider of having that wrapper class but i still needs your opinion guys if what is the best thing to do.
 
I'm looking for any alternatives if there are and not just enable the CLR support.
 
FYI, I'm just going to add a feature of an existing project that does not enable CLR support so i'm looking for some alternative ways.
GeneralRe: 'System' : is not a class or namespace namememberenhzflep21 May '13 - 8:46 
Well, why didn't you say so in the first place???
 
First, you say "i'm creating an app", now you say "to add a feature of an existing project".
Which one is it? Are you creating the app, or adding to an existing one?
 
What functionality are you trying to add?
Make it work. Then do it better - Andrei Straut

GeneralRe: 'System' : is not a class or namespace namememberbugwee21 May '13 - 9:04 
yes correct. i'm creating an app and its a console app that just test the functionality of a feature that i'm going to add.
 
Now after doing some test of that app and feels working already, i copied the code from my console app and put into the existing app. And when i try to build the existing app, i got some errors.
 
error C2871: 'System' : a namespace with this name does not exist
error C2653: 'System' : is not a class or namespace name
error C2871: 'IO' : a namespace with this name does not exist
error C2653: 'String' : is not a class or namespace name
 
existing app - is configured to no clr support -(don't need to modify)

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web03 | 2.6.130523.1 | Last Updated 23 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid