Click here to Skip to main content
       

Windows API

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
GeneralRe: Windows C.EmemberS0FTDEV11 Nov '09 - 0:36 
Thanks a lot for the post , it really helped me a lot
 
Best Regards,
 

Softdev Big Grin | :-D
 
Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it

QuestionVS.Net2003 on Windows7membermtdeveloper27 Oct '09 - 18:24 
I can not install vs.net2003 on windows7 why???
 
Thanks.
AnswerRe: VS.Net2003 on Windows7member Randor 27 Oct '09 - 18:52 
Hi,
 
Visual Studio 2003 is not supported on Windows 7. You can probably get it installed and mostly working but many features may prove difficult to configure for Windows 7. If you are a C++ developer you can probably get everything you require working correctly easily. Other developers may need to take some extra steps. Here are some of the steps to get VS2003 working on Windows 7:
 
Visual Studio .NET 2003 on Windows Vista Issue List[^]
 
The easiest way to solve these Windows 7 incompatibility issues is to download and install Windows XP Mode[^]
 
Best Wishes,
-David Delaune
AnswerRe: VS.Net2003 on Windows7memberEdison18855 Nov '09 - 3:13 
Hi
 
You could install on WIndows XP Mode, but I have problems with I put an ropture point on the code.
 
I believe the better is installed Visual Studio 2008 and if you need, SQL Server 2008 with Visual Studio Service Pack 1.
AnswerRe: VS.Net2003 on Windows7memberflydk19 Nov '09 - 1:56 
vs2005 is the best choose.
of course you can install vs2005 and vs2008 in your computer that is my classmater choose.
QuestionWindows explorer always opens new windowmemberIndivara26 Oct '09 - 16:51 
Has anyone had the same experience? Double clicking on a folder in the file view always opens a new instance of explorer. The folder options settings have no effect.
 
--edit2
This doesn't work. Fiddling with the other options there doesn't make any difference either.
1.) Open Explorer and choose the Organize drop down menu.
2.) Choose Folder and Search Options from the menu.
3.) Change the radio button at the top to: Open each folder in the same window.
--
 
The suggestions here make no difference:
http://forums.techarena.in/windows-software/1097621.htm[^]
- regsvr32 /i shell32.dll
- HKCR\Directory\shell (and Folder\shell)
 
It is the same for all users, creating a new user makes no difference.
 
Problem started after a few applications were installed, so not sure which is causing it
- Office 2007
- Visual Studio 2008
- AVG
- WinMerge
 
Disabling (using shellexview[^]) all third party & MS Office shell extensions has no effect.
 
Any ideas? This is driving me nuts.. Dead | X|
 
-- edit: OS is Windows 7 RTM
AnswerRe: Windows explorer always opens new windowmember Randor 26 Oct '09 - 17:30 
I can reproduce the issue you are describing. Its also easy to fix.
 
1.) Open Explorer and choose the Organize drop down menu.
2.) Choose Folder and Search Options from the menu.
3.) Change the radio button at the top to: Open each folder in the same window.
 
It takes a few months to get use to the Windows 7 design changes. But I am loving Windows 7.
 
Best Wishes,
-David Delaune
GeneralRe: Windows explorer always opens new windowmemberIndivara26 Oct '09 - 17:34 
Already did that (tried fiddling with other settings in the folder options too). No joy... :(
GeneralRe: Windows explorer always opens new windowmember Randor 26 Oct '09 - 18:25 
Interesting... try this:
 
Click on your start menu and navigate to the Windows Explorer shortcut and right click then execute it as Administrator. Perform the same actions described in the previous post. Are you on a domain workstation and subject to group policy?
 
Best Wishes,
-David Delaune
GeneralRe: Windows explorer always opens new windowmemberIndivara26 Oct '09 - 18:47 
Thanks for the replies, but I'm afraid that didn't work either. I tried running the entire shell as administrator (killing explorer.exe and restarting as admin), with no effect.
 
No, I'm not in domain, no group policy.
 
I think it must be some third party application doing it, but removing everything or reinstalling one by one on a clean OS is not an option...
QuestionVisual Studio 2005 and Windows 7memberEdison188526 Oct '09 - 5:28 
Recently i installed Windows 7, my question is, Can Install Visual Studio 2005 and not have any problem???, I have one disc never use when install VS 2005, that disc say is only 64 bits SO.
 
Thanks.
AnswerRe: Visual Studio 2005 and Windows 7member Randor 26 Oct '09 - 5:56 
I am currently running VS6, VS2005 and VS2008 simultaneously on Windows 7 under WoW64[^]. To have VS2005 working correctly you will need to install:
 
Visual Studio 2005 Service Pack 1 Update for Windows Vista[^]
 
I also recommend running the following executables with elevated Administrator privileges.
 
C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\devenv.exe
C:\Program Files (x86)\Common Files\Microsoft shared\MSEnv\VSLauncher.exe
 
Best Wishes,
-David Delaune
GeneralRe: Visual Studio 2005 and Windows 7sitebuilderMichael Dunn27 Oct '09 - 14:27 
You don't need to run the IDE elevated. At least, I don't need to run it elevated, and I've been using VC05 on 7 for months with no problems.
 
--Mike--
Dunder-Mifflin, this is Pam

GeneralRe: Visual Studio 2005 and Windows 7member Randor 27 Oct '09 - 17:29 
Hi Michael,
 
If the Visual Studio 2005 and below IDE is not executed from an elevated account there are a multitude of things that will fail. With your experience with the Windows shell and various COM technologies I don't really understand why you have not experienced this. Perhaps you have modified the Windows7 UAC behavior or maybe your IDE is in-fact executing elevated without your knowledge.
 
Some questions:
1.) How are you attaching your debugger to elevated or system processes?
2.) How are you installing/registering COM components and/or shell extensions?
 
It may be that we are developing different types of software and therefore you have never required elevation.
 
User Rights and Visual Studio[^]
 
Best Wishes,
-David Delaune
AnswerRe: Visual Studio 2005 and Windows 7memberEdison188526 Oct '09 - 9:06 
Other question, what happen with SQL Server 2005 and Windows 7???
 
Thanks.
GeneralRe: Visual Studio 2005 and Windows 7member Randor 26 Oct '09 - 16:24 
You are probably referring to compatibility issues. There are a multitude of new Microsoft technologies which probably caused minor incompatibilities. Anyway I think you can get SQL Server 2005 working on Windows 7 but you will need to install Microsoft SQL Server 2005 Service Pack 3[^].
 
It plainly lists Windows 7 in the Supported Operating Systems section.
 
Best Wishes,
-David Delaune
AnswerRe: Visual Studio 2005 and Windows 7memberEdison18855 Nov '09 - 3:05 
Tanks for yours answers, I installed Visual Studio 2005 and 2008 and any problem, with Visual Studio 6 only worked on Windows XP Mode Virtual Machine.
SQL Server 2005 32 bits is posible install, if Visual Studio 2005 is too 32 bits. I can't install SQL Server 2005 64 bits maybe incompatibity with Windows 7 or the installer is damage, but it show an error about file .cab. I believe the better option is install SQL Server 2008 (32 or 64 bits).
 
I have those programs on Windows 7 64 bits.
 
Again Tanks. Smile | :)
AnswerRe: Visual Studio 2005 and Windows 7memberBasel Nimer21 Dec '09 - 1:14 
I am having a weired problem with VS 2005 on windows 7
 
after the browser closes (i am writing a web project) after i run the application, the IDE is back, but it is visually corrupted !!!!
as if the windows of the IDE are not completely drawn?! i fix this by showing a nother window (from the IDE itself) then switch back to my original window, same for project explorer, i have to get focus to the tools window then hide it to show the project explorer, this is annoying.
 
anyone had this before and managed to fix it?
 
