Posts
 
Reputation
Joined
Last Seen
Ranked #586
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
46% Quality Score
Upvotes Received
6
Posts with Upvotes
6
Upvoting Members
5
Downvotes Received
9
Posts with Downvotes
5
Downvoting Members
7
5 Commented Posts
~27.0K People Reached
Member Avatar for VilePlecenta

This is strange, I looked it up and by default C# should pass parameters by value but I've always had them get passed by pointer. ie [ICODE] public class foo { public foo() { derp = 123456; } public int derp; } public static void dontcare(foo z) { z.derp = …

Member Avatar for zadkielmodelre
0
221
Member Avatar for VilePlecenta

Seen it asked for so here it is.[code]#include <Windows.h> #include <iostream> #include <conio.h> using namespace std; #define ClearScreen() system( "CLS" ) class _Notepad { public: _Notepad() { ZeroMemory( &Buffer, sizeof( Buffer ) ); pt.x = 1; pt.y = 1; } void GetUserString(); void SendToChild(); private: HWND nphWnd; POINT pt; char …

Member Avatar for fengdanbailu
0
1K
Member Avatar for mac.jpr

[CODE]#include<iostream> #include<math.h> using namespace std; main() { int i; float j=1.00; cout<<"enter a no"<<endl; cin>>i; float k=(float)(log (i)/log(2)); k=k%j;//------------------error-------… "%" cann`t take float vlaue. if(k==0.00) cout<<"no "<<i<" is a power of 2"<<endl; else cout<<"sorry ! i am afraid "<<i<<" is not a power of 2"<<endl; } [/CODE] i tried this …

Member Avatar for boddurakesh
0
314
Member Avatar for VilePlecenta

Hi all, Ive been trying to find a seek method for StreamReader. I want to be able to reverse the file buffer by a couple characters at a time. How I have everything set up. [CODE] private void SortThread() { string[] lines; string line, totalLine = null; char[] fileInput = …

Member Avatar for Momerath
0
7K
Member Avatar for MackSwagga

I need help with my final project, I think I have the basic structures set up already. I'm a little lost on loops, do I need one to populate the list? and one to go through the list to display the information back in the text boxes? Also how do …

Member Avatar for MackSwagga
0
189
Member Avatar for VilePlecenta

I am interested in being able to make a C++ win32 program that will simply display someones profile on a phpbb3 forum when they enter in their credentials. I've already made the GUI and other misc code needed for displaying the information, but I dont know how to make the …

0
97
Member Avatar for VilePlecenta

[CODE]HMODULE g_hModule = GetModuleHandle( 0 ); HRSRC hRes = FindResource( g_hModule, MAKEINTRESOURCE( ID_DLL_MYDLL ), "ID_DLL" ); HGLOBAL hResource = LoadResource( g_hModule, hRes ); DWORD iResSize = SizeofResource( g_hModule, hRes ); BYTE* pData = ( BYTE* )LockResource( hResource );[/CODE] When I included a dll file into my project, I used: [CODE]fstream …

Member Avatar for mike_2000_17
0
250
Member Avatar for VilePlecenta

I've been trying to disable the desktop ( in its entity ) so that no window can get focus and I can draw on top of it. Since creating a fullscreen window and drawing on that will lag all the other windows. Ive tried WM_ENABLE and EnableWindow with the handles …

0
63
Member Avatar for VilePlecenta

When I included a dll file into my project, I used: [CODE] HMODULE g_hModule = GetModuleHandle( 0 ); HRSRC hRes = FindResource( g_hModule, MAKEINTRESOURCE( ID_DLL_MYDLL ), "ID_DLL" ); HGLOBAL hResource = LoadResource( g_hModule, hRes ); DWORD iResSize = SizeofResource( g_hModule, hRes ); BYTE* pData = ( BYTE* )LockResource( hResource );[/CODE] …

0
61
Member Avatar for VilePlecenta

I have tried resizing the taskbar with all the normal Windows APIs SetWindowPos MoveWindow SetWindowPlacement But to no avail. The taskbar does not even flinch, what would be a good way to adjust it in its width, height, pos.

Member Avatar for VilePlecenta
0
95
Member Avatar for VilePlecenta

[CODE]class C_Class { public: struct _Get { void foo( void ) { m_Var = 0; } }Get; struct _Set { }Set; long m_Var; };[/CODE] I like to organize my functions with get and set structures [CODE] Get.ThisThing(); Set.ThisThing();[/CODE] But my structure's functions cant access the classes members unless I make …

Member Avatar for Banfa
0
124
Member Avatar for VilePlecenta

I wanted to use a window style that was border-less or had a 1 pixel wide border, but was re-sizable. It was not actually possible so I tried changing the window style with SetWindowLong() then using SetWindowPos() with SWP_FRAMECHANGED and AdjustWindowRect() It allowed me to resize the window but it …

Member Avatar for VilePlecenta
0
180
Member Avatar for rockstar8577

I was wondering if anyone knew of a good library to use for making gui's in c++. You should know that i know of winprog but the problem is that its c. I don't want c because i haven't learned c. I would like to use something that you code …

Member Avatar for rockstar8577
0
186
Member Avatar for VilePlecenta

Example: [CODE] class foo { public: void DoNothing() { cfee.AddNothing(); } }; class fee { public: void AddNothing() { int a = 0; a += 1; } }cfee;[/CODE] Is there a way to call a function in a instance of a class that was declared after the creation of the …

Member Avatar for VilePlecenta
0
146
Member Avatar for VilePlecenta

I have made a simple test application that I use to paint objects while I study and try to give them physics such as gravity, velocity, wind, momentum, etc. I have the app setup like this: [CODE]WM_PAINT PaintFunction(); break; DWORD CalculationsThread() { while( 1 ) { //-_-_Calculations here SendMessage( WindowsHandle, …

Member Avatar for VilePlecenta
1
112
Member Avatar for VilePlecenta

Goal: Get USB drive letter upon insertion. Done so far: Detection of drive. ------------------------------------------------------------- Im using the method of RegisterDeviceNotification() [CODE]WM_DEVICECHANGE // Received message | DBT_DEVICEARRIVAL // Received Message | DEV_BROADCAST_HDR // Pointer from lParam | PDEV_BROADCAST_VOLUME //Pointer from DEV_BROADCAST_HDR Pointer [/CODE] When getting the index drive letter from dbcv_unitmask. …

Member Avatar for VilePlecenta
0
203
Member Avatar for Nicholas_Roge

As the title states, I'm trying to learn how to create a custom GUI window for Windows. Basically I'm asking how I can output pixels to the screen without using any of the default windows gui classes.

Member Avatar for Stefano Mtangoo
0
108
Member Avatar for JTX

Let's say there's list of numbers like this saved in a txt file: 4 6 3 4 5 How do I put it into an array?

Member Avatar for JTX
0
125
Member Avatar for maharjun

i tried making a string class but my program seems to be repeatedly crashing. why so? I have the following two files in to my program 1.)Strng.h (in INCLUDE directory) [CODE] #ifndef __STRNG_H #define __STRNG_H #if !defined(__CONIO_H) #include <conio.h> #endif #if !defined(__STRING_H) #include <string.h> #endif #if !defined(__STDDEF_H) #include <stddef.h> #endif …

Member Avatar for mattjbond
0
174
Member Avatar for Grap

I am trying to parse a text files which has blank lines. The getline function is supposed to read blank lines and move on to the next lines. However, my text file is like this : ABC..... DEF...... HIJ...... I am able to reach the lines before the blank lines …

Member Avatar for VilePlecenta
0
9K
Member Avatar for happygeek

Those of us who can remember when Internet access meant slow dial-up modems connecting via pay per minute service providers will also be all too familiar with the concept of the porn dialler. For the youngsters out there, these took advantage of the fact that most punters had no idea …

Member Avatar for skimmer911
2
486
Member Avatar for Nicris

say int a[]; int &p=a; int *q=a; what is the difference b/w p and q ?? Is it like q can retrieve the value of the address which it is pointing to where p cant do that ... or is there something else also.....

Member Avatar for NathanOliver
0
135
Member Avatar for VilePlecenta

Example Image: [url]http://img710.imageshack.us/img710/4310/cropexample.png[/url] I need to make a cropping tool such as the on in Photoshop ( Fig.2 ) So is there a way to do selective area transparency( Fig .1 ) ( I have only done whole window transparency ) Because the only way I can think of doing …

Member Avatar for VilePlecenta
0
86
Member Avatar for chinnaedu

hi everyone...... am right now working on a project which needs to connect to vlc player from code....does libvlc support this or else if there is any other please let me know...... my another doubt is there any possibility(like any available APIs) that takes video file as an input and …

Member Avatar for chinnaedu
0
110
Member Avatar for Hawkpath

Hey, my friend and I made this website: [url]http://www.letslearncpp.forumstech.com/[/url]. This website is complete with text and video tutorials made by my friend and I. Please visit this website and join it if you want to. Thank you.

Member Avatar for Hawkpath
0
193
Member Avatar for 28daniela28

Hi, I'm working on a C++ mini-project ( I'm having an unoriented graph for wich I have an admissible flow and I have to determine the minimal flow for it). Everithing works fine, it compiles and runs well (the code is below) but I'm using files to read input and …

Member Avatar for 28daniela28
0
187
Member Avatar for shankhs

Hi, I am using C/C++ for 4 years now,solving algorithmic problems only. I see many softwares that do fancy stuffs like windows softwares which automate the installation process , move the mouse automatically and buttons are clicked. Please can anyone tell me what programming language is used in such cases? …

Member Avatar for tkud
0
597
Member Avatar for alcay
Member Avatar for TheGhost
-2
270
Member Avatar for nats01282

Hi all im new to c++, But im after a code that can make c++ put text in a window that i can copy and paste, any help. if you need more info please ask. Thank you

Member Avatar for VilePlecenta
0
1K
Member Avatar for clutchkiller

This is an assignment for my c++ class im taking. [code] #include <iostream> #include <fstream> using namespace std; const int NAMESIZE = 50, DATE = 25; struct inven { char name[NAMESIZE]; int qnty; double wholeCost; double retailCost; char date[DATE]; }; void displayMenu(); void addRecord(fstream &); void displayRecord(fstream &); void modifyRecord(fstream …

Member Avatar for clutchkiller
0
184