Programming :: Finding A Documentation To Port A Windows Program?
Jun 23, 2010
I'm using ubuntu 9.04; I have a large project in windows that I want to "port" it in linux.
It uses IPC mechanism "Shared memory" and also "Critical Section" APIs in windows, but unfortunately I have no good reference to change these windows APIs to their equivalent in linux?
Is there a comprehensive documentation or reference for this issues? I mean a table containing the equivalent APIs or systemcalls in windows and linux! For example, what's an alternative for the "InitializeCriticalSection" API in linux? Or an alternative for "CRITICAL_SECTION" structure? Or even an alternative for "RegOpenKeyEx", although we don't have registry in linux!!
View 1 Replies
ADVERTISEMENT
Jan 8, 2009
I bought a set of 3 laser sensors and it came with a software and its C++ source code for windows to receive the lasers info through the serial port. Since the entire project is running on Linux, I need to port the windows code to Linux. At the present moment, I already can receive the data from each of the 3 sensors, but the info is coming concatenated! Tracking down the original windows code, I found that it is probably happening cause I didn't ported these lines to my Linux version:
Code:
COMMTIMEOUTS CommTimeouts;
[...]
CommTimeouts.ReadIntervalTimeout = 2;
[code]....
I've searched already about how to specify the serial port timeouts on Linux, but didn't find a solution. how to port these lines to Linux or maybe where to find more info about how to set serial port timeouts on Linux?
View 4 Replies
View Related
Sep 6, 2010
We are trying to create a message forwarder program that receive a message on Port A and pass it on t Port B. Also receive a message from Port C and Pass it on to Port D as follows.
[Code]...
View 4 Replies
View Related
Aug 19, 2010
Is there any equivalent of WaitFOrMultipleObjects on Linux?
I was finding a cross Platform library that allow you to run another program from your C++ application. I found POCO but it does not support functionality like WaitFOrMultipleObjects for both (linux and windows). I tried boost Process but its not official till now.
View 1 Replies
View Related
Feb 14, 2011
Below are the header files and the program:
using namespace std:
View 2 Replies
View Related
Sep 8, 2010
Wondering if anyone knows of a "Timesnapper" alternative. Love this program for windows, having a hard time finding a replacement.
View 4 Replies
View Related
Apr 11, 2009
I have connected a device to my linux system with a serial cable (rs232). The settings are: port /dev/ttyS0, baud rate=38400, data bits=8, stop bits=1, no parity, no hardware or software handshaking. I wrote a linux program that sends 1 byte to the device, but the device doesn't receive it. I know the serial ports are working because when I use the CuteCOM application to send data, the device DOES receive it, so obviously it is a problem with my code..
Code:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
[code].....
View 2 Replies
View Related
Jun 27, 2010
I need to make some C program under linux to make some scripts that can talk to my Server's Parallel port by sending some quare signal as high or low, so what i can do ?
View 4 Replies
View Related
Dec 13, 2009
I wrote a serial port communication program to access a equipment.
int main(void)
{
int fd = 0;
int nread = 0,i = 0,nwrite = 0, tmpread = 0, m = 0, n = 0 ;
[code]....
View 2 Replies
View Related
Aug 19, 2010
anyone know that the ntfs's file sytem struct? is there's a API or something other could let me get this number? Or there is actually no such number in windows like the number of inode in linux?
View 1 Replies
View Related
Apr 1, 2011
I am looking for a similar script like sydi-linux.py that will work with a Debian box. I want to document my server setup & just looking for an easier way to do it since I have to do this x12.Or do I just need to try & make this script work and shut up about it?
View 1 Replies
View Related
Feb 10, 2010
I have a c program and its related libraries for Linux. But, I need a EXE file to run in windows.
please let me know how to compile the program for windows
View 8 Replies
View Related
Feb 11, 2010
What sort of libraries can i use for coding of sniffer program for windows and linux? The sniffer that i want to code is for capturing the list of connected clients to AP wirelessly. I do know that the wireless NIC needs to be in 'monitor' mode in both windows and linux.
View 4 Replies
View Related
Apr 21, 2010
Running Ubuntu and writing simple C programs. I need 2 text windows, the one I have started in, and a second to display some debug information. I can start a second screen using popen("/usr/X11R6/bin/xterm" "w"), and I get my new text window. However, it is running a shell and I can't send any info to it!
View 4 Replies
View Related
Dec 14, 2008
I want to do some experimentation with GUI programming. What mostly interests me is how the toolkits actually work (what are the drawing mechanisms, how it communicates with X, etc.) and how the window managers work. I know it's quite a lot but I don't plan on developing the next best DE/Toolkit/Window Manager, just to play with API, mostly to learn. It seems that there is a shortage of documentation on this topics, I'm trying to find anything for 2 days now with no result.
View 7 Replies
View Related
Sep 29, 2009
Do you know where can I find documentation to SoundTouch library a its functions?
View 2 Replies
View Related
Mar 16, 2010
I cannot seem to find any good documentation on the role of flags -Bdynamic and -Bstatic in g++. The man pages are not very helpful either.I found an example on the web:"gcc object1.o object2.o -Wl,-Bstatic -lapplejuice -Wl,-Bdynamic -lorangejuice -o binary".According to which -Bstatic instructs the linker to statically link
the applejuice library and to dynamically link the orangejuice library. If orangejuice uses the applejuice library anywhere however,the applejuice is also linked dynamically. Is it correct to assume that this is correct and describes the true functionality of those two flags in gcc? (ie: Bstatic and Bdynamic are used for mixing static and shared libraries during linking)Is it correct to assume that the same applies to g++ as well?
View 2 Replies
View Related
Feb 5, 2010
I am writing some application in C, which will access a serial port device (RS232). My application is working good. But if any other application is already opened the port, I couldn't able to identify that. In windows VB program, while accessing comport through mscomm control, i am receiving an error as "Port Already Opened". But in Linux environment, through C program how can i get that? I am accessing comport 1 as follows
fd = open("/dev/ttyS0", O_RDWR | O_NOCTTY | O_SYNC);
View 3 Replies
View Related
Sep 25, 2009
When I do netstat -pantu it shows a dash where the pid would be. I have also checked lsof -i and see no pid associated with the port. How do I find what program is keeping the port open?
View 1 Replies
View Related
Jul 26, 2010
i did a search on this already but i cant find the solution. I start Wammu phone wizzard and i select:guided configuration USB cable Nokia phone Nokia proprietary protocol DKU5 cable (i am noob at this question totaly and am not sure if i choose right one) Here in step six I need to type something like "/dev/ttyS7" or something similar, but I don't know what exactly. I did a search in console writing command "lsusb" and here is what i get:
Bus 002 Device 007: ID 0421:01b2 Nokia Mobile Phones
Bus 002 Device 003: ID 046d:c30e Logitech, Inc. UltraX Keyboard (Y-BL49)
Bus 002 Device 002: ID 046d:c062 Logitech, Inc.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 0951:1607 Kingston Technology DataTraveler 100
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
View 3 Replies
View Related
Aug 7, 2009
Wondering if there is a uPNP Port Mapping Utility available for Fedora. Something like this :
[URL]
The program seems to be Mac only tho.
View 1 Replies
View Related
Jan 7, 2010
A lot of activity is happening on our local server and I want to know which port is getting the most used and which daemon is using the port. I think it will be some modification of netstat command.
View 1 Replies
View Related
Apr 21, 2011
i just install the driver for dazzle dvc100. i tested out on vlc and cheese and it work. but now i need other program other then using wine, cheese and vlc. cheese and vlc is so laggy and cheese records in black/white and super duper uber laggy. so any program to record gameplay?
View 3 Replies
View Related
Jun 17, 2011
I am having troubles getting used to the new Ubuntu UI - Unity. One thing that bugs me is that I don't know how to find a program if I don't know the program's name. For example I remember I have an IRC client but I don't remember its name and its name does not contain IRC. Before I had Unity, programs were organised in categories, so to find the irc I just looked in the Internet category. The same happened to me with the writer program and others..Can anyone tell me how I can find a program by its category? I was surprised that I could not many complaints like mine on the web. I don't want to give up and go back to the old gnome cause I figure that there is just a learning curve to pass and beside there are some feature in it that I like.
View 3 Replies
View Related
Feb 23, 2011
I've used ps -p to find a certain program. but how can i find the location of this program? as in the path to this program.
View 3 Replies
View Related
Jan 14, 2011
i was using a serial console program (not minicom) two weeks back but took a break and have no idea what it is! man, it was awesome, too. it had a nice gui, similar to hyperterminal...and from what i think i remember it came packaged with f14.
View 4 Replies
View Related
Jan 10, 2010
just wondering does unbuntu come with a file sharing program like lime wire or somethig like that? if not what is the best out there for ubuntu
View 4 Replies
View Related
Jun 12, 2010
Is there a program in the repositories for physics? I don't mean a program that makes graphs etc. I just want a program such as the one I'm attaching but much more effective and that does more than just a spring on an inclined plane. I want torque, rotational motion, kinematics, pulleys and a system with two objects instead of one only etc in the program. If it doesn't exist, I'll make it myself but I will have the knowledge in probably close to a year from now so I unfortunately cannot do it yet.
Basically (like what I attached - except that it's not so great) is something that I can visually test my homework with. If there are programs for other aspects of physics that do the same thing such as for waves or optics etc, I'd like to have those too but my priority is mechanics right now.
View 2 Replies
View Related
Feb 22, 2011
whenever i plug in my xbox i can't hear it but i can see it so i have to change to windows i have no problem with that. But my question is Is there any "APP" or program that lets you change OS with one click instead of restarting the computer? I know the xbox sound problem does not belongs here its just that i wanted to throw/point this out here in case anyone knows what may cause this, and the reason why i want that "1 click change OS"
View 2 Replies
View Related
Jun 6, 2011
finding a program similar to URL Snooper?
View 9 Replies
View Related