16,016,746 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Im2N00By (Top 17 by date)
Im2N00By
23-Jun-11 18:18pm
View
You understand that correctly. And you doesn't have a bad idea.
However I already made some changes. I left the console input stream only for commands and the recv simply informs the user that the data is available. Then the command can be used to work with the data.
I will rewrite the application into window later, but I'm trying to make everything as much clean as possible at the moment. And I also needed console just to test the classes. In the end: your solution might take me much more effort than creating a window. But thank you anyways for interest.
Im2N00By
21-Jun-11 15:40pm
View
I tried to avoid the window implementation, because it requires a lot of additional coding. And code gets easily messy. I think I will keep the application without control for now. Will be much harder to use (because server sometimes gets buggy), so I will have to restart application.
Im2N00By
20-Jun-11 10:31am
View
Problem solved, but thank you for interest.
Im2N00By
20-Jun-11 10:30am
View
Ahh, I should finish the book first and then I should play around. Thank you a lot, you are The King. I guess the destructor will take care of the allocated memory, or is there something else I should add ?(I don't want to risk memory leak time bomb)
Im2N00By
19-Mar-11 15:22pm
View
It's little bit more clear now. I will try it with MFC CAsyncSocket for now until I will understand it little bit better.
Thank you
Im2N00By
7-Feb-11 10:37am
View
One more thing, my previous comment was little bit "offensive". I didn't mean it. I just got little bit upset about answers to my second question on other programming portal. In one part of long description I said: "I made kernel driver for that" and one of the answer was: "You can't do the g] in user mode. You will have to code a kernel driver". There was more answers like that...
So I would like to apologize.
Im2N00By
7-Feb-11 10:30am
View
I should describe my problems more carefully. But it's not easy when I can't "reveal" what I'm working on (Else I could copy&paste whole function).
Im2N00By
6-Feb-11 18:18pm
View
#FIXED -> Problem solved by Answer 1
It's binary data so theories about ASCII and UNICODE are off limit this time. And CreateFile has two "versions" because of filepath... not because of data in the file.
But thanks guys for trying to figure it out ;)
Im2N00By
6-Feb-11 18:14pm
View
#FIXED -> Problem solved by Answer 1
Why I should multiple anything? I just needed the pointer to skip first 2 bytes. So should I do it like sizeof(unsigned char)*2 -> equal to 2*1 = 2?
Im2N00By
6-Feb-11 18:11pm
View
1] I removed error checks from the sample to shorten the code.
2] Ever wonder what NULL stands for? Check WinDef.h -> #define NULL 0
Im2N00By
6-Feb-11 18:07pm
View
Yea I passed wrong file name by accident. They have almost identical data -> so that's why I was confused about the 2 bytes shift.
I made this error while I copied&pasted some parts of code and didn't noticed the variable name.
Im2N00By
12-Sep-10 8:01am
View
I must have a mistake somewhere. I was using AFX_MANAGE_STATE indeed. I will create empty dialog without any functionality and export it. I will see how it is going to work.
Im2N00By
12-Aug-10 12:41pm
View
I was using them. But then the function got fishy, so I switched to regular char just to test it. I didn't fix it 100% after all. Sometimes it crashes and that's undesired behavior. I will create new direct hook... the prologue is required to run without crash, but it also causes the char problems (But only when the function is member of class) - All-though I specified the call as __stdcall.
Im2N00By
11-Aug-10 16:50pm
View
The dll is mine. Hooks function which takes some data. Looks like: EXECUTE REPLACED CODE (by jump), DO MY STUFF, RETURN BACK. I was calculating size of input data. sprintf_s with nSize as argument resulted into bullcrap (In debugger it created a string "50" and yet I got a bullcrap from MsgBox). Then I tried putting just random combinations with sprintf_s and StringCbPrintf (I wasn't even working with input data).
I already fixed the problem anyways. I removed the naked spec and removed prologue. Only interesting fact is, that the function was working perfectly till I made created it as a class member.
Thank you anyways guys. You tried to help me and I appreciate that
Im2N00By
11-Aug-10 14:22pm
View
That's the problem. It's plugin dll loaded by application protected against debugging. So it looks like I will have to use some debugger like Olly with anti anti-debugging tricks.
Im2N00By
11-Jul-10 9:34am
View
Thank you for answer. Very helpful. I will try to work out the best solution
Im2N00By
16-Jun-10 16:40pm
View
Thank you. I haven't thought about it this way. I was poking with shifting, but I don't like it.
Show More