Windows Programming - November 2011 (Page 5)

Class Problems
 
Hey, I trying to make a bullet class so I can shoot multiple bullets. This is the code that I'm using for the class: class Bullets{ private: vector<B...
[6 replies] Last: I have never used a class because i get compiler errors in the opposit... (by new hope)
assertion error!
 
Hi, I;m getting a run time: "assertion error line 238 vector iterators incompatible". When I tried debugging my program I found that the run time error occurs i...
[3 replies] Last: How ? (by bluecoder)
Overloading Windows API
 
Can Windows API be overloaded to call the custom-function? I'd like to do this to return a different return code and customize the behavior of the API. More ...
[2 replies] Last: Actually it should not be done .. what are you looking for . (by bluecoder)
cin.get() not working as it is supposed to
 
In the following function definition, the compiler is not pausing to take the user input 'c'. However the compiler is pausing for taking the customer's name. ...
[1 reply] : Sorry, I should have posted this in the c++ programming thread. I'm re... (by orchids16)
star-pattern program
 
Hello! Good morning. I want to write a c++ script that outputs the pattern * * * * * * * * * using for-loop?
[2 replies] Last: This has nothing to do with windows programming. Try posting here: ht... (by gpotw)
Inheritance problem
 
//Employee.h #pragma once #include <string> class Employee { public: Employee(long id=00000,const std::string &s="",const std::string &d=""); Employee(...
[2 replies] Last: You are right tfityo. Thanks for your time. My code runs now. (by orchids16)
Volume Limiter?
 
wat do i have to use to detect the playback volume (not the same as volume setting), so that i can adjust it? example: a video on YouTube has very soft audio, ...
[2 replies] Last: If you're targetting Windows Vista and newer, the following articles m... (by andywestken)
Reading souce code of WINAPI functions | Casting
 
Is there a way that I can read the source code of WINAPI functions? Such as SendMessage? I want to understand how casting works. For example: SendMessage (hw...
[6 replies] Last: Its called typecasting. When you put a different type of something i... (by new hope)
How do I get a web camera to send the video to my program?
 
I am using opencv to make a computer vision application. I want a web camera hooked up to a computer to get a video and send it into my c++ program so I can op...
[3 replies] Last: This article list the functions to capture video and images from a cam... (by new hope)
by mattia
DevC++ has bugged library?
 
hi, today i showed a my program written on ubuntu and tested there. my program should simply read and write with binary files. when i tried it in my pc, it wor...
[2 replies] Last: it actually had to write in an usb, which had no restriction (by mattia)
by DSTR3A
NULL Pointer
 
I need to cjck if a pointer is NULL. If so theI need it's value to be 0.0.0.0 This is what I have so far. char* addr2; pHostEnt2 = gethostbyname(NewL...
[1 reply] : Actually it does work! I placed it in the wrong spot! ime for sleep! ... (by DSTR3A)
c2143 and c4430 errors, help plz!
 
//SnowPark.h #include <string> #include "HRManagement.h" class SnowPark { public: SnowPark(const std::string &n=""); ~SnowPark(void); SnowPark(const ...
[3 replies] Last: Thank you very much webJose. circular reference was the problem. My co... (by orchids16)
by DSTR3A
Convert std::string to const char*
 
I am trying to convert a std::string to a const char*. This is with GetHostByName(). Any help is appreciated. This is what I have sp far. int Newlength ...
[6 replies] Last: Why are you deleting buffer before you print it? (by naraku9333)
by fg23
Use of extern "C" in dlls
 
I'm confused about importing and exporting functions with a dll written in C++. Most books and articles and code samples I see use this code before declarations...
[2 replies] Last: What strange linker errors are you getting? Just using C linkage shou... (by andywestken)
XBox360 Wireless Controller programming
 
Hi, I've been trying for days to find out a way to turn off a Xbox 360 Wireless controller. Accordingly to the msdn site, the only thing you can send to the co...
[no replies]
by DSTR3A
Unicode Print Trouble
 
I'm using windows, C++ and running a console app (multi-byte). The info is printing fine to the screen, however it is not printing to my log file correctly. A...
[3 replies] Last: I see this thread marked as answered, so I guess you solved the proble... (by webJose)
by co1ote
measuring time
 
Hello, I want to measure the time my function use to execute. I was trying to use time() and clock() from time.h but it only return it in seconds. How can I mea...
[3 replies] Last: //if you want it in milliseconds, just multiply timeElapsed by 1000. ... (by jim80y)
GUI programing in microsoft visual c++
 
is it the same as regular c++ and do you know book that i can read that will teach me how to use and make the gui in mvc++
[1 reply] : It is exactly the same as regular C++; it just requires the use of lib... (by Moschops)
by vijkrr
how to create symbolic links in win2000 server
 
Hi, Currently i've an exe, for which i need to create the symbolic link through C++ or through bat file. This should not be a version specific, it should wor...
[2 replies] Last: Windows has had CreateHardLink() since Windows XP, which is only works... (by andywestken)
read NTFS file system
 
Hi I want to know how many files is there in my drive that is less than 10k. so i want to read Master file table. i hear that i can use API. Now Which API ca...
[1 reply] : You don't need to read the master file table to answer that question. ... (by andywestken)
November 2011 Pages: 1... 34567
  Archived months: [oct2011] [dec2011]

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