I am using the code below to load an assembly from a .dll file. Each of the classes contained within are inspected to see if they implement my “IControl” interface.
If they do, I began reflecting them to look at their properties and especially their custom Attributes.
To look at their custom...
Hello.
I'm primarily a Java programmer but have just started using C#.
I'm trying to write all attributes in a class to an XML file which I can do by explicitly naming the nodes and attributes to be written to the XML file. However in Java you could just pass the object to write to XML to the...
Hi,
I've made a small program which listens on the parallel port for incoming data. The program works fine but uses alot of cpu time since it has an infinite do...while loop which listens.
Is there a windows api method which can set a process' priority. I've heard there's one called...
Hi.
Using just an iterative loop I want to wait for say 400 ms.
I dont want to use the sleep program, but if there are any other C functions or a way of figuring out how many iterations make up a millisecond that'd be great!
Any and all suggestions welcome.
Many thanks, jOe
we are all of us...
Hi again.
I've just taken the case off my parallel port wire and have found that pins 2-4 (D0-D2) are not connected to any wires!
How then do I send data of < 8???
Also, I'm still having problems sending specific data amounts to the data port. If I send 0x00 to the data register then toggle...
Thankyou both, I understand it alot better now!
Will get back to you if I have any further problems.
(Have studied alot of the links given also)
Many thanks,
jOe
we are all of us living in the gutter.
But some of us are looking at the stars.
Thankyou for your help. I'm still having trouble with my program though.
This is my C code:
-----------------------------------------------------------
#include <stdio.h>
#include <windows.h>
/* Definitions in the build of inpout32.dll are: */
/* short _stdcall Inp32(short...
Hi,
The title of my question is a little misleading. I am currently playing about with parallel port programming in windows xp using the C and the inpout32.dll (needed for access to the port).
I have an LED connected to pin 25 (ground) and pin 5 (one of 8 data outs), and using a program I have...
Darwin on Mac OS X, but i want to the program to be compatible with all ANSI C compilers, and ideally work on Free BSD unix.
we are all of us living in the gutter.
But some of us are looking at the stars.
Hello, I'm a bit of a C newbie, and was wondering how I would go about detecting when a key has been pressed in a C program without the user having to signal the end of the input with a linefeed.
(I want to be able to store users' past input, and when they press the UP arrow, their last command...
Hi.
Can anyone tell me or point me to some documentation explaining how Java's Object[] array implementation is???
Are elements stored next to each other in memory like C?
Or is it like a linked list and each element points to the next?
Because I'm finding Java's array notation is alot quicker...
Hi,
Can anyone tell me any resources or information concerning how the JVM accesses Objects in memory. Also how does the JVM access objects or types using the normal array notation.
e.g. myLinkedList.get( i );
compared to
myNormalObjArray[ i ];
Any information would be really useful...
Dear all,
Please help, I've been working really hard on a uni project and have finished the project and my C program works fine written, compiled and run on the Mac iBook using Darwin and the gcc compiler that comes with it.
I compile it always with the -ansi flag too.
I tried compiling these...
Hello,
just a quick question.
Does anyone know why this do...while loop wont evaluate to true when either 'y' or 'n' is entered?
do
{
printf("\nDo you wish to add more results manually?: ");
scanf(" %c", &choice);
}while((choice != 'y') || (choice != 'n'));
However, when the...
Hi, I'm a newbie C programmer, Iv been doing some small exercises using the gcc compiler on OS X, and am a-bit confused.
In C I was told when you initialise an int, but do not assign it a value
(int i;) it would assume an arbitary value.
However on my Mac int i; will assign i the value 0. More...
Hi, I'm thinking of getting an Airport card for my apple iBook, but don't know whether it wuold be compatible with the Thompson Speedtouch 570 wireless router????
I do not want to have to buy the airport base station too.
Any and all suggestions would be very useful.
Thankyou all,
Oxy
we are...
Hi,
I have just bought an apple iBook with OS X, and love it.
However, there is no hash ascii character (#) on the keyboard and i need one for my university password.
Any ideas how i can make one without copying it from a document?
any and all suggestions welcome!!
cheers, oxy
we are all of...
Hi,
I'm thinking abuot getting an Apple iBook running OS X, but want to know beforehand whether the Unix core allows users to run any/all Unix software? Or does the core just provide stability and security.
Any suggestions, information or links would be great!
Thankyou all,
Joseph
we are all...
Hi all,
I have this line of code:
RepaintManager manager = RepaintManager.currentManager(component);
Image myImg= manager.getOffscreenBuffer(component, compWidth, compHeight);
which captures a screen dump (as-it-were) of a swing component.
I want to save this image ideally to a microsoft...
Hi.
I was going to use XMLEncoder to store a variety of objects in an XML file. However I realise it can only store Java Bean's. Does XMLEncoder not save Object types as class attributes???
Also, in anyone's oppinion, which is better, ObjectOutputStream or XMLEncoder?
Any and all comments...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.