Windows Programming - February 2015

by Nanyo
protect .txt file eith pass
 
Hi can someone tell me how to protect a .txt file with a password. For example the user tries to open test.txt and the C++ program(running all the time) gives ...
[4 replies] Last: It cannot be done. Go with Computergeek's suggestion and put it in a p... (by LB)
I need help???
 
Needing to write a program that will ask the user to put a number in 1-10 and when they do this it will show the Roman number.
[1 reply] : What have you tried so far? Also, this is a post for the beginners se... (by Cheraphy)
Link1112 error
 
I am trying to follow the implementation shown here: http://shayne-fletcher.blogspot.co.uk/2014/03/financial-modeling-in-python-windows-7.html There is al...
[no replies]
Tick_Tack_Toe against computer need little help
 
The problem I am having is the computer does not switch turns after it inputs a move, infact the computer enlessly inputs the move. //include the followi...
[3 replies] Last: also your index for board is incorrect for the player 2 move. i've som... (by bobdabilder)
Opening an .exe file using C++
 
This might be a little advanced but I want to run an .exe file using Visual C++. I have tried to look for ways to do this but nothing I tried would run the prog...
[5 replies] Last: @ matteodoors : Don't hijack other peoples threads. Secondly, you can... (by Computergeek01)
Access violation , help needed!!
 
Hi all, I am writing a program to handle a haptic device using opengl and a library chai3d. It's in c++. I've been haviing an error in program which says: ...
[3 replies] Last: It's hard to give an exact demonstration of how you'd apply smart poin... (by Disch)
gapil: Similar Programming Documentation for WIN
 
Hi all. I recently discovered this well made guide on Linux C programming, that is named 'gapil' and is in ITALIAN ( http://gapil.gnulinux.it/download/ ). B...
[5 replies] Last: @ahcfan Yes, I'm using VS. The book seems pretty interesting... Thanks... (by robertol80)
Creating controls from another sourcefile
 
Hello guys.. Ive stumbled on a problem that im apparently missing something big in haha. Im coding the win32api without any "gui tool" and therefore there...
[7 replies] Last: No ideas what im missing? (by crosswinds)
Receipt problems, how does it work?
 
Hey guys, I recently got an assignment to create a vending machine type system and then finish it with a receipt with every transaction someone has made like so...
[no replies]
Converting std::string to System::String
 
I am trying to write a Windows Form front end for thousands of lines of unmanaged C++ code. The existing code runs as a batch console application and its output...
[6 replies] Last: Your question can easily be answered by looking at google: https://msd... (by modoran)
by pz1234
error ISO C++ forbids declaration of `Main' with no type
 
hello, I wrote this program but I can't find the mistske. Can you help me please? the instruction are the following : input: 2 positive numbers (x,y) outpu...
[4 replies] Last: thank you, I solved it (by pz1234)
help programming a hardware interface
 
hii i'm working on creating an interface to acquire data from the data acquisition card to the pc, i'm usíng this card from bluechip http://www.bluechiptec...
[4 replies] Last: aah sorry for that, here its http://imgur.com/8NH7SOi (by freedom123)
Reading Large Binary File
 
I'm trying to read a large (~1.3 Gig) binary file, but I get stuck allocating memory to the buffer. Here is a fragment of the code: //Initialize error_code ...
[2 replies] Last: if you have huge file, copying it to memory is rather silly solution. ... (by tath)
Adding a menu dynamically
 
Hi All, This is my pice of code for a window. Menu.h #include<afxwin.h> class CmainWn : public CFrameWnd { public :CmainWn(); DECLARE_MESSAGE_MAP() }; c...
[no replies]
Creating cmd scripts to open certain directories within c:\
 
everytime I try to create a shortcut to my desktop for my c:\adb directory. It end's up creating folder icons instead of the cmd window inon.....Im not sure if ...
[2 replies] Last: The behavior of the command line window, specifically whether it remai... (by Computergeek01)
by vlkon
Interrupting loop using keyboard input
 
Hello, I was wondering if there is a simple solution to my problem - interrupting infinite (or very long) loop using keyboard input. Since I expect accessin...
[10 replies] Last: OK, I tried some code if it is what I want but GetAsyncKeyState(VK_SP... (by Disch)
std::ifstream unable to open file
 
Hello guys! I have some part in my QT Application: //Part 1: // get file length std::ifstream file( path.toUtf8().constData() , std::ios::binary ...
[2 replies] Last: I do not think so. There is some more several files. The are not opene... (by Bohdan Kornienko)
Is it possible to convert float to LPCSTR {aka const char*}
 
Is it possible to convert float to char and show 3.333... instead of 3 in a message box or in a text box? #include <iostream> #include <windows.h> usi...
[12 replies] Last: Yes, thank you very much, that did it, thank you sir :) (by closed account 9hbfjE8b)
SDL - Manage Keyboard Input
 
Hi at all! I'm making a simple game just to learn the SDL library. Since the SDL library tells only if a given key is held down or not, I want to do something t...
[1 reply] : SDL tells you when a key is pressed down or released by the use of ev... (by Peter87)
Convert textfile to string
 
hello this is code which doesnot work void ViewData(){ system("CLS"); ofstream mydata; mydata.open("Data.txt"); while (!mydata.eof()){ ...
[1 reply] : http://stackoverflow.com/a/2602060/1959975 (by LB)
February 2015 Pages: 1234
  Archived months: [jan2015] [mar2015]

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