Click here to Skip to main content

C / C++ / MFC

 
GeneralRe: icon on button not displayed in XP. PinmvpRichard MacCutchan9-Feb-13 2:08 
GeneralRe: icon on button not displayed in XP. PingroupVCProgrammer9-Feb-13 2:20 
GeneralRe: icon on button not displayed in XP. PinmvpRichard MacCutchan9-Feb-13 2:30 
GeneralRe: icon on button not displayed in XP. PingroupVCProgrammer9-Feb-13 2:36 
GeneralRe: icon on button not displayed in XP. PinmvpRichard MacCutchan9-Feb-13 3:05 
GeneralRe: icon on button not displayed in XP. PingroupVCProgrammer10-Feb-13 21:31 
GeneralRe: icon on button not displayed in XP. PinmvpRichard MacCutchan11-Feb-13 1:35 
GeneralRe: icon on button not displayed in XP. PingroupVCProgrammer11-Feb-13 21:29 
GeneralRe: icon on button not displayed in XP. PinmvpRichard MacCutchan11-Feb-13 23:13 
GeneralRe: icon on button not displayed in XP. PinmvpRichard MacCutchan12-Feb-13 10:37 
GeneralRe: icon on button not displayed in XP. PingroupVCProgrammer12-Feb-13 20:59 
QuestionShellExecute Problem PinmemberLFK_Michael4-Feb-13 23:56 
AnswerRe: ShellExecute Problem PinmvpRichard MacCutchan5-Feb-13 1:00 
GeneralRe: ShellExecute Problem PinmemberLFK_Michael5-Feb-13 1:16 
void StartEXE (String^ path)
{
TCHAR prog[] = TEXT("C:\\...\\...."); // Programpath

string p ;
MarshalString(path, p);
std::string str= p;
TCHAR *param=new TCHAR[str.size()+1];
param[str.size()]=0;
 
const TCHAR open[] = TEXT("runas")
ShellExecute( NULL, open, prog, param, NULL, SW_SHOWNORMAL );
}
 
void MarshalString ( String ^ s, string& os )
        {
        using namespace Runtime::InteropServices;
        const char* chars =
        (const char*)(Marshal::StringToHGlobalAnsi(s)).ToPointer();
        os = chars;
        Marshal::FreeHGlobal(IntPtr((void*)chars));
        }
 

This is the code i use. I call StartEXE with a String like C:\\test.txt , the programmpath is fix in the code.
The Programm i want to open opens but it don´t open the path.
This happens only by one Programm, if i want to open another programm this code works.
Any Ideas?
GeneralRe: ShellExecute Problem PinmvpRichard MacCutchan5-Feb-13 1:26 
SuggestionRe: ShellExecute Problem PinmemberDavidCrow5-Feb-13 3:17 
AnswerRe: ShellExecute Problem PinmemberMarius Bancila5-Feb-13 2:05 
GeneralRe: ShellExecute Problem PinmemberLFK_Michael5-Feb-13 4:15 
GeneralRe: ShellExecute Problem PinmemberMarius Bancila5-Feb-13 10:28 
GeneralRe: ShellExecute Problem PinmemberLFK_Michael5-Feb-13 13:03 
AnswerRe: ShellExecute Problem PinmemberAlbert Holguin5-Feb-13 15:35 
Questionhow to get private key from a file (not from a keystore) to sign data ? PinmemberIICTECH4-Feb-13 20:12 
AnswerRe: how to get private key from a file (not from a keystore) to sign data ? PinmvpRichard MacCutchan4-Feb-13 23:20 
GeneralRe: how to get private key from a file (not from a keystore) to sign data ? PinmemberIICTECH5-Feb-13 0:44 
GeneralRe: how to get private key from a file (not from a keystore) to sign data ? PinmvpRichard MacCutchan5-Feb-13 0:58 
GeneralRe: how to get private key from a file (not from a keystore) to sign data ? PinmemberGraham Breach5-Feb-13 4:57 
QuestionPop up window from a dialog based application PinmemberMember 80516114-Feb-13 0:46 
AnswerRe: Pop up window from a dialog based application PinmvpRichard MacCutchan4-Feb-13 1:21 
GeneralRe: Pop up window from a dialog based application PinmemberMember 80516114-Feb-13 1:55 
GeneralRe: Pop up window from a dialog based application PinmvpRichard MacCutchan4-Feb-13 3:34 
GeneralRe: Pop up window from a dialog based application PinmemberMember 80516114-Feb-13 20:19 
GeneralRe: Pop up window from a dialog based application PinmvpRichard MacCutchan4-Feb-13 23:17 
GeneralRe: Pop up window from a dialog based application PinmemberMember 80516115-Feb-13 0:59 
GeneralRe: Pop up window from a dialog based application PinmvpRichard MacCutchan5-Feb-13 1:04 
GeneralRe: Pop up window from a dialog based application PinmemberMember 80516115-Feb-13 2:03 
GeneralRe: Pop up window from a dialog based application PinmvpRichard MacCutchan5-Feb-13 2:33 
GeneralRe: Pop up window from a dialog based application PinmemberMember 80516115-Feb-13 18:47 
GeneralRe: Pop up window from a dialog based application PinmvpRichard MacCutchan5-Feb-13 22:10 
GeneralRe: Pop up window from a dialog based application PinmemberMember 80516116-Feb-13 23:45 
GeneralRe: Pop up window from a dialog based application PinmvpRichard MacCutchan7-Feb-13 0:43 
GeneralRe: Pop up window from a dialog based application PinmemberMember 80516117-Feb-13 1:29 
GeneralRe: Pop up window from a dialog based application PinmvpRichard MacCutchan7-Feb-13 1:50 
GeneralRe: Pop up window from a dialog based application PinmemberMember 805161111-Feb-13 20:55 
GeneralRe: Pop up window from a dialog based application PinmemberMember 80516115-Feb-13 20:33 
AnswerRe: Pop up window from a dialog based application PinmemberAlbert Holguin4-Feb-13 13:18 
QuestionHow to Implement Drag & Drop feature for Imagesin MFC.? Pinmembermbatra313-Feb-13 20:17 
AnswerRe: How to Implement Drag & Drop feature for Imagesin MFC.? PinmemberJochen Arndt3-Feb-13 22:46 
QuestionStuck in WaveInProc PinmemberAmbiguousName2-Feb-13 8:21 
AnswerRe: Stuck in WaveInProc PinmvpCPallini2-Feb-13 11:38 
AnswerRe: Stuck in WaveInProc PinmvpRichard MacCutchan2-Feb-13 22:26 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.150331.1 | Last Updated 1 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid