Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: convert pdf to tif file in C Pin
Iain Clarke, Warrior Programmer11-Oct-09 20:55
Iain Clarke, Warrior Programmer11-Oct-09 20:55 
GeneralRe: convert pdf to tif file in C Pin
billcodes11-Oct-09 22:08
billcodes11-Oct-09 22:08 
QuestionRe: convert pdf to tif file in C Pin
CPallini11-Oct-09 22:24
mveCPallini11-Oct-09 22:24 
GeneralRe: convert pdf to tif file in C Pin
Iain Clarke, Warrior Programmer11-Oct-09 22:45
Iain Clarke, Warrior Programmer11-Oct-09 22:45 
GeneralRe: convert pdf to tif file in C Pin
AspDotNetDev15-Oct-09 15:30
protectorAspDotNetDev15-Oct-09 15:30 
GeneralRe: convert pdf to tif file in C Pin
kilt13-Oct-09 2:23
kilt13-Oct-09 2:23 
GeneralRe: convert pdf to tif file in C Pin
Henry Minute13-Oct-09 5:23
Henry Minute13-Oct-09 5:23 
QuestionI want to copy strings,but occur this....."Access to memory errors....",why? Pin
milestanley11-Oct-09 17:32
milestanley11-Oct-09 17:32 
<br />
/*Copy strings*/<br />
#include "stdafx.h"<br />
#include <iostream><br />
using namespace std;<br />
<br />
/*Achieve via array*/<br />
void copy_array(char from[], char to[])<br />
{<br />
	int i = 0;<br />
	while(from[i] != '\0')<br />
	{<br />
		to[i] = from[i];<br />
		i++;		<br />
	}<br />
	to[i] = '\0';<br />
}<br />
<br />
/*Achieve via pointer*/<br />
void copy_pointer(char *from, char *to)<br />
{<br />
	while((*to++ = *from++) != '\0');<br />
}<br />
<br />
int _tmain(int argc, _TCHAR* argv[])<br />
{<br />
	char *from = "c plus plus";<br />
	char *to = "oooooooooooooooo";<br />
	//copy_array(from, to);<br />
	copy_pointer(from, to);//Here: Test.exe Department of 0x00411536 unhandled exception: <br />
			   //0xC0000005: Write Access Violation occurs when the <br />
			   //position of 0x00417ac8,Why?	<br />
<br />
	cout << to << endl;<br />
<br />
	return 0;<br />
}<br />

AnswerRe: I want to copy strings,but occur this....."Access to memory errors....",why? Pin
theCPkid11-Oct-09 18:24
theCPkid11-Oct-09 18:24 
GeneralRe: I want to copy strings,but occur this....."Access to memory errors....",why? Pin
Richard MacCutchan11-Oct-09 22:40
mveRichard MacCutchan11-Oct-09 22:40 
GeneralRe: I want to copy strings,but occur this....."Access to memory errors....",why? Pin
theCPkid11-Oct-09 22:59
theCPkid11-Oct-09 22:59 
GeneralRe: I want to copy strings,but occur this....."Access to memory errors....",why? Pin
Richard MacCutchan11-Oct-09 23:40
mveRichard MacCutchan11-Oct-09 23:40 
AnswerRe: I want to copy strings,but occur this....."Access to memory errors....",why? Pin
carter200011-Oct-09 18:31
carter200011-Oct-09 18:31 
GeneralRe: I want to copy strings,but occur this....."Access to memory errors....",why? Pin
Richard MacCutchan11-Oct-09 22:42
mveRichard MacCutchan11-Oct-09 22:42 
GeneralRe: I want to copy strings,but occur this....."Access to memory errors....",why? Pin
carter200011-Oct-09 23:09
carter200011-Oct-09 23:09 
AnswerRe: I want to copy strings,but occur this....."Access to memory errors....",why? Pin
Richard MacCutchan11-Oct-09 23:45
mveRichard MacCutchan11-Oct-09 23:45 
AnswerRe: I want to copy strings,but occur this....."Access to memory errors....",why? [modified] Pin
Richard MacCutchan11-Oct-09 22:39
mveRichard MacCutchan11-Oct-09 22:39 
AnswerRe: I want to copy strings,but occur this....."Access to memory errors....",why? Pin
Iain Clarke, Warrior Programmer11-Oct-09 23:27
Iain Clarke, Warrior Programmer11-Oct-09 23:27 
AnswerRe: I want to copy strings,but occur this....."Access to memory errors....",why? Pin
rejupal12-Oct-09 20:10
rejupal12-Oct-09 20:10 
QuestionIPropertyUI::ParsePropertyName return always E_FAIL Pin
Emulator ®11-Oct-09 16:02
Emulator ®11-Oct-09 16:02 
AnswerRe: IPropertyUI::ParsePropertyName return always E_FAIL Pin
«_Superman_»11-Oct-09 16:06
professional«_Superman_»11-Oct-09 16:06 
GeneralRe: IPropertyUI::ParsePropertyName return always E_FAIL Pin
Emulator ®11-Oct-09 16:10
Emulator ®11-Oct-09 16:10 
GeneralRe: IPropertyUI::ParsePropertyName return always E_FAIL Pin
Emulator ®11-Oct-09 16:23
Emulator ®11-Oct-09 16:23 
GeneralRe: IPropertyUI::ParsePropertyName return always E_FAIL Pin
Emulator ®11-Oct-09 23:17
Emulator ®11-Oct-09 23:17 
QuestionOnPaint Notification question Pin
ForNow11-Oct-09 14:52
ForNow11-Oct-09 14:52 

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.