132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tomtetlaw

First of all I learnt how to do this from http://nehe.gamedev.net/tutorial/playing_avi_files_in_opengl/23001/ AVIStreamGetFrameOpen is always returning NULL. I checked to see if I could open the AVI file in windows media player and that worked, so that means it can't be a codec problem, right? I'm not too sure. All the …

Software Development c++
Member Avatar for tomtetlaw
0
257
Member Avatar for HTMLperson5

By opaque binary i mean so that people cannot see the source code if they open the file in their text editor, so instead of seeing: print "You cant see me!" it would be something like: "0101010001010101001001010" And yes, i am trying to do this with python.

Software Development open-source python
Member Avatar for TrustyTony
0
215
Member Avatar for Mojtabarahimi

Hi guys Actually i have problem to convert my C++ program to C! Because C is too old and unusable, i tried to find and read so many sources, but finally i got some errors. Anyone can help me?! Thanks Regards C++ Files: Main.cpp #include <iostream> #include <cstring> #include <cstdlib> …

Software Development c c++ data-structure
Member Avatar for Ancient Dragon
0
392
Member Avatar for jonnyboy12

Hello. I am working on a windows form right now. My form is very full and i am using many textures. I have double buffered my form and made exteded classes for anything with a texture that has double buffering. Before i had double buffered everything my form was very …

Software Development c++
Member Avatar for triumphost
0
118
Member Avatar for Transcendent

I'm using Eclipse c++ and when I run a program it says: launch failed. Binary not found. how can i fix this?

