Programming :: What Is "tchar.h" Equvalent - Port A Win32 Application
Jun 28, 2010I wish to port a win32 application to linux platform. I wanted to know if there is any equivalent of tchar.h in linux platform?
View 1 RepliesI wish to port a win32 application to linux platform. I wanted to know if there is any equivalent of tchar.h in linux platform?
View 1 RepliesI wish to port a win32 application to linux platform. I wanted to know if there is any equivalent of tchar.h in linux platform?
View 2 Replies View RelatedI wonder if it is possible to avoid JNI in order to port a c/c++ STL application to android ?Do I have an alternative for calling C/C++ (STL) code ?
View 2 Replies View RelatedI'm porting code from Win32 to Linux, a math science app, the thing is that the app have full dependency of de win32 function _fpclass(). Today I was looking all day that function on Linux but it doesn't exist. I know that there are some functions that can make the job mixing them in a other one like in this link below, more or less. [URL]
Well the app use very high virtual memory, Gigas of it(around 500), use Linux as Calculation Server using a very large swap space. If we can't find some way to fix this trouble, we can change the Linux for some open *nix like Open Solaris, because those have fp_class_l().
I've made a linux app that I'm porting to win32 winth MinGW and MSYS. It's a ticker app that reads then renders a text file to a pixmap (a tall single-line image), then it kind of scrolls the pixmap by drawing a part of it to a drawing_area, using gdk_draw_drawable() within a timeout handler set by g_timeout_add().
The problem is it works fine on linux (the scrolling is really smooth and that's the goal) but the win version is choppy and uses at least 90% of cpu resources (vs 15% with linux) like there is a big performance problem. And I'm not even sure that double buffering is set. Is it related to some mingw config or drawing_area stuff or gtk for win?
How do I find the port which is used by a particular application ?. And how do I terminate that process?
View 2 Replies View RelatedI want to port a window application( involving COM, ActiveX, OLE, MFC, Win32) to Red Hat Linux. What options I have that can help me in this activity? What are the Linux counterparts of COM, ActiveX etc.
View 1 Replies View RelatedFinding the process that is using a certain port in linux
I have an Ubuntu Server setup, where I'm trying to set up a daemon that wants to have access to port 8080. When I run the command, the error message says it's being used by another process. But which one, it doesn't say. How can I go about finding which program uses this port?
I have written simple application in CPP which listens on port 8080. But when I start the application and check the port it is listening on (using netstat -nap), I can see that the application is listening on port which is > 30000.
This port number keeps on changing if I re-run the application.
if I have to do any kind of a seeting so that application starts listening on 8080 port.
I am using CentOS 5.5 (I tried same on CentOs 5.2)
I have multiple jvm instance of tomcat application on a unix server and its running on different port.i would like to redirect the port and uri.How can i achieve this with the help of apache. i heard we can do it using mod_proxy.
[URL]
Currently when i access http://myapp.xx.com/offer i get 404 error.
one way to achieve this is to rename my exploded app name (offers-service-main) to offer. But i dont want to do that.anyway to achieve it.
This what i have done from my side.
1) installed apache 2.2 with mod_proxy
./configure --prefix=/usr/local/apache2.0
--enable-proxy
--enable-proxy-connect
--enable-proxy-http
2) Added the below config in apache
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /offer http://myapp.xx.com:18120/offers-service-main
ProxyPassReverse /offer http://myapp.xx.com:18120/offers-service-main
But the above configuration dosent seems to be work. Let me know if i need to do anything on the tomcat side.
I have written simple application in cpp which listens on port 8080. But when I start the application and check the port it is listening on (using netstat -nap), I can see that the application is listening on port which is > 30000.
This port number keeps on changing if I re-run the application.Please let us know if I have to do any kind of a seeting so that application starts listening on 8080 port.I am using CentOS 5.5 (I tried same on CentOs 5.2)
I am using Fedora 13 64bit. My eclipse program starts a server on port 9050 but I shutdown the program, eclipse fails to properly shutdown the server. Restarting eclipse has no effect.
How can I close or unbind a port forcibly from command line?
I know rebooting or log off and back on will clear the ports but this much slower process for me. I am looking for forcibly closing the port in command line.
Iam using snmp to access the remote system data.But according to the requirement iam encoding the snmp request data to OAMPDU packet format and sending to remote system.the remote system receives the OAMPDU packet,decodes it and is sending the snmp packet to snmp agent through UDP socket which is bind to port 161.but iam unable to receive the response from snmp agent.i have created a udp socket which is bind to 161 port to receive the response.
if i use any other free port number other than 161 for receiving snmp agent is not sending the response to that port.can any one please suggest me how to overcome this problem.Can we configure the different ports for tx,rx ?How do we know on which port does snmp sends the response ???
I am a network/system Administrator in an avg. based company, we are using Cent Os as servers. We are developing applications in both php & java, for java we are using apache tomcat as server (port number 8080) & for php we are using apache as server (port 80). Php applications are uploaded in the server and giving the link to our clients like localhost.com/chrome. Now we are planning to give the java based application for testing purpose to clients & can give the application link to client as localhost.com:8080/mozilla. Is it is possible to change the link localhost.com:8080/mozilla to localhost.com/mozilla with out changing the portnumber of apache tomcat server & without interrupting the php applications, that means our clients can access php application as localhost.com/chrome & java application as localhost.com/mozilla in the same server at the same time.
View 9 Replies View RelatedWe 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]...
I have an x application I am trying to run under gnome. It assumes a fixed ip address and exclusive use of the eth0. I have run it under gnome on RHEL 5.3. I set the ip address and ifconfig confirms the correct address. When I run it I get "SocketConnect() error:
Resource temporarily unavailabele, port 8005. (on the terminal that I started it)
This is indicative that it has failed to make a connection to the outside world. One difference I notice between the non-working and the working is that, the error message seems to stop coming out on the fedora gnome, almost immediately, whereas on the other installations it will come out indefinitely until it connects. is virb0 interferring. What is different in the networking on fedora 11 then RHEL?
For purposes like compiling GCC from source and being able to do a "profiledbootstrap", I need to be able to use the stage1 compiler (Windows executable) on from Linux. What would be ideal: some setting/command that lets me do gcc.exe from bash and have it work (load WINE automatically). What would be less than ideal but equally fine: tell the GCC build system to call the bootstrap compilers through WINE (ie prepend "wine " to all call to win32 applications).
View 1 Replies View RelatedHow to build the live DVD with win32? Can I use makeSUSEdvd?
View 5 Replies View RelatedI am facing some unusual issue while trying to run any WIN32 applications through WINE in my Ubuntu Lucid AMD64 desktop. As you may see from the attached image, my system reports that executable bit is blocked.I am unable to run any Win32 applications after this.Though I dont use any Windows applications from the day I switched to Ubuntu. But I am keeping this ready just in case if I have to run any ever
View 4 Replies View RelatedI wrote a short story about using computers using Open Office. I saved a copy to my usb drive. When I tried to open it again it was all garbled code. One line of text said: must run under Win32. I can't find Win32 and I cant read my story now. How do I run this thing in Win 32? What does that mean? Do I open Win32 first then Open Office. Or the other way around. Anybody out there know? eeepc900 xandros
View 14 Replies View Relateddo you have any code to flash led lights with paralel port (device driver programming)or any lecture about this subject .if there is a working code this would be better ofcourse.
View 1 Replies View RelatedIs it possible to swap a client ip and port ? This is what I am trying to do. Let say you have Comp1 and Comp2 And you have Server between them. My goal is to get Comp1 and Comp2 know each others IP So Comp1 connects to server And server stores comp1's IP In a text file or other place And Comp2 connect to server And server also stores his info And then both comp1 and comp2 dowload the tex file And use the info on it.
View 9 Replies View RelatedI can't do this with File Roller or 7zip, as they aren't executable in Windows. I'd like to model the archive after the link.URL...
View 3 Replies View RelatedI need help installing programs again because I am trying to install a win32 codec to play wmv files. I am completely new to linux and I guess I'm fucking up my system because now I can't install anything. Here is the error messages I receive when I try to download Banshee This is a major failure of your software management system. Please check for broken packages with synaptic, check the file permissions and correctness of the file '/etc/apt/sources.list' and reload the software information with: 'sudo apt-get update' and 'sudo apt-get install -f'. The sudo apt-get update and sudo apt-get install -f have errors when I enter them as follows
[Code]...
How to make win32 codecs (package w32codec-all) work on 64 bit system? Simple install of "w32codec-all" package doesn't help. I tried to compile mplayer from sources. After finishing configure, the script returned that win32 codes will be unavailable because of 64-bit system.I need to view some avi-files coded in Intel Indeo 4. As I understand, this codec exists only in win32 codecs.
View 9 Replies View RelatedI didn't have any luck finding the solution for not getting opengl working on a SLES11 server with a remote X-Win32 client. As a reference I've used the tool "glxgears" for testing.We have two servers. One (server A) with SLES10 and the other (server B) with SLES11. We use X-Win32 (ver. 9.x) as an X-server on a Microsoft Windows client machine. Both servers are connected to with ssh with X11 forwarding enabled (Xclock works fine on both).Starting glxgears from server A works fine; Three nice gears are displayed.
View 1 Replies View RelatedI have been working on writing a small rs232 driver like minicom for months. I am almost there, I have the interrupt service routine running, I can read() ok. However when I write(), it returns the number of characters written, 1, but nothing is actually written out the port. I researched termios, and they say that serial port programming is really messy in linux/unix.
I am probably not setting up the port parameters correctly, or my write() function is not doing what it is supposed to. As I said, write() is returning successful. Other comm programs run ok (picocom & gtkterm) on my hardware. I am running knoppix/debian on an ancient computer. I saw other guys using slackware.
I have a serial port program which is reading a string .if(read(readfd,sResult,1)>0)where sResult is unsigned char sResult[10];if sResult is array of 10 then iam getting string perfectly but if iam making sResult only as unsigned char I am getting NULL value CODE BELOW
Code:
unsigned char sResult;
main()
{
readfd = open("/dev/ttyUSB0", O_RDONLY);
if (readfd == -1)
{
perror("READ: open_port: Unable to open /dev/ttyUSB0-
[Code]...
i am trying to edit sshd_conf files to change the "#Port 22" to "Port 22" from a script.
I have tried this many different ways.
sshs1='s/#Port 22/Port 22/g'
sed $sshs1 /home/l/Desktop/test
the reason i have it as a string in this instance is because $sshs1 gets a variable, but im not working on that right yet. I've tried changing the ' to ` and ". this is what i get:
sed: -e expression #1, char 7: unterminated `s' command
sed: -e expression #1, char 8: extra characters after command
sed: -e expression #1, char 8: extra characters after command
"
sed: -e expression #1, char 7: unterminated `s' command
i know it may have to do with my regex, but i cant seem to find a decent tut.
I want to do a simple port redirect, i.e. whatever comes trough whatever interface on port AAAA will get redirected to port BBBBI thought that iptables -t nat -I PREROUTING --source 0/0 --destination 0/0 -p tcp --dport AAAA -j REDIRECT --to-ports BBBBhowever it doesn't work, e.g. nc -v -w2 -z localhost AAAA gives:
nc: connect to localhost port AAAA (tcp) failed: Connection refused
while
nc -v -w2 -z localhost BBBB
[code]....