9,866,691 members (31,012 online)
Visit CodeProject.TV
Discuss CodeProject.TV
Sign in
Email
Password
Forgot your password?
Sign in using
home
articles
Chapters and Sections
>
Search
Latest Articles
Latest Tips/Tricks
Top Articles
Beginner Articles
Technical Blogs
Posting/Update Guidelines
Article Help Forum
Article Competition
Submit an article or tip
Post your Blog
quick answers
Ask a Question
View Unanswered Questions
View All Questions...
C# questions
ASP.NET questions
VB.NET questions
C#4.0 questions
C++ questions
discussions
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work & Training Issues
Design and Architecture
ASP.NET
JavaScript
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
Adobe Technologies
C#
Free Tools
Objective-C
Ruby On Rails
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
.NET Framework
Mobile
VS 11 & .NET 4.5
Sharepoint
Silverlight / WPF
Visual Basic
Web Development
Site Bugs / Suggestions
features
Component & Service Catalog
Competitions
News
The Insider Newsletter
Newsletter archive
Surveys
Product Showcase
Research Library
CodeProject Stuff
community
The Insider News
The Lounge
The Weird & The Wonderful
The Soapbox
Press Releases
Who's Who
Most Valuable Professionals
Company Listings
Non-English Language
>
General Indian Topics
General Chinese Topics
help
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
Site Map
Advertise with us
Employment Opportunities
About Us
The default search term operator is
AND
.
You can use brackets,
AND
,
OR
, and
NOT
to improve your search. For example:
C# AND NOT(VB or SQL)
A query of a single
*
will return everything, filtered by any filters.
Filter examples:
Search by Author
author:"author name"
Filter by tag
tag:C#
or
tag:(C++ or Java)
Wildcard search
use "?" or "*" eg.
gr?d
or
gr*
2,415 Results
Search
Everything
Articles
Technical Blogs
Tips & Tricks
Questions
Answers
Forum Messages
News Items
Catalog Items
Videos
Training Courses
Just My Stuff
My Bookmarks
Sort by
Relevance
Rating Asc
Rating Desc
Title Asc
Title Desc
Author Asc
Author Desc
Date Created Asc
Date Created Desc
Date Modified Asc
Date Modified Desc
Price Asc
Price Desc
Duration Asc
Duration Desc
Match
All Fields
Title
Description
Author(s)
Tags
Any Date
Last 12 hours
Last 24 hours
Last week
Last 2 weeks
Last month
Last 3 months
Last 6 months
Last year
January
February
March
April
May
June
July
August
September
October
November
December
Rating Range
All - Including Unrated
1.0 - 5.0
2.0 - 5.0
3.0 - 5.0
4.0 - 5.0
4.5 - 5.0
4.8 - 5.0
5.0
Advanced Filters:
Article Topics
All Topics
Desktop Development
Web Development
Mobile Development
Cloud Computing
Enterprise Systems
Database
Multimedia
Languages
Platforms, Frameworks & Libraries
General Programming
Graphics / Design
Development Lifecycle
General Reading
Third Party Products
Mentor Resources
Article License
All Licenses
CPOL
CDDL
Ms-PL
MPL
CPL
Eclipse
MIT
BSD
Apache
CC (ASA 2.5)
Zlib
Public Domain
CC (Attr 3U)
CC (ASA 3U)
LGPL3
GPL3
Forums
All Forums
Feature Forums
General Programming
Web Development
Product Lifecycle
Database & SysAdmin
General Discussions
Non-English Language
Catalog Category
All Categories
Books & Training
Charting & Graphing
Components, Controls, Libraries
Data Manipulation & Mining
Database Tools
Debugging
Documentation & Help
Financial, Math & Scientific
Frameworks & APIs
General Development Tools
GIS & Maps
Graphics & 3D Modeling
Hardware and Robotics
Hosting
IDEs
Imaging
Mobility
Multimedia
Networking
Performance and Profiling
Programming Languages
Project Life-cycle Management (ALM)
Reporting
Search
Security
Setup & Deploy
System Adminstration
Utilities
Virtualization
Web Design/Development
Catalog License
All Licenses
Commercial
Fully Function Evaluation version
Limited Functionality Trial
Limited Time Trial
Shareware
Free For Personal Use
Freeware
Page 1 of 49
Page Size:
10
·
25
·
50
Tag filtered by: Win32
[x]
Should I owner draw this type of status bar or is there simpler way?
by
Nenad Smiljkovic
Question
13 May 2013
license:
CPOL
Hello everyone!I would like to start by saying thanks to everyone who takes some time to view this thread and try to help.I need to create a status bar with following characteristics:- It has blue background;- Instead of text it has two push buttons;- It has an icon;So far I...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
Ducascopy tickdata downloader
by
qwecoder
Article
13 May 2013
license:
CPOL
tick data downloader for automatic trading systems
Desktop Development
»
Miscellaneous
»
General
C#
Windows
Win32
Visual-Studio
Dev
Intermediate
Advanced
Marketing
economics
How to programmaticly size bitmap resource to fit inside button ?
by
Andy Bantly
Answer
13 May 2013
license:
CPOL
Bite the bullet and use owner draw buttons. You'll enjoy them. If you don't want to write one from scratch then know that in my project Visualizing the Mandelbrot set[^] are two files ImageButton.cpp and ImageButton.h which implement various kinds of owner draw buttons with support for classic...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
Only hide the Start button for windows7
by
Dave Kreskowiak
Answer
13 May 2013
license:
CPOL
Permission granted! Please, proceed.Or did you mean to ask a question??
General Programming
»
Uncategorised Quick Answers
»
General
C#
Win32
Add-in Word - Simple Paste PrintScreen
by
Douglas de Alvarenga Silva
Tip/Trick
13 May 2013
license:
CPOL
Add-in Word for PrintScreen
General Programming
»
Macros And Add-Ins
»
Add-Ins/Plug-Ins
C#
Windows
.NET
Win32
Dev
Intermediate
C#
C#4.0
copy-paste
Upload/Download large file using WCF from server database
by
Kalpesh Bhadra
Answer
13 May 2013
license:
CPOL
@sixthplanets: thank you for help. I have gone through all this article and after that i have modified my web.config and app.config a bit. i.e.: i have changed my transferMode="Buffered" to transferMode="Streamed" and this throws an error for bad request 400here i am sharing my WCF...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Win32
WCF
web.Config
App.config
Upload/Download large file using WCF from server database
by
sixthplanets
Answer
13 May 2013
license:
CPOL
pls refer these links it may help you..http://weblogs.asp.net/jgalloway/archive/2008/01/08/large-file-uploads-in-asp-net.aspx[^]Send large file to WCF service and vise versa[^]WCF Streaming: Upload/Download Files Over HTTP[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
Win32
WCF
web.Config
App.config
Upload/Download large file using WCF from server database
by
sixthplanets
Answer
13 May 2013
license:
CPOL
You increase the timeout period in web.config
General Programming
»
Uncategorised Quick Answers
»
General
C#
Win32
WCF
web.Config
App.config
Upload/Download large file using WCF from server database
by
Kalpesh Bhadra
Question
13 May 2013
license:
CPOL
Hi, I have created a WCF services which is used by Win32 application. I have added a service to upload and download the large file via WCF services, to transfer a file I am using byte[] array. because my files are stored in the database. I am passing an object of class which have following data...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Win32
WCF
web.Config
App.config
Upload/Download large file using WCF from server database
by
Kalpesh Bhadra
Question
12 May 2013
license:
CPOL
Hi, I have created a WCF services which is used by Win32 application. I have added a service to upload and download the large file via WCF services, to transfer a file I am using byte[] array. because my files are stored in the database. I am passing an object of class which have following data...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Win32
WCF
Blocking sockets v/s non-blocking sockets in multi-threaded single server multiple client application.
by
ayesha hassan
Question
12 May 2013
license:
CPOL
I had been working on a Server Client aplication where Server is going to service(sendto + receivefrom)'x' number of Clients at a time. For this purpose, I have created 'x' number of threads on Server side so that each thread is dadicated to one single client. Inside each thread there is a...
General Programming
»
Uncategorised Quick Answers
»
General
Windows
Win32
Visual-Studio
Server
programming
socket
udp
Networking
Network
Sockets
Blocking sockets v/s non-blocking sockets in multi-threaded single server multiple client application.
by
Sergey Alexandrovich Kryukov
Answer
12 May 2013
license:
CPOL
I think that using threads with blocking sockets instead of asynchronous API is much better. In most cases, communication is sequential in its nature and the flow of operations is logically independent from other threads. Therefore, using a separate thread for each communication channel (in case...
General Programming
»
Uncategorised Quick Answers
»
General
Windows
Win32
Visual-Studio
Server
programming
socket
udp
Networking
Network
Sockets
Atomineer Pro Documentation for Visual Studio
by
Zot Williams
Catalog
12 May 2013
license:
Commercial
Unsurpassed Documentation Comment generation and updating for C#, Visual Basic, C++/CLI, C++, C, Java and UnrealScript code. Keep your comments readable and in sync with the code with a minimum of effort. Plus other coding utilities.
Components, Controls, Libraries
.NET1.0
.NET1.1
.NET2.0
Win2K
WinXP
Win2003
Vista
VS2005
.NET3.0
VB7.x
, +
How to programmaticly size bitmap resource to fit inside button ?
by
Sergey Alexandrovich Kryukov
Answer
12 May 2013
license:
CPOL
Use smaller bitmap size in first place or bigger buttons. Don't resize (resample) any bitmaps of small size, as the qualify of this operation can be very poor. Just think about it.—SA
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
How to programmaticly size bitmap resource to fit inside button ?
by
Nenad Smiljkovic
Question
12 May 2013
license:
CPOL
Hello everyone! I would like to start by saying thanks to everyone who takes some time to view this thread and try to help.I have a bitmap that I load from resource file via LoadBitmap( ... ) function.I have also created button with BS_BITMAP style.The bitmap is loaded into...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
IncrediBuild
by
Xoreax Software Ltd.
Catalog
11 May 2013
license:
Limited Time Trial
IncrediBuild is an easy-to-use platform for accelerating Windows-based processes through advanced Grid Computing technology. IncrediBuild speeds up Visual Studio and make based code builds as well as data builds, scripts and applications.
General Development Tools
VC6
VC7
VC7.1
VC8.0
.NET1.0
.NET1.1
.NET2.0
Win2K
WinXP
Win2003
, +
Problem with reading and writing of \n charecter
by
Ian A Davidson
Answer
10 May 2013
license:
CPOL
As has already been said, Windows Notepad expects a carriage return-line feed pair (\r\n). There is, however, no other reason to stick to this out-dated method of ending a line (invented due to the slowness of the tele-type machine of the day) but you do need to know about it for reading text...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
Problem with reading and writing of \n charecter
by
Paul Watt
Answer
10 May 2013
license:
CPOL
In your code, you are using this output:MessageString = "Application Start \n";You are using only a newline.Add the \r and it should work as you expect.
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
Need example with hooks for catching a window's messages
by
Sergey Alexandrovich Kryukov
Answer
10 May 2013
license:
CPOL
In case you don't know yet: this is related to this Windows API function: http://msdn.microsoft.com/en-us/library/windows/desktop/ms644990%28v=vs.85%29.aspx[^].See also: http://msdn.microsoft.com/en-us/library/windows/desktop/ms644959%28v=vs.85%29.aspx[^].As to the samples, now when you...
General Programming
»
Uncategorised Quick Answers
»
General
Windows
Win32
hooking
Help clicking a button in a window
by
Sergey Alexandrovich Kryukov
Answer
10 May 2013
license:
CPOL
First of all, let me tell you that you are probably trying to do a dirty things. Writing UI simulation mouse clicks is bad thing. However, I understand that it might be reasonably used for some special purposes: creation and playing back mouse/keyboard macro, creation of the demonstrations,...
General Programming
»
Uncategorised Quick Answers
»
General
Windows
Win32
Help clicking a button in a window
by
- NA -
Question
10 May 2013
license:
CPOL
I need to click a button that is located in another window(and that window in some other process).I tried pretty much every technique...Sending messages with LMBUTTONDOWN,sending messages with WM_COMMAND,but nothing worked.I got my hands on some delphi code that does the same thing,for...
General Programming
»
Uncategorised Quick Answers
»
General
Windows
Win32
Need example with hooks for catching a window's messages
by
- NA -
Question
10 May 2013
license:
CPOL
As the title says,I need some simple good explained code that uses hooks to get access to a window's messages.I tried working with the example on msdn,but it was incomplete,and others reported bugs,I also found some good source code here,however I got stuck because pretty much every demo...
General Programming
»
Uncategorised Quick Answers
»
General
Windows
Win32
hooking
How can I create button showing icon and text using BS_ICON and sending BM_SETIMAGE?
by
Nenad Smiljkovic
Question
10 May 2013
license:
CPOL
Hello everyone!I would like to start by saying thanks to everyone who takes some time to view this thread and try to help.I need to make a button that is a child of a main window with following characteristics:- It has blue background;- I displays an icon;- It displays text under...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
Win32 API background image problems
by
Nenad Smiljkovic
Answer
10 May 2013
license:
CPOL
I have cracked it! Just a few modifications, and it all works.IMPORTANT INFORMATION:This solution was improved thanks to remarks from member CPallini.Here are the final adjustments:// hBitmap variable is declared as static and is outside of switch(...) statementstatic...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
How can I create button showing icon and text using BS_ICON and sending BM_SETIMAGE?
by
Richard MacCutchan
Answer
10 May 2013
license:
CPOL
The following code worked for me, using either an icon or a bitmap :HINSTANCE hInstance = GetModuleHandle(NULL);hButton = CreateWindowEx(0, L"Button", L"АБВГДЕЖЗ", WS_VISIBLE | WS_CHILD | BS_TEXT | BS_BOTTOM, 100, 100, 150, 150, hWnd, (HMENU)4000, hInstance, 0);// use an iconHICON...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
Problem with reading and writing of \n charecter
by
CPallini
Answer
9 May 2013
license:
CPOL
On Windows system newline is "\r\n" (see, for instance Wikipedia[^]). Hence it should work (you should see proper output on notepad, other applications are able to render text file with other newline conventions).Please check (with the help of an hex editor) the actual file content.
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
Problem with reading and writing of \n charecter
by
Coder Block
Question
9 May 2013
license:
CPOL
Hi guys, I am really confuse now what to do with \n and \r\n charecters.I am reading and writing some files in c++.Basically i want to maintain log file of one exe where following conditions are consider.1)If file is not present then create file.2)If file is already present then...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
fread() fails after reading complete contents of text file
by
CPallini
Answer
9 May 2013
license:
CPOL
Your while condition is uninfluential (always true). According to the documentation[^]:Return ValueThe total number of elements successfully read is returned.If this number differs from the count parameter, either a reading error occurred or the end-of-file was reached while reading....
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
file
Text
fread() fails after reading complete contents of text file
by
ayesha hassan
Question
9 May 2013
license:
CPOL
I have written this code which reads contents of text file into a buffer and sends the buffer over the socket until end of file.The code works fine and after complete file is sent to over the socket, fread() fails, however, according to my undersanding when complete file is sent over the...
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
file
Text
Read a text file line by line and save each line in the buffer irrespective of data type.
by
Sergey Alexandrovich Kryukov
Answer
9 May 2013
license:
CPOL
If you get "any other way" to read the lines of the files, they still will be the same lines. It won't solve the problem of the file "format". The question makes no sense.For example, you can use std::istream::getline:http://www.cplusplus.com/reference/istream/istream/getline/[^].—SA
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
programming
file
socket
udp
Text
Sockets
line
Read a text file line by line and save each line in the buffer irrespective of data type.
by
ayesha hassan
Question
9 May 2013
license:
CPOL
I want to read one line of the text file, save it to a buffer, send the buffer over a udp socket and then go and read the second line and so on..So far, since I knew the data type of the text to be read from the text file, I had been using fscanf() to read each line from the text file. But...
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
programming
file
socket
udp
Text
Sockets
line
fopen() opens the text file successfully for sometime and fails after a specific time
by
CPallini
Answer
8 May 2013
license:
CPOL
You didn't bother to close the file, did you?Call fclose(fpSend); when you've done with it (before returning from the WndProc).
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
Visual-Studio
file
Errors
Text
ErrorHandling
fopen() opens the text file successfully for sometime and fails after a specific time
by
ayesha hassan
Question
8 May 2013
license:
CPOL
I am trying to send a text file at a socket after every 10ms. The code works fine and keeps on sending the text file over the socket after an interval of 10ms. But after some period of time (like after 3-4 minutes), fopen() fils (though fopen() works fine for some duration) and I get an error...
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
Visual-Studio
file
Errors
Text
ErrorHandling
“Debug Assertion Failed. Expression: (_osfile(fh) & fopen)” error and Fatal Error in visual studio 2008
by
ayesha hassan
Question
8 May 2013
license:
CPOL
My following code is compiled successfully and runs perfectly for sometime handling 40 clients but after sometime, it gives an error "Debug Assertiion Failed expression: (_osfile(fh) & fopen)".I searched on internet and found a solution:Project + Properties, Configuration properties,...
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
Visual-Studio
programming
Errors
ErrorHandling
Debugging
assertion
Debugger
Tokenization of string
by
«_Superman_»
Answer
8 May 2013
license:
CPOL
This is not possible with strtok because this function inserts a NULL character at the end of the token.You could do the following to get what you want - pch = strchr(TempStr, ' ');pch = strchr(pch + 1, ' ');pch = strchr(pch + 1, ' ');pch = strchr(pch + 1, ' ');Another thing I...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
string
Tokens
Run-Time Check Failure # 2 - Stack around variable 'thread no' was corrupted
by
Jochen Arndt
Answer
8 May 2013
license:
CPOL
The error message indicates stack problems around threadno. And it is really helpful here when looking at the occurences for that variable:char threadno[2];itoa(threadNumber,threadno,10);strcat(threadno,".txt");Did you see the problem? The string can hold only one character plus NULL...
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
Visual-Studio
programming
Errors
ErrorHandling
Run-Time Check Failure # 2 - Stack around variable 'thread no' was corrupted
by
ayesha hassan
Question
8 May 2013
license:
CPOL
My following code gives an error "Run-Time Check Failure # 2 - Stack around variable 'thread no' was corrupted." if I add a "break" inside my if statement. I have also hghlighted this "break" inside the code. If I remove thi "break", the error is removed.Can anyone explain me please why does...
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
Visual-Studio
programming
Errors
ErrorHandling
error invalid paramter SetPointerEx
by
Jochen Arndt
Answer
7 May 2013
license:
CPOL
You are using SetFilePointerEx() which expects a LARGE_INTEGER (64 bit) as distance parameter but pushes only a 32 bit word on the stack.Because you are reading from the begin of the file, using SetFilePointer() might be sufficient.
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
ASM
error invalid paramter SetPointerEx
by
Rasool_Ahmed
Question
7 May 2013
license:
CPOL
Hello guys,I posted in morning about how can I read specific address from the file, and CPallini had answered me and the solution he gave me worked.Now, the problem is when I use SetPointerEx twice I got this error "ERROR_INVALID_PARAMETER", I read in msdn about it and msdn gave me what...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
ASM
Tokenization of string
by
Coder Block
Question
7 May 2013
license:
CPOL
Hi guys, this morning i got this prorblem while parsing my text file.I have simple code to parse string is as follow,const char* LastLineOfFile = FinalExecutionOfJob[NumberEntriesInLastExecution+1];char * pch;char* TempStr = strstr((char*)LastLineOfFile,""); const char*...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
string
Tokens
How to load icon or bitmap in a static control with style SS_WHITERECT ?
by
Nenad Smiljkovic
Answer
7 May 2013
license:
CPOL
I have solved it!First, I must say BIG "thank you" to member Jochen Arndt for suggesting me to owner draw the control, and providing detailed suggestions in his comment.UPDATE #1:************************************************************Jochen Arndt's solution works perfect if...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
Unable to create multiple threads using for loop
by
du[DE]
Answer
6 May 2013
license:
CPOL
This code works without errors and creates 3 worker threads, keep in mind that you need a return value as int and int max_number = 3 and function[i]:DWORD WINAPI ThreadProc0(LPVOID param){ return 0; }DWORD WINAPI ThreadProc1(LPVOID param){ return 0;}DWORD...
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
Threading
threads
programming
Unable to create multiple threads using for loop
by
Jochen Arndt
Answer
6 May 2013
license:
CPOL
The code is compiling because you are casting incompatible types. So the compiler can not check the types. Remove the unnecessary typedef and the casting, and pass the correct parameter (the element of the function array, not the address to it):LPTHREAD_START_ROUTINE function[3] =...
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
Threading
threads
programming
Unable to create multiple threads using for loop
by
CPallini
Answer
6 May 2013
license:
CPOL
Minor error:Quote:int max_number=1;This should be int max_number=3; right?The problem:Quote:(LPTHREAD_START_ROUTINE)&function[i],This should be(LPTHREAD_START_ROUTINE)function[i],(without & operator).
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
Threading
threads
programming
Unable to create multiple threads using for loop
by
ayesha hassan
Question
6 May 2013
license:
CPOL
I am trying to create 3 threads using a for loop. Following is my code snippet:DWORD WINAPI ThreadProc0(LPVOID param){ return 0; }DWORD WINAPI ThreadProc1(LPVOID param){ return 0;}DWORD WINAPI ThreadProc2(LPVOID param){ return 0;}int WINAPI WinMain(...
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
Threading
threads
programming
How to convert a C++ struct with fixed byte size to C# struct
by
CPallini
Answer
6 May 2013
license:
CPOL
Have a look at "Bit fields in C#"[^] question at Stack Overflow.
General Programming
»
Uncategorised Quick Answers
»
General
C++/CLI
Win32
C#
C#4.0
MFC/C++
How to convert a C++ struct with fixed byte size to C# struct
by
vaibhavbvp
Question
6 May 2013
license:
CPOL
Hi i have this struct in C++,how to get an equivalent struct in C#typedef struct{ BYTE a :4 ; BYTE b :4 ; BYTE c :4; BYTE d :4 ; BYTE e :4; BYTE f :1; BYTE g :1; BYTE h :1; BYTE i:1; BYTE j :4 ; BYTE k :4 ;}demostruct;
General Programming
»
Uncategorised Quick Answers
»
General
C++/CLI
Win32
C#
C#4.0
MFC/C++
Making udp sockets non-blocking by making the socket Event Driven
by
ayesha hassan
Question
6 May 2013
license:
CPOL
I am trying to make my Socket "Event Based". Following is what i tried:VOID createServerSocket(){ WSADATA wsa; //Initialise winsock// if (WSAStartup(MAKEWORD(2,2),&wsa) != 0) { //"WinSock Initialization FAILED", } //Create a socket// ...
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
programming
socket
udp
Network
Sockets
Read from file at specific address in winapi
by
CPallini
Answer
6 May 2013
license:
CPOL
Quote:So, How can I read from specific address from the file?Using SetFilePointerEx[^] function.Quote:and must specify the length of the data required to read That's provided by ReadFile function.
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
Read from file at specific address in winapi
by
Rasool_Ahmed
Question
6 May 2013
license:
CPOL
Hello guys,I want to read the PE information from specific exe file, and this required to read from specific address from the file and must specify the length of the data required to read.So, How can I read from specific address from the file?The reason of my demand is to save memory....
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
Page 1 of 49
1
2
3
4
5
6
7
8
9
10
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web03 | 2.6.130513.1 | Last Updated 13 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid