Click here to Skip to main content
15,888,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to detect if the containing popup window is deactivated? Pin
Ahmed Charfeddine26-Nov-10 5:47
Ahmed Charfeddine26-Nov-10 5:47 
GeneralRe: How to detect if the containing popup window is deactivated? Pin
Code-o-mat26-Nov-10 6:04
Code-o-mat26-Nov-10 6:04 
QuestionLPSTR or something like that Pin
Krauze26-Nov-10 3:49
Krauze26-Nov-10 3:49 
AnswerRe: LPSTR or something like that Pin
Ahmed Charfeddine26-Nov-10 5:14
Ahmed Charfeddine26-Nov-10 5:14 
GeneralRe: LPSTR or something like that Pin
Krauze26-Nov-10 14:32
Krauze26-Nov-10 14:32 
AnswerRe: LPSTR or something like that Pin
Chris Losinger26-Nov-10 5:15
professionalChris Losinger26-Nov-10 5:15 
GeneralRe: LPSTR or something like that Pin
Krauze26-Nov-10 14:33
Krauze26-Nov-10 14:33 
AnswerRe: LPSTR or something like that Pin
yu-jian26-Nov-10 6:19
yu-jian26-Nov-10 6:19 
#include "stdafx.h"
#include <iostream>
#include "afx.h"

using namespace::std;

void getPath(LPSTR lpszPath, int max)
{
	char pbuf[512];

	LPCTSTR lpszFileName = _T("1.txt");
	CFile mFile(lpszFileName, CFile::modeRead | CFile::shareCompat);
	if(mFile.GetLength() < 2)
		return;

	mFile.Read(pbuf, 500);
	mFile.Close();
	memcpy(lpszPath, pbuf, 500);
}

int _tmain(int argc, _TCHAR* argv[])
{
	LPSTR lpstr = new char[2000];
	memset(lpstr, 0, 2000);
	getPath(lpstr, 2000);
	return 0;
}

我爸是李刚

GeneralRe: LPSTR or something like that Pin
Krauze26-Nov-10 14:33
Krauze26-Nov-10 14:33 
GeneralRe: LPSTR or something like that Pin
yu-jian28-Nov-10 4:08
yu-jian28-Nov-10 4:08 
QuestionBlack out the application. Pin
Le@rner26-Nov-10 1:07
Le@rner26-Nov-10 1:07 
AnswerRe: Black out the application. Pin
CPallini26-Nov-10 1:28
mveCPallini26-Nov-10 1:28 
GeneralRe: Black out the application. Pin
Le@rner26-Nov-10 1:30
Le@rner26-Nov-10 1:30 
GeneralRe: Black out the application. Pin
CPallini26-Nov-10 1:39
mveCPallini26-Nov-10 1:39 
GeneralRe: Black out the application. Pin
Luc Pattyn26-Nov-10 1:57
sitebuilderLuc Pattyn26-Nov-10 1:57 
GeneralRe: Black out the application. Pin
CPallini26-Nov-10 2:04
mveCPallini26-Nov-10 2:04 
Generalnon si direbbe Pin
Luc Pattyn26-Nov-10 2:12
sitebuilderLuc Pattyn26-Nov-10 2:12 
GeneralPourquoi pas? Pin
CPallini26-Nov-10 2:18
mveCPallini26-Nov-10 2:18 
GeneralQue? Pin
Luc Pattyn26-Nov-10 2:22
sitebuilderLuc Pattyn26-Nov-10 2:22 
GeneralRe: Que? Pin
CPallini26-Nov-10 2:27
mveCPallini26-Nov-10 2:27 
AnswerRe: Black out the application. Pin
Richard MacCutchan26-Nov-10 2:50
mveRichard MacCutchan26-Nov-10 2:50 
AnswerRe: Black out the application. Pin
Code-o-mat26-Nov-10 3:29
Code-o-mat26-Nov-10 3:29 
GeneralRe: Black out the application. Pin
Le@rner26-Nov-10 19:03
Le@rner26-Nov-10 19:03 
GeneralRe: Black out the application. Pin
Code-o-mat28-Nov-10 3:02
Code-o-mat28-Nov-10 3:02 
AnswerRe: Black out the application. Pin
Alan Balkany1-Dec-10 5:16
Alan Balkany1-Dec-10 5:16 

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.