PDA

View Full Version : بعضی از تغییرات لازم برای اجرا شدن برنامه ها در ویستا



Mbt925
جمعه 11 مرداد 1387, 00:33 صبح
این موارد تجربیات شخصی یک کاربر هستن.






Remove SendKeys calls and replace them with API code.
Use the HKEY_CURRENT_USER in the registry for the settings of your application. Do not write to HKEY_LOCAL_MACHINE.
If you are using ADO use 2.8 and above in your application.
If you are using XML use XML version 3.0 and above in your application
If you are using the PlaySound API, if your wave files are not PCM but mpeg layer-3 make sure your mpeg wave files are Stereo and not Mono.
If you need the Printer Setup dialog either using the Common Dialog Control, or by using the API functions, the dialog will not return the correct number of copies. The dialog will always return 1 on Vista. The way around this bug is to create your own Printer Setup dialog box and when you get the correct number of copies you will have to send to the printer multiple times to print out multiple copies. Here (http://www.vbforums.com/showthread.php?t=456940) is a link that discusses this issue in details.
Relocate settings files, data files etc into "Common Files" (C:\Users\Public) instead of "Program Files". You should use the API calls to locate these folders because the folders are in different paths for different machines and OSs. Here (http://www.vbforums.com/showthread.php?t=461613) is a link that discusses this issue in details.


Per-user settings should be in a separate file located under "Application Data" and this should also be requested of the OS in the same manner.
For "Common Files" ask for ssfCOMMONDATA (or CSIDL_COMMON_APPDATA).
For "Application Data" ask for ssfAPPDATA (or CSIDL_APPDATA). To properly use these filesystem locations you are supposed to create a subdirectory for your "company name" and under that another for your "application name." Then put your settings or data under that.
Any working "document" files that are meant to be found and manipulated by the user (i.e. via Explorer) should be placed into CSIDL_PERSONAL ("My Documents") or CSIDL_COMMON_DOCUMENTS ("All Users\Documents").


DeleteSetting no longer works without a key. e.g. DeleteSetting "Mytestprogram, "General" fails to delete anything and gives an error. but DeleteSetting "Mytestprogram, "General","keyname" works fine. It seems that key is no longer Optional in: DeleteSetting appname, section[, key] as in documentation. Credit: roylow

r0ot$harp
جمعه 11 مرداد 1387, 02:13 صبح
Mbt925 عزیز اگر بخواهیم کلش و یاد بگیریم و در برنامه این کار هارو اعمال کنیم از کجا می تونیم پیدا کنیم و آیا شما این دستور العمل ها رو کامل دارین ؟


باتشکر احسان

Mbt925
جمعه 11 مرداد 1387, 02:34 صبح
فکر نکنم لیست کاملی وجود داشته باشه.

همه چی برمیگرده به شناخت ویندوز ویستا و یافتن تفاوت های ساختاری این دو.

roomezonline
چهارشنبه 17 مهر 1387, 20:42 عصر
فکر نکنم لیست کاملی وجود داشته باشه.

همه چی برمیگرده به شناخت ویندوز ویستا و یافتن تفاوت های ساختاری این دو.

سلام
من روی لپ تاپم ویندوز ویستا نصب کردم
وی بی رو هم بدون هیچ مشکلی نصب کردم
اما از اکثر پروژهایم که قبلا در ویندوز ایکس پی نوشتم ایراد میگره بیشتر در قسمت ریجستری
یا فایلهای Dll , ocx رو ریجستر نمیکنه
من باید چیکار کنم؟؟؟؟؟؟؟؟؟؟؟؟:اشتباه:

r0ot$harp
چهارشنبه 17 مهر 1387, 22:01 عصر
سلام
من روی لپ تاپم ویندوز ویستا نصب کردم
وی بی رو هم بدون هیچ مشکلی نصب کردم
اما از اکثر پروژهایم که قبلا در ویندوز ایکس پی نوشتم ایراد میگره بیشتر در قسمت ریجستری
یا فایلهای Dll , ocx رو ریجستر نمیکنه
من باید چیکار کنم؟؟؟؟؟؟؟؟؟؟؟؟:اشتباه:

بهترین روش اینه که خود VB رو با Permission ادمین باز کنید .




باتشکر احسان