(2B)||(!2B)

GeneralRe: Visual Studio 2005 and Windows 7memberBasel Nimer21 Dec '09 - 1:19 
Found something here :
http://forums.asp.net/p/1123560/1760815.aspx[^]
 
I hope it fixes it, will test it (just in case someone else ran into the same annoying problem).
 
(2B)||(!2B)

GeneralRe: Visual Studio 2005 and Windows 7memberBasel Nimer21 Dec '09 - 1:22 
that didnt exactly solve my problem, but made it less annoying,
all i need to do now is to hover over the line of code so that the screen refreshes that line Frown | :(
 
still looking for a solution.
 
(2B)||(!2B)

NewsJoin in Live Microsoft Launch Events Online -- Windows 7, Windows Server 2008 R2memberbrucedkyle23 Oct '09 - 9:21 
Experience The New Efficiency[^] Microsoft launch event live from San Diego October 26 virtually. This online event is good way for IT Pros and developers to attend a launch event “virtually” if they could not get to one of the live events. You’ll learn about Windows 7, Windows Server 2008 R2, and Exchange Server 2010.
 
View and download 18 IT Professional and Developer focused live sessions from San Diego starting at 9am PDT October 26. Focusing on Windows 7, Windows Server 2008 R2, and Exchange Server 2010, you can listen to Microsoft experts, download valuable resources and explore the live launch event "virtually".
 
Join at http://www.thenewefficiency.com/live[^]. You'll also find a schedule and links to recorded events.
 


Learn more about Microsoft emerging techologies[^] on the Microsoft blog for independent software vendors (ISVs) in the United States.

QuestionHow to set the rule "Do not start new instance" in Task scheduler's settings using command linememberKTTransfer21 Oct '09 - 21:23 
Hi,
 
OS: Windows Vista
 
I have created the scheduled task through command line to invoke one exe.
 
Now I want to make that schedule run my exe only once, i mean only instance should run. If there are no instances then it should start one.
 
In task scheduler, for task properties, in settings tab i have "if the task is already running, then the following rule applied" option, where i can set "Do not start a new instance".
 
I want to set the rule in Task Scheduler's settings as "Do not start a new instance".
 
But through command line how to set the same.
 
Thanks in advnace.
 
Regards,
KTTransfer.
AnswerRe: How to set the rule "Do not start new instance" in Task scheduler's settings using command linemember Randor 24 Oct '09 - 22:59 
Hi,
 
I would suggest conditionally starting your scheduled task from a batch file. You can check to see if your task is already running with something like:
 
@echo off
SCHTASKS | FINDSTR "Running" | FINDSTR "YOUR TASK NAME"
 
if %ERRORLEVEL% == 1 goto not_running
if %ERRORLEVEL% == 0 goto is_running
:not_running
start %comspec% /c "mode 32,3&title Info&color 1e&echo.&echo.That task is not running.&echo.&pause>NUL"
goto end
:is_running
start %comspec% /c "mode 32,3&title Info&color 1e&echo.&echo.Task is running.&echo.&pause>NUL"
goto end
:end
 
Best Wishes,
-David Delaune
GeneralRe: How to set the rule "Do not start new instance" in Task scheduler's settings using command linememberKTTransfer27 Oct '09 - 0:23 
Hi David,
 
Thank you , it helped me a lot.
 
One more Query I have:
 
1st Case:
 
How to make task readonly , I mean user should not modify or delete the particular task in "Task Scheduler" and I want to do this setting using command line.
 
Is there any way?
 
(OR)
 
2nd Case: I want to check all the tasks in task scheduler, if particular task is not created or deleted by user then I will create one.
 
To check all the tasks present in Task Scheduler, I need to check for OS version and depending upon the OS, path of task scheduler(where tasks are created) will change like:
 
Windows vista: dir /b “%SystemRoot%\system32\Tasks”
Windows server 2003: dir /b “%SystemRoot%\Tasks”
Windows XP: dir /b “%SystemRoot%\Tasks”
 
Is there any predefined way to do or I need to follow one of the above cases. If you have any clue to implement please let me know.
 
Thanks in advance.
 
Regards,
KTTransfer.
GeneralRe: How to set the rule "Do not start new instance" in Task scheduler's settings using command linemember Randor 27 Oct '09 - 18:32 
Hi again,
 
It seems like you need to do a bit of research on NT systems administration. These are some fairly basic systems administration questions.
 
Regarding case 1:
 
Task Scheduler and security[^]
How to use Xcacls.exe to modify NTFS permissions[^]
 
Essentially you will need to modify the access control list for the %SYSTEMROOT%\Tasks folder. I would also recommend executing your task under a privileged account such as SYSTEM to avoid being terminated by the user.
 
Regarding case 2:
 
I do not know why Microsoft changed the default task folder location. But you can check if the path exists from your batch file:
 
IF NOT EXIST "%SYSTEMROOT%\Tasks"
 
There may be a better way of doing this.
 
Best Wishes,
-David Delaune
QuestionQuestion about ServiceGroupOrdermemberrosiki19 Oct '09 - 3:48 
I am not sure I should put this post here. I couldn't find a proper category. My question is about the service's load order.
 
Most services that appear in the HKEY_LOCAL_MACHINE\CurrentControlSet\Services subkey have "Group" keys which are part of a Service Group.
The order of groups in the load ordering group list. This information is stored in the ServiceGroupOrder value in the following registry key:
 
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control
Windows should first load drivers according to the ServiceGroupOrder.
 
There are also some services that belongs to groups that are not in the ServiceGroupOrder and services that don't belong to any group (they don't have registry "Group" keys). Of course, the two kind of services will be loaded after services belonging to groups that are in the ServiceGroupOrder list.
My question is that for these two kind of services, who will be loaded first? Or no guaranteed?
 
