Click here to Skip to main content
15,911,139 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
Questioncannot compile Pin
abbd5-Mar-07 14:10
abbd5-Mar-07 14:10 
GeneralRe: cannot compile Pin
abbd5-Mar-07 22:47
abbd5-Mar-07 22:47 
QuestionRe: cannot compile Pin
prasad_som5-Mar-07 22:52
prasad_som5-Mar-07 22:52 
GeneralRe: cannot compile Pin
Christian Graus6-Mar-07 10:44
protectorChristian Graus6-Mar-07 10:44 
AnswerRe: undeclared identifier Pin
Mark Salsbery5-Mar-07 11:56
Mark Salsbery5-Mar-07 11:56 
GeneralRe: undeclared identifier Pin
abbd5-Mar-07 14:12
abbd5-Mar-07 14:12 
Questionhi Pin
muratkonyar5-Mar-07 4:43
muratkonyar5-Mar-07 4:43 
QuestionCreateProcess() probelms [modified] Pin
darkcloud.42o5-Mar-07 1:12
darkcloud.42o5-Mar-07 1:12 
the code im about to put down.. seems to run through without errors... however. when i cout out the final conversion i get wierd numbers...
but basically what i have here is create process.. im using a dummy.exe to create a txt file so i know if it works right away...

if(first4=="EXEC"){
LPWSTR szCmdline=(LPWSTR)cl.c_str();

STARTUPINFO StartupInfo;
PROCESS_INFORMATION ProcessInformation;
HANDLE hPipeRead, hpRead;
HANDLE hPipeWrite;
SECURITY_ATTRIBUTES sa;

memset(&ProcessInformation,0,sizeof(ProcessInformation));
memset(&sa,0,sizeof(sa));
sa.nLength=sizeof(sa);
sa.bInheritHandle = TRUE;
CreatePipe(&hPipeRead,&hPipeWrite,&sa,0);

memset(&StartupInfo,0,sizeof(StartupInfo));
cout << "pipes and memset";
GetStartupInfo(&StartupInfo);
StartupInfo.hStdOutput = hPipeWrite;
StartupInfo.hStdInput = hPipeRead;
StartupInfo.dwFlags = STARTF_USESTDHANDLES | STARTF_USESHOWWINDOW;
StartupInfo.wShowWindow = SW_HIDE;
cout << "StartupInfo Read\n";
CreateProcess(NULL, szCmdline, NULL, NULL, TRUE, 0, NULL, NULL, &StartupInfo, &ProcessInformation);
cout << szCmdline;
CloseHandle( hPipeWrite );
Sleep(100); DWORD stuff; char buff[1000]; bool firstsend; int offset = 0, bRecv;
PeekNamedPipe(hPipeRead, NULL, 0, NULL, &stuff, NULL);
if(stuff != 0) {
ZeroMemory(buff, sizeof(buff));
firstsend = true;
do {
ReadFile(hPipeRead, buff, 1000, &stuff, NULL);
if(firstsend) { send(usersock, buff + offset, strlen(buff) - offset, 0); firstsend = false; }
else send(usersock, buff, strlen(buff), 0);
} while(stuff == 1000);
} else { char ccc[128]="NoReply program run"; send(usersock, ccc, strlen(ccc), 0); }
}

//
// This is for an ftp server and webserver i have to get this create process functioning and outputing
// the dos screen info through a socket which i already have setup here and should work.... but errors
// out when if statement is called... ive been playing wiht it for about 2hr... plz help
// im using Visual Studio 2005 C++ and im pretty sure this is CLR


-- modified at 7:22 Monday 5th March, 2007
AnswerRe: CreateProcess() probelms Pin
toxcct5-Mar-07 5:12
toxcct5-Mar-07 5:12 
QuestionHow to convert DRM protected audio files to unprotected audio files Pin
Balakrish4-Mar-07 22:45
Balakrish4-Mar-07 22:45 
AnswerRe: How to convert DRM protected audio files to unprotected audio files Pin
Christian Graus6-Mar-07 0:04
protectorChristian Graus6-Mar-07 0:04 
GeneralRe: How to convert DRM protected audio files to unprotected audio files Pin
Balakrish7-Mar-07 20:29
Balakrish7-Mar-07 20:29 
QuestionVisual C++ 2005 Express Edition SP1 Pin
Epi4-Mar-07 20:59
Epi4-Mar-07 20:59 
AnswerRe: Visual C++ 2005 Express Edition SP1 Pin
Mark Salsbery5-Mar-07 7:16
Mark Salsbery5-Mar-07 7:16 
GeneralRe: Visual C++ 2005 Express Edition SP1 Pin
Epi5-Mar-07 20:45
Epi5-Mar-07 20:45 
GeneralRe: Visual C++ 2005 Express Edition SP1 Pin
Mark Salsbery7-Mar-07 3:54
Mark Salsbery7-Mar-07 3:54 
GeneralRe: Visual C++ 2005 Express Edition SP1 Pin
Epi14-Mar-07 3:51
Epi14-Mar-07 3:51 
Questioncrossing thread boundary Pin
aljodav4-Mar-07 11:35
aljodav4-Mar-07 11:35 
AnswerRe: crossing thread boundary Pin
User 5838524-Mar-07 13:44
User 5838524-Mar-07 13:44 
QuestionWhat is wrong with this ? ? ? Pin
Zealous_Me4-Mar-07 9:43
Zealous_Me4-Mar-07 9:43 
AnswerRe: What is wrong with this ? ? ? Pin
Newbie004-Mar-07 10:06
Newbie004-Mar-07 10:06 
AnswerRe: What is wrong with this ? ? ? [modified] Pin
prasad_som4-Mar-07 16:56
prasad_som4-Mar-07 16:56 
AnswerRe: What is wrong with this ? ? ? Pin
toxcct5-Mar-07 5:18
toxcct5-Mar-07 5:18 
QuestionStrings......Okay this is probably well known, but.... Pin
Giles4-Mar-07 4:37
Giles4-Mar-07 4:37 
AnswerRe: Strings......Okay this is probably well known, but.... Pin
Newbie004-Mar-07 5:08
Newbie004-Mar-07 5:08 

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

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