Click here to Skip to main content
15,914,162 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Populating web based default email client fields Pin
tnguyen4445-Apr-06 10:23
tnguyen4445-Apr-06 10:23 
GeneralRe: Populating web based default email client fields Pin
David Crow5-Apr-06 10:35
David Crow5-Apr-06 10:35 
GeneralRe: Populating web based default email client fields Pin
tnguyen4445-Apr-06 11:28
tnguyen4445-Apr-06 11:28 
GeneralRe: Populating web based default email client fields Pin
David Crow6-Apr-06 2:39
David Crow6-Apr-06 2:39 
QuestionDLL - Write to file error Pin
borono5-Apr-06 7:38
borono5-Apr-06 7:38 
QuestionRe: DLL - Write to file error Pin
David Crow5-Apr-06 7:55
David Crow5-Apr-06 7:55 
AnswerRe: DLL - Write to file error Pin
Waldermort5-Apr-06 7:57
Waldermort5-Apr-06 7:57 
GeneralRe: DLL - Write to file error Pin
borono5-Apr-06 12:22
borono5-Apr-06 12:22 
I tried your suggestions, but they didn't seem to help --same results. No one has said this is impossible, so I am glad about that. And, my code is so long at this point, I thought to post it would be unbearable. However, if either one of you would like me to mail it to you, I would be more than willing to zip it right up and send it on over. Let me know on that.

I just don't understand why it would work in my exe but not in my dll? The format I showed you is the same for the exe and it works flawlessly, so I am baffeled.

Anyway, an access violation probably isn't writing to the file, it is trying to reference bad memory, right? But, when I remove the writing portion, it works fine. I bet it is this here:

fprintf(out, "%.2x", pkt_data[i-1]);

I defined pkt_data[i-1] as:

const u_char *pkt_data;

but in my exe I defined it as simply:

u_char *pkt_data;

...could that be the reason. Because, that is the only thing that changed during the transition. It kept complaining about not being able to make the conversion.

I hope that provides what you need. If you need more, let me know and also I can send my code via email to whoever wants to give it a shot. thanks in advance.


GeneralRe: DLL - Write to file error Pin
Waldermort5-Apr-06 14:53
Waldermort5-Apr-06 14:53 
GeneralRe: DLL - Write to file error Pin
borono5-Apr-06 15:10
borono5-Apr-06 15:10 
GeneralRe: DLL - Write to file error Pin
Waldermort5-Apr-06 19:47
Waldermort5-Apr-06 19:47 
GeneralRe: DLL - Write to file error Pin
David Crow6-Apr-06 2:45
David Crow6-Apr-06 2:45 
GeneralRe: DLL - Write to file error Pin
David Crow6-Apr-06 2:41
David Crow6-Apr-06 2:41 
GeneralRe: DLL - Write to file error Pin
borono6-Apr-06 7:57
borono6-Apr-06 7:57 
GeneralRe: DLL - Write to file error Pin
David Crow6-Apr-06 8:15
David Crow6-Apr-06 8:15 
GeneralRe: DLL - Write to file error Pin
borono6-Apr-06 12:49
borono6-Apr-06 12:49 
Questioneasy :--making an executable application: VC++7 or VC++.NET Pin
luhfluh5-Apr-06 7:08
luhfluh5-Apr-06 7:08 
AnswerRe: easy :--making an executable application: VC++7 or VC++.NET Pin
toxcct5-Apr-06 7:12
toxcct5-Apr-06 7:12 
Questionquerying registry Pin
Manu_815-Apr-06 6:58
Manu_815-Apr-06 6:58 
AnswerRe: querying registry Pin
David Crow5-Apr-06 7:01
David Crow5-Apr-06 7:01 
AnswerRe: querying registry Pin
Hamid_RT5-Apr-06 8:49
Hamid_RT5-Apr-06 8:49 
QuestionMFC: Button press and release? Pin
Rostfrei5-Apr-06 6:30
Rostfrei5-Apr-06 6:30 
AnswerRe: MFC: Button press and release? Pin
toxcct5-Apr-06 6:33
toxcct5-Apr-06 6:33 
GeneralRe: MFC: Button press and release? Pin
Rostfrei5-Apr-06 8:57
Rostfrei5-Apr-06 8:57 
AnswerRe: MFC: Button press and release? Pin
FarPointer5-Apr-06 6:34
FarPointer5-Apr-06 6:34 

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.