Thanks.
AnswerRe: Question about ServiceGroupOrdermember Randor 24 Oct '09 - 22:22 
rosiki wrote:
There are also some services that belongs to groups that are not in the ServiceGroupOrder and services that don't belong to any group (they don't have registry "Group" keys).

 
Only services which have the SERVICE_SYSTEM_START or SERVICE_BOOT_START flags will have ServiceGroupOrder keys. The services without entries are probably SERVICE_DEMAND_START or SERVICE_DISABLED.
 
Some reference documentation:
 
What Determines When a Driver Is Loaded[^]
 
How To Control Device Driver Load Order[^]
 
Best Wishes,
-David Delaune
QuestionWin 7 Mediaplayer to split audio tracks?memberJoan Murt15 Oct '09 - 8:08 
Hello all,
 
I'm testing the new Win 7 in my work computer.
 
I have some videos with multiple audio tracks.
 
With the Vista OS I had the "Mediaplayer Classic" that allowed me to select wich audio track would be used.
 
I've tried it in Windows 7 and it doesn't work.
 
Any idea on what to use to be able to see those videos there?
 
It would be nice not needing to install any codec to use them as the codecs are already included there...
 
As always thank you in advance...
 

GeneralPetition to get back disk free space in Windows 7 ExplorermemberRick Webster15 Oct '09 - 3:17 
I use the disk free space and size of selected files in the status bar of Windows Explorer quite frequently. I was very disappointed Sigh | :sigh: when I found this feature missing in Windows 7 Explorer. See the Microsoft Technet discussion thread at:
 
http://social.technet.microsoft.com/Forums/en-US/w7itproui/thread/c98ecee9-9d9a-463d-928d-30804c1f2d40/[^]
 
