Click here to Skip to main content
Page 1 of 49
Page Size: 10 · 25 · 50


Tag filtered by:  Win32 [x]
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...
Article 13 May 2013   license: CPOL
tick data downloader for automatic trading systems
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...
Answer 13 May 2013   license: CPOL
Permission granted! Please, proceed.Or did you mean to ask a question??
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...
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[^]
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...
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...
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...
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...
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.
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
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...
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.
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...
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.
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...
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,...
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...
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...
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...
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...
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...
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.
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...
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....
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...
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
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...
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).
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...
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,...
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...
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...
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...
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.
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...
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*...
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...
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...
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] =...
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).
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(...
Answer 6 May 2013   license: CPOL
Have a look at "Bit fields in C#"[^] question at Stack Overflow.
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;
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// ...
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.
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....

Page 1 of 49
1 2 3 4 5 6 7 8 9 10


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