Posts
 
Reputation
Joined
Last Seen
Ranked #590
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.5K People Reached
Favorite Tags
c++ x 95
c# x 7
c x 1
php x 1
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
223
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> using namespace std; int main() { float Num; printf( "Enter a number: " ); cin >> Num; if( Num <= 2.0f ) { printf( "Enter number that is bigger than 2" ); exit( 0 ); } while( 1 ) { if( Num == 2.0f ) { printf( "\nPower …

Member Avatar for boddurakesh
0
334
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

There is a coupe of ways with List. [CODE]addresses.Remove(put the object in here); addresses.RemoveAt(put the index number here); addresses.RemoveRange(starting index number here, amount of items to remove here);[/CODE] for removing by object, index, or a range.

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
320
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
62
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
103
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
126
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

Win32 api's are easy and very flexible. You can create great looking applications within weeks.

Member Avatar for rockstar8577
0
189
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
147
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
113
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
204
Member Avatar for Nicholas_Roge

[QUOTE=Frederick2;1150074]The reason you are not getting any replies Nicholas is because what you are trying to do isn't doable.[/QUOTE] It is doable..... Not simple, But doable.

Member Avatar for Stefano Mtangoo
0
110
Member Avatar for JTX

[url]http://www.cplusplus.com/doc/tutorial/files/[/url] Get any previously unanswered probs, just ask.

Member Avatar for JTX
0
136
Member Avatar for maharjun
Member Avatar for mattjbond
0
176
Member Avatar for Grap

tmp4 is a null pointer which has the value 0. When you get the string into tmp2 that has 0 and compares them. The result is 0 so it breaks out of the while loop. Second Idea: Condition is being met it, tmp2 attains the "http://" Regards, Gen

Member Avatar for VilePlecenta
0
9K
Member Avatar for happygeek

[QUOTE]who uses dial-up modems these days?[/QUOTE] I guess people are still reeling from the aol cd spam of the 90's

Member Avatar for skimmer911
2
491
Member Avatar for Nicris

when you pass a variable by reference, any changes you make to the variable will be done as well to the passed variable. A pointer does the same only it passes the address of the variable and from there you can change it by De-referencing it '*'. references make it …

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
88
Member Avatar for chinnaedu

looks like flies on a coders carcass [url]http://www.videolan.org/developers/vlc/doc/doxygen/html/structintf__thread__t.html[/url] anywho, define connect ( internet connection, sending/receiving commands )

Member Avatar for chinnaedu
0
113
Member Avatar for Hawkpath

really there should just be videos of great books with narration and examples. nothing more.

Member Avatar for Hawkpath
0
194
Member Avatar for 28daniela28

If you want to do graphics, you can start with [URL="http://www.winprog.org/tutorial/"]Win32 API's[/URL]. And im sure [URL="http://msdn.microsoft.com/en-us/library/dd162760%28VS.85%29.aspx"]these[/URL] will come in handy. extras [URL="http://msdn.microsoft.com/en-us/library/dd183385%28VS.85%29.aspx"]bitmap[/URL] [URL="http://msdn.microsoft.com/en-us/library/dd183395%28VS.85%29.aspx"]brushes[/URL] g' luck

Member Avatar for 28daniela28
0
187
Member Avatar for shankhs
Member Avatar for tkud
0
611
Member Avatar for alcay
Member Avatar for nats01282
Member Avatar for VilePlecenta
0
1K
Member Avatar for clutchkiller