If you agree with this, maybe adding more replies to that thread will get Microsoft's attention.
GeneralRe: Petition to get back disk free space in Windows 7 Explorermember_Madmatt16 Oct '09 - 6:42 
What do you mean? I can see the disk space on my Win 7 pro just like in Vista. Big Grin | :-D
I'm talking about the screen "Computer".
GeneralRe: Petition to get back disk free space in Windows 7 ExplorermemberRick Webster16 Oct '09 - 7:50 
On XP if you enable the status bar (View -> Status Bar), when you open a folder, the status bar displays the number of objects in that folder and the amount of free space left on the drive that contains the folder. On Win 7, the free space is missing. Also, in XP on the right side of the status bar, the total size of all the files that occupy that folder (but not in its sub-folders) is displayed. When you select files in the folder, the right side of the status bar displays the total size of the files selected. This is very useful when you are trying to manage your disk space.
 
The "Computer" display only displays free space and only if you select the computer node in the treeview. It doesn't do anything as far as giving you space information from a particular folder.
 
Take a look at the link I provided. There's lots of explanation about what's missing in Windows 7 Explorer concerning disk space reporting.
GeneralRe: Petition to get back disk free space in Windows 7 Explorermember_Madmatt16 Oct '09 - 8:22 
Now I understand what you mean! Big Grin | :-D I'm sorry for my other reply...
So, you want the statusbar to be enabled by default?
GeneralRe: Petition to get back disk free space in Windows 7 ExplorermemberRick Webster16 Oct '09 - 9:13 
_Madmatt wrote:
So, you want the statusbar to be enabled by default?

 
No, I want the status bar, when enabled, to display the same information as it does in XP.
GeneralRe: Petition to get back disk free space in Windows 7 ExplorermemberRichard MacCutchan16 Oct '09 - 22:41 
I like the comment "It was an 'ease of use' issue."! This is another example of Hutber's Law, which roughly states : adding improvements to something that works makes it less usable. Cry | :((
GeneralRe: Petition to get back disk free space in Windows 7 ExplorermemberC++ Hacker1 Dec '09 - 22:09 
I am using total commander www.ghisler.com[^] since the DOS area. It displays the number of files, the size, the number of files / directories, the disk size and the free space.
It it the best file commander I know and it supports plugins / ftp / zip and other archives / file sync and so on. It is also portable, so you could put it onto your stick with all your settings and customizations.
 
Andreas.

QuestionDoubt in Batch Filemembermohant$.net7 Oct '09 - 23:13 
Hi All,
 
I have used batch file for set username password as environment variable.
 
@echo off
set /p user_name=Enter Username:
set /p passwd=Enter Password:
 
set DBUserName=%user_name%
set DBPassword=%passwd%
 
::@echo on
 
Now i need to do password as a encryption(masking) format(for ex:******) while user entering the password.
 
Is it possible?if yes plz share ur idea.
 
Thanks,
 
Mohan

QuestionIs there rundll64.exe?memberMember 25925894 Oct '09 - 22:51 
In Windows 32bits, we normally run rundll32.exe to call routine in a dll. I have tried to search for equivalent 64bits version, but have not found any. I googgled the name rundll64.exe but results are all involves some kind of virus, worm, trojan. My question is how do we call a routine in a 64bit dll?
AnswerRe: Is there rundll64.exe?member_Madmatt16 Oct '09 - 6:39 
isn't it rundll32 too? Or just rundll.exe.
 
I don't know 'cause I have W7 32-bit.
Questionparse %date% as text in batchmembergreendragons2 Oct '09 - 4:19 
Hello,
Im trying to write a batch file which creates another batch file.....
@echo off
echo if %date%==03-10-2009 pause>>D:\hello.bat
output is
if 02-10-2009==03-10-2009 pause
.......................................
the problem is that instead of taking %date% as text it's writing date on hello.bat.....
i even tried with ^
@echo off
echo if %^date^%==03-10-2009 pause>>D:\hello.bat
now in this case the output is
if ==03-10-2009 pause
but when the same command echo if %^date^%==03-10-2009 pause>>D:\hello.bat i give from cmd instead running bat it's giving correct format in hello.bat
if %date%==03-10-2009 pause....
i want this %date% to be printed as it is not as value in hello.bat through a batch file.
AnswerRe: parse %date% as text in batchmvpLuc Pattyn2 Oct '09 - 4:26 
did you try escaping your % signs, by doubling them?
 
