opening

problem opening file c++

Must be a simple answer but I am at a loss, here is the code that is returning an error. I have tried with and without the starting slash. I won't know the full path, I want it to be relative from the exe, and that is the relative path. I tried escaping the slashes. My problem is that i get "error opening file" when the file is there. ...

How do I read hex numbers into an unsigned int in C [Solved]

I'm wanting to read hex numbers from a text file into an unsigned integer so that I can execute Machine instructions. It's just a simulation type thing that looks inside the text file and according to the values and its corresponding instruction outputs the new values in the registers. For example, the instructions would be: 1RXY -> ...

Closing child windows in Cocoa when the main window is closed

I'm a Cocoa newbie so it is likely that my approach is wrong but .. I have an app which opens several child windows (after the main/parent window has been loaded) using NSWindowController and InitNibWIthName. This works fine. But when I close the parent window (using the red x) these remain open and prevent the app from closing until t...

hyperlink open is seperate windows

i have used a js code to open a hyper link in a new window. function openNewWindow() { alert("hello"); var theurl="http://www.google.com"; popupWin = window.open(theurl, 'open_window', 'menubar, toolbar, location, directories, status, scrollbars, ...

How to structure opening hours of a place? May-be there's even an ontology for it?

Does anyone know any ontology which specifies opening hours of places? For example, I have a museum, which has 2 seasons. For low season (season start and end is specified), it is opened 10.00 - 18.00 on weekdays and 10-16 on saturday (on sunday it's closed), for high season it's opened 10-20 on weekdays and 10-18 on weekend. If there i...

Open a file in a running java jar.

If I have a jar file that is running, what is the best way for it to handle the opening of launched files to it - is there any cross platform way of doing this or would I have to make it a native application via something like JSmooth first (would like to avoid as much as possible)? Say the jar file is running and is associated with tex...

Opening a password protected PDF Document

How do I programmatically open a password protected PDF. I want to use ruby to open a password protected PDF and read its content. I would like to know whether its possible and if it is possible guidance on the right way to do it ...

Searching for Chrome Extensions opening every links in a selected window/tab

hi everybody, I'm a beginner in computer, and I'm looking for Google Chrome Extension which would make easier my surfing work. I'm working on a dual screen display and i'd like to know if there is an extension which would allow me to clic on links on my main screen and would open them straight in a new window/tab on the second screen, ...

How do I adjust the scrollers in a newly opened document?

Hey guys, I’m writing a document-based Cocoa application with a custom view that does the whole presentation of the document to the user. I finally got scrolling to work, and it feels great. When I open a previously saved document, though, the scrollers remain blank and useless until I resize the window — even if the document view’s f...

Opening an existing file from netbeans

I've created an application in Netbeans 6.9 where my ultimate aim is to create a .tcl file(or text file will do). When i run my application once I create the .tcl file and save it at a location. When I run the 2nd time and if I open that file in my application, then I am not able to get that file.I mean the data is not appending to the f...

opening a file format

Hi there, I've been looking on certain sites for some time now, but I cant seem to find anything usable about file formats. There is a certain file format on my computer, which I want to re-create to make add-ons for a program. Unfortunatly I would be the first to do so for that certain format, which makes it all the more hard. There a...