Click here to Skip to main content
16,015,970 members
Home / Discussions / C#
   

C#

 
GeneralRe: Returning data from console application Pin
Carl Mercier22-Oct-04 3:05
Carl Mercier22-Oct-04 3:05 
GeneralWeekly Reports Pin
Tim DuBois21-Oct-04 17:30
Tim DuBois21-Oct-04 17:30 
GeneralRe: Weekly Reports Pin
KSEI22-Oct-04 1:28
KSEI22-Oct-04 1:28 
GeneralDisable Alt-Tab and windows key Pin
GA-BOYZ21-Oct-04 16:57
GA-BOYZ21-Oct-04 16:57 
GeneralRe: Disable Alt-Tab and windows key Pin
benjymous22-Oct-04 4:21
benjymous22-Oct-04 4:21 
GeneralRe: Disable Alt-Tab and windows key Pin
Anonymous22-Oct-04 4:37
Anonymous22-Oct-04 4:37 
GeneralRe: Disable Alt-Tab and windows key Pin
GA-BOYZ22-Oct-04 4:37
GA-BOYZ22-Oct-04 4:37 
GeneralImport gdi32 and GammaRamp Pin
SeaMonkey00721-Oct-04 16:37
SeaMonkey00721-Oct-04 16:37 
Hello I am working on a gamma adjustment program in c# and I have imported the gdi32.dll file as follows,

[DllImport("gdi32.dll")]

and have then declared getDeviceGammaRamp with

private static extern bool getDeviceGammaRamp(HDC hDC, LPVOID lpRamp);

But I get errors such as HDC could not be found etc. I have tried reading up on threads such as creating screenshots for some help as they are similar in nature to my program. I can't seem to get things going.

Could somebody please explain to me how import getDeviceGammaRamp and setDeviceGammaRamp correctly in c# to adjust gamma or possibly write a small tute just like the create screenshot bitmaps one except on how to adjust monitor gamma?

Thanks for your time people Smile | :)
GeneralRe: Import gdi32 and GammaRamp Pin
Paul Lyons21-Oct-04 17:40
Paul Lyons21-Oct-04 17:40 
GeneralRe: Import gdi32 and GammaRamp Pin
momer21-Oct-04 18:18
momer21-Oct-04 18:18 
GeneralRe: Import gdi32 and GammaRamp Pin
SeaMonkey00721-Oct-04 22:56
SeaMonkey00721-Oct-04 22:56 
GeneralHelp me,Sir! Pin
momer21-Oct-04 14:42
momer21-Oct-04 14:42 
GeneralRe: Help me,Sir! Pin
Nick Parker21-Oct-04 15:02
protectorNick Parker21-Oct-04 15:02 
Generalcustom control (component) question Pin
bl4ck1c321-Oct-04 14:19
bl4ck1c321-Oct-04 14:19 
GeneralRe: custom control (component) question Pin
Roger Alsing21-Oct-04 21:41
Roger Alsing21-Oct-04 21:41 
GeneralDeployment Project/MSI/installer problems Pin
Arun Bhalla21-Oct-04 14:00
Arun Bhalla21-Oct-04 14:00 
GeneralCOM and interfaces Pin
Joel Lucsy21-Oct-04 12:39
Joel Lucsy21-Oct-04 12:39 
GeneralRe: COM and interfaces Pin
Nick Parker21-Oct-04 14:54
protectorNick Parker21-Oct-04 14:54 
GeneralRe: COM and interfaces Pin
Joel Lucsy21-Oct-04 16:35
Joel Lucsy21-Oct-04 16:35 
GeneralDataGridColumnStyle Pin
WDI21-Oct-04 12:13
WDI21-Oct-04 12:13 
GeneralRe: DataGridColumnStyle Pin
sreejith ss nair21-Oct-04 21:45
sreejith ss nair21-Oct-04 21:45 
GeneralInterface confusion Pin
Adam °Wimsatt21-Oct-04 10:33
Adam °Wimsatt21-Oct-04 10:33 
GeneralRe: Interface confusion Pin
Christian Graus21-Oct-04 10:43
protectorChristian Graus21-Oct-04 10:43 
GeneralRe: Interface confusion Pin
Nick Parker21-Oct-04 10:58
protectorNick Parker21-Oct-04 10:58 
GeneralRe: Interface confusion Pin
Christian Graus21-Oct-04 11:12
protectorChristian Graus21-Oct-04 11:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.