Click here to Skip to main content
15,908,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDirectX problems Pin
gr8coaster3295-Feb-06 14:26
gr8coaster3295-Feb-06 14:26 
AnswerRe: DirectX problems Pin
suchuhui5-Feb-06 19:12
suchuhui5-Feb-06 19:12 
GeneralRe: DirectX problems Pin
gr8coaster3296-Feb-06 12:28
gr8coaster3296-Feb-06 12:28 
AnswerRe: DirectX problems Pin
gr8coaster3296-Feb-06 13:53
gr8coaster3296-Feb-06 13:53 
QuestionHelp needed to check this code below... !!! Pin
amano8u5-Feb-06 13:51
amano8u5-Feb-06 13:51 
AnswerRe: Help needed to check this code below... !!! Pin
PJ Arends5-Feb-06 14:36
professionalPJ Arends5-Feb-06 14:36 
GeneralRe: Help needed to check this code below... !!! Pin
amano8u5-Feb-06 14:41
amano8u5-Feb-06 14:41 
QuestionLast call for help... HEEEELP!!!! Pin
Lord Kixdemp5-Feb-06 11:03
Lord Kixdemp5-Feb-06 11:03 
Hello everyone! Big Grin | :-D
Alright... It's been over 2 weeks of trying to fix this now... Mad | :mad: Frown | :(
Here's a file:

|............||......................................................................................................................................................|.............|

I open the file using fopen(), then I read it using this:

<br />
fseek(f[x], i*(WIDTH/32)+j, SEEK_SET);<br />
				char v = fgetc(f[x]);<br />


WIDTH/32 is 16, i and j are here:

for (int i = 0; i < HEIGHT/32; i++)<br />
		{<br />
			for (int j = 0; j < WIDTH/32; j++)<br />
			{


I have a temporary file stream to "outputz.txt", and after a byte has been read, it is written to that outputz stream... But, at the end, this is what I get on outputz.txt:

...........................................................................................................................................|............|ÿ

Kinda different from the first file, eh? What could be the problem?
Here's my function:

http://sulfurmidis.com/func.htm[^]

Thanks! Wink | ;-)

Lord Kixdemp
www.SulfurMidis.com
www.SulfurSoft.tk
[ftp://][http://][hotline://]tsfc.ath.cx
AnswerRe: Last call for help... HEEEELP!!!! Pin
PJ Arends5-Feb-06 12:02
professionalPJ Arends5-Feb-06 12:02 
GeneralRe: Last call for help... HEEEELP!!!! Pin
Lord Kixdemp5-Feb-06 16:04
Lord Kixdemp5-Feb-06 16:04 
AnswerRe: Last call for help... HEEEELP!!!! Pin
Christian Graus5-Feb-06 15:23
protectorChristian Graus5-Feb-06 15:23 
GeneralRe: Last call for help... HEEEELP!!!! Pin
Jeremy Falcon5-Feb-06 17:54
professionalJeremy Falcon5-Feb-06 17:54 
GeneralRe: Last call for help... HEEEELP!!!! Pin
Stephen Hewitt5-Feb-06 18:49
Stephen Hewitt5-Feb-06 18:49 
GeneralRe: Last call for help... HEEEELP!!!! Pin
PJ Arends5-Feb-06 18:51
professionalPJ Arends5-Feb-06 18:51 
GeneralRe: Last call for help... HEEEELP!!!! Pin
Christian Graus6-Feb-06 9:00
protectorChristian Graus6-Feb-06 9:00 
GeneralRe: Last call for help... HEEEELP!!!! Pin
Christian Graus6-Feb-06 9:01
protectorChristian Graus6-Feb-06 9:01 
AnswerRe: Last call for help... HEEEELP!!!! Pin
_anil_5-Feb-06 15:58
_anil_5-Feb-06 15:58 
GeneralRe: Last call for help... HEEEELP!!!! Pin
Lord Kixdemp8-Feb-06 10:59
Lord Kixdemp8-Feb-06 10:59 
Question2872: 'IServiceProvider' : ambiguous symbol Pin
JerryMcguire5-Feb-06 8:46
JerryMcguire5-Feb-06 8:46 
AnswerRe: 2872: 'IServiceProvider' : ambiguous symbol Pin
ThatsAlok5-Feb-06 17:37
ThatsAlok5-Feb-06 17:37 
Questionmotherboard serial number in VC++ Pin
RomTibi5-Feb-06 7:07
RomTibi5-Feb-06 7:07 
AnswerRe: motherboard serial number in VC++ Pin
John M. Drescher5-Feb-06 8:12
John M. Drescher5-Feb-06 8:12 
GeneralRe: motherboard serial number in VC++ Pin
RomTibi5-Feb-06 9:52
RomTibi5-Feb-06 9:52 
GeneralRe: motherboard serial number in VC++ Pin
John M. Drescher5-Feb-06 10:37
John M. Drescher5-Feb-06 10:37 
GeneralRe: motherboard serial number in VC++ Pin
suchuhui5-Feb-06 19:40
suchuhui5-Feb-06 19:40 

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.