36 Discussion / Question Topics

Remove Filter
Member Avatar for ktsangop

Hello everyone! I have a server/client application running in 4 internet cafes, and i have a packet duplication problem in one of them. I have thoroughly examined my code and tested it in my lab and cannot find any bugs whatsoever. So on rare conditions some of the clients seems …

Member Avatar for Khaled_6
0
2K
Member Avatar for ktsangop

Hello everyone. I would like to know if there is a factory default configuration for the WD My book world NAS. I am helping a friend that has one of those in their office and the web interface states that the capacity is 1TB but nowhere in the gui did …

Member Avatar for ktsangop
0
276
Member Avatar for ktsangop

Hello! I would like some help with a piece of java code that i'm having problem. I have to make simultaneous tcp socket connections every x seconds to multiple machines, in order to get something like a status update packet. I use a Callable thread class, which creates a future …

Member Avatar for ktsangop
0
524
Member Avatar for ktsangop

Just wanted to inform you that an advertisment i clicked on, leads to a non working link. Seems that the forwarded link is missing the semicolon (:) after http. I click on ads once a year maybe so i had to report it... :D This is the url behind the …

Member Avatar for pritaeas
1
276
Member Avatar for ktsangop

Hello everyone! Is it possible to write a query which does the following : UPDATE db.table SET col1 = 1 WHERE col2='something' AND col3 IN ('a','b','c') ELSE SET col1 = 0 Meaning that the rows that don't match the where conditions will also be updated to another value. Note that …

Member Avatar for ktsangop
0
239
Member Avatar for ktsangop

Hello everyone! I would like your help regarding this: I have a tuple vector which i must iterate through, and accessing the vector data to decide wether to erase or not the current vector element. My code : typedef tuple <int, CString, int, int> pc_data; vector <pc_data> pc_vec; //Assume that …

Member Avatar for ktsangop
0
6K
Member Avatar for ktsangop

Hi everyone. I would like to implement a counter using ajax that will act like this: The script will send a XMLHttpRequest every x seconds which will return a value from a mysql database. Using the current and previous value retrieved from the server, the script will increase the counter, …

Member Avatar for ktsangop
0
267
Member Avatar for ktsangop

Hello everyone, I would like to use HP's system recovery (F11 on boot menu, not the windows application) to revert my laptop to its factory state. The thing is that i have created a disk partition to keep my data which wasn't present by default. Will the recovery delete my …

Member Avatar for TAMILSELVANBABU
0
1K
Member Avatar for ktsangop

Hi everyone! I am trying to set up a reverse ssh tunnel from a windows machine using Cygwin (openssh) , to a Linux server machine with static ip, so i can access the windows pc directly through the server from any other machine. My ultimate goal is to be able …

Member Avatar for ktsangop
0
2K
Member Avatar for ktsangop

Hello everyone! Just as the title suggests, i would like to know if it's possible to set the position of a dialog box. The default behaviour, is to appear in the center of the screen I use it this way : public static int confirmationBox(String infoMessage, String location) { int …

Member Avatar for ktsangop
0
3K
Member Avatar for ktsangop

Hi everyone, I am a C/C++ winapi developer and have to rewrite a "Dialog based" application in java, so that it will execute as an applet in any browser. My java skills are very few, since my knowledge is limited to past college classes. The application is not a large …

Member Avatar for ktsangop
0
376
Member Avatar for ktsangop

Hi everyone. I am trying to help a friend with her macbook which faces a mysterious problem. The macbook cannot access certain sites like facebook and pinterest when my friend uses her home wifi connection. The problem appears both on safari and chrome. When she came to my home using …

Member Avatar for Wil 0' Wisp
0
284
Member Avatar for ktsangop

Hello everyone! I would like some suggestions on picking a game development technology/language. My requirements are : 1) On line / Web based game only 2) 2d animation only (for the time being). Using mostly sprites and modelling only simple 2d shapes. 3) No need for an advanced physics engine. …

Member Avatar for ktsangop
0
346
Member Avatar for ktsangop

Hi everyone, i would like some help with a couple of mysql queries. I have a table of data which looks like this : ![grid1](/attachments/large/2/grid1.PNG "grid1") And represents a transaction log for players of a game. The ID is the primary key (auto incremented). DATETIME is the date and time …

Member Avatar for pritaeas
0
239
Member Avatar for ktsangop

Hello i'd like to ask a quick one. -Mfc VC++ 6 application. -NO Unicode support by design. -Greek characters appear fine in all dialogs since OS is Windows Greek version (?) -Greek text is both hard coded in c++ source files and retrieved from mysql database. -ONE specific Edit Box …

0
106
Member Avatar for ktsangop

Hello everyone! I have a rather mysterious problem. I have a mfc dialog based application (running on win xp sp3), and at the same time another mfc app that installs a global keyboard hook capturing the ESC key (this one is always hidden). SOMETIMES when i press ESC key (with …

0
145
Member Avatar for ktsangop

Hello everyone. As the title suggests i need to implement a type of timer based function inside a UI Thread in MFC. Although CWinThread is a UI Thread and has a message pump it does not have a Timer function as CWnd::OnTimer Is there any way i can implement a …

Member Avatar for ktsangop
0
768
Member Avatar for ktsangop

Hello everyone! I am building a mfc dialog based application in visual c++ 6 and using mysql c api to connect to a database. What i need is a simple type of data grid to show mysql query results in a dialog. I do not need to edit, update, save …

Member Avatar for ktsangop
0
1K
Member Avatar for ktsangop

Hi everybody! I am having some trouble running a detached process using CreateProcess function in C++. I have been using the following function to spawn processes in c++ for years now havnig no trouble. I have used it with console applications, mfc apps, dialog based ... etc : StartProc(char *callprogram, …

Member Avatar for ktsangop
0
825
Member Avatar for ktsangop

Hello everyone! I want to monitor my network using wireshark 's tshark command line tool. What i want to accomplish is to redirect tshark's output to a c++ application, so i can examine data and output a more comprehensive analysis without keeping a huge amount of data. I am working …

Member Avatar for ktsangop
0
973
Member Avatar for ktsangop

Hi everyone! I have a quick question. Is there any way i can update python package for cygwin manually? The setup.exe which handles cygwin installation and updates, prompts me to update the whole cygwin installation to 1.7.x but i would like to keep using the older version (1.5.25). I only …

0
150
Member Avatar for ktsangop

Hi everyone! I'm having trouble on my hp laptop. The system won't post, instead i get a blank screen and CAPS LOCK + NUM LOCK leds blinking twice, then pause, then blinking twice repeatedly. According to hp support website this indicates : BIOS CORRUPTION [URL="http://h10025.www1.hp.com/ewfrf/wc/document?lc=en&dlc=d&cc=dk&docname=c01443366"]http://h10025.www1.hp.com/ewfrf/wc/document?lc=en&dlc=d&cc=dk&docname=c01443366[/URL] So i tried to clear …

Member Avatar for rameneater90
0
1K
Member Avatar for ktsangop

Hello everyone! I want to add a licence expiration feature in my application (written in visual c++). When the licence expires i would like my application to generate a random numerical key which will be sent to me by the user. Using this key and a personal key-generator i would …

Member Avatar for ktsangop
1
2K
Member Avatar for ktsangop

Hello everyone. I am trying to publish a win projector (.exe) for a flash project using CS5.5 and Flash Player 11. I downloaded the following extension : [URL="http://blogs.adobe.com/rgalvan/2011/11/adding-fp11-support-to-flash-pro-cs5-and-cs5-5.html"]Flash Player 11 support for CS5[/URL] and therefore i can use Flash Player 11 in publish settings. When i publish swf and load …

Member Avatar for ktsangop
0
245
Member Avatar for ktsangop

Hi there! I would like a little help regarding the following code. The following code will wait for a non-blocking socket connection, and then wait to receive a certain packet. When the packet arrives, it will do something and then close connection and reinitialize it in order to be able …

Member Avatar for ktsangop
0
391
Member Avatar for ktsangop

Hi everyone! I am trying for the first time to write "proper" object oriented c++ (ANSI) code. Up until now everything was made easy to me using visual studio and working with mfc or .net which both handle a lot of the "dirty" stuff... To the point : I want …

Member Avatar for ktsangop
0
962
Member Avatar for ktsangop

Hi everyone! I am using a dll to hook keyboard strokes for my application. The hook works fine, but now i want to disable some keystrokes while my application is running. So i did the following : [CODE]_declspec(dllexport) LRESULT CALLBACK KBHookProc(int Code, WPARAM wParam, LPARAM lParam) { if (Code < …

Member Avatar for ktsangop
0
1K
Member Avatar for ktsangop

Can anyone please give me a guideline on how to code the following? I have an MFC application which should call on a timer basis a python script from command line and read the ouput of that command line. I thought of using CreateProcess, but i have no clue of …

Member Avatar for ktsangop
0
436
Member Avatar for ktsangop

Hi everyone! Just wanted to ask before i begin messing around. Is it possible for two processes to access the parallel port simultaneously? So that if i short circuit Input pins to output pins of the parallel port one process will provide input to another one? I am using Windows …

Member Avatar for ktsangop
0
211
Member Avatar for ktsangop

Hi everyone. I'm facing a tricky problem with keyboard hooks in visual c++ (MFC). I have two global keyboard hooks set in my application and everything works smoothly when windows explorer is running. But my application needs to run without windows explorer (in kiosk mode), so i replace explorer.exe with …

Member Avatar for ktsangop
0
256
Member Avatar for ktsangop

Hi everyone! My function UsbID uses the libusb library ([url]http://www.libusb.org/[/url]) to get a flash disk's serial number. Libusb needs for some reason a Window created or else it doesn't work properly for me. So i created a CWnd inside my UsbID function which is invisible. My problem is that if …

Member Avatar for ktsangop
0
140
Member Avatar for ktsangop

Hi everyone. I have an MFC project in Visual C++ 6 and was wondering in which way can i detect the level of audio output. I want to execute some code only when no sound is sent to the audio output. Could anyone please give me a clue of how …

Member Avatar for ktsangop
0
164
Member Avatar for ktsangop

Hello everyone! I am using python 2.6 on cygwin environment and wondering how could i prevent two python processes from writing to a file at the same time. The file that is shared between the python processes is an ini file and is accessed through ConfigObj module. The first python …

Member Avatar for ktsangop
0
378
Member Avatar for ktsangop

Hi everybody! I'm facing a really tricky problem in python. I am using the pyserial package to communicate with an external serial interface board. The board accepts certain hexadecimal strings as commands in the following form : --example-- command1 : "\x02\xa1" command2 : "\x03\xa2\xb5" etc... Some of the commands are …

Member Avatar for ktsangop
0
268
Member Avatar for ktsangop

Hi everybody. Could someone explain me the usage of python's modulo operator and/or the fmod function? why do i get these results? >>> 23%0.1 0.099999999999998729 >>> import math >>> math.fmod(23,0.1) 0.099999999999998729 >>> normally 23 mod 0.1 = 0 because 23 / 0.1 = 230 exactly is there anything wrong there …

Member Avatar for ktsangop
0
245
Member Avatar for ktsangop

Hello everybody. I'd like some help with a query. I have a database named 'base1' which contains many tables. Some of the tables have names like 'track1' , 'track2' etc... which have identical columns. I would like to select all the tables beginning with track and show the data of …

Member Avatar for ktsangop
0
192

The End.