15,891,657 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 Python 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 _coder (Top 27 by date)
_coder
26-Oct-13 15:22pm
View
Ok, I see, thanks.
_coder
26-Oct-13 13:56pm
View
I agree with you, also as I mentioned, I think string approach solves endianness issues. But on the other hand handling endianness issues with binary serialization is not that hard too. Was wondering if string approach had some other issues too?
_coder
17-Oct-13 4:13am
View
so pWhiteList[0] is actually a pointer right?
_coder
24-Sep-13 7:37am
View
Hi, I am getting some errors. Do I need to precede function definitions with something in the .cpp file? Or copy their titles as they are in the header files?
_coder
24-Sep-13 4:43am
View
CPallini, what if I want to embed say two integers into the buffer, how do I do this? Similarly to your code? (e.g.,start embedding second number from index 6 of buffer) Are there any gotchas?? Thank you.
_coder
23-Sep-13 7:22am
View
ok, for me I think still is more reasonable to use header/cpp files. cause I guess it would take me some time to learn creating dlls
_coder
23-Sep-13 7:22am
View
Deleted
ok, for me I think still is more reasonable to use header/cpp files.
_coder
23-Sep-13 4:28am
View
Hi nv 3, but this also means if I update my myfuncs.hpp and myfuncs.cpp files it means I must copy these new versions to all the projects that were using it? (your suggestion #1).
_coder
23-Sep-13 4:27am
View
Hi Fredrik. But this also means if I update my myfuncs.hpp and myfuncs.cpp files it means I must copy these new versions to all the projects that were using it?
_coder
20-Sep-13 5:36am
View
CPallini thank you. I think I may not need to specify what sendBuffer contains, as I write the data and I read back(I know where I will store what). About string example I was thinking memcpy could also work, to memcpy string (e.g., "hello world") to sendBuffer, right? The only problem I can think of now is that sendBuffer must contain 16 bytes or multiple of 16. If string I want to write is say 11 bytes, I would probably have to pad it right?
_coder
20-Sep-13 5:30am
View
Deleted
I think I can just memcpy the string I want to write to sendBuffer -- what do you think? for ints I could do smth similar I think too using shift and && operators ..
_coder
19-Sep-13 9:46am
View
why DLL OriginalGriff? First I don't know how to do it, and it is not reasonable for me to spend time on learning that now. I just want solution which works as I mentioned above. Are header files bad for it?
_coder
16-Sep-13 6:45am
View
please see my edit
_coder
15-Sep-13 6:29am
View
are you sure brydon??
_coder
15-Sep-13 6:28am
View
I think you still didn't get my point. Let's say I have y[2] - how does the compiler know correctly how many bytes it should offset by looking at [2]?? Probably it would check type of y, say int, and y[2] would be 8 (8=4*2) bytes further address of y, right? My question was how does the compiler know how many bytes further from (&x-99) to move when it looks at expression (&x-99)[2]?? 4 bytes? 8? or maybe 2?
_coder
14-Sep-13 17:16pm
View
honestly, I didn't get the point of your example. so like you wanted to show p[2] started pointing to an address very far from p?
_coder
14-Sep-13 16:49pm
View
What is int (*p)[1000] ?? Is it array if pointers? Have never seen it. Anyway, I think I didn't get your point. Btw. I did some tests. Like here:
int x = 12;
cout<<&x<<endl;
cout<<(&x-188); // prints exactly 4x188 bytes behind address of x
cout<<&((&x-188)[1]); // Prints exactly 4 byes AFTER above address
It seems to work Ok for an int type. But I was curious about cases, when &x-188 refers to a memory address - from which, and using [1] the program does not know how many bytes to move forward... am I making it clear?
_coder
14-Sep-13 15:53pm
View
Deleted
Thanks for this response. But I think if you use SCARD_AUTOALLOCATE as the last parameter to the SCardListReaders method, you don't need this double calling mechanism which you suggested right? (ps. I will look at your other post above too and let you know if I have question....)
_coder
13-Sep-13 3:50am
View
Hi Anorexic, thanks. Honestly speaking, I didn't understand to what you are referring to using "higher" protocols?
_coder
12-Sep-13 5:29am
View
Thanks for this response. But I think if you use SCARD_AUTOALLOCATE as the last parameter to the SCardListReaders method, you don't need this double calling mechanism which you suggested right? (ps. I will look at your other post above too and let you know if I have question....)
_coder
11-Sep-13 10:43am
View
Anorexic thanks for reply, I will look into it. I also have one question hope you can help as I could not find much info on the net. Like I said above as I understood we can use Win32 API functions like SCardListReaders to communicate with Mifare smart cards. The thing is, I have Mifare Plus card. Now, the developer guide: http://www.hidglobal.com/sites/hidglobal.com/files/omnikey_contactless_developer_guide.pdf, in Section 6.2 says that if the card is in security layer 1 or 2 application can't use direct card communication. And in that case they suggest use of some kind of HID proprietary transparent channel. My confusion is that if I use this proprietary channel, then will OTHER readers be able to communicate with the smart card?? How should one communicate with Mifare Plus if the latter is in security layer 1 or 2. Thank you in advance.
_coder
11-Sep-13 6:45am
View
Thanks.
Can you explain why this is needed:
"Call it once with a NULL parameter for the data (to get the length), then allocate a data storage area based on that length and call SCardListReaders again with this data store as a parameter. Use one of the names returned to call SCardConnect."
?
_coder
4-Nov-12 10:15am
View
Ok, how I delete this question in an ordinary way?? there is no red cross button anywhere i can see
_coder
4-Nov-12 9:04am
View
maybe he should re read it, I don't think he has the right to make conclusions as to which questions make someone feel "stupid"/foolish for instance
_coder
4-Nov-12 5:48am
View
They didn't make me foolish - and that's not the reason why I removed them. I advice you to mind your own business :)
_coder
3-Nov-12 16:28pm
View
indeed
_coder
3-Nov-12 16:28pm
View
Deleted
indeed
Show More