Software Development c++
Member Avatar for nanu707`
0
371
Member Avatar for bazzer14

I want to know how to create our own file, such as: (.Docx). If we opened the file in notepad the characters contained in the that's file could not understand, so i would like to know by what method of making the it's file? Is the file created and use …

Software Development encryption file-system vb.net
Member Avatar for bazzer14
0
139
Member Avatar for raj874

HWND hwndt; hwndt = FindWindow(NULL,"Windows Task Manager"); here FindWindow funnction not work in c language its returns NULL yes i know i can use first perameter also but i wanna use second perameter titel in this function i use dev c++ compiler and also add to project user32.a lib tell …

Software Development c
Member Avatar for adityatandon
0
124
Member Avatar for sumanth.boss

When i Connect to Mysql using TURBO C++,im getting error unable to open include file mysql.h mysql_version.h mysql_con.h mysql_time.h i added the include files and set path . even then im getting error . help me :(

Software Development c mysql
Member Avatar for adityatandon
0
375
Member Avatar for MasterHacker110

I have this C++ network client program but it has an error. Here is the error: error C2664: 'wsprintfW' : cannot convert parameter 1 from 'char [128]' to 'LPWSTR' Here is the code: // Client program example #define WIN32_LEAN_AND_MEAN #include <winsock2.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #define DEFAULT_PORT 2007 …

Software Development c++ client-server data-structure tcp-udp
Member Avatar for mitrmkar
0
318
Member Avatar for ocw91

I was trying to reduce my jtextfield height, since it is for user to enter first name. somehow when i run the code, the box is just too big, is there anyway to change the textfield height? i tried with setPrefferedSize but somehow it showing error, mayb i put it …

Software Development java java-swing
Member Avatar for Majestics
0
2K
Member Avatar for tonyprotop

I am new in Perl and generally in programming. I face some real problems here. I need a Perl script that can open a text file, read a series of URLs, get the content of the pages and save it to another file. Thanks deeply for any guidance.

Software Development perl
Member Avatar for tonyprotop
0
179
Member Avatar for hekri

Hi, I've just finished my c++ class (mechanical engineering) and as the final exam we have to create a simple program with graphical user interface and I need some help from you guys. T**he task is this**: we have to make a simple GUI that can take the diameters of …

Member Avatar for hekri
0
200
Member Avatar for BryantFury

Hi ive made a code where a user makes a list and then displays it. he may also delete objects one by one. suppose i wished to clear all in one go. How would i go about doing this? thank you in advance. my code is below. all works except …

Software Development c++ linked-list
Member Avatar for BryantFury
0
123
Member Avatar for hwoarang69

for some reason iam not getting the right map. i think the problem is x += 130; y += 130; #include "DarkGDK.h" const int ROWS = 10; const int COLS = 13; int level[ROWS][COLS] = { {1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,1,1,0,0,0,0,0,1}, {1,0,0,0,0,1,1,0,0,0,0,0,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1} }; void DarkGDK(void) { …

Software Development c++ gaming
0
114
Member Avatar for blueyan

[Click Here](http://img196.imageshack.us/img196/3873/captureiv.jpg) for the snapshot of my problem. string operand; string opCode; struct MacroNameTable{ string macroName; int start; int end; int invocation; string operandCounter; }; struct MacroNameTable NAMTAB[NAMSize]; void addNAMTab(){ NAMcounter++; cout <<"check NAMcounter: ["<<NAMcounter<<"]"<<endl;//debug cout <<"check this operand: ["<<operand<<"]"<<endl;//debug cout <<"check this opCode: ["<<opCode<<"]"<<endl;//debug NAMTAB[NAMcounter].macroName=opCode; NAMTAB[NAMcounter].start=DEFcounter; NAMTAB[NAMcounter].operandCounter="AA"; } operand …

Software Development c++
Member Avatar for blueyan
0
134
Member Avatar for HTMLperson5

How can you get an `if` statement in another `if`, for instance: $line = <STDIN>; if $line eq "\n") { print "You did not type anything } else { print "You said: $line"; } Could you put another` if `next to the place where it says: You said: blah like …

Software Development perl
Member Avatar for HTMLperson5
0
157
Member Avatar for vinayphadke

Hello Guys, I was performing text file reading and writting operations and the job looked very simple as usual, yet it has not been solved successfully. We have got a simple text file **final.txt** which contains data like this:- **05/18/2012 02:12:66 8HRY hjhruehr737243 YES NO u34gewryge 698** i.e each value …

Software Development c c# c++ file-system
Member Avatar for gnath
0
265
Member Avatar for tomtetlaw

Are there any libraries out there that allow me to play .avi files within my OpenGL application?

Software Development c++ opengl
Member Avatar for tomtetlaw
0
143
Member Avatar for achava

Suppose I need to have a regex expression (using Perl regex) that, say, matches a*b\q as simple text and does not interpret a* as any number of a's. I know it is simple here, but I need it to work for ANY string of characters.

Software Development perl regex
Member Avatar for 2teez
0
303
Member Avatar for Sunshine2011

#include <iostream> #include <vector> #include <iterator> using namespace std; class members { private: int Age; int Money; public: void setAge(int age) {Age=age;} void setMoney(int money) {Money=money;} int getAge()const {return Age;} int getMoney()const {return Money;} members(int age=0,int money=0): Age(age),Money(money) {} }; int main() { vector<members>v_members; for(size_t i=0,z=0;i<10;++i,++z) { if(z!=5) { v_members.push_back(members(50,70)); …

Software Development c++
Member Avatar for Sunshine2011
0
237
Member Avatar for Jamblaster

I can't tell why this piece of code wont work, but another one which I wrote does because they look exactly the same to me. Please tell me if you can see what the difference is because I cannot. I tried using the code snippet thing, but it doesn't let …

Software Development c
Member Avatar for Jamblaster
0
211
Member Avatar for GeekTool

package newsatranc; import java.awt.BorderLayout; import java.awt.Color; import java.awt.ComponentOrientation; import java.awt.Cursor; import java.awt.GridLayout; import java.awt.event.InputEvent; import java.awt.image.BufferedImage; import java.io.IOException; import java.io.InputStream; import java.util.Map; import java.util.TreeMap; import javax.imageio.ImageIO; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JToolBar; import java.awt.Dimension; public class NewSatranc extends JFrame { private static …

Software Development java java-swing
Member Avatar for NormR1
0
262
Member Avatar for jefferson33333

hi there guys i have no experience doing jave code so i am wondering if you can help with something i have been told to do a register code (the class register) for a game with windows pop in and out during the fill in blanks like name, surname, id …

Software Development java
Member Avatar for jefferson33333
0
392
Member Avatar for kuchi

We have requirement to write simple xml in string format from listed dictionaries iterating through list and iterating through each dictionarie and write xml format (i.e. dict key is xml key and dict value is dict value ex:- <First_name>James</First_name> ), if the value contains dictionary again we need to loop …

Software Development python
Member Avatar for TrustyTony
0
245
Member Avatar for MasterHacker110

When i compile my code with visual studio 2010 express i get the following errors: 'Client.exe': Unloaded 'C:\Windows\SysWOW64\WSHTCPIP.DLL' And with the other program i get these: 'Server.exe': Loaded 'C:\Users\User\Desktop\Server\Debug\Server.exe', Symbols loaded. 'Server.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file 'Server.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB …

0
78
Member Avatar for HTMLperson5

I need some ideas for the python text based game i am making, it looks like this so far: from time import sleep import sys #Functions set at start of code def helpme1(): for a in 'Recognised commands are: explore, help, suicide, flee, look, get,open door, run and attack. With …

Software Development gaming python
Member Avatar for Gribouillis
0
4K
Member Avatar for Sendy Hipo

Hello, im a bit new to c++ and learning in my own, but im stuck to a problem. Im trying to do a practice converting string/c-string to int : Sum of Digits in a String Write a program that asks the user to enter a series of single digit numbers …

Software Development c++
Member Avatar for Sendy Hipo
0
549
Member Avatar for AP07KJT

Hi, I've written the below code as part of a University assignment, it compiled ok in Eclipse but returns the `<identifier> expected` error when compiling via the command line. The error appears on lines 7, 8, 12, 13 and 20. Could anyone shed any light on why i'm getting it …

Software Development java
Member Avatar for JamesCherrill
0
3K
Member Avatar for c.pentasuglia

Suppose i have a class that implements an interface, the interface is not implementing anything currently. This class and interface are bundled together in the same java program. So i have another program, and through a dependency i want to get that information from that class i spoke of in …

Software Development java user-interface
Member Avatar for NormR1
0
212
Member Avatar for MasterHacker110

Why do i have to include stdafx.h everytime in visual C++ 2010 express. Evertime i make a project i have to include that damn header, whats so special about it and how can i avoid including it and still compile my program. I have tried to leave it out but …

Software Development c++ client-server visual-studio
Member Avatar for MasterHacker110
0
576
Member Avatar for Andy90

Hi, I have to seperate C# projects! Project 1 and project 2 Project 1 contains form1 and project 2 contains form2. What I did is, I have merged these two projects solution. And I have created a button in form1, which when clicked opens form2 from project2. When I compile …

Software Development
Member Avatar for gusano79
0
142
Member Avatar for cyberdaemon

how can i save multiple record in single click using user define data type in SQL i am having problem in selecting the value in gridview using checkbox here my code View // View LAyer protected void imgbtnSave_Click(object sender, EventArgs e) { DataTable dtTable = new DataTable(); DataRow dtRow = …

Software Development
Member Avatar for nmaillet
0
112
Member Avatar for citizen5

Small part of my code: `GetWindowThreadProcessId(hWnd, &dwID);` `hProcess = OpenProcess(PROCESS_ALL_ACCESS, NULL, dwID);` `string value =" [_this] exec \"\\newfolder\\scripts\\start.sqf\"";` `WriteProcessMemory(hProcess, (LPVOID) 0x09BA3F95, (LPVOID) &value, sizeof(&value), NULL);` I am 100 % sure it has to do with my `value` being a `string` but I haven't found anything helpful elsewhere, even though I've …

Software Development c++ motherboards-cpu-ram windows-api
Member Avatar for citizen5
0
515
Member Avatar for jayawant.sawant

Hi all, how to hide process in the taskmanager of windows 7 in vb.net? How to hide any process in windows 7 using vb.net. If you have any solution then please give me the links or urls related to such task. Thanks, Jayawant

Software Development vb.net
Member Avatar for Begginnerdev
0
298
Member Avatar for shahbaz13

Hi there, I have made a spell checker in PHP which does spell checking by splitting the words by space, checks wheather the word is spelled correctly from a database dictionary, if not, It shows some suggestions when a user clicks on it and also highllights the wrong spelled word... …

Software Development vb.net
Member Avatar for Begginnerdev
0
157
Member Avatar for jwings

I have problems with adding images to JFrame java application. Now I am using Eclipse IDE. Below is the code that no images is shown. import java.awt.BorderLayout; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JFrame; public class LabelDemo { public static void main(String[] args) { JLabel northLabel = new JLabel("North"); ImageIcon labelIcon …

Software Development gui ide image java java-swing
Member Avatar for NormR1
0
257
Member Avatar for sundog1

Hi guys, I have an issue with the code I've written in C# where the listview will connect to the database without a problem but it will only populate the 1st row of the table BUT.... it will duplicate it for the exact amount of records I am expecting to …

Software Development dataset listview open-source
Member Avatar for sundog1
0
153
Member Avatar for reeturajc

` import java.io.*; class Mobile { public static void main(String args[])throws IOException { BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); double a;b=0; System.out.println("Enter ICCID or Sim No."); a=double.parsedouble(in.readLine()); if(a=89912507111140687941) b=7277526804; else if(a=89915241100005705108) b=8084698160; else if(a=89912507111140687958) b=7277526805; else if(a=89912502113154600856) b=9852994726; else if(a=89912502113154600989) b=9852999686; else b=121 system.out.println("Your Mobile Number "+b); } } `

Software Development java
Member Avatar for stultuske
0
576
Member Avatar for you2

Hi, I have a requirement to convert a unsigned int 32 value to a IP address dotted format. Can this be done using a C function? Requirement: Eg: Input value = 3232235691 i.e 11000000 10101000 00000000 10101011 Converted to LAN Ip - 192.168.0.171 Please help.(Newbie to C programming)

Software Development c
Member Avatar for pj.david_rajesh
0
14K
Member Avatar for sundog1

Hi guys, I'm new the this forum where I'm hoping to get some friendly advice for a bit-of-a-newbie C# programmer. I've been through 2 differnt beginners courses on the code so now i'm ready to get my hands in the code! I'm currently having a problem with loading all data …

Software Development sql
Member Avatar for sundog1
0
173
Member Avatar for 330xi

Hi! In my program MFC Doc/view one view constantly displaying what the camera is "seeing". After some event I want to show in the other window - dialog the image that has been in the view in the moment of event. I have code in Dialog window that succesfully draws …

Software Development c++ data-structure
Member Avatar for 330xi
0
154
Member Avatar for 330xi

I have this error in atlimage.h line 1568 while trying to save picture. In release mode everything is "fine" but no new file appears. Here is the code: CClientDC dc(this); CDC dcMem; CBitmap m_bmpBack; GetClientRect(&rc); hBmp = LoadImage(NULL,name,IMAGE_BITMAP,0,0,LR_LOADFROMFILE); GetObject ( hBmp, sizeof(bm), &bm ); m_bmpBack.Attach(hBmp); dcMem.CreateCompatibleDC(&dc); hbmpOld = (HBITMAP)dcMem.SelectObject(m_bmpBack); //hToSave …

Software Development c++
Member Avatar for 330xi
0
432
Member Avatar for tweeeter

I need to modify the following program to store person objects instead of integers. Include a function to input person data from the keyboard in the person class (similar to the readRecord() function). Also add a non class function to display the list contents. Include a separate search function (search …

Software Development c c# c++ linked-list
Member Avatar for Ancient Dragon
0
164
Member Avatar for nikita.

CONFIG_FILE="${HOME}/sample/seq.cfg" count=`awk 'END {print NR}' $CONFIG_FILE` echo $count t=1 while [ "$t" -le "$count" ] do output_var=`awk -v v1=$t '$1 ~ /v1/ { print $1 }' $CONFIG_FILE` input_var=`awk -v v1=$t '$1 ~ /v1/ { print $3 }' $CONFIG_FILE` echo "O=" $output_var echo "I=" $input_var done the above code is giving …

Software Development shell-scripting
Member Avatar for nikita.
0
255
Member Avatar for belber

Hy all, I wan't to ask, how to update jdk in netbeans..?? i have netbeans 7.0.1 and jdk 1.6 in the netbeans but i want to update it to jdk 1.7 help me...

Software Development java
Member Avatar for belber
0
123
Member Avatar for zachattack05

I have a listbox that has a context menu that goes with it. The context menu has 3 options on it following the basic "Create new...", "Edit selected..." and "Remove selected..." style. The rule is that at least one item must be in the listbox at all times, the user …

Software Development user-interface
Member Avatar for zachattack05
0
194
Member Avatar for Iamkenny

Hey guys I have a new problem. I am using mysql as my database. I want to get the sum of an amount between 2 dates heres my code for mysql: select sum(amount) from orderline group by orderlinedate between 'Datehere' and 'Datehere'; But my problem is how do i get …

Software Development vb.net
Member Avatar for wen_cai
0
390
Member Avatar for Interista

Hi im creating a linked list with these data types etc string firstname string surname int age would anyone give a simple instruction to put these in a new node as i have tried everything but still doesnt work so far i have done this nodeType *first,*newNode, *last; cout<<"Name: "; …

Software Development c++ linked-list
Member Avatar for corby
0
2K
Member Avatar for shifat96

The title might sound confusing, so here is what I want to do: I am currently working on a school project, and I have to make a rock, paper, scissors game. I am almost done and only need one more thing. I have two methods (bigWinner and finalResult) In method …

Software Development java
Member Avatar for corby
0
5K
Member Avatar for lxXTaCoXxl

I think this is the first actual discussion thread of code on a coder's website I've actually ever seen, and I'm the one posting it. (HA!) So basically; I got bored and found a website called Project Euler. It has a bunch of "mathematical" problems to solve. Eight pages and …

Software Development
Member Avatar for Momerath
0
171

The End.