Hi,
I need to open a file as a stream to pass it to a method of a library. How do I do that? The file is not a text file it will be a binary file.
Any help would be really appreciated.
Thanks
Hi,
I am trying to generate controls dynamically at runtime. I am able to do that using the code below but I don't have a clue how to handle events from these controls.
Any help would really be appreciated.
Sub test4()
' Note: a textbox has no caption, hence the caption string...
Hello,
I want to make a small spreadsheet program using Visual C++. Could someone give me some suggestions or tips on how I can go about making the GUI? Is there any way I can create a table in the window or do I have to take something like a canvas and draw the table in it?
I have a Javascript file (.js) and when I try to run it by double clicking it I get an error that 'navigator' is undefined. Error Code is 800A1391. The initial lines of code for the file is:
var agent = navigator.userAgent.toLowerCase();
if (agent.indexOf("konqueror")!=-1) agent = "konqueror"...
I need to program the COM port to read and write data from it. How can I do that in VC++. I tried the following program but it gives an exception when it is executed:
/* This program is used to pull data from the serial port */
#include <dos.h>
#include <stdio.h>
#include <conio.h>
#define...
Well thats what I am doing and so am able to run the code ! But my question was why the syntax of the '{}' in C++ creating the problem. What are the proper syntax of defining external variables and referencing external variables ??
The syntax without brackets works for variables defined in Assembly. It also works for functions whether the functions are present in CPP file or in the Assembly file it doesn't matter. Any help would be appreciated.
Hello,
I am using an Assembly module to link with a Visual C++ program. I have defined a variable in the CPP file in the global scope as
extern "C" int i;
and then I am using this _i variable in my assembly file. But when I build the project I get the following error message...
Well, 1st of all you would need to decide the connections between the 2 parallel ports. In a parallel port the pin configuration settings depend on ur BIOS settings. If u do not have a bidirectional port you will have to make a cross connection cable and then write the code.
1st thing to find...
Ok, this thread has been very helpful and informative for me. Though I have one question as a result of the previous responses. I can understand the stuff about the Assembler by lonehill.
My question is that since MASM produces files that can be run in Windows by giving them the special...
Hello Aircon,
Thanks for the elaborate reply, it was definitely helpful. I just have one query, suppose I write the sam program in MASM version 8 and then replace the header with a header compatible to run in DOS, would it then run in DOS or does the format still have differences?
What I don't understand here is isn't MASM supposed to be just an assembler ? I mean when we programmed an 8086 assembly file all that was needed was to transfer control to our program code. Now here in IA 32 Architecture our code is another process. So what does more compatible to Windows OS...
Ok I have got ur point. So I have a question, does this mean that in MASM we cannot write assembly codes that would run on any other Operating System or maybe a code to write another OS? Does MASM has this limitation? Please clarify.
Ok, I tried it with the Console Buil All option all, still the same result. I tried it in Win XP also and there the system says there is a fatal error. In windows 2000 nothing happens except the control returns to the command prompt. If I remove the second interrupt call (The one to exit the...
Why doesn't this code display the letter 'a' when I run it?? I assembled and linked it using Qeditor of MASM version 8 and then executed the exe file from the command prompt on Windows 2000. Nothing happens and the control just returns to the command prompt.
.386
.model flat...
Thanks for ur explanation it does clarify some points for me. Just one question from it though u wrote
if you only use a small set of things:
- don't use variables
- if statements
- case statements
- std_logic_vector and std_logic types
so does this mean do not use if statement, case...
Hello,
I am very new to VHDL and I am still learning but I have one very basic confusion. I have read that VHDL follows a top down approach to design generally and it is very convenient.
What I don't understand is suppose we make a VHDL program for some circuit, we may be starting from...
Thank you guys for the help.
Well I had asked the question because I wanted to model an edge triggered (Master slave ) D flip flop. This flip flop is realised using only 4 transmission gates and 5 inverters. So if now in VHDL I cannot make a structural model of a transmission gate how will...
I tried the api and I tried to execute the following code in one of the examples:
import java.io.*;
import java.util.*;
import javax.comm.*;
public class SimpleWrite {
static Enumeration portList;
static CommPortIdentifier portId;
static String messageString = "Hello...
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.