CreateDC

phenix

New member
Member
VIP
Local time
9:42 AM
Messages
254
Thanks for any help.
Is CreatDC still valid in Windows 7 pro?

This is what I have coded:
dis db 'DISPLAY',0
invoke CreateDC, dis, NULL, NULL, NULL
Masm32 doesn't seem to like it.
 

My Computer My Computer

At a glance

windows 7 Pro 64 bitmini tower4gnvidia geforce gt730 graphics card
Computer type
PC/Desktop
Computer Manufacturer/Model Number
had the system built by PCsandParts
OS
windows 7 Pro 64 bit
CPU
mini tower
Motherboard
h110m-k (lga1151)
Memory
4g
Graphics Card(s)
nvidia geforce gt730 graphics card
Sound Card
high definition audio device
Monitor(s) Displays
19" dell ultra sharp
Screen Resolution
1280 x 800
Hard Drives
Kingston SSD
PSU
?
Case
?
Cooling
?
Keyboard
standard ps/2 keyboard
Mouse
ps/2 compatible optical
Internet Speed
fiber optics
Antivirus
ESET Smart Security
Browser
IE11
Other Info
no Wifi. Bose speakers, optical drive tsstcorp dvd+-RW
Have a look at this: CreateDC function

So, from what I can make out, it should read CreateDC(dis,NULL,NULL,NULL)
 

My Computer My Computer

At a glance

Windows 8.1 Pro RTM x64Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Brid...4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2...MSI GeForce GTX770 Gaming OC 2GB
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dwarf Dwf/11/2012 r09/2013
OS
Windows 8.1 Pro RTM x64
CPU
Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.4GHz)
Motherboard
ASRock Z77 Extreme4-M
Memory
4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
Graphics Card(s)
MSI GeForce GTX770 Gaming OC 2GB
Sound Card
Realtek High Definition on board solution (ALC 898)
Monitor(s) Displays
ViewSonic VA1912w Widescreen (VGA)
Screen Resolution
1440x900
Hard Drives
OCZ Agility 3 SSD 120GB SATA III x2 (RAID 0)
Samsung HD501LJ 500GB SATA II x2
Hitachi HDS721010CLA332 1TB SATA II
Iomega 1.5TB Ext USB 2.0
WD 2.0TB Ext USB 3.0
PSU
XFX Pro Series 850W Semi-Modular
Case
Gigabyte IF233
Cooling
1 x 120mm Front Inlet 1 x 120mm Rear Exhaust
Keyboard
Microsoft Comfort Curve Keyboard 3000 (USB)
Mouse
Microsoft Comfort Mouse 3000 for Business (USB)
Internet Speed
NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/s (O2)
Antivirus
Avast! 8.0.1497
Browser
IE 11
Other Info
Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
Lexmark S305 Printer/Scanner/Copier (USB)
WEI Score: 8.1/8.1/8.5/8.5/8.25
Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter)
Thank you Dwarf for responding.
Yes I know about the Microsoft API CreateDC.
Was questioning the currency of the API.
It doesn't work on Windows 7 pro.
Gives an error with NO detail.
Deleted the CreateDC and the program fiunctioned normally.:cry:
 

My Computer My Computer

At a glance

windows 7 Pro 64 bitmini tower4gnvidia geforce gt730 graphics card
Computer type
PC/Desktop
Computer Manufacturer/Model Number
had the system built by PCsandParts
OS
windows 7 Pro 64 bit
CPU
mini tower
Motherboard
h110m-k (lga1151)
Memory
4g
Graphics Card(s)
nvidia geforce gt730 graphics card
Sound Card
high definition audio device
Monitor(s) Displays
19" dell ultra sharp
Screen Resolution
1280 x 800
Hard Drives
Kingston SSD
PSU
?
Case
?
Cooling
?
Keyboard
standard ps/2 keyboard
Mouse
ps/2 compatible optical
Internet Speed
fiber optics
Antivirus
ESET Smart Security
Browser
IE11
Other Info
no Wifi. Bose speakers, optical drive tsstcorp dvd+-RW
Back
Top