Windows Programming - April 2016 (Page 2)

WriteFile() fails with error ERROR_INVALID_HANDLE
 
I want to save an array of two ints into a file. The code below is supposed to create a file named "foo.txt" in the executable's directory and write the values ...
[4 replies] Last: Thanks to both Necip and Thomas1965. I have solved the problem. Turns ... (by Tyler T)
compiler can't be found
 
Hello everybody I am struggling to implement my code on code::blocks IDE there an exception "can't find compiler in your figured search path for GNU GCC compile...
[1 reply] : So set the compiler toolchain path. If you don't know what you are do... (by freddie1)
Help for CLR->Windows form App in C++ windows visual studio 2008
 
Hi, so I've currently trying to make a project where I can open an other windows form application from a menu strip. I've been told to use this: About ^ for...
[3 replies] Last: I assume you have a main form with a menu or is it just a button? Anyw... (by Thomas1965)
by Hex213
Publisher
 
Hi, can I add a publisher to the table when start my program ?
[no replies]
How can you create a loop for a game in Win32 API?
 
The question is shown in the title. I recently used CreateTimerQueueTimer() to create a loop for a simple game running at 30 fps. It worked all right, but I n...
[4 replies] Last: Thank you very much Thomas! I tried double buffing and now the flicker... (by Tyler T)
Visual Studio 6.0, C/C++ Build errors
 
Hello, I am using Visual Studio 6.0, SP6 for this project on a Windows 7 Ultimate Dell desktop PC to build and run a C/C++ program originally developed in Vi...
[2 replies] Last: you can download vs2005 2008 or other by search msdn itellyou, then r... (by nchxiaowei)
Strange behavior of TextOut() Win32 API C++
 
I'm making a very simple game using C++ and Win32 API. I'm still new to the API. When I'm constructing my title screen, I noticed a very strange behavior of `Te...
[5 replies] Last: @Hydranix, the idea of TCHAR is that you can use use the code either ... (by Thomas1965)
How to make a function for keystrokes
 
I have the following code, all I am trying to do is to pass down a keystroke to this function so that it does the keystroke. How do I use a variable of some kin...
[2 replies] Last: Please use code tags. http://www.cplusplus.com/articles/jEywvCM9/ ... (by integralfx)
How do I change Win32 C style to C++?
 
I have tried following a few tutorials but they are outdated and throw errors. How would I change my standard Win32 windows create and wndproc, to OOP / OOD? ...
[2 replies] Last: Thank you, must have been a copy error somewhere which didn't throw an... (by Jack Hammered)
Chess program with unknown error
 
Hi everyone I was making a chess program, and it keeps giving me this weird error that I'm not sure how to fix or what is really even wrong in the first place? ...
[1 reply] : That error is going to happen with every derived class, you are not in... (by closed account E0p9LyTq)
Counting Numbers of Symbols in a line
 
I want to count the number of characters written in each line and then display the number. Would appreciate any kind of help? I am trying to read them into a...
[1 reply] : use a map to solve this problem! map<char,int> m; for (int i=0;i<cou... (by closed account 48bpfSEw)
looking for help
 
Problem: Write a program that uses a recursive function to return the number of occurrences of the digit 1 in a given binary string b. For example, b = 1001000...
[1 reply] : if (index >= b.length()) (by closed account 48bpfSEw)
How to copy an array to vector
 
I need to copy the contents of 3d array to vector _declspec(dllexport) void CallBrownianManagedAdapter(double*** myArray) { vector<vector<vector<double>>...
[no replies]
using a backbuffer but still getting flicker
 
hello everyone, i'm hoping someone can help me with this problem. i'm attempting to draw in a window without flicker. the stuff i've read indicates a bacbuffer ...
[16 replies] Last: finally got time to try a few things. silly me had SRCAND in the orig ... (by turnbui)
GPA program
 
hey is there anyone able to help me? I'm to write a program that would use a student id number, name, credit per course and the grade for three courses. I'm to ...
[2 replies] Last: Here are a lot of examples in many programming languages. search your ... (by closed account 48bpfSEw)
how can call the message loop in a diferent way?
 
windows program is like: //Message Loop WPARAM MessageLoop() { MSG msgEvents; while(GetMessage(&msgEvents,NULL,0,0)) { if(!IsDia...
[5 replies] Last: you have right freddie. so what i did: - instead add all code on main... (by Cambalinho)
Does CListCtrl display only filled rows?
 
Is the default behaviour for CListCtrl to only show the number of rows that are currently filled with an empty greyed out area beneath? In my List I have a v...
[no replies]
so... is visual studio 2015 community edition almost like the full edition?
 
I thought id downloaded a new version of express (limited in many ways like plug ins, etc) but then I noticed it was the community version. reviews said it was ...
[no replies]
win32 - how change window icon?
 
i'm trying changind the window icon without sucess :( HICON hWindowIcon=NULL; void SetIcon(string stricon) { if(hWindowIcon!=NU...
[7 replies] Last: my objective is create a class for change that :( on rc file we use a ... (by Cambalinho)
CListCtrl disappears after minimising
 
Let me say at outset that I'm using old technology by today's standards! This happens in MFC on Visual Studio 2005 and running under WinXP. (If it 'aint broke.....
[7 replies] Last: Glad to hear that it works now. Another way to fix the headers is to c... (by Thomas1965)
April 2016 Pages: 1234
  Archived months: [mar2016] [may2016]

This is an archived page. To post a new message, go to the current page.