49,766 Topics

Member Avatar for
Member Avatar for dzhugashvili

alright, so I recently obtained a reference implementation of MD5. I benchmarked it, and it ran about 30% faster than OpenSSL's MD5. The function call is as such: [CODE]fast_MD5(unsigned char *pData, int len, unsigned char *pDigest);[/CODE] it worked great for a simple MD5 hash cracker, but I had trouble tweaking …

Member Avatar for dzhugashvili
0
122
Member Avatar for VIkhers

Hello,, I'v had some problem,,, when i read a file,using visual C++ 2005. example: a.txt 111,222,333, 444,555,666 with this code : StreamReader^ din = File::OpenText(fileName); String^ str; int count = 0; while ((str = din->ReadLine()) != nullptr) { count++; Console::WriteLine("line {0}: {1}", count, str ); } How can I, convert …

Member Avatar for VIkhers
0
136
Member Avatar for Azurea

Hey guys! I'm requesting constructive criticism on the code that I've written so that I might get a better idea of how to strengthen my code while keeping it short and sweet, or even just pointing out unnecessary things or things that I should have added. My assignment was: [quote]Write …

Member Avatar for siddhant3s
0
138
Member Avatar for kou yuuzhen

hello all, i'm a biology student currently taking programming in uni, and i have a homework question to solve. i have to write a programme to create and print a one-month calendar which can be used as month and year calendars as well. the programme should be able to; 1. …

Member Avatar for necrolin
0
161
Member Avatar for CoolGamer48

Hey, I download DarkGDK for Visual C++ 2008 Express (also downloading the correct version of the Direct X SDK). I just saved the SDK in some random directory, so when I try to execute the test code, i get an error telling me d3dx9.h can't be found. So, where do …

Member Avatar for Sepiantum
0
489
Member Avatar for kevintse

Well I am writing a program for Windows Mobile phone, I need to read text files in the program, the character sets (charset) of the files I am going to read are unknown, here I need to convert whatever text(Actually I probably only need to handle UTF-8, UTF-16 BE, GBK, …

Member Avatar for kevintse
0
312
Member Avatar for seakayaker

Hi, I wonder if you could recommend a book that talks about methods for optimization (error function minimization) in conjunction with C++? In particular I am interested in methods for numerically minimizing a multi variable error function, e.g. f(x,y,z, ...). My applications are such that I know that gradient methods …

Member Avatar for daviddoria
0
141
Member Avatar for colmcy1

Hey all, I am trying to check if a .exe file is open, if it is open bring it to foreground, if it is not open open .exe file and bring to foreground. The code I have written doesnt seem to recognise if the program is open or not as …

Member Avatar for colmcy1
0
2K
Member Avatar for weeken88

Ei guys... I'm about to make a project involving the use of a LAN cable/port and c++ I would like to use c++ to to send bit (Binary Output) outputs through a LAN cable. just like what we do with c++ and parallel ports, but this time I'll be using …

Member Avatar for weeken88
0
91
Member Avatar for laconstantine

I am playing with function hooking so I wrote simple program that calls DisplayMessage Function which prints out Hello.. [CODE] void DisplayMessage() { cout << "Hello"; } [/CODE] After this one i found the DisplayMessage offset its (0x00131000) now my target is write a dll to change DisplayMessage function to …

Member Avatar for Ancient Dragon
0
182
Member Avatar for crazylunatic

I am writing a small app which uses CreateFile to get handles to the volumes present on a system. The access mode specified is GENERIC_ALL and the share mode is FILE_SHARE_WRITE. The call to CreateFile is successful for all volumes barring the system volume. I googled a lot but there …

Member Avatar for NathanOliver
0
1K
Member Avatar for umair125

i m developing a movie rental shop project where i have a class as name as Movie. in public there are sum functions like add movie,view movie list etc. the problem is that i don,t know what would b in private access. in movie i have the tital of movie, …

Member Avatar for Salem
0
133
Member Avatar for selsium

hi folks, I am getting the below error , I changed strcpy to strcpy_s but no result. I checked for the data types of arguments passed , they are same. No difference. I am using visual studio2005 .Net frame work. What may be possible solution? please help... if (n>0) { …

Member Avatar for Dave Sinkula
0
106
Member Avatar for azjherben

Shouldn't this code work? (select()) Well, this is basically a proxy. It takes things from a program that is running on port 15777 and the puts it out to host on port 15776, but sence I added the select() witch is needed. It hasn't been working right. Any help? [code] …

Member Avatar for azjherben
0
170
Member Avatar for xfreebornx

Show for session: 1. 2pm- 4pm 2. 8pm- 10pm 1 -------------------------------------------------------------------------------------------------- Enter number of adult customers 2 Enter number of child customers 1 The receipt for the purchase is: Adult 2 20.00 Children 1 5.00 TOTAL 25.00 Press Y to continue Y --------------------------------------------------------------------------------------------------- Enter number of adult customers 2 Enter …

Member Avatar for Ancient Dragon
0
115
Member Avatar for risa

Hi, How to remove OK and Cancel button of propertysheet? And also how to remove tiltle bar of propertysheet just showing the tabs of property pages?

Member Avatar for Ancient Dragon
0
50
Member Avatar for risa

hi,,, i am getting memory leaks in my application when i use winhttp functions like WinHttpGetIEProxyConfigForCurrentUser(),WinHttpOpen(),,,,and many others,,,,,how to deal with it???

Member Avatar for Salem
0
488
Member Avatar for daino

Hi Please excuse my ignorance though could somebody tell me whats the difference between running an EXE file program and actually installing a program. I'm basically asking why some programs can be used standalone and others have to be installed first before they can be used? Thanks Danny2000

Member Avatar for Ancient Dragon
0
78
Member Avatar for new_divine

i'm a bachelor student doinmg b.e in computer and as my project i've decided to make an banking application using wx widget and i'm really frustrated tring to figure it out .Being new to it i need some help

Member Avatar for Stefano Mtangoo
0
333
Member Avatar for amarucla

Hi All, I'm working on a GUI project that involves continuously reading data (which is a waveform - like a simple sinusoid) from a file (which gets periodically updated), and displaying it as a pixel-based image. I was able to follow some tutorials online and install Allegro and successfully plot …

Member Avatar for Stefano Mtangoo
0
923
Member Avatar for Shaitan00

Currently I have an application (A.exe) which determines when things need to be done, when such a time arises it launches another application (B.exe) with the appropriate parameters to do the actual work required, some of which could be administrative work (installing MSI, editing registry, etc...). This all works perfectly …

Member Avatar for Ancient Dragon
0
264
Member Avatar for pltndragon

The question is to write a program that dynamically allocates an array large enough to hold a user defined number of test scores. Once all the scores are entered the array should be passed to a function that sorts them in ascending order. Another function should be called that calculates …

Member Avatar for pltndragon
-1
2K
Member Avatar for codedhands

Hi,i am having problems passing arguments to a boost thread.I have tried using the boost::bind,it works without argument but when i try to pass arguments,it doesn't work.Here are my codes: [CODE=C++] class Parser { void Start(int a) { ... } void makeThread(int id) { boost::thread pThread(boost::bind(&Parser::Start,id)); //Problem here boost::thread::yield(); pThread.join(); …

0
90
Member Avatar for osmano807

Hello, I would like to know how to create a symlink in Windows, Linux is easy, just use [icode]symlink()[/icode], but Windows is complicated! Someone has managed this before?

Member Avatar for osmano807
0
80
Member Avatar for Alva1

Hey, i was trying to make a multiplication word problem type thing and when hit debug it always says what my title is. Here's my code. [code] #include <iostream> void main(); { // Declare Variables!!! char name[15]; short quantity; float amount; float totalSale; cout << "Enter Customer's Name: "; cin.getline(name,15); …

Member Avatar for Alva1
0
178
Member Avatar for group256

Hello everyone, I'm trying to write a recursive function that receives a string and checks whether all characters are capital or not, if not changes them into capital. Here is the code I wrote: [CODE]#include <iostream> 2 using namespace std; 3 4 void toUpperString(char *p); 5 6 int main() 7 …

Member Avatar for group256
0
136
Member Avatar for thr

Hello please help me [code] class X { protected: int x,y; color cl; X-type type; char a; }; ----------------------------- X* arr[10][10]; int main() { ... } [/code] ------------------------------ i want define a constructor to this class that declare for x, y like: arr[2][1]->x=2; and arr[2][1]->y = 1; that declare any …

Member Avatar for thr
0
99
Member Avatar for rciprogrammer

How do I 'restore' my output (stdout) back to the terminal after redirecting it to a file. I want to be able to output to a file for a specific section of code, then close that file and put output back to the screen/terminal. [code=c++] fprintf(stdout, "This will go to …

Member Avatar for rciprogrammer
0
6K
Member Avatar for cbebop

The program lets the user be the customer, banker, or supervisor, and all of their privileges involve structs. I made an array of 100 structs for 100 potential customers, and I need to do something similar for banking. I'm trying to put customer and banker's info detailed in that struct …

Member Avatar for cbebop
0
149
Member Avatar for veru

[code] #include<iostream.h> void ascending(int,int); int main() { int array_size=10; int numbers[]={3,54,23,0,677,45,77,342,4,10}; cout<<"The numbers are: "<<endl; for(int i=0;i<10;i++) { cout<<numbers[i]; } cout<<"the ascending form is: "<<endl; ascending( numbers[], array_size); return 0; } void ascending(int numbers[], int array_size) { int i, j, index; for (i=1; i < array_size; i++) { index = …

Member Avatar for chaines51
0
107

The End.