Igor Delovski Board Forum Index Igor Delovski Board
My Own Personal Slashdot!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compatibility

 
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Win32
Win32  
Author Message
delovski



Joined: 14 Jun 2006
Posts: 3523
Location: Zagreb

PostPosted: Thu Dec 21, 2006 10:25 pm    Post subject: Compatibility Reply with quote

FindFirstFile behaves differently on Vista

"The api FindFirstFile returns different error code when the network is
disabled on XP and Vista. On XP  we get a error code:

ERROR_NETWORK_UNREACHABLE  1231

and on Vista we get

ERROR_BAD_NETPATH 53"
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3523
Location: Zagreb

PostPosted: Thu Dec 21, 2006 10:27 pm    Post subject: Reply with quote

SHBrowseForFolder fails in Windows Vista

"The SHBrowseForFolder() function with BROWSEFORPRINTER flag
returns NULL in Vista."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3523
Location: Zagreb

PostPosted: Sun Feb 25, 2007 12:08 pm    Post subject: Reply with quote

msdn: GDI+ Flat API

"Microsoft Windows GDI+ exposes a flat API that consists of about 600
functions, which are implemented in Gdiplus.dll and declared in Gdiplusflat.h."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3523
Location: Zagreb

PostPosted: Fri Mar 02, 2007 12:03 am    Post subject: Reply with quote

RC: If you have to ask, you're probably doing something wrong

"If you're nesting windows more than 50 levels deep or nesting menus more
than 25 levels deep or creating a dialog box with more than 65535 controls,
or nesting tree-view items more than 255 levels deep, then your user interface
design is in serious need of rethought, because you just created a usability
nightmare."
Back to top
View user's profile Send private message Visit poster's website
XNote
Kapetan


Joined: 16 Jun 2006
Posts: 532

PostPosted: Sun Mar 11, 2007 3:10 am    Post subject: Reply with quote

msdn: Teach Your Apps To Play Nicely With Windows Vista User Account Control

Active at Logon
Creating a Filtered Token
Designing Apps to Run with the Filtered Token
Designing Apps that Require Administrator Privileges
Privileges During Installation
Marking the Privileges for an MSI
Running Your App with Administrator Privileges
Marking Required Privileges Using an Application Manifest
Marking a COM Object
Alerting Users to Elevated Privileges
Communicating between Processes in Different Security Contexts
Low Rights Internet Explorer
Securing a Windows Service in Windows Vista
Common Application Compatibility Issues
Problems During Installation
Typical Runtime Application Issues
Back to top
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3523
Location: Zagreb

PostPosted: Wed Mar 21, 2007 11:17 am    Post subject: Reply with quote

JoS: "works with vista" logo program - what a mess

"As I was running Vista, I had to fire up XP in Virtual PC to obtain it as
Verisign's site was incompatible with Vista. So to get a cert to verify my
app for Vista I had to use XP!"
Back to top
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3033
Location: Europe

PostPosted: Mon Apr 02, 2007 5:36 pm    Post subject: Reply with quote

RC: Why do operating system files still adhere to the old 8.3 naming convention?

"Well, the problem was that the map of Disneyland showed Autopia, but what
the map didn't say was that there were two Autopia rides (and therefore two
Autopia exits) right next to each other. My brother and I were waiting by one
exit, and our parents were waiting by the other. Each of us thought the other
party was simply late."
Back to top
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3523
Location: Zagreb

PostPosted: Wed Apr 11, 2007 12:37 am    Post subject: Reply with quote

RC: What is the default version of a header file?

"If you want your program to run on older versions of Windows, you have
a few options. First, you can explicitly "downgrade" your header file by
defining an appropriate symbol or symbols before including the windows.h
header file."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3523
Location: Zagreb

PostPosted: Fri Jun 15, 2007 11:39 pm    Post subject: Reply with quote

JoS: Working Directories in Windows Vista

"Portable applications continue to use the CSIDL_* constants and functions,
and restrict themselves to supported folders.

Vista-only applications (which Microsoft hopes we're all writing) can use the
new KNOWNFOLDERIS api, and directly access any new folders."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3523
Location: Zagreb

PostPosted: Mon Jul 23, 2007 10:32 pm    Post subject: Reply with quote

The real cost of compatibility is not in the hacks; the hacks are small potatoes

"... the real cost of compatibility is in the design.

If you're going to design a feature that enhances the window manager in
some way, you have to think about how existing programs are going to
react to your feature. These are programs that predate your feature and
naturally know nothing about it.

Does your feature alter the message order? Does it introduce a new point
of re-entrancy? Does it cause a function to begin dispatching messages that
previously did not? You may be forced to design your feature differently in
order to accommodate these concerns. These issues aren't things you can
"take out"; they are inherently part of the feature design."
Back to top
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3033
Location: Europe

PostPosted: Thu Aug 07, 2014 1:31 pm    Post subject: Reply with quote

Casey Muratori - The Worst API Ever Made

"I don’t know how anyone is supposed to actually learn how to use the
Event Tracing for Windows API. Maybe there are good examples floating
around that I just never found. I had to piece the usage code together
over the course of many hours of experimentation, pulling from various
snippets of documentation. Each time I figured out another step of the
process I thought, “Wait, seriously?” And each time Microsoft implicitly
replied - Seriously."
Back to top
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3033
Location: Europe

PostPosted: Tue Aug 12, 2014 10:17 am    Post subject: Reply with quote

Charles Petzold - Windows 1.0 and the Applications of Tomorrow

"However, I knew it was possible to run Windows 1.01 under Virtual PC, the
Microsoft product that creates virtual environments for applications and even
entire operating systems. Virtual PC works mostly in conjunction with virtual
hard disks, which are actually just files that can be created and manipulated
with programs like WinImage"
Back to top
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3523
Location: Zagreb

PostPosted: Thu Sep 22, 2016 4:08 pm    Post subject: Reply with quote

thenextweb - Microsoft releases tool for converting old software to modern Windows 10 apps

"At Build 2016, Microsoft announced the Desktop App Converter, a tool that
would allow developers to convert classic Windows programs into modern
Universal Windows Platform(UWP) apps.

A preview version is now available to download. As expected, it supports both
.NET and Win32 apps, which it can convert to AppX packages that support any
UWP API."
Back to top
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3033
Location: Europe

PostPosted: Tue Jul 11, 2023 1:28 pm    Post subject: Reply with quote

codeproject.com - Visual Studio 2010 and the Win32 API

"Visual Studio 10 has removed the global include/library folders, so this may
also affect your compilation/linking. Instead, you have the environment
variables (INCLUDE, LIB), project-specific include/lib directory specifications
or a props file to include."
Back to top
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3033
Location: Europe

PostPosted: Tue Nov 28, 2023 4:53 pm    Post subject: Reply with quote

so - SetWindowTextW in an ANSI project

"SetWindowText()/SetWindowTextA() and SetWindowTextW() are all really
WM_SETTEXT which is one of the few messages subject to code-page
translation when you create a multibyte/Ansi window. This means there is no
W and A versions of the message. All you need to do is intercept the
WM_SETTEXT message in your window and pass the arguments to
DefWindowProcW() instead of the usual DefWindowProcA/DefWindowProc()."
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Win32 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Delovski.hr
Powered by php-B.B. © 2001, 2005 php-B.B. Group