Printing Problem with Win95

Printing Problem with Win95

Microsoft is currently working on a printing problem. Visual Basic 3.0 applications running in Windows 95 cannot print to shared printers with an embedded space. If a shared printer has an embedded space in the computer or printer name, the Visual Basic application will generate an Error 482.To work around this problem, change the computer or shared printer name to a name without an embedded space, or create a local printer and redirect the output to the shared printer with an embedded space (see Windows 95 online help).Add this code to your Visual Basic 3.0 applications to check for the error. Warning your users with a polite message box is more tolerable than an Error 482 message. This code assumes that you have declared the Windows API functions GetVersion and GetProfileString:

 Function Win95PrintBug ()	Dim LongReturn As Long, IntegerReturn As Integer, _		PortName As String	Dim StringReturn As String * 256, _		NullString As String * 256	LongReturn = GetVersion ()	If LongReturn = 0 Then		Win95PrintBug = False		'Code for failed GetVersion call	Else		LongReturn = LongReturn And &HFFFF& 			'Mask-Off upper two bytes		If LongReturn = (95 * 256) + 3 _			Then ' (Minor Version * 256) _			' + Major Version Code for Windows 95 			' operating system			IntegerReturn = GetProfileString ("windows", _				"device", NullString, StringReturn, 256)			StringReturn = Left$ _				(StringReturn, IntegerReturn)			StringReturn = Right$ _				(StringReturn, Len(StringReturn) - _				InStr(StringReturn, ","))			PortName = Trim$ (Mid$ (StringReturn, InStr_				(StringReturn, ",") + 1))			If InStr(PortName, " ") <> 0 Then				Win95PrintBug = True 				' VB 3.0 cannot print to this port			Else				Win95PrintBug = False 				' VB 3.0 can print to this port			End If		Else			Win95PrintBug = False ' Operating 				' system is not Windows 95		End If	End IfEnd Function

For more information, check out the Microsoft Knowledge Base article Q130650.

Share the Post:
XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of

kubernetes logging

Kubernetes Logging: What You Need to Know

Kubernetes from Google is one of the most popular open-source and free container management solutions made to make managing and deploying applications easier. It has a solid architecture that makes

ransomware cyber attack

Why Is Ransomware Such a Major Threat?

One of the most significant cyber threats faced by modern organizations is a ransomware attack. Ransomware attacks have grown in both sophistication and frequency over the past few years, forcing

data dictionary

Tools You Need to Make a Data Dictionary

Data dictionaries are crucial for organizations of all sizes that deal with large amounts of data. they are centralized repositories of all the data in organizations, including metadata such as