49,761 Topics

Member Avatar for
Member Avatar for R3AL

I have the following 2 files: RPM.dll [CODE=C]#include "stdafx.h" #include <windows.h> #include <iostream> #include <stdio.h> char name[70]; HINSTANCE hInst; DWORD DLLFunc,DLLFunc2; HWND hWnd; extern "C" __declspec(dllexport) void myRPM(HANDLE hProcess,LPCVOID lpBaseAddress,LPVOID lpBuffer,SIZE_T nSize,SIZE_T *lpNumberOfBytesRead) { __asm { mov edi, edi push ebp mov ebp, esp jmp [DLLFunc] } } extern "C" …

Member Avatar for raptr_dflo
0
244
Member Avatar for Tauren

How would I extract the public and private key and put them into seperate blobs? So after I use if (!CryptGenKey(hProv, CALG_RC4, CRYPT_EXPORTABLE, &hSessionKey)) It puts the Keys into SessionKey, but what if I want to extract both the public and private key from hSessionKey, how can i do this?

Member Avatar for raptr_dflo
0
398
Member Avatar for Labdabeta

I am still unable to get OpenGL Vertex Buffer Objects to work. I will just show you the code I have written so far: 3dglgui.h (I think this should be fine): [CODE]#ifndef CLASS_NAME #define CLASS_NAME "OpenGL Windows Class"//This can be overwritten to specify a unique class name #endif //Header Guards …

Member Avatar for raptr_dflo
0
155
Member Avatar for c_hickam

I can't speak as a master coder since I have little training in it, but currently I am working on a product line optimization problem which is very demanding in terms of needing to perform allot of sorting, searching and math so in the code I am using pointers, linked …

Member Avatar for raptr_dflo
0
97
Member Avatar for DeftArcher

The point of the program is to read from the file and then output to the other file, we HAVE to use an array as well as a function to do this. The problem I am running into is well... several problems. When I try to run the program I …

Member Avatar for raptr_dflo
0
395
Member Avatar for Javaid1

What is the difference between "G1" and "G1 " Particularly in this context if (memcmp (buf, "G1", 2) == 0) if (memcmp (buf, "G1 ", 3) == 0) Is this correct for "G1 "?

Member Avatar for raptr_dflo
0
112
Member Avatar for skiboy209

[CODE]#include <iostream> #include <string> #include <windows.h> using std:: cout; using std:: cin; using namespace std; int main() { unsigned long n; char Answer; string mystr; do { do { cout << " What is your name? "; getline (cin, mystr); cout << "Hello " << mystr << ".\n"; cout << …

Member Avatar for raptr_dflo
0
184
Member Avatar for David321

I've been having some trouble making the knights tour (getting a knight to go around a chessboard without touching the same square twice) work correctly. Right now the max amount of moves I can get out of it is 59. I can't figure out any reason why it shouldn't go …

Member Avatar for raptr_dflo
0
662
Member Avatar for existinglady

Can someone help me? after exiting the program.. the student record.txt becomes empty after i restart the program.. so far Im only after the name, last name, and student id because i dont want to confuse myself more but if someone could teach me here i might implement other datas.. …

Member Avatar for raptr_dflo
0
125
Member Avatar for kambi09

hi there please see my header file and cpp file, when i compile them i get these error classes.cpp:86.1: error: "vehicle::vehicle" names the constructor, not the type classes.cpp:172.1: error: "driver::driver" names the constructor, not the type here is my header file [code]#ifndef CLASSES_H_INCLUDED #define CLASSES_H_INCLUDED #include <iostream> #include <string> using …

Member Avatar for raptr_dflo
0
4K
Member Avatar for Clexify

[CODE]int main() { int num=2; int i=0; int user_num,x; cout<<"enter a number(number>4)"<<endl; cin>>user_num; int a[100]; for (i=0;i<100;i++) { a[i]=0; } while(num<=user_num) { x=2; while(x<=num) { if(num%x==0) { break; } x++; } if(x==num) { a[i]=num; i++; } num++; } int b[100]; for (i=0;i<100;i++) { b[i]=a[i]; } for (i=0;i<100;i++) { for(int j=1;j<100;j++) …

Member Avatar for raptr_dflo
0
312
Member Avatar for nblackburn

Hey guys, i found this awesome example on the internet written using autoit 3 script, i was wondering how this would translate in c++ so i can use this for one of my projects, any ideas would be awesome, thanks once again... [CODE] $sUserName = "username" $sPicPath = "usertile.png" ; …

Member Avatar for raptr_dflo
0
117
Member Avatar for jigglymig

need some help turning this single linked list into a circular linked list. I am completly lost on how to get the first node and link it to the last one [CODE]#include <iostream> using namespace std; struct node { int Item; node* Next; }; // end struct node* Head; typedef …

Member Avatar for raptr_dflo
0
215
Member Avatar for kk33

Hi all , here is my code for GET request to a http site, but it keeps taking memory nor releasing it, here is the code: [CODE] while(1) { hSession = WinHttpOpen( L"Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0", WINHTTP_ACCESS_TYPE_DEFAULT_PROXY, WINHTTP_NO_PROXY_NAME, WINHTTP_NO_PROXY_BYPASS, 0); if (hSession) hConnect = WinHttpConnect( hSession, L"lalala.com", …

Member Avatar for anirudh33
0
312
Member Avatar for WolfShield

I have some program ideas that I would like to build for PC, Mac, and Linux/Unix. The process I have in mind is to write the core libraries in C++, then program each UI based on OS. Windows: C# Mac: Objective-C and Cocoa Linux/Unix: C++ and GNome/Gtk But, I only …

Member Avatar for mike_2000_17
0
210
Member Avatar for MrAppleseed

I was looking up the stack, and trying to implement it in an array, and came across this code: [code=C++]void push(STACK *ps, int x) { if (ps->size == STACKSIZE) { fputs("Error: stack overflow\n", stderr); abort(); } else ps->items[ps->size++] = x; } [/code] I know what it all does, except the …

Member Avatar for MrAppleseed
0
114
Member Avatar for jashbela

Hi, I wrote this code to add 10 numbers and find their average. It will not out put average. What am I doing wrong? Thanks for the help. [CODE]#include <iostream> using namespace std ; int main ( ) { double Sum; double Average; double Numbers[10]; int K; Sum = 0; …

Member Avatar for Onlineshade
0
150
Member Avatar for ibthevivin

I'm having trouble with my C++ assignment because when I run the program I can't type more than one word on the "Enter your street name" line or it won't work. My teacher said something about "getline" but he really lost me. Here is what I have. Please help! [code] …

Member Avatar for Narue
0
294
Member Avatar for kutuup

Hey all, Just trying to build a program in VS2008 using the Allegro library. When I try to build (debug or release), the build completes, but when the program tries to run, I get an error saying that a file called "MSVCR80D.dll" is missing and suggests reinstalling the program. I …

Member Avatar for kutuup
0
664
Member Avatar for nblackburn

Hello, i have made an attempt at this to show im not lazy, but this currently doesnt work, it would mean the world to me if someone could help me finish this code asap, thanks again. [QUOTE][B]NOTE:[/B] Im trying to make this into a DLL for one of my projects[/QUOTE] …

Member Avatar for vijayan121
0
344
Member Avatar for IndianaRonaldo

[CODE] #include "stdafx.h" #include<iostream> #include<string.h> #include<fstream> #include<stdio.h> #include<cstdio> #include<curl\curl.h> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { return 0; } void main() { int p; CURL* curl; curl=curl_easy_init(); }[/CODE] The above is my code and I am trying to compile it in vc++ 10.But the error is: error LNK2019: …

Member Avatar for vijayan121
0
329
Member Avatar for skiboy209

[CODE]#include <iostream> #include <string> #include <windows.h> using std:: cout; using std:: cin; using namespace std; int main() { unsigned long n; char Answer; string mystr; do { cout << " What is your name? "; getline (cin, mystr); cout << "Hello " << mystr << ".\n"; cout << "What is …

Member Avatar for rubberman
0
180
Member Avatar for luciolon

Hi all, I'm new in C++ and I encounter a problem with a code I found on this forum. I simply try to add an integer to a Generic Doubly-Linked list. However, when I launch the following code (main function) [CODE]DoubleLinked<int> dlist; dlist.push_back(1);[/CODE] I got the following error : [CODE] …

Member Avatar for luciolon
0
269
Member Avatar for gianks

Hi all, i'm writing a Qt SIGNAL/SLOT capable class in order to be able to work with raw socket in a Qt application. To achieve this, i'm using a QSocketNotifier to monitor socket incoming data event in a S/S way. Now the problem: entering the event loop, causes the process …

Member Avatar for gianks
0
465
Member Avatar for beau_nerdathen

I have a project about making pascal triangle using recursive function. This is the example output: 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 Hint:(x+y) n=>exponent. *Give me an idea about this project. Thanks!

Member Avatar for mike_2000_17
0
5K
Member Avatar for Bench

This code snippet outlines a simple, no-frills linked list. Tested under MSVC++ 2003 and Comeau, but not guaranteed bug free. Snippet includes example main() . This snippet is intended as an example of a possible implementation of a linked list class (Of which there are many variations) For a better …

Member Avatar for Narue
0
3K
Member Avatar for jesminya

I'm new here, but it looks like an awesome place to get some help. My assignment is to write a recursive function that determines the value of a unit of Pascal's triangle given the row and column, then use that to display the triangle with n number of rows. It's …

Member Avatar for Onlineshade
0
1K
Member Avatar for synaps
Member Avatar for cherrymae.calma
0
202
Member Avatar for rajatchak

well, i have been working on two projects.... in of the projects i am getting two errors which i am unable to rectify ....please please could you possible identify the two errors for me...?? i shall be really really grateful.. you can try running the below program in Microsoft visual …

Member Avatar for cherrymae.calma
-1
305
Member Avatar for gotjeff5

I am trying to build a binary tree in c++ when I compile I get an error that says: [code] Undefined first referenced symbol in file Btree::destroy_tree(node*) /var/tmp//cc1bssfK.o Btree::remove(int, node*) /var/tmp//cc1bssfK.o Btree::insert(int, node*) /var/tmp//cc1bssfK.o Btree::search(int, node*) /var/tmp//cc1bssfK.o Btree::~Btree() /var/tmp//cc1bssfK.o Btree::Btree() /var/tmp//cc1bssfK.o ld: fatal: Symbol referencing errors. No output written to …

Member Avatar for mike_2000_17
0
101

The End.