unicornkhh
MIS
Hi all,
I'm not a Visual C++ program but only a system administrator. Due to the nature of newly-purchased computers are all bundled with Windows Vista, I need to modify a simple application. The purpose for this application is to fetch Windows contacts list from the server through FTP connection then execute the self-extract compress file into Windows Vista's User Contacts folder for Windows Mail ( a successor for Outlook Express).
I've modified it and tested it on my Windows XP with all exact folder and file paths as the Windows vista environment has. This application ran flawlessly.
After that, I copied the application and related .ini file in a Windows Vista-based PC. After unblock the built-in firewall setting, it didn't run as expected. I'm wondering if there's any particular UI component or shell component I need to include in the header.
This application is developed under Visual Studio. NET 2003 on my Windows XP Professional.
Here's the brief codes in the application:
.
.
.
#include <shlobj.h>
#include <shlwapi.h>
#include <ShellAPI.h>
.
.
.
SHELLEXECUTEINFO sei;
sei.fMask = NULL;
sei.cbSize = sizeof(SHELLEXECUTEINFO);
sei.hwnd = NULL;
sei.lpVerb = "open";
sei.lpFile = "C:\\Users\\SALES\\SALES.exe";
sei.lpParameters= NULL;
sei.nShow = SW_SHOWNORMAL;
sei.hInstApp = NULL;
sei.lpIDList = NULL;
sei.lpClass = NULL;
sei.hkeyClass = NULL;
sei.dwHotKey = NULL;
sei.hIcon = NULL;
sei.hProcess = NULL;
sei.lpDirectory = "C:\\Users\\SALES";
int ReturnCode = ::ShellExecuteEx(&sei);
.
.
.
Can anyone shed lights on this problem for successfully running on Windows Vista Business?
I'm not a Visual C++ program but only a system administrator. Due to the nature of newly-purchased computers are all bundled with Windows Vista, I need to modify a simple application. The purpose for this application is to fetch Windows contacts list from the server through FTP connection then execute the self-extract compress file into Windows Vista's User Contacts folder for Windows Mail ( a successor for Outlook Express).
I've modified it and tested it on my Windows XP with all exact folder and file paths as the Windows vista environment has. This application ran flawlessly.
After that, I copied the application and related .ini file in a Windows Vista-based PC. After unblock the built-in firewall setting, it didn't run as expected. I'm wondering if there's any particular UI component or shell component I need to include in the header.
This application is developed under Visual Studio. NET 2003 on my Windows XP Professional.
Here's the brief codes in the application:
.
.
.
#include <shlobj.h>
#include <shlwapi.h>
#include <ShellAPI.h>
.
.
.
SHELLEXECUTEINFO sei;
sei.fMask = NULL;
sei.cbSize = sizeof(SHELLEXECUTEINFO);
sei.hwnd = NULL;
sei.lpVerb = "open";
sei.lpFile = "C:\\Users\\SALES\\SALES.exe";
sei.lpParameters= NULL;
sei.nShow = SW_SHOWNORMAL;
sei.hInstApp = NULL;
sei.lpIDList = NULL;
sei.lpClass = NULL;
sei.hkeyClass = NULL;
sei.dwHotKey = NULL;
sei.hIcon = NULL;
sei.hProcess = NULL;
sei.lpDirectory = "C:\\Users\\SALES";
int ReturnCode = ::ShellExecuteEx(&sei);
.
.
.
Can anyone shed lights on this problem for successfully running on Windows Vista Business?