Click here to Skip to main content
15,906,097 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What is the difference between macro and simple code Pin
deadlyabbas30-Oct-09 3:13
deadlyabbas30-Oct-09 3:13 
AnswerRe: What is the difference between macro and simple code Pin
David Crow30-Oct-09 3:27
David Crow30-Oct-09 3:27 
GeneralRe: What is the difference between macro and simple code Pin
Maximilien30-Oct-09 3:33
Maximilien30-Oct-09 3:33 
AnswerRe: What is the difference between macro and simple code Pin
Randor 30-Oct-09 2:59
professional Randor 30-Oct-09 2:59 
AnswerRe: What is the difference between macro and simple code Pin
CPallini30-Oct-09 2:59
mveCPallini30-Oct-09 2:59 
QuestionRead byte array from image Pin
Game-point30-Oct-09 2:26
Game-point30-Oct-09 2:26 
QuestionRe: Read byte array from image Pin
Randor 30-Oct-09 2:40
professional Randor 30-Oct-09 2:40 
QuestionGDI+ Pin
__erfan__30-Oct-09 0:05
__erfan__30-Oct-09 0:05 
hi.
i want to write an image processing program and i don't need to preview the image so i decided to use win32 console application to avoid any unwanted delays. i want to use GDI+ classes but there is a runtime error.
my program :
#include "stdafx.h"
#include <windows.h>;
#include <gdiplus.h>;
using namespace Gdiplus;
int main()
{
	Bitmap *bmp;
	bmp = new Bitmap(L"my image path");
        unsigned int w = bmp->GetWidth(); // the error occurs in this line
	
        // my process
        //...
	return 0;
}


the error :
Unhandled exception at 0x00411761 in GdiPlusTest.exe: 0xC0000005: Access violation reading location 0x00000004.

any help? thanks.
AnswerRe: GDI+ Pin
CPallini30-Oct-09 0:18
mveCPallini30-Oct-09 0:18 
GeneralRe: GDI+ Pin
Naveen30-Oct-09 0:19
Naveen30-Oct-09 0:19 
GeneralRe: GDI+ Pin
Randor 30-Oct-09 0:22
professional Randor 30-Oct-09 0:22 
GeneralRe: GDI+ Pin
Naveen30-Oct-09 0:29
Naveen30-Oct-09 0:29 
JokeRe: GDI+ Pin
CPallini30-Oct-09 0:37
mveCPallini30-Oct-09 0:37 
GeneralRe: GDI+ Pin
__erfan__30-Oct-09 0:30
__erfan__30-Oct-09 0:30 
AnswerRe: GDI+ Pin
Naveen30-Oct-09 0:18
Naveen30-Oct-09 0:18 
AnswerRe: GDI+ Pin
Randor 30-Oct-09 0:19
professional Randor 30-Oct-09 0:19 
AnswerRe: GDI+ Pin
__erfan__30-Oct-09 0:32
__erfan__30-Oct-09 0:32 
GeneralRe: GDI+ Pin
CPallini30-Oct-09 0:40
mveCPallini30-Oct-09 0:40 
GeneralRe: GDI+ Pin
Rajesh R Subramanian30-Oct-09 1:28
professionalRajesh R Subramanian30-Oct-09 1:28 
QuestionBest way to convert char to hex string representation? Pin
yeah100029-Oct-09 23:22
yeah100029-Oct-09 23:22 
AnswerRe: Best way to convert char to hex string representation? Pin
CPallini29-Oct-09 23:31
mveCPallini29-Oct-09 23:31 
GeneralRe: Best way to convert char to hex string representation? Pin
yeah100030-Oct-09 0:00
yeah100030-Oct-09 0:00 
GeneralRe: Best way to convert char to hex string representation? Pin
CPallini30-Oct-09 0:11
mveCPallini30-Oct-09 0:11 
GeneralRe: Best way to convert char to hex string representation? Pin
yeah100030-Oct-09 0:17
yeah100030-Oct-09 0:17 
QuestionRe: Best way to convert char to hex string representation? Pin
CPallini30-Oct-09 0:18
mveCPallini30-Oct-09 0:18 

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.