Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
89% Quality Score
Upvotes Received
9
Posts with Upvotes
8
Upvoting Members
8
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
5 Commented Posts
~36.8K People Reached
Favorite Tags

49 Posted Topics

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 jeffcogswell
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 ralph.d.abernathy.1

This is a very good tutorial for mfc dialog based application beginers http://www.codeproject.com/Articles/589/A-Beginners-Guide-to-Dialog-Based-Applications-Par It's a 15 minute read and once you complete it i am sure you will be able to create a dialog with a button that executes some code. Also how to parse input from textboxes. You could …

Member Avatar for ktsangop
0
454
Member Avatar for adrian9989

C++ code seems ok, tested it my self and works without any exceptions. Of course my client is : http://www.drk.com.ar/builder.php (you can download and check it with this one also) Don't know about java, but you should ensure that your server's ip address is the one you typed and there …

Member Avatar for ktsangop
0
2K
Member Avatar for vikuseth

I am not sure if this will help but take a look at this function as well: http://msdn.microsoft.com/en-us/library/windows/desktop/aa385449(v=vs.85).aspx Also if you are willing to sacrifice a little bit of modularity you could store all names in an array and remove the names which you are sure that are not neccessary. …

Member Avatar for ktsangop
0
329
Member Avatar for tombombadilly

I have no idea of OpenGL but i think you should consider that adding an external monitor changes the hardware capabilities of your platform, thus changing the way that OpenGl "accesses" it. Which might mean that either your OpenGl initialization is incorrect, or your hardware is not capable of handling …

Member Avatar for ktsangop
0
260
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 blackrainbowhu

You can use the following functions : 1. **strtok** to parse strings seperated by a token (';' in your case). 2. **strcmp** to compare if two strings are the same. In a while loop you can use strtok to get each of your records' data and use a counter variable …

Member Avatar for Banfa
0
437
Member Avatar for JaceLightning

I think it works like this. They software is in fact a virtual desktop multi screen application http://en.wikipedia.org/wiki/Virtual_desktop#Windows combined with a screen sharing application http://en.wikipedia.org/wiki/Desktop_sharing The server side of the application captures the non-primary virtual desktops and sends a network stream to the clients, which are of course the other …

Member Avatar for ktsangop
0
253
Member Avatar for SyedFaheelAhmad

I don't have Borland installed but this might help you : http://www.cplusplus.com/forum/beginner/3485/

Member Avatar for ktsangop
0
163
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 winter7621

How do you know your threads are done computing before your main function starts printing their values? You have to implement some kind of signaling between the threads and the main function. Perhaps use a global volatile BOOL variable e.g. ThreadIsDone; set it FALSE when the thread starts and TRUE …

Member Avatar for ktsangop
0
2K
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 klharding2

All your function declarations have the file path variable as a char argument. for example : double slopec (double dinner, double douter, **char inputfilename**) But the char variable holds only one character. and you declare inputfilename as: char inputfilename[50]; which is a 50 character array. So first of all read …

Member Avatar for ktsangop
0
186
Member Avatar for owenransen

Have you tried to open NameOfProject.rc file with a text editor to see its contents? If no, this file usually reside to the NameOfProject\res\ directory. Open it with notepad and search for IDR_MAINFRAME declaration. There should be a line something like : IDR_MAINFRAME ICON DISCARDABLE "res\\NameOfProject.ico" Also in the costructor …

Member Avatar for ktsangop
0
475
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 senergy

You can run your executable either at system shutdown or at user logoff using group policy editor. It works smoothly i use it all the time. Type gpedit.msc at a command line prompt, and navigate either to : computer settings-> windows settings -> scripts (startup / shutdown) or user settings-> …

Member Avatar for ktsangop
0
144
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 +_+man

You should start by reading about Hooks in MSDN. [url]http://msdn.microsoft.com/en-us/library/ms644959%28v=VS.85%29.aspx[/url] There's no easy and universal way to create a keylogger. It all depends on what and how you want to do something... Anyway, be also prepared to read about creating DLLs because that's the only way to create GLOBAL hooks. …

Member Avatar for bhanumaurya
0
382
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.