#pragma once
#include <string>
#include <iostream>
#include <fstream>
#include <Windows.h>
The errors that I'm getting are...
1 2 3 4 5 6 7 8 9
1
1> photo111.cpp
1>c:\users\introc\documents\visual studio 2010\projects\photo111\photo111\Form1.h(403): warning C4244: 'argument' : conversion from 'wchar_t' to 'char', possible loss of data
1>c:\users\introc\documents\visual studio 2010\projects\photo111\photo111\Form1.h(450): warning C4244: 'argument' : conversion from 'wchar_t' to 'char', possible loss of data
1>c:\users\introc\documents\visual studio 2010\projects\photo111\photo111\Form1.h(458): warning C4244: 'argument' : conversion from 'wchar_t' to 'char', possible loss of data
1>c:\users\introc\documents\visual studio 2010\projects\photo111\photo111\Form1.h(466): warning C4244: 'argument' : conversion from 'wchar_t' to 'char', possible loss of data
1>c:\users\introc\documents\visual studio 2010\projects\photo111\photo111\Form1.h(379): warning C4101: 'transit' : unreferenced local variable
1>c:\users\introc\documents\visual studio 2010\projects\photo111\photo111\Form1.h(562): error C2039: 'm_hWnd' : is not a member of 'photo111::Form1'
1> c:\users\introc\documents\visual studio 2010\projects\photo111\photo111\Form1.h(30) : see declaration of 'photo111::Form1'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Thanks for the reply. I tried what you suggested and I got a different set of errors...
1 2 3 4 5 6 7 8 9 10
1
1> photo111.cpp
1>c:\users\introc\documents\visual studio 2010\projects\photo111\photo111\Form1.h(405): warning C4244: 'argument' : conversion from 'wchar_t' to 'char', possible loss of data
1>c:\users\introc\documents\visual studio 2010\projects\photo111\photo111\Form1.h(452): warning C4244: 'argument' : conversion from 'wchar_t' to 'char', possible loss of data
1>c:\users\introc\documents\visual studio 2010\projects\photo111\photo111\Form1.h(460): warning C4244: 'argument' : conversion from 'wchar_t' to 'char', possible loss of data
1>c:\users\introc\documents\visual studio 2010\projects\photo111\photo111\Form1.h(468): warning C4244: 'argument' : conversion from 'wchar_t' to 'char', possible loss of data
1>c:\users\introc\documents\visual studio 2010\projects\photo111\photo111\Form1.h(381): warning C4101: 'transit' : unreferenced local variable
1>c:\users\introc\documents\visual studio 2010\projects\photo111\photo111\Form1.h(576): error C2664: 'ShellExecuteW' : cannot convert parameter 2 from 'const char [5]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Sorry for a dumb question, but how do I convert parameter 2 from 'const char [5]' to 'LPCWSTR'...
PS When opening something like a text file, the executable name is usually omitted so that the user's preferred (text editor) is used (via the file association mechanism.) But you prob knew this already??
To use Process::Start to open a text file with the associated editor, it's