Re: To rotate screen under WinXP

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



It funny, but only this newgroup answer to me. The problem is not VB6 or
VB.NET (I don't see any big differents to call API from both). I'm sure that
I make correct DEVMODE structure, because it work to change resolution or
frequancy for example. And return of function is "BAD MODE", mean that
function can't switch to required mode. I starting to doubt that
ChangeDisplaySettingsEx can change orientation of screen on the desktop
computer. May be it will work on PDA or Tablet PC.
As I undersand, utility like IRotate and Pivot Pro use video card specific
calls direct to driver API, not Win32 like I try to do.
I use ATI (AMD) video harware and for most hardware Catalist driver are
using. Is anybody try to call Catalist API?


"Mark Yudkin" <DoNotContactMe@xxxxxxxxxxxxxx> wrote in message
news:emt$SxSqHHA.4548@xxxxxxxxxxxxxxxxxxxxxxx
Since you've cited the correct API, and it isn't working for you in
VB.NET, it is clear that you do indeed have a VB.NET problem with passing
the DEVMODE structure. You are therefore asking in the wrong place - this
forum is for call Windows APIs from VB6.

Sample code for calling this API from VB6 can be found at
http://abstractvb.com/code.asp?A=947.

"Alexey Zalivin" <zalivine@xxxxxxx> wrote in message
news:%23LsqvyepHHA.1220@xxxxxxxxxxxxxxxxxxxxxxx
This question more related to winapi part.
If you can publish solution on VB6 or lower, I will more than happy.
In any case, thank you for answer, I will try to publish my issue on
other newsgroups.


"Rick Rothstein (MVP - VB)" <rickNOSPAMnews@xxxxxxxxxxxxxxxxx> wrote in
message news:O1fF%23depHHA.596@xxxxxxxxxxxxxxxxxxxxxxx
I try to do in vb.net

Almost everybody in this newsgroup is using VB6 or lower (this is the
case for all newsgroups with ".vb." in the name). While you may get a
stray answer to VB.NET (including VB2003, VB2005 and VB Express which
have dropped .NET from their names) questions here, you should ask them
in newsgroups devoted exclusively to .NET programming (the languages are
different enough to warrant separate newsgroup support). Look for
newsgroups with either the word "dotnet" or "vsnet" in their name.

For the microsoft news server (msnews.microsoft.com), try these
newsgroups for Visual Basic .NET related questions...

microsoft.public.dotnet.languages.vb
microsoft.public.dotnet.languages.vb.upgrade
microsoft.public.dotnet.languages.vb.controls
microsoft.public.dotnet.languages.vb.data

And these for more general .NET questions

microsoft.public.dotnet.general
microsoft.public.vsnet.general

Note: There are many other .NET newgroups (use the first three "fields"
from the last two as templates when searching for them), but the above
ones should get you started.

Rick






.



Relevant Pages

  • Re: GDI zoom
    ... You can do things on the same levels with dot net. ... create a pen object and use that to draw a line just like with the api. ... vb6 you set the drawcolor and use the line command. ... time is coming when we don't get to run an exe on the end user's machine. ...
    (microsoft.public.vb.general.discussion)
  • Re: To rotate screen under WinXP
    ... Post your VB6 code and where it's not working, ... VB.NET (I don't see any big differents to call API from both). ... case for all newsgroups with ".vb." ... And these for more general .NET questions ...
    (microsoft.public.vb.winapi)
  • How can I distribute a compiled .NET assembly object?
    ... referenced as late bound and I pre-install objects like SQL Server and IE ... But I did use the VB6 upgrade. ... Is is a wrong assumption to think that a compiled .NET program works on any ... Additionally I use a bunch of API calls: ...
    (microsoft.public.dotnet.academic)
  • Re: One thing I noticed
    ... impossible to do your sprites without autoredraw and I conclusively proved ... in .net where it requires api in vb6. ... just that dot net is more powerful because it does it ...
    (microsoft.public.vb.general.discussion)
  • Re: Call TerminateThread from Kernel32
    ... you are suppose to use the dotnet library instead of using the Windows ... API if the dotnet library has a function or class that does the same work. ... VB6 ... For efforts to make the dotnet available in other platforms, ...
    (microsoft.public.vb.winapi)