QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked Questions

How to use assembly (ASM) with Dev-C++ ?

Dev-C++ FAQ
When creating a console application, be sure to uncheck “Do not create a console” in Project Options (when working with source files only uncheck “Create for win32” in Compiler Options).

How do I use SDL with Dev-C++?

Simple DirectMedia Layer
Try the Dev-C++ tutorial available at: http://cone3d.gamedev.net/cgi-bin/index.pl?page=tutorials/gfxsdl/tut1. If you have problems, please contact the author of the tutorial. There are also step by step instructions at: http://docs.deninet.com/sdl_on_dev_c.htm

What else do I need to do to use the Dev-C++ environment with the programs in the book?

C++ FAQ, 4th Edition
Dev-C++ adheres to the ISO C++ standard more closely than the DJGPP compiler did. You will need to adapt the programs in 4th and earlier editions of the book to the following template: I get a stream of error messages to the effect that the compiler can't find library files. What am I doing wrong? (Notice that your program may have worked on earlier versions of C++, such as Visual C++ 6.0.) A:The ISO standard specifies that library functions are contained in the "std" namespace.

Why did you write it in VB, not C++? Or even ASM?

PageMac Programming
This argument is as old as D++ is, back to the days of version 1.5 on PSC. First off, I do not care to learn assembly to the point of writing this code. It's... pointless. Secondly, I do know that C++ would be faster. D++ began with VB6, and that's why it's still in VB6. Now then, at the time of starting this project I did not have enough knowledge of C++ to write such a thing, although at this point I do. That's why a D++ DLL in C++ is my next project. But for now, it stays in VB.

How do I use /dev/ptmx?

Unofficial comp.os.linux.development.* FAQ
One of the simplest pieces of example code you can find is the script program from the util-linux package. script.c is only around 8KB. It chooses between two different aproaches depending on the HAVE_openpty define. Using openpty is the best aproach and should work on any recent Linux distribution. (If you have problems compiling script.c try removing the localization stuff and add "#define _".)

What is ASM?

Compatible ASM Programs for TI-86
ASM is short for "Assembly," a machine level language. More info about Assembly can be found at Assembly Coder Zenith's. TI-86 Assembly information can be found at http://www.ti.com/calc/docs/86assembly.htm.

What is an assembly?

Andy Mc's .NET Framework FAQ
assembly is sometimes described as a logical .EXE or .DLL, and can be an application (with a main entry point) or a library. An assembly consists of one or more files (dlls, exes, html files etc), and represents a group of resources, type definitions, and implementations of those types. An assembly may also contain references to other assemblies. These resources, types and references are described in a block of data called a manifest.

Is there any way to execute a file (i.e. another ASM or TI-Basic program) from a C program?

Frequently Asked Questions
There are a lot of methods for doing this. The most obvious method to do this is usage of a function like this one: void progrun(const char *name) { char fname[25]; HANDLE h; strcpy (fname, name); strcat (fname, "()"); push_parse_text (fname); h = HS_popEStack (); TRY NG_execute (h, FALSE); FINALLY HeapFree (h); ENDFINAL } Note that the program you call may throw errors. If you understand this function, you can easily expand it to accept arguments, etc.

Is C++ a superset of C? Can I use a C++ compiler to compile C code?

Infrequently Asked Questions in comp.lang.c
C++ is a superset of something, we're not sure what. You can use a C++ compiler to compile C code, but the results may surprise you.

Can I use LessTif with C++ ?

LessTif Frequently Asked Questions
You sure can. There really are two ways. You can use it directly, or through one of the C++ wrappers for Motif. Much of this is discussed in the Motif FAQ which can be found at Ken Lee's website at http://www.rahul.net/~kenton Using LessTif directly with C++ prompts the question on how to use class member functions as callbacks.

When I launch Dev-C++ i get the message saying “WININET.DLL not found” ?

Dev-C++ FAQ
If you are missing WININET.DLL on your Windows system, you can download it at: http://www.rocketdownload.com/supfiles.htm Check in Compiler options if the direcories settings are correct. With a default setup, you should have :

Is there any GUI library or packages available for Dev-C++ ?

Dev-C++ FAQ
Include conio.h to your source, and add C:\Dev-C++\Lib\conio.o to "Further Object Files" in Project Options (where C:\Dev-C++ is where you installed Dev-C++) On some screen resolutions, toolbars icons may show up incorrectly. You should try changing your screen resolution, or disable toolbars from the View menu in Dev-C++

Can I see an application that use many dev. kits from PowerToolBox?

FAQ & Credits
You can download the 15 second D-Fusion Demo, that makes an extensive use of 3D Blast (for basic shape 3D rendering), of FasterDraw (for buffering and writing to the screen in interlaced mode) and of some real-time filter effects. The demo runs at 30 FPS on a PowerBook 3400c/180, but it was limited to 20FPS to look the same on all computers. You may also look at the SpriteDraw demo application (enclosed with the Dev. Kit) which uses FasterDraw for buffering and SpriteDraw for the sprites.

What is the earliest JDK required to use ASM?

ASM - ASM FAQ
The org.objectweb.asm package should work with JDK 1.1, or even with JDK 1.0 if Type is not used. Indeed, this package only requires the following JDK classes and methods: ClassLoader.getSystemClassLoader, ClassLoader.getSystemResourceAsStream (only in one constructor of ClassReader) The asm.util and asm.tree packages require JDK 1.2, since they use the List interface and the ArrayList class. Tools and frameworks that are using ASM for bytecode processing (e.g.

Why use a molded assembly?

DIN 43650 Molded Assemblies and Connectors, Micro-mini 8mmm ...
Molded assemblies provide a more secure installation, offer many technical advantages and save installation time, labor and cost. Hand wiring a DIN connector is very labor intensive. Considering the overall cost of the connector, wire and labor, molded cable assemblies are generally much less expensive.

What is the use of the Assembly Library. Can I add to it ?

PLUS 2D : Nesting Software FAQ
Often you would like to nest items required for say a Table, which could consist of many parts. With Assemblies you need not enter the parts individually. Simply define the parts constituting the Table, inside the Assembly Library. You can use this to definition, to automatically add all the parts required for any number of these Assembly into the Parts table. For instance you could define "Table" as Each table consists of 11 parts.

Why should I use Border Assembly Inc.?

Frequently Asked Questions about manufacturing in Mexico
Experience. We've teamed up with more than 60 companies to establish manufacturing operations in Mexico. BAI has extensive knowledge of Mexican laws, codes, and regulations pertaining to labor, business and taxes. Our clients profit from manufacturing in Mexico without having a business in Mexico. Though most Fortune 500 manufacturing firms have a factory in Mexico, there are thousands of small and medium-sized US companies reaping the same benefits.

How can I produce an assembly?

Andy Mc's .NET Framework FAQ
The simplest way to produce an assembly is directly from a .NET compiler. For example, the following C# program: public class CTest { public CTest() { System.Console.WriteLine( "Hello from CTest" ); } } You can then view the contents of the assembly by running the "IL Disassembler" tool that comes with the .NET SDK. Alternatively you can compile your source into modules, and then combine the modules into an assembly using the assembly linker (al.exe).

Can I use typedefs in C#?

Andy Mc's C# FAQ for C++ programmers
No, C# has no direct equivalent of the C++ typedef. C# does allow an alias to be specified via the using keyword: using IntList = System.Collections.Generic.List<int>; but the alias only applies in the file in which it is declared. A workaround in some cases is to use inheritance: public class IntList : List<int> { }

Can I use exceptions in C#?

Andy Mc's C# FAQ for C++ programmers
Yes, in fact exceptions are the recommended error-handling mechanism in C# (and in .NET in general). Most of the .NET framework classes use exceptions to signal errors.

Explore Other Topics

How do butterflies reproduce?
Can I stop my long-term steroids at any time?
HOW DO I GO ABOUT DONATING MY BODY TO MEDICAL SCIENCE?
What are the responsibilities of a Personal Representative of an estate?
How do I evaluate my RNA quality?
What causes the "rotten-egg" sulphur- smell that sometimes occurs?
What is a Quick Way to Check Valve to Piston Clearance on an Assembled Engine?
ASPI is not available in my computer. Why?
What is the difference between NRE & NRO bank accounts?
What are the schemes available to NRIs for direct investments in India with repatriation benefits?
CAN I CONVERT MY ATTIC, BASEMENT, OR GARAGE INTO LIVING SPACE?
Can you edit data in the Repeater control?
More Questions >>

© Copyright 2007-2009 QueryCAT
About • Webmasters • Contact