BTW: do you really think this problem is Vista/Win7 specific?
 
Smile | :)
 
Luc Pattyn

Local announcement (Antwerp region): Lange Wapper? Neen!


GeneralRe: parse %date% as text in batchmembergreendragons2 Oct '09 - 4:33 
Thnx alot i got it Smile | :) i didnt use %%date%% instead i was trying ^%date^%.....
NewsLet Microsoft Know You’re Windows 7 Compatible, Get Windows 7 Freememberbrucedkyle29 Sep '09 - 12:24 
Be one of the first to get Windows 7* BEFORE it launches to the public on October 22nd.
 
Here’s all you have to do to be eligible to receive a copy of Windows 7:
 
  1. Join Front Runner[^]
  2. Profile your solution at: www.msdev.com/frontrunner[^]
  3. Attain application compatibility with Windows 7
  4. Gain “Front Runner” status** before October 21st 2009.
It’s that easy. Profile today. Offer good inside the US.
 
Additional information is available at Let Us Know You’re Windows 7 Compatible, Get Windows 7 Free[^]
 


Learn more about Microsoft emerging techologies[^] on the Microsoft blog for independent software vendors (ISVs) in the United States.

GeneralRe: Let Microsoft Know You’re Windows 7 Compatible, Get Windows 7 FreememberRichard MacCutchan30 Sep '09 - 1:23 
Yet another inappropriate post from you.
GeneralRe: Let Microsoft Know You’re Windows 7 Compatible, Get Windows 7 FreemvpDave Kreskowiak2 Oct '09 - 5:23 
You do realize he works for Microsoft as an Evangelist, right?
Since they support CP, both in the community and as an advertiser, I'd cut him some slack.
 

A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




GeneralRe: Let Microsoft Know You’re Windows 7 Compatible, Get Windows 7 FreememberRichard MacCutchan2 Oct '09 - 6:18 
Dave Kreskowiak wrote:
You do realize he works for Microsoft as an Evangelist, right?

 
Yes I do know that. However, when I pointed out his advertising to Chris, he agreed it was inappropriate.
GeneralRe: Let Microsoft Know You’re Windows 7 Compatible, Get Windows 7 FreememberPIEBALDconsult2 Oct '09 - 4:38 
Pfft; I got my copy at the launch event.
QuestionProblem with Vista 64-bitmemberSifar - 028 Sep '09 - 20:53 
Hi All,
 
I have a Windows Application developed with Visual Studio 2005. I have delivered its Setup files to all of my client. It works fine everywhere with Windows XP and Vista.
 
Now, one of my clients has Vista 64-bit installed on his machine and my Setup does not run successfully over this machine. It gives Error Code 2869.
 
Is there any fix to be applied on Vista machine?
Setup should be built on 64-bit machine?
 
Guys, I do not have 64-bit machine to test these approaches. Any suggestion would be very helpful..
 
Regards,
-SIFAR.

AnswerRe: Problem with Vista 64-bitmemberdigital man29 Sep '09 - 23:04 
One thing you might like to try is to create a virtual 64 bit machine using VMWare (very good) or Virtual PC (not used myself) so that you can test and fix your installations. You could create a whole set of virtual environments for testing.
 

GeneralRe: Problem with Vista 64-bitsitebuilderMichael Dunn13 Oct '09 - 8:07 
Agreed, VMs are the only way to go for this kind of testing. But VPC is out since it doesn't support 64-bit guests.
 
--Mike--
Dunder-Mifflin, this is Pam.

AnswerRe: Problem with Vista 64-bitmember_Madmatt16 Oct '09 - 6:45 
If you create your setup, you can add a "Special Folder" like it's called in VS2008. There you can select the "Program Files (x64)" folder. I don't know if this works in VS2005 too...

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


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 12 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid